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

Sonny Rajagopalan sonny.rajagopalan at gmail.com
Fri Mar 13 15:34:24 CDT 2015


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>


More information about the asterisk-users mailing list