Forward All Call *72

Hello guys! I have problem with FreePBX.

PBX Version:
15.0.16.81
PBX Distro:
12.7.8-2011-5.sng7
Asterisk Version:
16.13.0

Hello guys! I have problem with FreePBX.
I can’t make forward call on external number but i can tmake forward on internal phones.


== Setting global variable ‘SIPDOMAIN’ to ‘192.168.201.218’
– Executing [[email protected]:1] Set(“PJSIP/sip_trunk_1-00000052”, “__DIRECTION=INBOUND”) in new stack
– Executing [[email protected]:2] Gosub(“PJSIP/sip_trunk_1-00000052”, “sub-record-check,s,1(in,790512,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/sip_trunk_1-00000052”, “NOW=1611829659”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/sip_trunk_1-00000052”, “__DAY=28”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/sip_trunk_1-00000052”, “__MONTH=01”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/sip_trunk_1-00000052”, “__YEAR=2021”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/sip_trunk_1-00000052”, “__TIMESTR=20210128-102739”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/sip_trunk_1-00000052”, “__FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/sip_trunk_1-00000052”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/sip_trunk_1-00000052”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/sip_trunk_1-00000052”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/sip_trunk_1-00000052”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [[email protected]:1] NoOp(“PJSIP/sip_trunk_1-00000052”, “Inbound Recording Check to 790512”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/sip_trunk_1-00000052”, “11?Set(FROMEXTEN=87057452722)”) in new stack
– Executing [[email protected]:4] Gosub(“PJSIP/sip_trunk_1-00000052”, “recordcheck,1(dontcare,in,790512)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/sip_trunk_1-00000052”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/sip_trunk_1-00000052”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:5] Return(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/sip_trunk_1-00000052”, “CHANNEL(tonezone)=us”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/sip_trunk_1-00000052”, “__FROM_DID=790512”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/sip_trunk_1-00000052”, “returnhere=1”) in new stack
– Executing [[email protected]:6] Gosub(“PJSIP/sip_trunk_1-00000052”, “app-blacklist-check,s,1()”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/sip_trunk_1-00000052”, “CDR(did)=790512”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0 ?Set(CALLERID(name)=87057452722)”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/sip_trunk_1-00000052”, “__MOHCLASS=”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/sip_trunk_1-00000052”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [[email protected]:12] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?post-reverse-charge”) in new stack
– Goto (from-pstn,790512,14)
– Executing [[email protected]:14] NoOp(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:15] Set(“PJSIP/sip_trunk_1-00000052”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/sip_trunk_1-00000052”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:17] Set(“PJSIP/sip_trunk_1-00000052”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:18] Set(“PJSIP/sip_trunk_1-00000052”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:19] NoOp(“PJSIP/sip_trunk_1-00000052”, “CallerID Entry Point”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/sip_trunk_1-00000052”, “__CRM_DIRECTION=INBOUND”) in new stack
– Executing [[email protected]:21] Set(“PJSIP/sip_trunk_1-00000052”, “__CRM_SOURCE=87057452722”) in new stack
– Executing [[email protected]:22] Set(“PJSIP/sip_trunk_1-00000052”, “__CRM_LINKEDID=1611829659.92”) in new stack
– Executing [[email protected]:23] AGI(“PJSIP/sip_trunk_1-00000052”, “agi://127.0.0.1/sangomacrm.agi,true”) in new stack
– <PJSIP/sip_trunk_1-00000052>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
– Executing [[email protected]:24] ExecIf(“PJSIP/sip_trunk_1-00000052”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:25] Goto(“PJSIP/sip_trunk_1-00000052”, “from-did-direct,222,1”) in new stack
– Goto (from-did-direct,222,1)
– Executing [[email protected]:1] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?ext-local,222,1:followme-check,222,1”) in new stack
– Goto (ext-local,222,1)
– Executing [[email protected]:1] Set(“PJSIP/sip_trunk_1-00000052”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [[email protected]:3] Macro(“PJSIP/sip_trunk_1-00000052”, “exten-vm,novm,222,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“PJSIP/sip_trunk_1-00000052”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/sip_trunk_1-00000052”, “TOUCH_MONITOR=1611829659.92”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “AMPUSER=87057452722”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/sip_trunk_1-00000052”, “HOTDESCKCHAN=sip_trunk_1-00000052”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/sip_trunk_1-00000052”, “HOTDESKEXTEN=sip_trunk_1”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/sip_trunk_1-00000052”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:6] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:7] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?report”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/sip_trunk_1-00000052”, “1?Set(REALCALLERIDNUM=87057452722)”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/sip_trunk_1-00000052”, “AMPUSER=”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?limit”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/sip_trunk_1-00000052”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?report”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [[email protected]:23] NoOp(“PJSIP/sip_trunk_1-00000052”, “Macro Depth is 2”) in new stack
– Executing [[email protected]:24] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,25)
– Executing [[email protected]:25] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?continue”) in new stack
– Executing [[email protected]:26] ExecIf(“PJSIP/sip_trunk_1-00000052”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [[email protected]:27] Set(“PJSIP/sip_trunk_1-00000052”, “__TTL=64”) in new stack
– Executing [[email protected]:28] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,44)
– Executing [[email protected]:44] Set(“PJSIP/sip_trunk_1-00000052”, “CALLERID(number)=87057452722”) in new stack
– Executing [[email protected]:45] Set(“PJSIP/sip_trunk_1-00000052”, “CALLERID(name)=87057452722”) in new stack
– Executing [[email protected]:46] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?cnum”) in new stack
– Executing [[email protected]:47] Set(“PJSIP/sip_trunk_1-00000052”, “CDR(cnam)=87057452722”) in new stack
– Executing [[email protected]:48] Set(“PJSIP/sip_trunk_1-00000052”, “CDR(cnum)=87057452722”) in new stack
– Executing [[email protected]:49] Set(“PJSIP/sip_trunk_1-00000052”, “CHANNEL(language)=ru”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/sip_trunk_1-00000052”, “__EXTTOCALL=222”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/sip_trunk_1-00000052”, “__PICKUPMARK=222”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/sip_trunk_1-00000052”, “RT=”) in new stack
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:6] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:7] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?MacroExit()”) in new stack
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:8] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Gosub(ext-intercom,*80222,1())”) in new stack
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:9] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?MacroExit()”) in new stack
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:10] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?ChanSpy(PJSIP/222,q)”) in new stack
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:11] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?MacroExit()”) in new stack
[2021-01-28 10:27:40] WARNING[157092][C-00000030]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:12] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?MacroExit()”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Gosub(ext-intercom,*80222,1())”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?MacroExit()”) in new stack
– Executing [[email protected]:16] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?ChanSpy(PJSIP/222,q)”) in new stack
– Executing [[email protected]:17] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?MacroExit()”) in new stack
– Executing [[email protected]:18] Gosub(“PJSIP/sip_trunk_1-00000052”, “sub-record-check,s,1(exten,222,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/sip_trunk_1-00000052”, “11?initialized”) in new stack
– Goto (sub-record-check,s,10)
– Executing [[email protected]:10] NoOp(“PJSIP/sip_trunk_1-00000052”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/sip_trunk_1-00000052”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/sip_trunk_1-00000052”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] NoOp(“PJSIP/sip_trunk_1-00000052”, “Exten Recording Check between 87057452722 and 222”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “CALLTYPE=external”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(CALLTYPE=)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/sip_trunk_1-00000052”, “CALLEE=dontcare”) in new stack
– Executing [[email protected]:5] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?callee”) in new stack
– Goto (sub-record-check,exten,11)
– Executing [[email protected]:11] Gosub(“PJSIP/sip_trunk_1-00000052”, “recordcheck,1(dontcare,external,222)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/sip_trunk_1-00000052”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/sip_trunk_1-00000052”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:12] Return(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:19] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,25)
– Executing [[email protected]:25] GosubIf(“PJSIP/sip_trunk_1-00000052”, “0?clrheader,1()”) in new stack
– Executing [[email protected]:26] Macro(“PJSIP/sip_trunk_1-00000052”, “dial-one,HhTtr,222”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/sip_trunk_1-00000052”, “DEXTEN=222”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “__CRM_SOURCE=87057452722”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(__EXTTOCALL=222)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/sip_trunk_1-00000052”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:5] GosubIf(“PJSIP/sip_trunk_1-00000052”, “0?screen,1()”) in new stack
– Executing [[email protected]:6] GosubIf(“PJSIP/sip_trunk_1-00000052”, “1?cf,1()”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/sip_trunk_1-00000052”, “CFAMPUSER=87057452722”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Return()”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(ARG1=0)”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/sip_trunk_1-00000052”, “1?Set(ARG1=)”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/sip_trunk_1-00000052”, “DEXTEN=9999972#”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/sip_trunk_1-00000052”, “__DIVERSION_REASON=unconditional”) in new stack
– Executing [[email protected]:7] ExecIf(“PJSIP/sip_trunk_1-00000052”, “1?Return()”) in new stack
– Executing [[email protected]:7] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [[email protected]:10] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?nodial”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [[email protected]:27] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?nodial”) in new stack
– Executing [[email protected]:28] GosubIf(“PJSIP/sip_trunk_1-00000052”, “0?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/sip_trunk_1-00000052”, “DSTRING=9999972”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “USEGOTO=1”) in new stack
– Executing [[email protected]:3] Return(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:29] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?nodial”) in new stack
– Executing [[email protected]:30] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?skiptrace”) in new stack
– Goto (macro-dial-one,s,32)
– Executing [[email protected]:32] Set(“PJSIP/sip_trunk_1-00000052”, “D_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:33] GosubIf(“PJSIP/sip_trunk_1-00000052”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:34] NoOp(“PJSIP/sip_trunk_1-00000052”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [[email protected]:35] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:36] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:37] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:38] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:39] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:40] GosubIf(“PJSIP/sip_trunk_1-00000052”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:41] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:42] GosubIf(“PJSIP/sip_trunk_1-00000052”, “0?qwait,1()”) in new stack
– Executing [[email protected]:43] Set(“PJSIP/sip_trunk_1-00000052”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:44] Set(“PJSIP/sip_trunk_1-00000052”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]:45] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?usegoto,1”) in new stack
– Goto (macro-dial-one,usegoto,1)
– Executing [[email protected]:1] Set(“PJSIP/sip_trunk_1-00000052”, “USEGOTO=”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/sip_trunk_1-00000052”, “from-internal,9999972,1”) in new stack
– Goto (from-internal,9999972,1)
– Executing [[email protected]:1] Macro(“PJSIP/sip_trunk_1-00000052”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/sip_trunk_1-00000052”, “TOUCH_MONITOR=1611829659.92”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/sip_trunk_1-00000052”, “AMPUSER=87057452722”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/sip_trunk_1-00000052”, “HOTDESCKCHAN=sip_trunk_1-00000052”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/sip_trunk_1-00000052”, “HOTDESKEXTEN=sip_trunk_1”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/sip_trunk_1-00000052”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:6] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:7] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?report”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(REALCALLERIDNUM=87057452722)”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/sip_trunk_1-00000052”, “AMPUSER=”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?limit”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/sip_trunk_1-00000052”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?report”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [[email protected]:23] NoOp(“PJSIP/sip_trunk_1-00000052”, “Macro Depth is 3”) in new stack
– Executing [[email protected]:24] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,25)
– Executing [[email protected]:25] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,44)
– Executing [[email protected]:44] Set(“PJSIP/sip_trunk_1-00000052”, “CALLERID(number)=87057452722”) in new stack
– Executing [[email protected]:45] Set(“PJSIP/sip_trunk_1-00000052”, “CALLERID(name)=87057452722”) in new stack
– Executing [[email protected]:46] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?cnum”) in new stack
– Executing [[email protected]:47] Set(“PJSIP/sip_trunk_1-00000052”, “CDR(cnam)=87057452722”) in new stack
– Executing [[email protected]:48] Set(“PJSIP/sip_trunk_1-00000052”, “CDR(cnum)=87057452722”) in new stack
– Executing [[email protected]:49] Set(“PJSIP/sip_trunk_1-00000052”, “CHANNEL(language)=ru”) in new stack
– Executing [[email protected]:2] NoCDR(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:3] Progress(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
– Executing [[email protected]:4] Wait(“PJSIP/sip_trunk_1-00000052”, “1”) in new stack
– Executing [[email protected]:5] Playback(“PJSIP/sip_trunk_1-00000052”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
– <PJSIP/sip_trunk_1-00000052> Playing ‘silence/1.ulaw’ (language ‘ru’)
– <PJSIP/sip_trunk_1-00000052> Playing ‘cannot-complete-as-dialed.ulaw’ (language ‘ru’)
– <PJSIP/sip_trunk_1-00000052> Playing ‘check-number-dial-again.ulaw’ (language ‘ru’)
== Channel ‘PJSIP/sip_trunk_1-00000052’ jumping out of macro ‘exten-vm’
– Executing [[email protected]:1] Macro(“PJSIP/sip_trunk_1-00000052”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] NoOp(“PJSIP/sip_trunk_1-00000052”, " montior file= ") in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/sip_trunk_1-00000052”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] Hangup(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘PJSIP/sip_trunk_1-00000052’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/sip_trunk_1-00000052’
– PJSIP/sip_trunk_1-00000052 Internal Gosub(crm-hangup,s,1) start
– Executing [[email protected]:1] NoOp(“PJSIP/sip_trunk_1-00000052”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/sip_trunk_1-00000052”, “HANGUP CAUSE: 16”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/sip_trunk_1-00000052”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“PJSIP/sip_trunk_1-00000052”, “MASTER CHANNEL: 1611829659.92 = 1611829659.92”) in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/sip_trunk_1-00000052”, “0?return”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/sip_trunk_1-00000052”, “__CRM_HANGUP=1”) in new stack
– Executing [[email protected]:7] AGI(“PJSIP/sip_trunk_1-00000052”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
– <PJSIP/sip_trunk_1-00000052>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
– Executing [[email protected]:8] Return(“PJSIP/sip_trunk_1-00000052”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/sip_trunk_1-00000052’
– PJSIP/sip_trunk_1-00000052 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

Check in outbound routes that number 87057452722 can make external calls.

Only 112 and 222 can make calls outside. The diverted call is presented with the caller’s number, not with the extension number.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.