root@asterisk:/etc/asterisk# asterisk -rvvvv Asterisk 18.17.0, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Running as user 'asterisk' Running under group 'asterisk' Connected to Asterisk 18.17.0 currently running on asterisk (pid = 49287) asterisk*CLI> pjsip s send set show asterisk*CLI> pjsip se send set asterisk*CLI> pjsip set logger on PJSIP Logging enabled asterisk*CLI> asterisk*CLI> <--- Received SIP request (823 bytes) from UDP:X.X.X.X:5060 ---> INVITE sip:1000@X.X.X.X:XXXX SIP/2.0 Via: SIP/2.0/UDP X.X.X.X:5060;branch=z9hG4bK2fc98510;rport Max-Forwards: 70 From: "09XXXXXXXX" ;tag=as67d0257f To: Contact: Call-ID: 2f44bfdf1f695e763b9637c8691a4fdb@211.21.77.184 CSeq: 102 INVITE Date: Sat, 25 Mar 2023 03:39:41 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Content-Type: application/sdp Content-Length: 285 v=0 o=root 1350047047 1350047047 IN IP4 X.X.X.X s=Asterisk PBX 1.6.2.6 c=IN IP4 211.21.77.183 t=0 0 m=audio 11426 RTP/AVP 0 8 3 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv [Mar 25 03:38:11] NOTICE[49312]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '"09XXXXXXXX" ' failed for 'X.X.X.X:5060' (callid: 2f44bfdf1f695e763b9637c8691a4fdb@X.X.X.X) - No matching endpoint found <--- Transmitting SIP response (509 bytes) to UDP:X.X.X.X:5060 ---> SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 211.21.77.183:5060;rport=5060;received=X.X.X.X;branch=z9hG4bK2fc98510 Call-ID: 2f44bfdf1f695e763b9637c8691a4fdb@211.21.77.184 From: "09XXXXXXXX" ;tag=as67d0257f To: ;tag=z9hG4bK2fc98510 CSeq: 102 INVITE WWW-Authenticate: Digest realm="asterisk",nonce="1679715491/d3605694df473892e0d5359e234851c2",opaque="782ed79057a039e6",algorithm=MD5,qop="auth" Server: Asterisk PBX 18.17.0 Content-Length: 0 <--- Received SIP request (380 bytes) from UDP:X.X.X.X:5060 ---> ACK sip:1000@X.X.X.X:XXXX SIP/2.0 Via: SIP/2.0/UDP X.X.X.X:5060;branch=z9hG4bK2fc98510;rport Max-Forwards: 70 From: "09XXXXXXXX" ;tag=as67d0257f To: ;tag=z9hG4bK2fc98510 Contact: Call-ID: 2f44bfdf1f695e763b9637c8691a4fdb@X.X CSeq: 102 ACK Content-Length: 0 <--- Received SIP request (1099 bytes) from UDP:X.X.X.X:5060 ---> INVITE sip:1000@X.X.X.X:XXXX SIP/2.0 Via: SIP/2.0/UDP X.X.X.X:5060;branch=z9hG4bK63516f18;rport Max-Forwards: 70 From: "09XXXXXXXX" ;tag=as67d0257f To: Contact: Call-ID: 2f44bfdf1f695e763b9637c8691a4fdb@X.X.X.X CSeq: 103 INVITE Authorization: Digest username="202713", realm="asterisk", algorithm=MD5, uri="sip:1000@X.X.X.X:XXXX", nonce="1679715491/d3605694df473892e0d5359e234851c2", response="b5f0ef71aa4a6c9f4b55554e9deb9ee0", opaque="782ed79057a039e6", qop=auth, cnonce="446f3f85", nc=00000001 Date: Sat, 25 Mar 2023 03:39:41 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Content-Type: application/sdp Content-Length: 285 v=0 o=root 1350047047 1350047048 IN IP4 211.21.77.183 s=Asterisk PBX 1.6.2.6 c=IN IP4 211.21.77.183 t=0 0 m=audio 11426 RTP/AVP 0 8 3 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv [Mar 25 03:38:11] NOTICE[49312]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '"09XXXXXXXX" ' failed for 'X.X.X.X:5060' (callid: 2f44bfdf1f695e763b9637c8691a4fdb@X.X.X.X) - No matching endpoint found [Mar 25 03:38:11] NOTICE[49312]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '"09XXXXXXXX" ' failed for 'X.X.X.X:5060' (callid: 2f44bfdf1f695e763b9637c8691a4fdb@X.X.X.X) - Failed to authenticate <--- Transmitting SIP response (509 bytes) to UDP:X.X.X.X:5060 ---> SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP X.X.X.X:5060;rport=5060;received=X.X.X.X;branch=z9hG4bK63516f18 Call-ID: 2f44bfdf1f695e763b9637c8691a4fdb@X.X.X.X From: "09XXXXXXXX" ;tag=as67d0257f To: ;tag=z9hG4bK63516f18 CSeq: 103 INVITE WWW-Authenticate: Digest realm="asterisk",nonce="1679715491/d3605694df473892e0d5359e234851c2",opaque="53b8cd874f3fc353",algorithm=MD5,qop="auth" Server: Asterisk PBX 18.17.0 Content-Length: 0 <--- Received SIP request (380 bytes) from UDP:X.X.X.X:5060 ---> ACK sip:1000@X.X.X.X:XXXX SIP/2.0 Via: SIP/2.0/UDP X.X.X.X:5060;branch=z9hG4bK63516f18;rport Max-Forwards: 70 From: "09XXXXXXXX" ;tag=as67d0257f To: ;tag=z9hG4bK63516f18 Contact: Call-ID: 2f44bfdf1f695e763b9637c8691a4fdb@X.X.X.X CSeq: 103 ACK Content-Length: 0