Sangoma Phone extensions unreachable

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?
Set(DIAL_TRUNK_OPTIONS=)") in new stack
    -- Executing [[email protected]:33] Set("PJSIP/98217-00000070", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
    -- Executing [[email protected]:34] Dial("PJSIP/98217-00000070", "PJSIP/[email protected],300,Tb(func-apply-sipheaders^s^1,(17))U(sub-send-obroute-email^98219^98219^17^1674034137^^01721902217)") in new stack
    -- PJSIP/OBSCURED-TRUNK-00000071 Internal Gosub(func-apply-sipheaders,s,1(17)) start
    -- Executing [[email protected]:1] ExecIf("PJSIP/OBSCURED-TRUNK-00000071", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("PJSIP/OBSCURED-TRUNK-00000071", "Applying SIP Headers to channel PJSIP/OBSCURED-TRUNK-00000071") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/OBSCURED-TRUNK-00000071", "TECH=PJSIP") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/OBSCURED-TRUNK-00000071", "SIPHEADERKEYS=Alert-Info") in new stack
    -- Executing [[email protected]:5] While("PJSIP/OBSCURED-TRUNK-00000071", "1") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/OBSCURED-TRUNK-00000071", "sipheader=unset") in new stack
    -- Executing [[email protected]:7] ExecIf("PJSIP/OBSCURED-TRUNK-00000071", "0?SIPRemoveHeader(Alert-Info:)") in new stack
    -- Executing [[email protected]:8] ExecIf("PJSIP/OBSCURED-TRUNK-00000071", "1?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[2023-01-18 10:28:57] ERROR[22513]: res_pjsip_header_funcs.c:670 remove_header: No headers had been previously added to this session.
    -- Executing [[email protected]:9] ExecIf("PJSIP/OBSCURED-TRUNK-00000071", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
    -- Executing [[email protected]:10] ExecIf("PJSIP/OBSCURED-TRUNK-00000071", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
    -- Executing [[email protected]:11] ExecIf("PJSIP/OBSCURED-TRUNK-00000071", "0?SIPAddHeader(Alert-Info:unset)") in new stack
    -- Executing [[email protected]:12] ExecIf("PJSIP/OBSCURED-TRUNK-00000071", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
    -- Executing [[email protected]:13] EndWhile("PJSIP/OBSCURED-TRUNK-00000071", "") in new stack
    -- Executing [[email protected]:5] While("PJSIP/OBSCURED-TRUNK-00000071", "0") in new stack
    -- Executing [[email protected]:14] Return("PJSIP/OBSCURED-TRUNK-00000071", "") in new stack
  == Spawn extension (from-trunk, 98219, 1) exited non-zero on 'PJSIP/OBSCURED-TRUNK-00000071'
    -- PJSIP/OBSCURED-TRUNK-00000071 Internal Gosub(func-apply-sipheaders,s,1(17)) complete GOSUB_RETVAL=
    -- Called PJSIP/[email protected]
       > 0x7f56ec1d3f80 -- Strict RTP learning after remote address set to: 5.28.8.94:15508
    -- PJSIP/OBSCURED-TRUNK-00000071 is making progress passing it to PJSIP/98217-00000070
       > 0x7f5640050f30 -- Strict RTP learning after remote address set to: 192.168.72.201:58998
       > 0x7f56ec1d3f80 -- Strict RTP switching to RTP target address 5.28.8.94:15508 as source
       > 0x7f5640050f30 -- Strict RTP learning after ICE completion
       > 0x7f5640050f30 -- Strict RTP learning after remote address set to: 151.12.206.128:58998
    -- PJSIP/98217-00000070 requested media update control 26, passing it to PJSIP/OBSCURED-TRUNK-00000071
       > 0x7f5640050f30 -- Strict RTP switching to RTP target address 151.12.206.128:58998 as source
  == Spawn extension (macro-dialout-trunk, s, 34) exited non-zero on 'PJSIP/98217-00000070' in macro 'dialout-trunk'
  == Spawn extension (restrictedroute-c9aebcbbe9f7510eefa7fdd6f7b563d8, 98219, 11) exited non-zero on 'PJSIP/98217-00000070'
    -- Executing [[email protected]:1] Hangup("PJSIP/98217-00000070", "") in new stack
  == Spawn extension (restrictedroute-c9aebcbbe9f7510eefa7fdd6f7b563d8, h, 1) exited non-zero on 'PJSIP/98217-00000070'
    -- PJSIP/98217-00000070 Internal Gosub(crm-hangup,s,1) start
    -- Executing [[email protected]:1] NoOp("PJSIP/98217-00000070", "Sending Hangup to CRM") in new stack
    -- Executing [[email protected]:2] NoOp("PJSIP/98217-00000070", "HANGUP CAUSE: 127") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/98217-00000070", "0?Set(__CRM_VOICEMAIL=)") in new stack
    -- Executing [[email protected]:4] NoOp("PJSIP/98217-00000070", "MASTER CHANNEL: 1674034137.662 = 1674034137.662") in new stack
    -- Executing [[email protected]:5] GotoIf("PJSIP/98217-00000070", "0?return") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/98217-00000070", "__CRM_HANGUP=1") in new stack
    -- Executing [[email protected]:7] 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]:8] Return("PJSIP/98217-00000070", "") in new stack
  == Spawn extension (restrictedroute-c9aebcbbe9f7510eefa7fdd6f7b563d8, h, 1) exited non-zero on 'PJSIP/98217-00000070'
    -- PJSIP/98217-00000070 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
  == DTLS ECDH initialized (automatic), faster PFS enabled
    -- Executing [[email protected]:1] GotoIf("PJSIP/98217-00000072", "0?ext-local,*219,1") in new stack
    -- Executing [[email protected]:2] GotoIf("PJSIP/98217-00000072", "1?ext-local,219,1:followme-check,219,1") in new stack
    -- Goto (ext-local,219,1)
    -- Executing [[email protected]:1] Set("PJSIP/98217-00000072", "__RINGTIMER=120") in new stack
    -- Executing [[email protected]:2] ExecIf("PJSIP/98217-00000072", "0?Set(__CWIGNORE=)") in new stack
    -- Executing [[email protected]:3] Macro("PJSIP/98217-00000072", "exten-vm,novm,219,0,0,0") in new stack
    -- Executing [[email protected]:1] Macro("PJSIP/98217-00000072", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/98217-00000072", "TOUCH_MONITOR=1674034143.664") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/98217-00000072", "CHANCONTEXT=") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/98217-00000072", "CHANCONTEXT=") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/98217-00000072", "CHANEXTENCONTEXT=98217-00000072") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/98217-00000072", "CHANEXTEN=98217-00000072") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/98217-00000072", "CALLERID(number)=217") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/98217-00000072", "AMPUSER=217") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/98217-00000072", "HOTDESCKCHAN=98217-00000072") in new stack
    -- Executing [[email protected]:9] Set("PJSIP/98217-00000072", "HOTDESKEXTEN=98217") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/98217-00000072", "HOTDESKCALL=0") in new stack
    -- Executing [[email protected]:11] ExecIf("PJSIP/98217-00000072", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [[email protected]:12] ExecIf("PJSIP/98217-00000072", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [[email protected]:13] GotoIf("PJSIP/98217-00000072", "0?report") in new stack
    -- Executing [[email protected]:14] ExecIf("PJSIP/98217-00000072", "1?Set(REALCALLERIDNUM=217)") in new stack
    -- Executing [[email protected]:15] Set("PJSIP/98217-00000072", "AMPUSER=217") in new stack
    -- Executing [[email protected]:16] GotoIf("PJSIP/98217-00000072", "0?limit") in new stack
    -- Executing [[email protected]:17] Set("PJSIP/98217-00000072", "AMPUSERCIDNAME=MacTelnet") in new stack
    -- Executing [[email protected]:18] ExecIf("PJSIP/98217-00000072", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [[email protected]:19] GotoIf("PJSIP/98217-00000072", "0?report") in new stack
    -- Executing [[email protected]:20] Set("PJSIP/98217-00000072", "AMPUSERCID=217") in new stack
    -- Executing [[email protected]:21] Set("PJSIP/98217-00000072", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [[email protected]:22] Set("PJSIP/98217-00000072", "CALLERID(all)="MacTelnet" <217>") in new stack
    -- Executing [[email protected]:23] ExecIf("PJSIP/98217-00000072", "0?Set(CUSDIAL=219)") in new stack
    -- Executing [[email protected]:24] ExecIf("PJSIP/98217-00000072", "0?Set(CALLERID(all)=01721902219)") in new stack
    -- Executing [[email protected]:25] GotoIf("PJSIP/98217-00000072", "0?limit") in new stack
    -- Executing [[email protected]:26] ExecIf("PJSIP/98217-00000072", "0?Set(GROUP(concurrency_limit)=217)") in new stack
    -- Executing [[email protected]:27] ExecIf("PJSIP/98217-00000072", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [[email protected]:28] NoOp("PJSIP/98217-00000072", "Macro Depth is 2") in new stack
    -- Executing [[email protected]ser-callerid:29] GotoIf("PJSIP/98217-00000072", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,30)
    -- Executing [[email protected]:30] GotoIf("PJSIP/98217-00000072", "0?continue") in new stack
    -- Executing [[email protected]:31] ExecIf("PJSIP/98217-00000072", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [[email protected]:32] Set("PJSIP/98217-00000072", "__TTL=64") in new stack
    -- Executing [[email protected]:33] GotoIf("PJSIP/98217-00000072", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,49)
    -- Executing [[email protected]:49] Set("PJSIP/98217-00000072", "CALLERID(number)=217") in new stack
    -- Executing [[email protected]:50] Set("PJSIP/98217-00000072", "CALLERID(name)=MacTelnet") in new stack
    -- Executing [[email protected]:51] GotoIf("PJSIP/98217-00000072", "0?cnum") in new stack
    -- Executing [[email protected]:52] Set("PJSIP/98217-00000072", "CDR(cnam)=MacTelnet") in new stack
    -- Executing [[email protected]:53] Set("PJSIP/98217-00000072", "CDR(cnum)=217") in new stack
    -- Executing [[email protected]:54] Set("PJSIP/98217-00000072", "CHANNEL(language)=it") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/98217-00000072", "RingGroupMethod=none") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/98217-00000072", "__EXTTOCALL=219") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/98217-00000072", "__PICKUPMARK=219") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/98217-00000072", "RT=") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:6] ExecIf("PJSIP/98217-00000072", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:7] ExecIf("PJSIP/98217-00000072", "0?MacroExit()") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:8] ExecIf("PJSIP/98217-00000072", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
    -- Executing [[email protected]:9] ExecIf("PJSIP/98217-00000072", "0?MacroExit()") in new stack
    -- Executing [[email protected]:10] ExecIf("PJSIP/98217-00000072", "0?ChanSpy(PJSIP/219,q)") in new stack
    -- Executing [[email protected]:11] ExecIf("PJSIP/98217-00000072", "0?MacroExit()") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:12] ExecIf("PJSIP/98217-00000072", "0?ChanSpy(PJSIP/219,q)") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:13] ExecIf("PJSIP/98217-00000072", "0?MacroExit()") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:14] ExecIf("PJSIP/98217-00000072", "0?Gosub(ext-intercom,*80219,1())") in new stack
    -- Executing [[email protected]:15] ExecIf("PJSIP/98217-00000072", "0?MacroExit()") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:16] ExecIf("PJSIP/98217-00000072", "0?Gosub(ext-intercom,*80219,1())") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:17] ExecIf("PJSIP/98217-00000072", "0?MacroExit()") in new stack
[2023-01-18 10:29:03] WARNING[29514][C-00000039]: chan_sip.c:23283 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:18] Gosub("PJSIP/98217-00000072", "sub-record-check,s,1(exten,219,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/98217-00000072", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/98217-00000072", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/98217-00000072", "NOW=1674034143") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/98217-00000072", "__DAY=18") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/98217-00000072", "__MONTH=01") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/98217-00000072", "__YEAR=2023") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/98217-00000072", "__TIMESTR=20230118-102903") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/98217-00000072", "__FROMEXTEN=217") in new stack
    -- Executing [[email protected]:9] Set("PJSIP/98217-00000072", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("PJSIP/98217-00000072", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("PJSIP/98217-00000072", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/98217-00000072", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("PJSIP/98217-00000072", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/98217-00000072", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("PJSIP/98217-00000072", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [[email protected]:1] NoOp("PJSIP/98217-00000072", "Exten Recording Check between 217 and 219") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/98217-00000072", "CALLTYPE=internal") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/98217-00000072", "0?Set(CALLTYPE=)") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/98217-00000072", "CALLEE=dontcare") in new stack
    -- Executing [[email protected]:5] ExecIf("PJSIP/98217-00000072", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [[email protected]:6] GotoIf("PJSIP/98217-00000072", "0?callee") in new stack
    -- Executing [[email protected]:7] GotoIf("PJSIP/98217-00000072", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [[email protected]:13] Set("PJSIP/98217-00000072", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:14] Set("PJSIP/98217-00000072", "CALLERRECMODE=dontcare") in new stack
    -- Executing [[email protected]:15] Set("PJSIP/98217-00000072", "CALEERECMODE=dontcare") in new stack
    -- Executing [[email protected]:16] GotoIf("PJSIP/98217-00000072", "0?processnormal") in new stack
    -- Executing [[email protected]:17] ExecIf("PJSIP/98217-00000072", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:18] ExecIf("PJSIP/98217-00000072", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:19] ExecIf("PJSIP/98217-00000072", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:20] ExecIf("PJSIP/98217-00000072", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:21] ExecIf("PJSIP/98217-00000072", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:22] ExecIf("PJSIP/98217-00000072", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:23] Gosub("PJSIP/98217-00000072", "recordcheck,1(dontcare,internal,219)") in new stack
    -- Executing [[email protected]:1] NoOp("PJSIP/98217-00000072", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("PJSIP/98217-00000072", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:24] Return("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:19] GotoIf("PJSIP/98217-00000072", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,25)
    -- Executing [[email protected]:25] GosubIf("PJSIP/98217-00000072", "0?clrheader,1()") in new stack
    -- Executing [[email protected]:26] Macro("PJSIP/98217-00000072", "dial-one,,HhTtr,219") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/98217-00000072", "DEXTEN=219") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/98217-00000072", "__CRM_SOURCE=217") in new stack
    -- Executing [[email protected]:3] Gosub("PJSIP/98217-00000072", "zulu-user-settings-map,s,1(219)") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/98217-00000072", "0?219,1") in new stack
    -- Executing [[email protected]:2] Return("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:4] Gosub("PJSIP/98217-00000072", "zulu-send-event,s,1(219,217)") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/98217-00000072", "1?skippopup") in new stack
    -- Goto (zulu-send-event,s,4)
    -- Executing [[email protected]:4] NoOp("PJSIP/98217-00000072", "No Call Pop") in new stack
    -- Executing [[email protected]:5] UserEvent("PJSIP/98217-00000072", "zulu-call,eventtype:calling,extension:219,type:,url:,cnam:QW5kcmVhIE5lZ3Jv,cnum:217,lid:1674034143.664,from:217,to:219}") in new stack
    -- Executing [[email protected]:6] Return("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:5] UserEvent("PJSIP/98217-00000072", "zulu-inbound-call,type:macro-dial-one,from:217,to:219") in new stack
    -- Executing [[email protected]:6] ExecIf("PJSIP/98217-00000072", "0?Set(__EXTTOCALL=219)") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/98217-00000072", "DIALSTATUS_CW=") in new stack
    -- Executing [[email protected]:8] GosubIf("PJSIP/98217-00000072", "0?screen,1()") in new stack
    -- Executing [[email protected]:9] GosubIf("PJSIP/98217-00000072", "0?cf,1()") in new stack
    -- Executing [[email protected]:10] GotoIf("PJSIP/98217-00000072", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,13)
    -- Executing [[email protected]:13] GotoIf("PJSIP/98217-00000072", "0?nodial") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/98217-00000072", "0?continue") in new stack
    -- Executing [[email protected]:15] Set("PJSIP/98217-00000072", "EXTHASCW=") in new stack
    -- Executing [[email protected]:16] GotoIf("PJSIP/98217-00000072", "1?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,17)
    -- Executing [[email protected]:17] GotoIf("PJSIP/98217-00000072", "0?docfu:skip3") in new stack
    -- Goto (macro-dial-one,s,21)
    -- Executing [[email protected]:21] GotoIf("PJSIP/98217-00000072", "1?next2:continue") in new stack
    -- Goto (macro-dial-one,s,22)
    -- Executing [[email protected]:22] GotoIf("PJSIP/98217-00000072", "1?continue") in new stack
    -- Goto (macro-dial-one,s,30)
    -- Executing [[email protected]:30] GotoIf("PJSIP/98217-00000072", "0?nodial") in new stack
    -- Executing [[email protected]:31] GosubIf("PJSIP/98217-00000072", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/98217-00000072", "DSTRING=") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/98217-00000072", "DEVICES=219&98219") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/98217-00000072", "0?Return()") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/98217-00000072", "0?Set(DEVICES=19&98219)") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/98217-00000072", "LOOPCNT=2") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/98217-00000072", "ITER=1") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/98217-00000072", "THISDIAL=PJSIP/219") in new stack
    -- Executing [[email protected]:8] GotoIf("PJSIP/98217-00000072", "0?docheck") in new stack
    -- Executing [[email protected]:9] NoOp("PJSIP/98217-00000072", "Debug: Found PJSIP Destination PJSIP/219") in new stack
    -- Executing [[email protected]:10] GotoIf("PJSIP/98217-00000072", "0?doset") in new stack
    -- Executing [[email protected]:11] NoOp("PJSIP/98217-00000072", "Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/98217-00000072", "THISDIAL=PJSIP/219/sip:[email protected]:16455;transport=TCP;rinstance=97F23D11;x-ast-orig-host=10.65.17.4:16455") in new stack
    -- Executing [[email protected]:13] ExecIf("PJSIP/98217-00000072", "0?Set(DIALSTATUS=CHANUNAVAIL)") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/98217-00000072", "0?skipset") in new stack
    -- Executing [[email protected]:15] Set("PJSIP/98217-00000072", "DSTRING=PJSIP/219/sip:[email protected]:16455;transport=TCP;rinstance=97F23D11;x-ast-orig-host=10.65.17.4:16455&") in new stack
    -- Executing [[email protected]:16] Set("PJSIP/98217-00000072", "ITER=2") in new stack
    -- Executing [[email protected]:17] GotoIf("PJSIP/98217-00000072", "1?begin") in new stack
    -- Goto (macro-dial-one,dstring,7)
    -- Executing [[email protected]:7] Set("PJSIP/98217-00000072", "THISDIAL=PJSIP/98219") in new stack
    -- Executing [[email protected]:8] GotoIf("PJSIP/98217-00000072", "0?docheck") in new stack
    -- Executing [[email protected]:9] NoOp("PJSIP/98217-00000072", "Debug: Found PJSIP Destination PJSIP/98219") in new stack
    -- Executing [[email protected]:10] GotoIf("PJSIP/98217-00000072", "0?doset") in new stack
    -- Executing [[email protected]:11] NoOp("PJSIP/98217-00000072", "Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/98217-00000072", "THISDIAL=") in new stack
    -- Executing [[email protected]:13] ExecIf("PJSIP/98217-00000072", "1?Set(DIALSTATUS=CHANUNAVAIL)") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/98217-00000072", "1?skipset") in new stack
    -- Goto (macro-dial-one,dstring,16)
    -- Executing [[email protected]:16] Set("PJSIP/98217-00000072", "ITER=3") in new stack
    -- Executing [[email protected]:17] GotoIf("PJSIP/98217-00000072", "0?begin") in new stack
    -- Executing [[email protected]:18] ExecIf("PJSIP/98217-00000072", "0?Return()") in new stack
    -- Executing [[email protected]:19] Set("PJSIP/98217-00000072", "DSTRING=PJSIP/219/sip:[email protected]:16455;transport=TCP;rinstance=97F23D11;x-ast-orig-host=10.65.17.4:16455") in new stack
    -- Executing [[email protected]:20] Return("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:32] GotoIf("PJSIP/98217-00000072", "0?nodial") in new stack
    -- Executing [[email protected]:33] GotoIf("PJSIP/98217-00000072", "0?skiptrace") in new stack
    -- Executing [[email protected]:34] GosubIf("PJSIP/98217-00000072", "1?ctset,1():ctclear,1()") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/98217-00000072", "DB(CALLTRACE/219)=217") in new stack
    -- Executing [[email protected]:2] Return("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:35] Set("PJSIP/98217-00000072", "D_OPTIONS=HhTtr") in new stack
    -- Executing [[email protected]:36] GosubIf("PJSIP/98217-00000072", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [[email protected]:37] NoOp("PJSIP/98217-00000072", "Blind Transfer: , Attended Transfer: , User: 217, Alert Info: ") in new stack
    -- Executing [[email protected]:38] ExecIf("PJSIP/98217-00000072", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:39] ExecIf("PJSIP/98217-00000072", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:40] ExecIf("PJSIP/98217-00000072", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:41] ExecIf("PJSIP/98217-00000072", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [[email protected]:42] ExecIf("PJSIP/98217-00000072", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [[email protected]:43] GosubIf("PJSIP/98217-00000072", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [[email protected]:44] ExecIf("PJSIP/98217-00000072", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]:45] GosubIf("PJSIP/98217-00000072", "0?qwait,1()") in new stack
    -- Executing [[email protected]:46] Set("PJSIP/98217-00000072", "__CWIGNORE=") in new stack
    -- Executing [[email protected]:47] Set("PJSIP/98217-00000072", "__KEEPCID=TRUE") in new stack
    -- Executing [[email protected]:48] GotoIf("PJSIP/98217-00000072", "0?usegoto,1") in new stack
    -- Executing [[email protected]:49] GotoIf("PJSIP/98217-00000072", "0?godial") in new stack
    -- Executing [[email protected]:50] Gosub("PJSIP/98217-00000072", "sub-presencestate-display,s,1(219)") in new stack
    -- Executing [[email protected]:1] Goto("PJSIP/98217-00000072", "state-available,1") in new stack
    -- Goto (sub-presencestate-display,state-available,1)
    -- Executing [[email protected]:1] Set("PJSIP/98217-00000072", "PRESENCESTATE_DISPLAY=(Available)") in new stack
    -- Executing [[email protected]:2] Return("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:51] Set("PJSIP/98217-00000072", "CONNECTEDLINE(name,i)=Piaga (Available)") in new stack
    -- Executing [[email protected]:52] Set("PJSIP/98217-00000072", "CONNECTEDLINE(num)=219") in new stack
    -- Executing [[email protected]:53] Set("PJSIP/98217-00000072", "D_OPTIONS=HhTtr") in new stack
    -- Executing [[email protected]:54] Macro("PJSIP/98217-00000072", "dialout-one-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:55] ExecIf("PJSIP/98217-00000072", "0?Set(D_OPTIONS=HhtrI)") in new stack
    -- Executing [[email protected]:56] ExecIf("PJSIP/98217-00000072", "0?Set(CWRING=r(callwaiting)):Set(CWRING=)") in new stack
    -- Executing [[email protected]:57] Set("PJSIP/98217-00000072", "__ZULU_TIMEOUT=120") in new stack
    -- Executing [[email protected]:58] Set("PJSIP/98217-00000072", "__ZULU_FROMEXTEN=217") in new stack
    -- Executing [[email protected]:59] Set("PJSIP/98217-00000072", "__ZULU_DIALOPTS=HhTtr") in new stack
    -- Executing [[email protected]:60] NoOp("PJSIP/98217-00000072", "Finished") in new stack
    -- Executing [[email protected]:61] NoOp("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:62] ExecIf("PJSIP/98217-00000072", "0?Set(D_OPTIONS=HhTtrg)") in new stack
    -- Executing [[email protected]:63] Dial("PJSIP/98217-00000072", "PJSIP/219/sip:[email protected]:16455;transport=TCP;rinstance=97F23D11;x-ast-orig-host=10.65.17.4:16455,,HhTtrb(func-apply-sipheaders^s^1)") in new stack
    -- PJSIP/219-00000073 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] ExecIf("PJSIP/219-00000073", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("PJSIP/219-00000073", "Applying SIP Headers to channel PJSIP/219-00000073") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/219-00000073", "TECH=PJSIP") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/219-00000073", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:5] While("PJSIP/219-00000073", "0") in new stack
    -- Jumping to priority 13
    -- Executing [[email protected]:14] Return("PJSIP/219-00000073", "") in new stack
  == Spawn extension (from-internal, 219, 1) exited non-zero on 'PJSIP/219-00000073'
    -- PJSIP/219-00000073 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=

    -- Called PJSIP/219/sip:[email protected]:16455;transport=TCP;rinstance=97F23D11;x-ast-orig-host=10.65.17.4:16455
  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
  == Everyone is busy/congested at this time (1:1/0/0)
    -- Executing [[email protected]:64] ExecIf("PJSIP/98217-00000072", "0?MacroExit()") in new stack
    -- Executing [[email protected]:65] ExecIf("PJSIP/98217-00000072", "0?Set(DIALSTATUS=)") in new stack
    -- Executing [[email protected]:66] GosubIf("PJSIP/98217-00000072", "0?s-BUSY,1()") in new stack
    -- Executing [[email protected]:67] MacroExit("PJSIP/98217-00000072", "") in new stack
    -- Executing [[email protected]:27] Set("PJSIP/98217-00000072", "SV_DIALSTATUS=BUSY") in new stack
    -- Executing [[email protected]:28] GosubIf("PJSIP/98217-00000072", "0?docfu,1()") in new stack
    -- Executing [[email protected]:29] GosubIf("PJSIP/98217-00000072", "0?docfb,1()") in new stack
    -- Executing [[email protected]:30] Set("PJSIP/98217-00000072", "DIALSTATUS=BUSY") in new stack
    -- Executing [[email protected]:31] ExecIf("PJSIP/98217-00000072", "0?MacroExit()") in new stack
    -- Executing [[email protected]:32] GotoIf("PJSIP/98217-00000072", "1?s-BUSY,1") in new stack
    -- Goto (macro-exten-vm,s-BUSY,1)
    -- Executing [[email protected]:1] GotoIf("PJSIP/98217-00000072", "0?exit,1") in new stack
    -- Executing [[email protected]:2] PlayTones("PJSIP/98217-00000072", "busy") in new stack
    -- Executing [[email protected]:3] Busy("PJSIP/98217-00000072", "20") in new stack
  == Spawn extension (macro-exten-vm, s-BUSY, 3) exited non-zero on 'PJSIP/98217-00000072' in macro 'exten-vm'
  == Spawn extension (ext-local, 219, 3) exited non-zero on 'PJSIP/98217-00000072'
    -- Executing [[email protected]:1] Macro("PJSIP/98217-00000072", "hangupcall,") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/98217-00000072", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("PJSIP/98217-00000072", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("PJSIP/98217-00000072", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/98217-00000072' in macro 'hangupcall'
  == Spawn extension (ext-local, h, 1) exited non-zero on 'PJSIP/98217-00000072'
    -- Added contact 'sip:[email protected]:47348;transport=WS;x-ast-orig-host=rqsj7pergjh8.invalid:0' to AOR '98219' with expiration of 600 seconds
  == Endpoint 98219 is now Reachable
    -- Contact 98219/sip:[email protected]:47348;transport=WS;x-ast-orig-host=rqsj7pergjh8.invalid:0 is now Reachable.  RTT: 24.878 msec