PJSIP Ext 2 ext hangup on answer and no VM

Sangoma Appliance, PBX Firmware: 10.13.66-20, PBX Service Pack: 1.0.0.0

Hi,
My distro has been working perfectly until this morning. My SIP trunk was down and prior to reboot I updated modules.

My system does not now allow calls between extensions, users dial each other and the call is dropped when answered - as soon as the simple bridge is connected it gets disconnected.

Spawn extension (from-internal, 2002, 1) exited non-zero on ‘PJSIP/2002-00000026’
– PJSIP/2002-00000026 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/2002/sip:[email protected]:5060
– Connected line update to PJSIP/1999-00000025 prevented.
– PJSIP/2002-00000026 is ringing
– Nobody picked up in 20000 ms
– Executing [s@macro-dial-one:53] ExecIf(“PJSIP/1999-00000025”, “0?MacroExit()”) in new stack
– Executing [s@macro-dial-one:54] ExecIf(“PJSIP/1999-00000025”, “0?Set(DIALSTATUS=)”) in new stack
– Executing [s@macro-dial-one:55] GosubIf(“PJSIP/1999-00000025”, “0?s-NOANSWER,1()”) in new stack
– Executing [s@macro-dial-one:56] MacroExit(“PJSIP/1999-00000025”, “”) in new stack
– Executing [s@macro-exten-vm:17] Set(“PJSIP/1999-00000025”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-exten-vm:18] GosubIf(“PJSIP/1999-00000025”, “0?docfu,1()”) in new stack
– Executing [s@macro-exten-vm:19] GosubIf(“PJSIP/1999-00000025”, “0?docfb,1()”) in new stack
– Executing [s@macro-exten-vm:20] Set(“PJSIP/1999-00000025”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-exten-vm:21] ExecIf(“PJSIP/1999-00000025”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:22] GotoIf(“PJSIP/1999-00000025”, “0?s-NOANSWER,1”) in new stack
– Executing [s@macro-exten-vm:23] Macro(“PJSIP/1999-00000025”, “vm,2002,NOANSWER,”) in new stack
– Executing [s@macro-vm:1] Macro(“PJSIP/1999-00000025”, “user-callerid,SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/1999-00000025”, “TOUCH_MONITOR=1497963392.37”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/1999-00000025”, “AMPUSER=1999”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“PJSIP/1999-00000025”, “10?report”) in new stack
– Goto (macro-user-callerid,s,15)
– Executing [s@macro-user-callerid:15] GotoIf(“PJSIP/1999-00000025”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [s@macro-user-callerid:29] Set(“PJSIP/1999-00000025”, “CALLERID(number)=1999”) in new stack
– Executing [s@macro-user-callerid:30] Set(“PJSIP/1999-00000025”, “CALLERID(name)=IT Support”) in new stack
– Executing [s@macro-user-callerid:31] GotoIf(“PJSIP/1999-00000025”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:32] Set(“PJSIP/1999-00000025”, “CDR(cnam)=IT Support”) in new stack
– Executing [s@macro-user-callerid:33] Set(“PJSIP/1999-00000025”, “CDR(cnum)=1999”) in new stack
– Executing [s@macro-user-callerid:34] Set(“PJSIP/1999-00000025”, “CHANNEL(language)=en_GB”) in new stack
– Executing [s@macro-vm:2] Set(“PJSIP/1999-00000025”, “VMGAIN=”) in new stack
– Executing [s@macro-vm:3] Macro(“PJSIP/1999-00000025”, “blkvm-check,”) in new stack
– Executing [s@macro-blkvm-check:1] Set(“PJSIP/1999-00000025”, “GOSUB_RETVAL=”) in new stack
– Executing [s@macro-blkvm-check:2] ExecIf(“PJSIP/1999-00000025”, “0?Set(GOSUB_RETVAL=TRUE)”) in new stack
– Executing [s@macro-blkvm-check:3] MacroExit(“PJSIP/1999-00000025”, “”) in new stack
– Executing [s@macro-vm:4] GotoIf(“PJSIP/1999-00000025”, “1?vmx,1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing [vmx@macro-vm:1] Set(“PJSIP/1999-00000025”, “__EXTTOCALL=2002”) in new stack
– Executing [vmx@macro-vm:2] Set(“PJSIP/1999-00000025”, “__CRM_VOICEMAIL=2002”) in new stack
– Executing [vmx@macro-vm:3] Set(“PJSIP/1999-00000025”, “MEXTEN=2002”) in new stack
– Executing [vmx@macro-vm:4] Set(“PJSIP/1999-00000025”, “MMODE=NOANSWER”) in new stack
– Executing [vmx@macro-vm:5] Set(“PJSIP/1999-00000025”, “RETVM=”) in new stack
– Executing [vmx@macro-vm:6] Set(“PJSIP/1999-00000025”, “MODE=unavail”) in new stack
– Executing [vmx@macro-vm:7] Macro(“PJSIP/1999-00000025”, “get-vmcontext,2002”) in new stack
– Executing [s@macro-get-vmcontext:1] Set(“PJSIP/1999-00000025”, “VMCONTEXT=default”) in new stack
– Executing [s@macro-get-vmcontext:2] GotoIf(“PJSIP/1999-00000025”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [s@macro-get-vmcontext:300] NoOp(“PJSIP/1999-00000025”, “”) in new stack
– Executing [vmx@macro-vm:8] Set(“PJSIP/1999-00000025”, “MODE=unavail”) in new stack
– Executing [vmx@macro-vm:9] NoOp(“PJSIP/1999-00000025”, “MODE IS: unavail”) in new stack
– Executing [vmx@macro-vm:10] GotoIf(“PJSIP/1999-00000025”, “1?chknomsg”) in new stack
– Goto (macro-vm,vmx,12)
– Executing [vmx@macro-vm:12] GotoIf(“PJSIP/1999-00000025”, “0?s-NOANSWER,1”) in new stack
– Executing [vmx@macro-vm:13] GotoIf(“PJSIP/1999-00000025”, “1?notdirect”) in new stack
– Goto (macro-vm,vmx,15)
– Executing [vmx@macro-vm:15] NoOp(“PJSIP/1999-00000025”, "Checking if ext 2002 is enabled: ") in new stack
– Executing [vmx@macro-vm:16] GotoIf(“PJSIP/1999-00000025”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-vm,s-NOANSWER,1)
– Executing [s-NOANSWER@macro-vm:1] Macro(“PJSIP/1999-00000025”, “get-vmcontext,2002”) in new stack
– Executing [s@macro-get-vmcontext:1] Set(“PJSIP/1999-00000025”, “VMCONTEXT=default”) in new stack
– Executing [s@macro-get-vmcontext:2] GotoIf(“PJSIP/1999-00000025”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [s@macro-get-vmcontext:300] NoOp(“PJSIP/1999-00000025”, “”) in new stack
– Executing [s-NOANSWER@macro-vm:2] VoiceMail(“PJSIP/1999-00000025”, “2002@default,u”) in new stack
– <PJSIP/1999-00000025> Playing ‘vm-theperson.ulaw’ (language ‘en_GB’)
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on ‘PJSIP/1999-00000025’ in macro ‘vm’
== Spawn extension (macro-exten-vm, s, 23) exited non-zero on ‘PJSIP/1999-00000025’ in macro ‘exten-vm’
== Spawn extension (ext-local, 2002, 2) exited non-zero on ‘PJSIP/1999-00000025’
– Executing [h@ext-local:1] Macro(“PJSIP/1999-00000025”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/1999-00000025”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/1999-00000025”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“PJSIP/1999-00000025”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/1999-00000025’ in macro ‘hangupcall’
== Spawn extension (ext-local, h, 1) exited non-zero on ‘PJSIP/1999-00000025’

This has also prevented access to voicemail using *97 or *98.

Please help, system unusable…

At the time of writing I came across this post which explains removing 2 lines of config for PJSIP - will there be a patch?
https://issues.freepbx.org/browse/FREEPBX-15009

I have now carried out the steps shown the bug report and all my users are happy.

But I’m not happy making custom changes, will there be a patch?

I believe this has been patched; update core and you should be good.