<div dir="ltr"><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 7:25 PM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank">sonny.rajagopalan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have an Asterisk 13.6.0 PBX using PJSIP connected to the Twilio gateway. I am able to make calls outbound through the gateway, but I am not able to make calls into the PBX from external PSTN.</div><div><br></div><div>Specifically, an incoming call is _received_ by Asterisk, but it is not able to route the call internally owing to the following error:</div><div><br></div><div><div>[Feb 18 21:08:47] NOTICE[4606]: res_pjsip/pjsip_distributor.c:347 log_unidentified_request: Request from '<<a href="mailto:sip%3A%2B19725551212@sillyapp.pstn.twilio.com" target="_blank">sip:+19725551212@sillyapp.pstn.twilio.com</a>;isup-oli=62;pstn-params=808481808882;cpc=ordinary>' failed for '<a href="http://11.12.13.14:38124" target="_blank">11.12.13.14:38124</a>' (callid: <a href="mailto:3532ca0d142e6ce92f0259fd51cb5e43@0.0.0.0" target="_blank">3532ca0d142e6ce92f0259fd51cb5e43@0.0.0.0</a>) - No matching endpoint found</div></div><div><br></div><div>The last time I had this error, I was dealing with another SIP trunk and the issue was that I had mixed up "identify" and with "identity", but I have not such type in my pjsip_wizard.conf which looks like this:<br></div><div><br></div><div><div>type = wizard</div><div>sends_auth = yes</div><div>sends_registrations = no</div><div>remote_hosts = <a href="http://sillyapp.pstn.twilio.com" target="_blank">sillyapp.pstn.twilio.com</a>\;transport=tcp</div></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">​I'll bet that if you do a "pjsip show transport twilio"​ you won't see any Identify or Matches.  I think there's a bug in the wizard that's not correctly handling the "\;transport=tcp" in all cases when it's appended to remote_hosts.  I'll check on it tomorrow.</div><br></div><div><span style="font-family:'arial narrow',sans-serif">​Do this instead:​</span><br></div><div><br></div><div>remote_hosts = <a href="http://sillyapp.pstn.twilio.com/" target="_blank">sillyapp.pstn.twilio.com</a><br></div><div><div>server_uri_pattern = sip:${REMOTE_HOST}\;transport=TCP</div><div>client_uri_pattern = sip:${REMOTE_HOST}\;transport=TCP</div><div>contact_pattern = sip:${REMOTE_HOST}\;transport=TCP</div></div><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">Also, make sure that your Twilio "Origination URI" has the ";transport=tcp"<br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">appended.</div></div><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">​I'll be working ​on the wiki tomorrow as well. :)</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>outbound_auth/username = gobble</div><div>outbound_auth/password = degookdegook</div><div>endpoint/context = from-external</div><div>endpoint/disallow = all</div><div>endpoint/allow = ulaw</div><div>aor/qualify_frequency = 15</div></div><div><br></div><div>And--of course, I do have the DID configured on my extension, and in the dialplan "from-external" (confirmed using dialplan show from-external).</div><div><br></div><div>What is incorrect, and what should I be doing?</div><div><br></div><div>Any help is appreciated deeply.</div><div><br></div><div>Thank you,</div><div><br></div><div>Cheers,</div><div>Sonny.</div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div></div>