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@gw1.sip.us contact_user=sonny retry_interval`
forbidden_retry_interval`0
expiration600
[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
matche.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>‘ failed for ‘65.254.44.194:5060’ (callid:
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>‘ failed for ‘65.254.44.194:5060’ (callid:
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>‘ failed for ‘74.81.71.18:5060’ (callid:
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>‘ failed for ‘74.81.71.18:5060’ (callid:
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>‘ failed for ‘65.254.44.194:5060’ (callid:
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>‘ failed for ‘65.254.44.194:5060’ (callid:
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>‘ failed for ‘74.81.71.18:5060’ (callid:
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>‘ failed for ‘74.81.71.18:5060’ (callid:
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.
3 thoughts on - PJSIP/Asterisk 13.1.0 Incoming Call Via DID: No Matching Endpoint Found
Sonny Rajagopalan wrote:
You want type=identify, not type=identity.
Cheers,
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?
Sorry, but I should have RTFMed my follow up question. I used
${CALLERID(num)} to get it.
Thanks.