INVITE From DID: No Matching Endpoint Found But Completes The Call Anyway

Home » Asterisk Users » INVITE From DID: No Matching Endpoint Found But Completes The Call Anyway
Asterisk Users 3 Comments

I have a trunk set up for the DID from my provider:

[my_provider]
type=registration outbound_auth=my_provider server_uri=sip:sip.example.com client_uri=sip:my_username@sip.example.com retry_interval=60

[my_provider]
type=auth auth_type=userpass password=123456
username=my_username

[my_provider]
type=aor contact=sip:sip.example.com:5060

[my_provider]
type=endpoint context=from-my_provider disallow=all allow=ulaw outbound_auth=my_provider aors=my_provider

[my_provider]
type=identify endpoint=my_provider match=sip.example.com

And it registers fine:


==========================================================================================

mytrunk/sip:sip.example.com my_provider Registered

And when it gets an INVITE from my provider (192.168.0.1):

<--- Received SIP request (997 bytes) from UDP:192.168.0.1:5060 --->
INVITE sip:1235551212@10.75.22.5:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.1:5060;branch=z9hG4bK06d035fd;rport Max-Forwards: 70
From: “Fred Flintstone” ;tag=as539f9476
To:
Contact:
Call-ID: 3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060
CSeq: 102 INVITE
User-Agent: foobar Date: Sat, 26 Jan 2019 17:40:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer Remote-Party-ID: “Fred Flintstone” ;party=calling;privacy=off;screen=no Content-Type: application/sdp Content-Length: 295

[SDP redacted]

It logs an error:

[Jan 26 12:40:00] NOTICE[21775]: res_pjsip/pjsip_distributor.c:525 log_failed_request: Request ‘INVITE’ from ‘”Fred Flintstone” ‘ failed for ‘192.168.0.1:5060’ (callid: 3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060) – No matching endpoint found

But then goes on to complete the call:

<--- Transmitting SIP response (352 bytes) to UDP:192.168.0.1:5060 --->
SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.0.1:5060;rport=5060;received=192.168.0.1;branch=z9hG4bK06d035fd Call-ID: 3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060
From: “Fred Flintstone” ;tag=as539f9476
To:
CSeq: 102 INVITE
Server: Asterisk PBX 13.11.1
Content-Length: 0

[ launch into dialplan ]

So why the spurious error when it was able to complete the call?

Cheers, b.

3 thoughts on - INVITE From DID: No Matching Endpoint Found But Completes The Call Anyway

  • What version of Asterisk and what’s the value of the “identify_by”
    parameter for the endpoint?
    When you have an “identify” object configured, you should just use “ip” as the “identify_by”,

  • 13.11.1

    I know, I could stand to upgrade.

    It doesn’t have one. I guess you are implying it should have one.

    I see. OK. Will give that a try.

    Cheers, b.

  • But isn’t ip the highest priory check in the default value of endpoint_identifier_order and by extension, wouldn’t an endpoint without an “identify_by” implicitly be treated as “identify_by=ip”?

    So isn’t my existing configuring already implicitly using
    “identify_by=ip”?

    Cheers, b.