DID fast busy, and log says 'No matching endpoint found'

I have a new asterisk now box, very basic single sip trunk, 1 inbound route,and a DID. When I call the DID I get fast busy, and the asterisk log says:
[2017-09-20 11:01:51] NOTICE[8813] res_pjsip/pjsip_distributor.c: Request ‘INVITE’ from ‘“4109518920” sip:4109518920@207.166.137.170’ failed for ‘64.2.142.90:5060’ (callid: 6ee1afdc-9e14-11e7-b203-91ad00824981) - No matching endpoint found

Our SIP provider said,
I show your device is requiring authorization from us when it shouldn’t be.

Sep 20 10:19:07.693 AM 50.126.119.150 < 64.2.142.90 INVITE sip:4434513938@50.126.119.150 SIP/2.0
Sep 20 10:19:07.744 AM 64.2.142.90 < 50.226.149.250 SIP/2.0 401 Unauthorized
Sep 20 10:19:07.744 AM 50.126.119.150 < 64.2.142.90 ACK sip:4434513938@50.126.119.150 SIP/2.0

How can I find out what is the cause of the problem?
Thank you

I dont use pjsip, but you can use the indentify section to identify inbound traffic by the source IP,

The identify configuration enables IP address matching against this endpoint.
For calls from a trunking provider, the From user may be different every time,
so we want to match against IP address instead of From user

https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Sections+and+Relationships

https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_res_pjsip_endpoint_identifier_ip

The identify section as mentioned is how ITSPs are generally matched. If it goes to an endpoint that does not have any authentication specified, then we won’t challenge and the call will be allowed in.

1 Like

Do my logs suggest something is being blocked by the built in firewall, or a miss configuration?

They suggest a misconfiguration of either the device or Asterisk.

turned out to be my SIP trunk provider only supports SIP not pjsip, and in settings it was bound to port 5160, so I changed it to 5060, and we are all good

PJSIP is is SIP! If they only support chan_sip, that suggests they are relying on some behaviour that SIP does not guaranty.