Randomly Handsets not ringing

PJSip extensions randomly stop accepting calls. We use a mixture of Yealink and Grandstream handsets. Extensions appear registered at the tim eon both the handset and asterisk

When logged to Yealinlk they responded with this when ext 9992 calling 237.
The server send the Invite signal to the 237 that the 9992 want to talk with 237, and 237 send 100 Trying and 180 Ringing to the server that it has received the Invite, but then server send Cancel signal to 237 cancel this call. So that is why the call cannot establish.
Thanks Mark

Asterisk logs show below at the time
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:31] Set(“PJSIP/9992-00012cb5”, “D_OPTIONS=HhTtr”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:32] GosubIf(“PJSIP/9992-00012cb5”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:33] NoOp(“PJSIP/9992-00012cb5”, "Blind Transfer: , Attended Transfer: , User: 9992, Alert Info: ") in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:34] ExecIf(“PJSIP/9992-00012cb5”, “1?Set(ALERT_INFO=)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:35] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(ALERT_INFO=)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:36] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(ALERT_INFO=)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:37] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:38] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:39] GosubIf(“PJSIP/9992-00012cb5”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:40] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(CHANNEL(musicclass)=)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:41] GosubIf(“PJSIP/9992-00012cb5”, “0?qwait,1()”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:42] Set(“PJSIP/9992-00012cb5”, “__CWIGNORE=”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:43] Set(“PJSIP/9992-00012cb5”, “__KEEPCID=TRUE”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:44] GotoIf(“PJSIP/9992-00012cb5”, “0?usegoto,1”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:45] GotoIf(“PJSIP/9992-00012cb5”, “0?godial”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:46] Gosub(“PJSIP/9992-00012cb5”, “sub-presencestate-display,s,1(237)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@sub-presencestate-display:1] Goto(“PJSIP/9992-00012cb5”, “state-available,1”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx_builtins.c: Goto (sub-presencestate-display,state-available,1)
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [state-available@sub-presencestate-display:1] Set(“PJSIP/9992-00012cb5”, “PRESENCESTATE_DISPLAY=(Available)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [state-available@sub-presencestate-display:2] Return(“PJSIP/9992-00012cb5”, “”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:47] Set(“PJSIP/9992-00012cb5”, “CONNECTEDLINE(name,i)=user (Available)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:48] Set(“PJSIP/9992-00012cb5”, “CONNECTEDLINE(num)=237”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:49] Set(“PJSIP/9992-00012cb5”, “D_OPTIONS=HhTtr”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:50] Macro(“PJSIP/9992-00012cb5”, “dialout-one-predial-hook,”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“PJSIP/9992-00012cb5”, “”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:51] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(D_OPTIONS=HhtrI)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:52] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(CWRING=r(callwaiting)):Set(CWRING=)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:53] NoOp(“PJSIP/9992-00012cb5”, “”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:54] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(D_OPTIONS=Hhtr)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:55] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(D_OPTIONS=HhTtrg)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-dial-one:56] Dial(“PJSIP/9992-00012cb5”, “PJSIP/237/sip:237@1.1.1.1:12708;transport=TCP;x-ast-orig-host=2.2.2.24:12708,10,HhTtrb(func-apply-sipheaders^s^1)”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] app_stack.c: PJSIP/237-00012cb6 Internal Gosub(func-apply-sipheaders,s,1) start
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@func-apply-sipheaders:1] NoOp(“PJSIP/237-00012cb6”, “Applying SIP Headers to channel PJSIP/237-00012cb6”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@func-apply-sipheaders:2] Set(“PJSIP/237-00012cb6”, “TECH=PJSIP”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@func-apply-sipheaders:3] Set(“PJSIP/237-00012cb6”, “SIPHEADERKEYS=”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@func-apply-sipheaders:4] While(“PJSIP/237-00012cb6”, “0”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] app_while.c: Jumping to priority 10
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@func-apply-sipheaders:11] Return(“PJSIP/237-00012cb6”, “”) in new stack
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] app_stack.c: Spawn extension (from-internal, 237, 1) exited non-zero on ‘PJSIP/237-00012cb6’
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] app_stack.c: PJSIP/237-00012cb6 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
[2025-02-27 18:47:05] VERBOSE[23175][C-0000a337] app_dial.c: Called PJSIP/237/sip:237@1.1.1.1:12708;transport=TCP;x-ast-orig-host=2.2.2.24:12708
[2025-02-27 18:47:06] VERBOSE[23175][C-0000a337] app_dial.c: PJSIP/237-00012cb6 is ringing
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] app_macro.c: Spawn extension (macro-dial-one, s, 56) exited non-zero on ‘PJSIP/9992-00012cb5’ in macro ‘dial-one’
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] app_macro.c: Spawn extension (macro-exten-vm, s, 34) exited non-zero on ‘PJSIP/9992-00012cb5’ in macro ‘exten-vm’
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] pbx.c: Spawn extension (ext-local, 237, 3) exited non-zero on ‘PJSIP/9992-00012cb5’
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] pbx.c: Executing [h@ext-local:1] Macro(“PJSIP/9992-00012cb5”, “hangupcall,”) in new stack
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/9992-00012cb5”, “1?theend”) in new stack
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/9992-00012cb5”, “0?Set(CDR(recordingfile)=)”) in new stack
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“PJSIP/9992-00012cb5”, “”) in new stack
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/9992-00012cb5’ in macro ‘hangupcall’
[2025-02-27 18:47:07] VERBOSE[23175][C-0000a337] pbx.c: Spawn extension (ext-local, h, 1) exited non-zero on ‘PJSIP/9992-00012cb5’

You need to show a SIP trace.

Also this looks like a FreePBX dialplan, and this is not the right forum for FreePBX dialplan related issues.

I hope this is as requested. Thanks Ext 258 ringing 243 and 243 reporting handset not ringing

[2025-03-10 10:44:02] VERBOSE[27639] res_pjsip_logger.c: <— Transmitting SIP response (555 bytes) to UDP:1.1.1.1:3549 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.10.203.251:3549;rport=3549;received=1.1.1.1;branch=z9hG4bKiFDfDzkNdXTeoLVU
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver;tag=z9hG4bKiFDfDzkNdXTeoLVU
CSeq: 1 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1741603442/ae1dc85ecd3fbdaf8e1a89cf5f4fe4e8”,opaque=“27436f352a3c5235”,algorithm=md5,qop=“auth”
Server: FPBX-16.0.40.11(16.25.0)
Content-Length: 0

[2025-03-10 10:44:02] VERBOSE[2091] res_pjsip_logger.c: <— Received SIP request (460 bytes) from UDP:1.1.1.1:3549 —>
ACK sip:243@phoneserver SIP/2.0
Via: SIP/2.0/UDP 10.10.203.251:3549;branch=z9hG4bKiFDfDzkNdXTeoLVU;rport
Max-Forwards: 70
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver;tag=z9hG4bKiFDfDzkNdXTeoLVU
CSeq: 1 ACK
User-Agent: Clearly Anywhere/1.0.16.0 (build 2176363; Win32 10.0.19041.5072; x64)
Content-Length: 0

[2025-03-10 10:44:02] VERBOSE[2091] res_pjsip_logger.c: <— Received SIP request (1111 bytes) from UDP:1.1.1.1:3549 —>
INVITE sip:243@phoneserver SIP/2.0
Via: SIP/2.0/UDP 10.10.203.251:3549;branch=z9hG4bKppxw66vTL61sIlCc;rport
Contact: sip:258@10.10.203.251:3549;video
Max-Forwards: 70
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces, path
To: sip:243@phoneserver
Content-Type: application/sdp
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
CSeq: 2 INVITE
Authorization: Digest username=“258”,realm=“asterisk”,algorithm=md5,uri=“sip:243@phoneserver”,nonce=“1741603442/ae1dc85ecd3fbdaf8e1a89cf5f4fe4e8”,opaque=“27436f352a3c5235”,qop=auth,cnonce=“Z87CcmCYLH5Gue4a6QopdmJQ”,nc=00000001,response=“0d418dfda74f70298af624536299b5fc”
User-Agent: Clearly Anywhere/1.0.16.0 (build 2176363; Win32 10.0.19041.5072; x64)
Content-Length: 224

[2025-03-10 10:44:02] VERBOSE[15982] res_pjsip_logger.c: <— Transmitting SIP response (375 bytes) to UDP:1.1.1.1:3549 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.203.251:3549;rport=3549;received=1.1.1.1;branch=z9hG4bKppxw66vTL61sIlCc
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver
CSeq: 2 INVITE
Server: FPBX-16.0.40.11(16.25.0)
Content-Length: 0
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 10.10.203.251:3549;rport=3549;received=1.1.1.1;branch=z9hG4bKppxw66vTL61sIlCc
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver;tag=2c5855d1-f07b-4845-8b61-89ed16d8dd61
CSeq: 2 INVITE
Server: FPBX-16.0.40.11(16.25.0)
Contact: sip:2.2.2.2:5060
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE
Content-Type: application/sdp
Content-Length: 331

[2025-03-10 10:44:02] VERBOSE[32506] res_pjsip_logger.c: <— Transmitting SIP response (1007 bytes) to UDP:1.1.1.1:3549 —>
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 10.10.203.251:3549;rport=3549;received=1.1.1.1;branch=z9hG4bKppxw66vTL61sIlCc
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver;tag=2c5855d1-f07b-4845-8b61-89ed16d8dd61
CSeq: 2 INVITE
Server: FPBX-16.0.40.11(16.25.0)
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE
Contact: sip:2.2.2.2:5060
P-Asserted-Identity: “John Thompson” sip:243@phoneserver
Content-Type: application/sdp
Content-Length: 331

[2025-03-10 10:44:02] VERBOSE[15982] res_pjsip_logger.c: <— Transmitting SIP request (1143 bytes) to UDP:1.1.1.1:1531 —>
INVITE sip:243@1.1.1.1:1531 SIP/2.0
Via: SIP/2.0/UDP 2.2.2.2:5060;rport;branch=z9hG4bKPjeb773484-a26d-4b95-a99a-10f55058839e
From: “Andrea Adomaitis” sip:258@2.2.2.2;tag=82372a0e-b764-4085-8b5c-ba53626f24b4
To: sip:243@1.1.1.1
Contact: sip:asterisk@2.2.2.2:5060
Call-ID: 730fe9f2-d79c-424a-b8b8-c989cad72a96
CSeq: 2001 INVITE
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
P-Asserted-Identity: “Andrea Adomaitis” sip:258@2.2.2.2
Max-Forwards: 70
User-Agent: FPBX-16.0.40.11(16.25.0)
Content-Type: application/sdp
Content-Length: 389

[2025-03-10 10:44:03] VERBOSE[2091] res_pjsip_logger.c: <— Received SIP response (499 bytes) from UDP:1.1.1.1:1531 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 2.2.2.2:5060;rport=5060;branch=z9hG4bKPjeb773484-a26d-4b95-a99a-10f55058839e
From: “Andrea Adomaitis” sip:258@2.2.2.2;tag=82372a0e-b764-4085-8b5c-ba53626f24b4
To: sip:243@1.1.1.1
Call-ID: 730fe9f2-d79c-424a-b8b8-c989cad72a96
CSeq: 2001 INVITE
Supported: replaces, path, eventlist
User-Agent: Grandstream WP820 1.0.7.80
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0

SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 2.2.2.2:5060;rport=5060;branch=z9hG4bKPjeb773484-a26d-4b95-a99a-10f55058839e
From: “Andrea Adomaitis” sip:258@2.2.2.2;tag=82372a0e-b764-4085-8b5c-ba53626f24b4
To: sip:243@1.1.1.1;tag=311388881
Call-ID: 730fe9f2-d79c-424a-b8b8-c989cad72a96
CSeq: 2001 INVITE
Contact: sip:243@10.10.201.161:5060
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream WP820 1.0.7.80
Allow-Events: talk, hold
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0

SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 10.10.203.251:3549;rport=3549;received=1.1.1.1;branch=z9hG4bKppxw66vTL61sIlCc
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver;tag=2c5855d1-f07b-4845-8b61-89ed16d8dd61
CSeq: 2 INVITE
Server: FPBX-16.0.40.11(16.25.0)
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE
Contact: sip:2.2.2.2:5060
P-Asserted-Identity: “John Thompson” sip:243@phoneserver
Content-Type: application/sdp
Content-Length: 331

[2025-03-10 10:44:03] VERBOSE[2091] res_pjsip_logger.c: <— Received SIP request (768 bytes) from UDP:1.1.1.1:3549 —>
CANCEL sip:243@phoneserver SIP/2.0
Via: SIP/2.0/UDP 10.10.203.251:3549;branch=z9hG4bKppxw66vTL61sIlCc;rport
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
To: sip:243@phoneserver
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
CSeq: 2 CANCEL
Warning: 399 10.10.203.251 “CallProgressScreen”
Authorization: Digest username=“258”,realm=“asterisk”,algorithm=md5,uri=“sip:243@phoneserver”,nonce=“1741603442/ae1dc85ecd3fbdaf8e1a89cf5f4fe4e8”,opaque=“27436f352a3c5235”,qop=auth,cnonce=“Z87Cc78+J98zHGf/9xtuA8DW”,nc=00000002,response=“fb11e657b03de67538dbbcf1a926a122”
Max-Forwards: 70
User-Agent: Clearly Anywhere/1.0.16.0 (build 2176363; Win32 10.0.19041.5072; x64)
Content-Length: 0

[2025-03-10 10:44:03] VERBOSE[32506] res_pjsip_logger.c: <— Transmitting SIP response (412 bytes) to UDP:1.1.1.1:3549 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.203.251:3549;rport=3549;received=1.1.1.1;branch=z9hG4bKppxw66vTL61sIlCc
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver;tag=2c5855d1-f07b-4845-8b61-89ed16d8dd61
CSeq: 2 CANCEL
Server: FPBX-16.0.40.11(16.25.0)
Content-Length: 0

[2025-03-10 10:44:03] VERBOSE[32506] res_pjsip_logger.c: <— Transmitting SIP response (608 bytes) to UDP:1.1.1.1:3549 —>
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.10.203.251:3549;rport=3549;received=1.1.1.1;branch=z9hG4bKppxw66vTL61sIlCc
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver;tag=2c5855d1-f07b-4845-8b61-89ed16d8dd61
CSeq: 2 INVITE
Server: FPBX-16.0.40.11(16.25.0)
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE
P-Asserted-Identity: “John Thompson” sip:243@phoneserver
Content-Length: 0

CANCEL sip:243@1.1.1.1:1531 SIP/2.0
Via: SIP/2.0/UDP 2.2.2.2:5060;rport;branch=z9hG4bKPjeb773484-a26d-4b95-a99a-10f55058839e
From: “Andrea Adomaitis” sip:258@2.2.2.2;tag=82372a0e-b764-4085-8b5c-ba53626f24b4
To: sip:243@1.1.1.1
Call-ID: 730fe9f2-d79c-424a-b8b8-c989cad72a96
CSeq: 2001 CANCEL
Reason: Q.850;cause=127
Max-Forwards: 70
User-Agent: FPBX-16.0.40.11(16.25.0)
Content-Length: 0

[2025-03-10 10:44:03] VERBOSE[2091] res_pjsip_logger.c: <— Received SIP request (473 bytes) from UDP:1.1.1.1:3549 —>
ACK sip:243@phoneserver SIP/2.0
Via: SIP/2.0/UDP 10.10.203.251:3549;branch=z9hG4bKppxw66vTL61sIlCc;rport
Max-Forwards: 70
Call-ID: 27E4AA1BDB705A0483A3B767369A5463E7236476
From: “Andrea Adomaitis” sip:258@phoneserver;tag=7B632A8516530570A8D51696B823D9FB
To: sip:243@phoneserver;tag=2c5855d1-f07b-4845-8b61-89ed16d8dd61
CSeq: 2 ACK
User-Agent: Clearly Anywhere/1.0.16.0 (build 2176363; Win32 10.0.19041.5072; x64)
Content-Length: 0

[2025-03-10 10:44:03] VERBOSE[11212] res_pjsip_logger.c: <— Transmitting SIP request (429 bytes) to UDP:1.1.1.1:1531 —>
OPTIONS sip:243@1.1.1.1:1531 SIP/2.0
Via: SIP/2.0/UDP 2.2.2.2:5060;rport;branch=z9hG4bKPj067c976a-3b16-4cbd-8076-8c96d2def29d
From: sip:243@2.2.2.2;tag=ec90b4d3-4ec3-4257-ae80-08fa8798fbca
To: sip:243@1.1.1.1
Contact: sip:243@2.2.2.2:5060
Call-ID: 004b2e49-783b-48fb-ba03-eff8c1dbf9bc
CSeq: 24507 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.40.11(16.25.0)
Content-Length: 0

[2025-03-10 10:44:03] VERBOSE[2091] res_pjsip_logger.c: <— Received SIP response (555 bytes) from UDP:1.1.1.1:1531 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 2.2.2.2:5060;rport=5060;branch=z9hG4bKPjeb773484-a26d-4b95-a99a-10f55058839e
From: “Andrea Adomaitis” sip:258@2.2.2.2;tag=82372a0e-b764-4085-8b5c-ba53626f24b4
To: sip:243@1.1.1.1;tag=311388881
Call-ID: 730fe9f2-d79c-424a-b8b8-c989cad72a96
CSeq: 2001 CANCEL
Contact: sip:243@10.10.201.161:5060
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream WP820 1.0.7.80
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0

[2025-03-10 10:44:03] VERBOSE[2091] res_pjsip_logger.c: <— Received SIP response (532 bytes) from UDP:1.1.1.1:1531 —>
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 2.2.2.2:5060;rport=5060;branch=z9hG4bKPjeb773484-a26d-4b95-a99a-10f55058839e
From: “Andrea Adomaitis” sip:258@2.2.2.2;tag=82372a0e-b764-4085-8b5c-ba53626f24b4
To: sip:243@1.1.1.1;tag=311388881
Call-ID: 730fe9f2-d79c-424a-b8b8-c989cad72a96
CSeq: 2001 INVITE
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream WP820 1.0.7.80
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0

[2025-03-10 10:44:03] VERBOSE[2091] res_pjsip_logger.c: <— Received SIP response (492 bytes) from UDP:1.1.1.1:1531 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 2.2.2.2:5060;rport=5060;branch=z9hG4bKPj067c976a-3b16-4cbd-8076-8c96d2def29d
From: sip:243@2.2.2.2;tag=ec90b4d3-4ec3-4257-ae80-08fa8798fbca
To: sip:243@1.1.1.1;tag=596258033
Call-ID: 004b2e49-783b-48fb-ba03-eff8c1dbf9bc
CSeq: 24507 OPTIONS
Supported: replaces, path, eventlist
User-Agent: Grandstream WP820 1.0.7.80
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0

[2025-03-10 10:44:03] VERBOSE[4496] res_pjsip_logger.c: <— Transmitting SIP request (413 bytes) to UDP:1.1.1.1:1531 —>
ACK sip:243@1.1.1.1:1531 SIP/2.0
Via: SIP/2.0/UDP 2.2.2.2:5060;rport;branch=z9hG4bKPjeb773484-a26d-4b95-a99a-10f55058839e
From: “Andrea Adomaitis” sip:258@2.2.2.2;tag=82372a0e-b764-4085-8b5c-ba53626f24b4
To: sip:243@1.1.1.1;tag=311388881
Call-ID: 730fe9f2-d79c-424a-b8b8-c989cad72a96
CSeq: 2001 ACK
Max-Forwards: 70
User-Agent: FPBX-16.0.40.11(16.25.0)
Content-Length: 0

According to this log an outgoing call was placed to a Grandstream WP820 which was successful and the device sent back ringing. Asterisk then sent a 183 Session Progress to the calling phone. After which the calling phone, Clearly Anywhere, cancelled the call attempt with this warning in the CANCEL:

Can’t really say anything further.