Discussion:
[asterisk-users] PJSIP/Asterisk 13.1.0 incoming call via DID: No matching endpoint found
Sonny Rajagopalan
2015-03-13 20:34:24 UTC
Permalink
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:***@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:***@67.231.1.110>' failed for '65.254.44.194:5060' (callid:
***@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:***@67.231.1.110>' failed for '65.254.44.194:5060' (callid:
***@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:***@67.231.1.110>' failed for '74.81.71.18:5060' (callid:
***@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:***@67.231.1.110>' failed for '74.81.71.18:5060' (callid:
***@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:***@67.231.5.110>' failed for '65.254.44.194:5060' (callid:
***@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:***@67.231.5.110>' failed for '65.254.44.194:5060' (callid:
***@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:***@67.231.5.110>' failed for '74.81.71.18:5060' (callid:
***@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:***@67.231.5.110>' failed for '74.81.71.18:5060' (callid:
***@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.
Joshua Colp
2015-03-13 20:55:39 UTC
Permalink
Sonny Rajagopalan wrote:

<snip>
Post by Sonny Rajagopalan
[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
Sonny Rajagopalan
2015-03-13 22:29:43 UTC
Permalink
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?
Post by Joshua Colp
<snip>
[sonnyGW1]
Post by Sonny Rajagopalan
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 --
http://www.asterisk.org/hello
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
Sonny Rajagopalan
2015-03-13 22:58:52 UTC
Permalink
Sorry, but I should have RTFMed my follow up question. I used
${CALLERID(num)} to get it.

Thanks.
Post by Sonny Rajagopalan
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?
Post by Joshua Colp
<snip>
[sonnyGW1]
Post by Sonny Rajagopalan
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 --
http://www.asterisk.org/hello
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
Loading...