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 [[email protected]:53] ExecIf(“PJSIP/1999-00000025”, “0?MacroExit()”) in new stack
– Executing [[email protected]:54] ExecIf(“PJSIP/1999-00000025”, “0?Set(DIALSTATUS=)”) in new stack
– Executing [[email protected]:55] GosubIf(“PJSIP/1999-00000025”, “0?s-NOANSWER,1()”) in new stack
– Executing [[email protected]:56] MacroExit(“PJSIP/1999-00000025”, “”) in new stack
– Executing [[email protected]:17] Set(“PJSIP/1999-00000025”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:18] GosubIf(“PJSIP/1999-00000025”, “0?docfu,1()”) in new stack
– Executing [[email protected]:19] GosubIf(“PJSIP/1999-00000025”, “0?docfb,1()”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/1999-00000025”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:21] ExecIf(“PJSIP/1999-00000025”, “0?MacroExit()”) in new stack
– Executing [[email protected]:22] GotoIf(“PJSIP/1999-00000025”, “0?s-NOANSWER,1”) in new stack
– Executing [[email protected]:23] Macro(“PJSIP/1999-00000025”, “vm,2002,NOANSWER,”) in new stack
– Executing [[email protected]:1] Macro(“PJSIP/1999-00000025”, “user-callerid,SKIPTTL”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/1999-00000025”, “TOUCH_MONITOR=1497963392.37”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1999-00000025”, “AMPUSER=1999”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/1999-00000025”, “10?report”) in new stack
– Goto (macro-user-callerid,s,15)
– Executing [[email protected]:15] GotoIf(“PJSIP/1999-00000025”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [[email protected]:29] Set(“PJSIP/1999-00000025”, “CALLERID(number)=1999”) in new stack
– Executing [[email protected]:30] Set(“PJSIP/1999-00000025”, “CALLERID(name)=IT Support”) in new stack
– Executing [[email protected]:31] GotoIf(“PJSIP/1999-00000025”, “0?cnum”) in new stack
– Executing [[email protected]:32] Set(“PJSIP/1999-00000025”, “CDR(cnam)=IT Support”) in new stack
– Executing [[email protected]:33] Set(“PJSIP/1999-00000025”, “CDR(cnum)=1999”) in new stack
– Executing [[email protected]:34] Set(“PJSIP/1999-00000025”, “CHANNEL(language)=en_GB”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1999-00000025”, “VMGAIN=”) in new stack
– Executing [[email protected]:3] Macro(“PJSIP/1999-00000025”, “blkvm-check,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/1999-00000025”, “GOSUB_RETVAL=”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/1999-00000025”, “0?Set(GOSUB_RETVAL=TRUE)”) in new stack
– Executing [[email protected]:3] MacroExit(“PJSIP/1999-00000025”, “”) in new stack
– Executing [[email protected]:4] GotoIf(“PJSIP/1999-00000025”, “1?vmx,1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing [[email protected]:1] Set(“PJSIP/1999-00000025”, “__EXTTOCALL=2002”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1999-00000025”, “__CRM_VOICEMAIL=2002”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/1999-00000025”, “MEXTEN=2002”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/1999-00000025”, “MMODE=NOANSWER”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/1999-00000025”, “RETVM=”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/1999-00000025”, “MODE=unavail”) in new stack
– Executing [[email protected]:7] Macro(“PJSIP/1999-00000025”, “get-vmcontext,2002”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/1999-00000025”, “VMCONTEXT=default”) in new stack
– Executing [[email protected]:2] GotoIf(“PJSIP/1999-00000025”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [[email protected]:300] NoOp(“PJSIP/1999-00000025”, “”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/1999-00000025”, “MODE=unavail”) in new stack
– Executing [[email protected]:9] NoOp(“PJSIP/1999-00000025”, “MODE IS: unavail”) in new stack
– Executing [[email protected]:10] GotoIf(“PJSIP/1999-00000025”, “1?chknomsg”) in new stack
– Goto (macro-vm,vmx,12)
– Executing [[email protected]:12] GotoIf(“PJSIP/1999-00000025”, “0?s-NOANSWER,1”) in new stack
– Executing [[email protected]:13] GotoIf(“PJSIP/1999-00000025”, “1?notdirect”) in new stack
– Goto (macro-vm,vmx,15)
– Executing [[email protected]:15] NoOp(“PJSIP/1999-00000025”, "Checking if ext 2002 is enabled: ") in new stack
– Executing [[email protected]:16] GotoIf(“PJSIP/1999-00000025”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-vm,s-NOANSWER,1)
– Executing [[email protected]:1] Macro(“PJSIP/1999-00000025”, “get-vmcontext,2002”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/1999-00000025”, “VMCONTEXT=default”) in new stack
– Executing [[email protected]:2] GotoIf(“PJSIP/1999-00000025”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [[email protected]:300] NoOp(“PJSIP/1999-00000025”, “”) in new stack
– Executing [[email protected]:2] VoiceMail(“PJSIP/1999-00000025”, “[email protected],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 [[email protected]:1] Macro(“PJSIP/1999-00000025”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/1999-00000025”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“PJSIP/1999-00000025”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]: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.