inbound calls from Vitelity fail with the following errors “no matching endpoint found”, “Failed to authenticate”.
[Jun 24 17:14:08] NOTICE[15881]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '"<<my cell>>" <sip:<<my cell>>@<<vitelity public ip>>>' failed for '<<vitelity public ip>>:5060' (callid: 23a5ce3640d560e27ce7cf2c6339f1f8@10.44.109.39:5060) - No matching endpoint found
[Jun 24 17:14:08] NOTICE[15881]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '"<<my cell>>" <sip:<<my cell>>@<<vitelity public ip>>>' failed for '<<vitelity public ip>>:5060' (callid: 23a5ce3640d560e27ce7cf2c6339f1f8@10.44.109.39:5060) - No matching endpoint found
[Jun 24 17:14:08] NOTICE[15881]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '"<<my cell>>" <sip:<<my cell>>@<<vitelity public ip>>>' failed for '<<vitelity public ip>>:5060' (callid: 23a5ce3640d560e27ce7cf2c6339f1f8@10.44.109.39:5060) - Failed to authenticate
My pjsip.conf
[vitel-inbound]
type=identify
endpoint=vitel-inbound
match=<<vitelity public ip2>>
match=<<vitelity public ip>>
[vitel-inbound]
type=endpoint
context=vitel-inbound
disallow=all
allow=ulaw
allow=alaw
allow=gsm
transport=udp-transport-nat
rewrite_contact=yes
from_domain=<<vitelity public ip>>
direct_media=no
dtmf_mode=auto
pjsip logger output
<--- Transmitting SIP response (550 bytes) to UDP:<<vitelity public ip>>:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP <<vitelity public ip>>:5060;rport=5060;received=<<vitelity public ip>>;branch=z9hG4bK5shokl206g6uaf9k7pl0.1
Call-ID: 632701844e1fc26719777e1228b68ed4@10.44.109.17:5060
From: "<<my cell>>" <sip:<<my cell>>@<<vitelity public ip>>>;tag=as0bf54330
To: <sip:<<did on my pbx>>@<<aws public ip>>;tag=z9hG4bK5shokl206g6uaf9k7pl0.1
CSeq: 103 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1656078882/23a114898764389e99c2fe51fc772bf5",opaque="42f5e43e7e66e565",algorithm=MD5,qop="auth"
Server: Asterisk PBX GIT-18-801317ae05
Content-Length: 0
<--- Received SIP request (366 bytes) from UDP:64.2.142.90:5060 --->
ACK sip:<<did on my pbx>>@<<aws public ip>>:5060 SIP/2.0
Via: SIP/2.0/UDP 64.2.142.90:5060;branch=z9hG4bK5shokl206g6uaf9k7pl0.1
CSeq: 103 ACK
Max-Forwards: 68
To: <sip:<<did on my pbx>>@<<aws public ip>>>;tag=z9hG4bK5shokl206g6uaf9k7pl0.1
From: "<<my cell>>" <sip:<<my cell>>@<<vitelity public ip>>>;tag=as0bf54330
Call-ID: 632701844e1fc26719777e1228b68ed4@10.44.109.17:5060
Content-Length: 0
<--- Received SIP request (1247 bytes) from UDP:<<vitelity public ip>>:5060 --->
INVITE sip:<<did on my pbx>>@<<aws public ip>>:5060 SIP/2.0
Via: SIP/2.0/UDP <<vitelity public ip>>:5060;branch=z9hG4bKa46alt006grhaenr1e10.1
Max-Forwards: 68
To: <sip:<<did on my pbx>>@<<aws public ip>>>
From: "<<my cell>>" <sip:<<my cell>>@<<vitelity public ip>>>;tag=as0bf54330
Contact: <sip:<<my cell>>@<<vitelity public ip>>:5060;transport=udp>
Call-ID: 632701844e1fc26719777e1228b68ed4@10.44.109.17:5060
CSeq: 104 INVITE
User-Agent: packetrino
Authorization: Digest username="pt", realm="asterisk", algorithm=MD5, uri="sip:pt@10.44.108.197:5060", nonce="1656078882/23a114898764389e99c2fe51fc772bf5", response="eebac428596606e53f58bce5dbe16a29", opaque="42f5e43e7e66e565", qop=auth, cnonce="4c8d2cce", nc=00000002
Date: Fri, 24 Jun 2022 13:54:42 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
X-OutboundProxy: <<aws public ip>>
Content-Type: application/sdp
Content-Length: 343
v=0
o=root 1763224748 1763224750 IN IP4 <<vitelity public ip>>
s=Asterisk PBX 16.8.0
c=IN IP4 <<vitelity public ip>>
t=0 0
m=audio 34266 RTP/AVP 0 8 3 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
[Jun 24 13:54:42] NOTICE[15220]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '"<<my cell>>" <sip:<<my cell>>@<<vitelity public ip>>>' failed for '<<vitelity public ip>>:5060' (callid: 632701844e1fc26719777e1228b68ed4@10.44.109.17:5060) - No matching endpoint found
[Jun 24 13:54:42] NOTICE[15220]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '"<<my cell>>" <sip:<<my cell>>@<<vitelity public ip>>>' failed for '<<vitelity public ip>>:5060' (callid: 632701844e1fc26719777e1228b68ed4@10.44.109.17:5060) - Failed to authenticate
Vitelity support send me this from their end, showing failed authentication (401)
[56, 09:59:40:031785, 401 Unauthorized, 596 bytes, <<aws public ip>>, <<vitelity public ip>>, 5060, 5060]
Summary:
Response Code: 401
Response Reason: Unauthorized
Call-ID: 60dfd91804a4ac6d34d267523c80d0da@10.44.109.85:5060
From: "<<my cell>>" sip:<<my cell>>@<<vitelity public ip>>>;tag=as22e2e87a
To: sip:<<did on my pbx>>@<<aws public ip>>>;tag=z9hG4bKvg57v70020nh8tgjcqu0.1
CSeq: 102 INVITE
Any advice much appreciated.
Ronald