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’