Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID: No matching endpoint found


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
sonny.rajagopalan at g...
Guest





PostPosted: Fri Mar 13, 2015 3:35 pm    Post subject: [asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID Reply with quote

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@gw1.sip.us ([email]sip%3Asonny@gw1.sip.us[/email])
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@67.231.1.110 ([email]sip%3A6175551212@67.231.1.110[/email])>' failed for '335817341_133371542@67.231.1.110 (335817341_133371542@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@67.231.1.110 ([email]sip%3A6175551212@67.231.1.110[/email])>' failed for '335817341_133371542@67.231.1.110 (335817341_133371542@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@67.231.1.110 ([email]sip%3A6175551212@67.231.1.110[/email])>' failed for '335817345_8252462@67.231.1.110 (335817345_8252462@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@67.231.1.110 ([email]sip%3A6175551212@67.231.1.110[/email])>' failed for '335817345_8252462@67.231.1.110 (335817345_8252462@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@67.231.5.110 ([email]sip%3A6175551212@67.231.5.110[/email])>' failed for '134784949_134192721@67.231.5.110 (134784949_134192721@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@67.231.5.110 ([email]sip%3A6175551212@67.231.5.110[/email])>' failed for '134784949_134192721@67.231.5.110 (134784949_134192721@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@67.231.5.110 ([email]sip%3A6175551212@67.231.5.110[/email])>' failed for '134266376_125798263@67.231.5.110 (134266376_125798263@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@67.231.5.110 ([email]sip%3A6175551212@67.231.5.110[/email])>' failed for '134266376_125798263@67.231.5.110 (134266376_125798263@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.
Back to top
jcolp at digium.com
Guest





PostPosted: Fri Mar 13, 2015 3:56 pm    Post subject: [asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID Reply with quote

Sonny Rajagopalan wrote:

<snip>

Quote:
[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
Back to top
sonny.rajagopalan at g...
Guest





PostPosted: Fri Mar 13, 2015 5:30 pm    Post subject: [asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID Reply with quote

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@digium.com (jcolp@digium.com)> wrote:
Quote:
Sonny Rajagopalan wrote:

<snip>

Quote:
[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
Back to top
sonny.rajagopalan at g...
Guest





PostPosted: Fri Mar 13, 2015 5:59 pm    Post subject: [asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID Reply with quote

Sorry, but I should have RTFMed my follow up question. I used ${CALLERID(num)} to get it.

Thanks.

On Friday, March 13, 2015, Sonny Rajagopalan <sonny.rajagopalan@gmail.com (sonny.rajagopalan@gmail.com)> wrote:
Quote:
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 <[url=javascript:_e(%7B%7D,'cvml','jcolp@digium.com');]jcolp@digium.com[/url]> wrote:
Quote:
Sonny Rajagopalan wrote:

<snip>

Quote:
[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



Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services