[SOLVED] No matching endpoint found for inbound calls - persists after restoring from backup

Hi all,

Woke up today to a surprise issue. I’ve been getting a busy signal when calling any of our DIDs (some go to IVR, some go directly to an extension), with the following log being spit out. After reading similar stories and doing some unsuccessful troubleshooting, I decided to restore from a 9 day old backup, before we added a few new extensions the other day. Same problem. I’ve reviewed trunk settings per Flowroute, and everything is still spot on.

[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 10 tries in 0.409 ms
[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 11 tries in 0.410 ms
[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 12 tries in 0.410 ms
[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 13 tries in 0.413 ms
[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 14 tries in 0.413 ms
[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 15 tries in 0.414 ms
[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 16 tries in 0.414 ms
[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 17 tries in 0.414 ms
[2023-04-27 14:03:57] NOTICE[3204]: res_pjsip/pjsip_distributor.c:670 log_failed_request: Request ‘INVITE’ from ‘“MY_CID_NAME” sip:[email protected];isup-oli=00’ failed for ‘34.226.36.34:5060’ (callid: [email protected]) - No matching endpoint found after 18 tries in 0.414 ms

Hoping someone can point me in the right direction to troubleshoot this :slight_smile:

Are you able to call between extensions? Are these pjsip or sip extensions? If pjsip what do you see when you type pjsip show contacts in the asterisk console?

If sip what do you see when you do sip show peers in the CLI?

1 Like

I am able to call between extensions, just checked.

pjsip show contacts lists

Contact: 301/sip:301-c3e36e59cd19a884c153c11b1a564a8a@2 ca64a7be5e Avail 9.966
Contact: 301/sip:[email protected]:41165;rinstance=8872 8b02b39079 Unavail nan
Contact: 316/sip:316-1876c4a727417e5011ea331f5763ff76@2 c78d56db1f Avail 21.485
Contact: xxxxxxxxxxxxx_fax/sip:[email protected] f8698c43c2 Avail 7.989
Contact: xxxxxxxxxxxxx_fax/sip:[email protected] f8698c43c2 Avail 8.036
Contact: xxxxxxxxxxxxx_fax/sip:[email protected] f8698c43c2 Avail 9.132

I did just boot everyone off by going back to a month old backup, hence why it’s only myself and 316 connected.

Thanks for such a quick response.

Is your initial error log above from prior to the restore?

1 Like

Confirm that Match (Permit) for the trunk contains
34.226.36.32/28

1 Like

After the restore actually.

Flowroute just produced this log from their end, noting that they are receiving a 401:

04/27/2023 11:03:57.689 -07:00: our.pbx.ip.xxx:5060 → 10.204.1.21:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 34.226.36.34:5060;rport=5060;received=34.226.36.34;branch=z9hG4bK1ead.b87e6fd53d9d0eaf2daad0ebeb3b2ea5.0
Record-Route: sip:34.226.36.34;lr
Call-ID: [email protected]
From: “MY CELL PHONE” <sip:[email protected];isup-oli=00>;tag=gK004c29f5
To: <sip:[email protected]>;tag=z9hG4bK1ead.b87e6fd53d9d0eaf2daad0ebeb3b2ea5.0
CSeq: 178627 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1682618637/bd746e30053d9f1bba5e0bccfca96564”,opaque=“41c8aa9503af2f91”,algorithm=MD5,qop=“auth”
Server: FPBX-15.0.37(16.30.0)
Content-Length: 0

Here’s what it’s set to currently:

I’m puzzled. I assume this is an IP auth trunk with setting Authentication None and Registration None.

At the Asterisk command prompt, type
pjsip show endpoint flowroutetrunkname
pjsip show aor flowroutetrunkname
and with luck you will see something wrong, especially look at Identify and Match.

1 Like

I think I just fixed it. This is weird, hear me out:

A couple of months ago, the match (permit) field was actually set to an old IP range before a Flowroute server change. It worked fine.

I just decided to try trimming it down to only 34.226.36.32/28 in case it wasn’t parsing the whole range correctly (previously 34.226.36.32/28, 34.226.36.32-34.226.36.47). Now everything is working.

Freaking weird.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.