Sonny Rajagopalan
2015-Mar-13 20:34 UTC
[asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID: No matching endpoint found
I have a working Asterisk 13.1.0 running, and I am trying to configure a SIP trunk for outbound and inbound calling, and a DID for the Asterisk server, which is used for incoming calls from PSTN. I configured my SIP.US trunks (showing one gateway, gw1, here for brevity, have two: gw1 & gw2, which are both configured on my end): [sonnyGW1] type=registration transport=transport-udp outbound_auth=sonnyGW1_auth server_uri=sip:gw1.sip.us client_uri=sip:sonny at gw1.sip.us contact_user=sonny retry_interval=60 forbidden_retry_interval=600 expiration=3600 [sonnyGW1_auth] type=auth auth_type=userpass password=somepassword username=sonny realm=gw1.sip.us [sonnyGW1] type=aor contact=sip:65.254.44.194:5060 [sonnyGW1] type=endpoint transport=transport-udp context=fromgw allow=!all,ulaw outbound_auth=sonnyGW1_auth aors=sonnyGW1 [sonnyGW1] type=identity endpoint=sonnyGW1 match=65.254.44.194 In my extensions.conf, I have a context called fromgw that doesn't do much: exten => s,1,Log(WARNING, Call via trunk: from ${EXTEN}) same => n,Answer() same => n,SayDigits(${EXTEN}) same => n,Hangup() When I use this configuration to call the DID of the PBX, the server "sees" the request, but is not able to do anything, owing to the following error: [Mar 13 20:12:26] NOTICE[9783]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"SONNY THE MAN " < sip:6175551212 at 67.231.1.110>' failed for '65.254.44.194:5060' (callid: 335817341_133371542 at 67.231.1.110) - No matching endpoint found [Mar 13 20:12:26] NOTICE[9783]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"SONNY THE MAN " < sip:6175551212 at 67.231.1.110>' failed for '65.254.44.194:5060' (callid: 335817341_133371542 at 67.231.1.110) - No matching endpoint found [Mar 13 20:12:27] NOTICE[9783]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"SONNY THE MAN " < sip:6175551212 at 67.231.1.110>' failed for '74.81.71.18:5060' (callid: 335817345_8252462 at 67.231.1.110) - No matching endpoint found [Mar 13 20:12:27] NOTICE[9783]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"SONNY THE MAN " < sip:6175551212 at 67.231.1.110>' failed for '74.81.71.18:5060' (callid: 335817345_8252462 at 67.231.1.110) - No matching endpoint found [Mar 13 20:12:27] NOTICE[9783]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"SONNY THE MAN " < sip:6175551212 at 67.231.5.110>' failed for '65.254.44.194:5060' (callid: 134784949_134192721 at 67.231.5.110) - No matching endpoint found [Mar 13 20:12:27] NOTICE[9783]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"SONNY THE MAN " < sip:6175551212 at 67.231.5.110>' failed for '65.254.44.194:5060' (callid: 134784949_134192721 at 67.231.5.110) - No matching endpoint found [Mar 13 20:12:28] NOTICE[9783]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"SONNY THE MAN " < sip:6175551212 at 67.231.5.110>' failed for '74.81.71.18:5060' (callid: 134266376_125798263 at 67.231.5.110) - No matching endpoint found [Mar 13 20:12:28] NOTICE[9783]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"SONNY THE MAN " < sip:6175551212 at 67.231.5.110>' failed for '74.81.71.18:5060' (callid: 134266376_125798263 at 67.231.5.110) - No matching endpoint found What am I missing? When I try pjsip show registrations, I do see the two gateways registered, and when I try pjsip show endpoints, I see the following: Endpoint: sonnyGW1 Invalid 0 of inf OutAuth: sonnyGW1_auth/sonny Aor: sonnyGW1 0 Contact: sonnyGW1/sip:65.254.44.194:5060 Unknown nan Transport: transport-udp udp 0 0 0.0.0.0:5060 Endpoint: sonnyGW2 Invalid 0 of inf OutAuth: sonnyGW2_auth/sonny Aor: sonnyGW2 0 Contact: sonnyGW2/sip:74.81.71.18:5060 Unknown nan Transport: transport-udp udp 0 0 0.0.0.0:5060 Any help appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150313/30e67cc5/attachment.html>
Joshua Colp
2015-Mar-13 20:55 UTC
[asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID: No matching endpoint found
Sonny Rajagopalan wrote: <snip>> [sonnyGW1] > type=identity > endpoint=sonnyGW1 > match=65.254.44.194You want type=identify, not type=identity. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Sonny Rajagopalan
2015-Mar-13 22:29 UTC
[asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID: No matching endpoint found
Oh, wow! Changed it and now I am getting calls into my context (fromgw). Unfortunately, the actual caller ID (6175551212) is not getting passed (but I know Asterisk is getting this). How do I "reap" this actual caller ID in my dialplan? On Fri, Mar 13, 2015 at 4:55 PM, Joshua Colp <jcolp at digium.com> wrote:> Sonny Rajagopalan wrote: > > <snip> > > [sonnyGW1] >> type=identity >> endpoint=sonnyGW1 >> match=65.254.44.194 >> > > You want type=identify, not type=identity. > > Cheers, > > -- > Joshua Colp > Digium, Inc. | Senior Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.org > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150313/1640db15/attachment.html>
Maybe Matching Threads
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.