I’ve noticed a strange behavior with Sangoma Phone Desktop.
As per Zulu used separated extensions starting with 90, Sangoma Phone uses extensions starting with 98.
When an extension hangs up a call sometimes the extension starting with 98, from now on 98219, becomes unavailable, but the extension 219 is still reachable.
This prevents other extensions to call 219, I’ve seen in verbose output that 98219 goes to one of my trunks as it is not an extension, but 219 can make calls.
What can be?
= DTLS ECDH initialized (automatic), faster PFS enabled
-- Executing [[email protected]:1] Macro("PJSIP/98217-00000070", "user-callerid,LIMIT") in new stack
-- Executing [[email protected]:1] Set("PJSIP/98217-00000070", "TOUCH_MONITOR=1674034137.662") in new stack
-- Executing [[email protected]:2] Set("PJSIP/98217-00000070", "CHANCONTEXT=") in new stack
-- Executing [[email protected]:3] Set("PJSIP/98217-00000070", "CHANCONTEXT=") in new stack
-- Executing [[email protected]:4] Set("PJSIP/98217-00000070", "CHANEXTENCONTEXT=98217-00000070") in new stack
-- Executing [[email protected]:5] Set("PJSIP/98217-00000070", "CHANEXTEN=98217-00000070") in new stack
-- Executing [[email protected]:6] Set("PJSIP/98217-00000070", "CALLERID(number)=217") in new stack
-- Executing [[email protected]:7] Set("PJSIP/98217-00000070", "AMPUSER=217") in new stack
-- Executing [[email protected]:8] Set("PJSIP/98217-00000070", "HOTDESCKCHAN=98217-00000070") in new stack
-- Executing [[email protected]:9] Set("PJSIP/98217-00000070", "HOTDESKEXTEN=98217") in new stack
-- Executing [[email protected]:10] Set("PJSIP/98217-00000070", "HOTDESKCALL=0") in new stack
-- Executing [[email protected]:11] ExecIf("PJSIP/98217-00000070", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [[email protected]:12] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(name)=)") in new stack
-- Executing [[email protected]:13] GotoIf("PJSIP/98217-00000070", "0?report") in new stack
-- Executing [[email protected]:14] ExecIf("PJSIP/98217-00000070", "1?Set(REALCALLERIDNUM=217)") in new stack
-- Executing [[email protected]:15] Set("PJSIP/98217-00000070", "AMPUSER=217") in new stack
-- Executing [[email protected]:16] GotoIf("PJSIP/98217-00000070", "0?limit") in new stack
-- Executing [[email protected]:17] Set("PJSIP/98217-00000070", "AMPUSERCIDNAME=MacTelnet") in new stack
-- Executing [[email protected]:18] ExecIf("PJSIP/98217-00000070", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [[email protected]:19] GotoIf("PJSIP/98217-00000070", "0?report") in new stack
-- Executing [[email protected]:20] Set("PJSIP/98217-00000070", "AMPUSERCID=217") in new stack
-- Executing [[email protected]:21] Set("PJSIP/98217-00000070", "__DIAL_OPTIONS=HhTtr") in new stack
-- Executing [[email protected]:22] Set("PJSIP/98217-00000070", "CALLERID(all)="MacTelnet" <217>") in new stack
-- Executing [[email protected]:23] ExecIf("PJSIP/98217-00000070", "0?Set(CUSDIAL=)") in new stack
-- Executing [[email protected]:24] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(all)="MacTelnet" <217>)") in new stack
-- Executing [[email protected]:25] GotoIf("PJSIP/98217-00000070", "0?limit") in new stack
-- Executing [[email protected]:26] ExecIf("PJSIP/98217-00000070", "1?Set(GROUP(concurrency_limit)=217)") in new stack
-- Executing [[email protected]:27] ExecIf("PJSIP/98217-00000070", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [[email protected]:28] NoOp("PJSIP/98217-00000070", "Macro Depth is 1") in new stack
-- Executing [[email protected]:29] GotoIf("PJSIP/98217-00000070", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,30)
-- Executing [[email protected]:30] GotoIf("PJSIP/98217-00000070", "1?continue") in new stack
-- Goto (macro-user-callerid,s,49)
-- Executing [[email protected]:49] Set("PJSIP/98217-00000070", "CALLERID(number)=217") in new stack
-- Executing [[email protected]:50] Set("PJSIP/98217-00000070", "CALLERID(name)=MacTelnet") in new stack
-- Executing [[email protected]:51] GotoIf("PJSIP/98217-00000070", "0?cnum") in new stack
-- Executing [[email protected]:52] Set("PJSIP/98217-00000070", "CDR(cnam)=MacTelnet") in new stack
-- Executing [[email protected]:53] Set("PJSIP/98217-00000070", "CDR(cnum)=217") in new stack
-- Executing [[email protected]:54] Set("PJSIP/98217-00000070", "CHANNEL(language)=it") in new stack
-- Executing [[email protected]:2] Set("PJSIP/98217-00000070", "ROUTEUSER=217") in new stack
-- Executing [[email protected]:3] Set("PJSIP/98217-00000070", "ROUTEUSER=217") in new stack
-- Executing [[email protected]:4] GotoIf("PJSIP/98217-00000070", "1?notblind") in new stack
-- Goto (from-internal,98219,7)
-- Executing [[email protected]:7] GotoIf("PJSIP/98217-00000070", "1?restrictedroute-c9aebcbbe9f7510eefa7fdd6f7b563d8,98219,2:outbound-allroutes,98219,2") in new stack
-- Goto (restrictedroute-c9aebcbbe9f7510eefa7fdd6f7b563d8,98219,2)
-- Executing [[email protected]:2] Gosub("PJSIP/98217-00000070", "sub-record-check,s,1(out,98219,dontcare)") in new stack
-- Executing [[email protected]:1] GotoIf("PJSIP/98217-00000070", "0?initialized") in new stack
-- Executing [[email protected]:2] Set("PJSIP/98217-00000070", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [[email protected]:3] Set("PJSIP/98217-00000070", "NOW=1674034137") in new stack
-- Executing [[email protected]:4] Set("PJSIP/98217-00000070", "__DAY=18") in new stack
-- Executing [[email protected]:5] Set("PJSIP/98217-00000070", "__MONTH=01") in new stack
-- Executing [[email protected]:6] Set("PJSIP/98217-00000070", "__YEAR=2023") in new stack
-- Executing [[email protected]:7] Set("PJSIP/98217-00000070", "__TIMESTR=20230118-102857") in new stack
-- Executing [[email protected]:8] Set("PJSIP/98217-00000070", "__FROMEXTEN=217") in new stack
-- Executing [[email protected]:9] Set("PJSIP/98217-00000070", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:10] NoOp("PJSIP/98217-00000070", "Recordings initialized") in new stack
-- Executing [[email protected]:11] ExecIf("PJSIP/98217-00000070", "0?Set(ARG3=dontcare)") in new stack
-- Executing [[email protected]:12] Set("PJSIP/98217-00000070", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [[email protected]:13] ExecIf("PJSIP/98217-00000070", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [[email protected]:14] GotoIf("PJSIP/98217-00000070", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [[email protected]:17] GotoIf("PJSIP/98217-00000070", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [[email protected]:1] NoOp("PJSIP/98217-00000070", "Outbound Recording Check from 217 to 98219") in new stack
-- Executing [[email protected]:2] Set("PJSIP/98217-00000070", "RECMODE=dontcare") in new stack
-- Executing [[email protected]:3] ExecIf("PJSIP/98217-00000070", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [[email protected]:7] Gosub("PJSIP/98217-00000070", "recordcheck,1(dontcare,out,98219)") in new stack
-- Executing [[email protected]:1] NoOp("PJSIP/98217-00000070", "Starting recording check against dontcare") in new stack
-- Executing [[email protected]:2] Goto("PJSIP/98217-00000070", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [[email protected]:3] Return("PJSIP/98217-00000070", "") in new stack
-- Executing [[email protected]:8] Return("PJSIP/98217-00000070", "") in new stack
-- Executing [[email protected]:3] ExecIf("PJSIP/98217-00000070", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [[email protected]bcbbe9f7510eefa7fdd6f7b563d8:4] Set("PJSIP/98217-00000070", "_ROUTEID=2") in new stack
-- Executing [[email protected]:5] Set("PJSIP/98217-00000070", "_ROUTENAME=OBSCURED-TRUNK") in new stack
-- Executing [[email protected]:6] Set("PJSIP/98217-00000070", "MOHCLASS=default") in new stack
-- Executing [[email protected]:7] Set("PJSIP/98217-00000070", "_CALLERIDNAMEINTERNAL=MacTelnet") in new stack
-- Executing [[email protected]:8] Set("PJSIP/98217-00000070", "_CALLERIDNUMINTERNAL=217") in new stack
-- Executing [[email protected]:9] Set("PJSIP/98217-00000070", "_EMAILNOTIFICATION=FALSE") in new stack
-- Executing [[email protected]:10] Set("PJSIP/98217-00000070", "_NODEST=") in new stack
-- Executing [[email protected]:11] Macro("PJSIP/98217-00000070", "dialout-trunk,17,98219,,off") in new stack
-- Executing [[email protected]:1] Set("PJSIP/98217-00000070", "DIAL_TRUNK=17") in new stack
-- Executing [[email protected]:2] UserEvent("PJSIP/98217-00000070", "zulu-outbound-call,from:217,to:98219") in new stack
-- Executing [[email protected]:3] ExecIf("PJSIP/98217-00000070", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
-- Executing [[email protected]:4] GosubIf("PJSIP/98217-00000070", "0?sub-pincheck,s,1()") in new stack
-- Executing [[email protected]:5] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(num)=217)") in new stack
-- Executing [[email protected]:6] GotoIf("PJSIP/98217-00000070", "0?disabletrunk,1") in new stack
-- Executing [[email protected]:7] Set("PJSIP/98217-00000070", "DIAL_NUMBER=98219") in new stack
-- Executing [[email protected]:8] Set("PJSIP/98217-00000070", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
-- Executing [[email protected]:9] Set("PJSIP/98217-00000070", "OUTBOUND_GROUP=OUT_17") in new stack
-- Executing [[email protected]:10] Set("PJSIP/98217-00000070", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [[email protected]:11] GotoIf("PJSIP/98217-00000070", "0?nomax") in new stack
-- Executing [[email protected]:12] GotoIf("PJSIP/98217-00000070", "0?chanfull") in new stack
-- Executing [[email protected]:13] GotoIf("PJSIP/98217-00000070", "0?skipoutcid") in new stack
-- Executing [[email protected]:14] Macro("PJSIP/98217-00000070", "outbound-callerid,17") in new stack
-- Executing [[email protected]:1] NoOp("PJSIP/98217-00000070", "217") in new stack
-- Executing [[email protected]:2] NoOp("PJSIP/98217-00000070", "") in new stack
-- Executing [[email protected]:3] NoOp("PJSIP/98217-00000070", "off") in new stack
-- Executing [[email protected]:4] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(name-pres)=)") in new stack
-- Executing [[email protected]:5] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(num-pres)=)") in new stack
-- Executing [[email protected]:6] Set("PJSIP/98217-00000070", "HOTDESCKCHAN=98217-00000070") in new stack
-- Executing [[email protected]:7] Set("PJSIP/98217-00000070", "HOTDESKEXTEN=98217") in new stack
-- Executing [[email protected]:8] Set("PJSIP/98217-00000070", "HOTDESKCALL=0") in new stack
-- Executing [[email protected]:9] ExecIf("PJSIP/98217-00000070", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [[email protected]:10] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(name)=)") in new stack
-- Executing [[email protected]:11] Set("PJSIP/98217-00000070", "ALLOWTHISROUTE=NO") in new stack
-- Executing [[email protected]:12] ExecIf("PJSIP/98217-00000070", "0?Set(ALLOWTHISROUTE=YES)") in new stack
-- Executing [[email protected]:13] ExecIf("PJSIP/98217-00000070", "0?Hangup()") in new stack
-- Executing [[email protected]rid:14] ExecIf("PJSIP/98217-00000070", "0?Set(REALCALLERIDNUM=217)") in new stack
-- Executing [[email protected]:15] ExecIf("PJSIP/98217-00000070", "0?Set(AMPUSER=217)") in new stack
-- Executing [[email protected]:16] GotoIf("PJSIP/98217-00000070", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,20)
-- Executing [[email protected]:20] Set("PJSIP/98217-00000070", "USEROUTCID=01721902217") in new stack
-- Executing [[email protected]:21] Set("PJSIP/98217-00000070", "EMERGENCYCID=") in new stack
-- Executing [[email protected]:22] ExecIf("PJSIP/98217-00000070", "1?Set(SCDEXT=YES)") in new stack
-- Executing [[email protected]:23] ExecIf("PJSIP/98217-00000070", "0?Set(EMERGENCYCID=)") in new stack
-- Executing [[email protected]:24] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(name)=)") in new stack
-- Executing [[email protected]:25] ExecIf("PJSIP/98217-00000070", "0?Set(EMERGENCYCID=)") in new stack
-- Executing [[email protected]:26] Set("PJSIP/98217-00000070", "TRUNKOUTCID=") in new stack
-- Executing [[email protected]:27] GotoIf("PJSIP/98217-00000070", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,33)
-- Executing [[email protected]:33] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:34] ExecIf("PJSIP/98217-00000070", "1?Set(CALLERID(all)=01721902217)") in new stack
-- Executing [[email protected]:35] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:36] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(all)=217)") in new stack
-- Executing [[email protected]:37] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(all)=217)") in new stack
-- Executing [[email protected]:38] Set("PJSIP/98217-00000070", "TIOHIDE=no") in new stack
-- Executing [[email protected]:39] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:40] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:41] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:42] ExecIf("PJSIP/98217-00000070", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:43] Set("PJSIP/98217-00000070", "CDR(outbound_cnum)=01721902217") in new stack
-- Executing [[email protected]:44] Set("PJSIP/98217-00000070", "CDR(outbound_cnam)=") in new stack
-- Executing [[email protected]:15] GosubIf("PJSIP/98217-00000070", "0?sub-flp-17,s,1()") in new stack
-- Executing [[email protected]:16] Set("PJSIP/98217-00000070", "OUTNUM=98219") in new stack
-- Executing [[email protected]:17] Set("PJSIP/98217-00000070", "custom=PJSIP") in new stack
-- Executing [[email protected]:18] ExecIf("PJSIP/98217-00000070", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
-- Executing [[email protected]:19] ExecIf("PJSIP/98217-00000070", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [[email protected]:20] Macro("PJSIP/98217-00000070", "dialout-trunk-predial-hook,") in new stack
-- Executing [[email protected]:1] MacroExit("PJSIP/98217-00000070", "") in new stack
-- Executing [[email protected]:21] GotoIf("PJSIP/98217-00000070", "0?skipcrm") in new stack
-- Executing [[email protected]:22] Set("PJSIP/98217-00000070", "__CRM_DIRECTION=OUTBOUND") in new stack
-- Executing [[email protected]:23] Set("PJSIP/98217-00000070", "__CRM_DESTINATION=98219") in new stack
-- Executing [[email protected]:24] Set("PJSIP/98217-00000070", "__CRM_SOURCE=217") in new stack
-- Executing [[email protected]:25] AGI("PJSIP/98217-00000070", "agi://127.0.0.1/sangomacrm.agi") in new stack
-- <PJSIP/98217-00000070>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
-- Executing [[email protected]:26] Set("PJSIP/98217-00000070", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
-- Executing [[email protected]:27] NoOp("PJSIP/98217-00000070", "CRM Finished") in new stack
-- Executing [[email protected]:28] GotoIf("PJSIP/98217-00000070", "0?bypass,1") in new stack
-- Executing [[email protected]:29] ExecIf("PJSIP/98217-00000070", "1?Set(CONNECTEDLINE(name,i)=CID:01721902217)") in new stack
-- Executing [[email protected]:30] ExecIf("PJSIP/98217-00000070", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)01721902217)") in new stack
-- Executing [[email protected]:31] GotoIf("PJSIP/98217-00000070", "0?customtrunk") in new stack
-- Executing [[email protected]:32] ExecIf("PJSIP/98217-00000070", "0?