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