asterisk2billing.org
http://forum.asterisk2billing.org/

Problem with call forwarding
http://forum.asterisk2billing.org/viewtopic.php?f=34&t=12725
Page 1 of 1

Author:  CSerpent [ Mon Apr 09, 2018 9:29 am ]
Post subject:  Problem with call forwarding

Hi

I have an end user where we changed the ITSP to a new provider. All normal outbound calls work and the account codes are correct. I made the modifications within A2B 2.2 but now when an extension is doing a call forward, the call will not forward as is asking for a PIN to the calling party.

Code:
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "__DIRECTION=INBOUND") in new stack
    -- Executing [[email protected]:2] Gosub("SIP/sip-itsp-000055a8", "sub-record-check,s,1(in,01201234567,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/sip-itsp-000055a8", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("SIP/sip-itsp-000055a8", "NOW=1523263848") in new stack
    -- Executing [[email protected]:4] Set("SIP/sip-itsp-000055a8", "__DAY=09") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "__MONTH=04") in new stack
    -- Executing [[email protected]:6] Set("SIP/sip-itsp-000055a8", "__YEAR=2018") in new stack
    -- Executing [[email protected]:7] Set("SIP/sip-itsp-000055a8", "__TIMESTR=20180409-095048") in new stack
    -- Executing [[email protected]:8] Set("SIP/sip-itsp-000055a8", "__FROMEXTEN=unknown") in new stack
    -- Executing [[email protected]:9] Set("SIP/sip-itsp-000055a8", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("SIP/sip-itsp-000055a8", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("SIP/sip-itsp-000055a8", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/sip-itsp-000055a8", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/sip-itsp-000055a8", "2?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/sip-itsp-000055a8", "1?sub-record-check,in,1") in new stack
    -- Goto (sub-record-check,in,1)
    -- Executing [[email protected]:1] NoOp("SIP/sip-itsp-000055a8", "Inbound Recording Check to 01201234567") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "FROMEXTEN=unknown") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/sip-itsp-000055a8", "13?Set(FROMEXTEN=+447200123456)") in new stack
    -- Executing [[email protected]:4] Gosub("SIP/sip-itsp-000055a8", "recordcheck,1(dontcare,in,01201234567)") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/sip-itsp-000055a8", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("SIP/sip-itsp-000055a8", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:5] Return("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:3] Gosub("SIP/sip-itsp-000055a8", "app-blacklist-check,s,1()") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/sip-itsp-000055a8", "0?blacklisted") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "CALLED_BLACKLIST=1") in new stack
    -- Executing [[email protected]:3] Return("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:4] Set("SIP/sip-itsp-000055a8", "__FROM_DID=01201234567") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "CDR(did)=01201234567") in new stack
    -- Executing [[email protected]:6] ExecIf("SIP/sip-itsp-000055a8", "0 ?Set(CALLERID(name)=+447200123456)") in new stack
    -- Executing [[email protected]:7] Set("SIP/sip-itsp-000055a8", "__MOHCLASS=") in new stack
    -- Executing [[email protected]:8] Set("SIP/sip-itsp-000055a8", "__REVERSAL_REJECT=FALSE") in new stack
    -- Executing [[email protected]:9] GotoIf("SIP/sip-itsp-000055a8", "1?post-reverse-charge") in new stack
    -- Goto (from-pstn,01201234567,11)
    -- Executing [[email protected]:11] NoOp("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:12] Set("SIP/sip-itsp-000055a8", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
    -- Executing [[email protected]:13] Set("SIP/sip-itsp-000055a8", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
    -- Executing [[email protected]:14] Set("SIP/sip-itsp-000055a8", "CALLERID(name-pres)=allowed_not_screened") in new stack
    -- Executing [[email protected]:15] Set("SIP/sip-itsp-000055a8", "CALLERID(num-pres)=allowed_not_screened") in new stack
    -- Executing [[email protected]:16] NoOp("SIP/sip-itsp-000055a8", "CallerID Entry Point") in new stack
    -- Executing [[email protected]:17] Macro("SIP/sip-itsp-000055a8", "prepend-cid,Reaction:") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/sip-itsp-000055a8", "1?REPCID") in new stack
    -- Goto (macro-prepend-cid,s,5)
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "_RGPREFIX=Reaction:") in new stack
    -- Executing [[email protected]:6] Set("SIP/sip-itsp-000055a8", "CALLERID(name)=Reaction:+447200123456") in new stack
    -- Executing [[email protected]:18] Set("SIP/sip-itsp-000055a8", "__CRM_DIRECTION=INBOUND") in new stack
    -- Executing [[email protected]:19] Set("SIP/sip-itsp-000055a8", "__CRM_SOURCE=+447200123456") in new stack
    -- Executing [[email protected]:20] Set("SIP/sip-itsp-000055a8", "__CRM_LINKEDID=1523263848.22965") in new stack
    -- Executing [[email protected]:21] ExecIf("SIP/sip-itsp-000055a8", "1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:22] Goto("SIP/sip-itsp-000055a8", "from-did-direct,71111,1") in new stack
    -- Goto (from-did-direct,71111,1)
    -- Executing [[email protected]:1] GotoIf("SIP/sip-itsp-000055a8", "1?ext-local,71111,1:followme-check,71111,1") in new stack
    -- Goto (ext-local,71111,1)
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "__RINGTIMER=15") in new stack
    -- Executing [[email protected]:2] Macro("SIP/sip-itsp-000055a8", "exten-vm,71111,71111,0,0,0") in new stack
    -- Executing [[email protected]:1] Macro("SIP/sip-itsp-000055a8", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "TOUCH_MONITOR=1523263848.22965") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "AMPUSER=+447200123456") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/sip-itsp-000055a8", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/sip-itsp-000055a8", "1?Set(REALCALLERIDNUM=+447200123456)") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "AMPUSER=") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/sip-itsp-000055a8", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/sip-itsp-000055a8", "AMPUSERCIDNAME=") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/sip-itsp-000055a8", "1?report") in new stack
    -- Goto (macro-user-callerid,s,15)
    -- Executing [[email protected]:15] NoOp("SIP/sip-itsp-000055a8", "Macro Depth is 2") in new stack
    -- Executing [[email protected]:16] GotoIf("SIP/sip-itsp-000055a8", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,18)
    -- Executing [[email protected]:18] GotoIf("SIP/sip-itsp-000055a8", "0?continue") in new stack
    -- Executing [[email protected]:19] Set("SIP/sip-itsp-000055a8", "__TTL=64") in new stack
    -- Executing [[email protected]:20] GotoIf("SIP/sip-itsp-000055a8", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,36)
    -- Executing [[email protected]:36] Set("SIP/sip-itsp-000055a8", "CALLERID(number)=+447200123456") in new stack
    -- Executing [[email protected]:37] Set("SIP/sip-itsp-000055a8", "CALLERID(name)=Reaction:+447200123456") in new stack
    -- Executing [[email protected]:38] GotoIf("SIP/sip-itsp-000055a8", "0?cnum") in new stack
    -- Executing [[email protected]:39] Set("SIP/sip-itsp-000055a8", "CDR(cnam)=Reaction:+447200123456") in new stack
    -- Executing [[email protected]:40] Set("SIP/sip-itsp-000055a8", "CDR(cnum)=+447200123456") in new stack
    -- Executing [[email protected]:41] Set("SIP/sip-itsp-000055a8", "CHANNEL(language)=en_GB") in new stack
    -- Executing [[email protected]:42] GosubIf("SIP/sip-itsp-000055a8", "0?app-check-classofservce,s,1()") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "RingGroupMethod=none") in new stack
    -- Executing [[email protected]:3] Set("SIP/sip-itsp-000055a8", "__EXTTOCALL=71111") in new stack
    -- Executing [[email protected]:4] Set("SIP/sip-itsp-000055a8", "__PICKUPMARK=71111") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "RT=15") in new stack
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4425 ast_func_read: Function PJSIP_HEADER not registered
    -- Executing [[email protected]:6] ExecIf("SIP/sip-itsp-000055a8", "0?Macro(vm,71111,DIRECTDIAL,)") in new stack
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4464 ast_func_read2: Function PJSIP_HEADER not registered
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4425 ast_func_read: Function PJSIP_HEADER not registered
    -- Executing [[email protected]:7] ExecIf("SIP/sip-itsp-000055a8", "0?MacroExit()") in new stack
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4464 ast_func_read2: Function PJSIP_HEADER not registered
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4425 ast_func_read: Function PJSIP_HEADER not registered
    -- Executing [[email protected]:8] ExecIf("SIP/sip-itsp-000055a8", "0?Gosub(ext-intercom,*8071111,1())") in new stack
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4464 ast_func_read2: Function PJSIP_HEADER not registered
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4425 ast_func_read: Function PJSIP_HEADER not registered
    -- Executing [[email protected]:9] ExecIf("SIP/sip-itsp-000055a8", "0?MacroExit()") in new stack
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4464 ast_func_read2: Function PJSIP_HEADER not registered
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4425 ast_func_read: Function PJSIP_HEADER not registered
    -- Executing [[email protected]:10] ExecIf("SIP/sip-itsp-000055a8", "0?ChanSpy(SIP/71111,q)") in new stack
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4464 ast_func_read2: Function PJSIP_HEADER not registered
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4425 ast_func_read: Function PJSIP_HEADER not registered
    -- Executing [[email protected]:11] ExecIf("SIP/sip-itsp-000055a8", "0?MacroExit()") in new stack
[2018-04-09 09:50:48] ERROR[10100][C-00004e50]: pbx.c:4464 ast_func_read2: Function PJSIP_HEADER not registered
    -- Executing [[email protected]:12] Gosub("SIP/sip-itsp-000055a8", "sub-record-check,s,1(exten,71111,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/sip-itsp-000055a8", "13?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [[email protected]:10] NoOp("SIP/sip-itsp-000055a8", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("SIP/sip-itsp-000055a8", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/sip-itsp-000055a8", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/sip-itsp-000055a8", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/sip-itsp-000055a8", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [[email protected]:1] NoOp("SIP/sip-itsp-000055a8", "Exten Recording Check between +447200123456 and 71111") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "CALLTYPE=external") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/sip-itsp-000055a8", "0?Set(CALLTYPE=)") in new stack
    -- Executing [[email protected]:4] Set("SIP/sip-itsp-000055a8", "CALLEE=dontcare") in new stack
    -- Executing [[email protected]:5] ExecIf("SIP/sip-itsp-000055a8", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/sip-itsp-000055a8", "1?callee") in new stack
    -- Goto (sub-record-check,exten,11)
    -- Executing [[email protected]:11] Gosub("SIP/sip-itsp-000055a8", "recordcheck,1(dontcare,external,71111)") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/sip-itsp-000055a8", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("SIP/sip-itsp-000055a8", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:12] Return("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:13] GotoIf("SIP/sip-itsp-000055a8", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,19)
    -- Executing [[email protected]:19] GosubIf("SIP/sip-itsp-000055a8", "0?clrheader,1()") in new stack
    -- Executing [[email protected]:20] Macro("SIP/sip-itsp-000055a8", "dial-one,15,Ttr,71111") in new stack
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "DEXTEN=71111") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "__CRM_SOURCE=+447200123456") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/sip-itsp-000055a8", "0?Set(EXTTOCALL=71111)") in new stack
    -- Executing [[email protected]:4] Set("SIP/sip-itsp-000055a8", "DIALSTATUS_CW=") in new stack
    -- Executing [[email protected]:5] GosubIf("SIP/sip-itsp-000055a8", "0?screen,1()") in new stack
    -- Executing [[email protected]:6] GosubIf("SIP/sip-itsp-000055a8", "1?cf,1()") in new stack
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "CFAMPUSER=+447200123456") in new stack
    -- Executing [[email protected]:2] ExecIf("SIP/sip-itsp-000055a8", "0?Return()") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ARG1=0)") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/sip-itsp-000055a8", "1?Set(ARG1=)") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "DEXTEN=907333333333#") in new stack
    -- Executing [[email protected]:6] ExecIf("SIP/sip-itsp-000055a8", "1?Return()") in new stack
    -- Executing [[email protected]:7] GotoIf("SIP/sip-itsp-000055a8", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,10)
    -- Executing [[email protected]:10] GotoIf("SIP/sip-itsp-000055a8", "0?nodial") in new stack
    -- Executing [[email protected]:11] GotoIf("SIP/sip-itsp-000055a8", "1?continue") in new stack
    -- Goto (macro-dial-one,s,27)
    -- Executing [[email protected]:27] GotoIf("SIP/sip-itsp-000055a8", "0?nodial") in new stack
    -- Executing [[email protected]:28] GosubIf("SIP/sip-itsp-000055a8", "0?dstring,1():dlocal,1()") in new stack
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "DSTRING=907333333333") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "USEGOTO=1") in new stack
    -- Executing [[email protected]:3] Return("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:29] GotoIf("SIP/sip-itsp-000055a8", "0?nodial") in new stack
    -- Executing [[email protected]:30] GotoIf("SIP/sip-itsp-000055a8", "1?skiptrace") in new stack
    -- Goto (macro-dial-one,s,32)
    -- Executing [[email protected]:32] Set("SIP/sip-itsp-000055a8", "D_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:33] NoOp("SIP/sip-itsp-000055a8", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
    -- Executing [[email protected]:34] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:35] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:36] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:37] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [[email protected]:38] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [[email protected]:39] GosubIf("SIP/sip-itsp-000055a8", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [[email protected]:40] ExecIf("SIP/sip-itsp-000055a8", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]:41] GosubIf("SIP/sip-itsp-000055a8", "0?qwait,1()") in new stack
    -- Executing [[email protected]:42] Set("SIP/sip-itsp-000055a8", "__CWIGNORE=") in new stack
    -- Executing [[email protected]:43] Set("SIP/sip-itsp-000055a8", "__KEEPCID=TRUE") in new stack
    -- Executing [[email protected]:44] GotoIf("SIP/sip-itsp-000055a8", "1?usegoto,1") in new stack
    -- Goto (macro-dial-one,usegoto,1)
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "USEGOTO=") in new stack
    -- Executing [[email protected]:2] Goto("SIP/sip-itsp-000055a8", "from-internal,907333333333,1") in new stack
    -- Goto (from-internal,907333333333,1)
    -- Executing [[email protected]:1] Goto("SIP/sip-itsp-000055a8", "from-internal-original,907333333333,1") in new stack
    -- Goto (from-internal-original,907333333333,1)
    -- Executing [[email protected]:1] Macro("SIP/sip-itsp-000055a8", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "TOUCH_MONITOR=1523263848.22965") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "AMPUSER=+447200123456") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/sip-itsp-000055a8", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/sip-itsp-000055a8", "0?Set(REALCALLERIDNUM=+447200123456)") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "AMPUSER=") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/sip-itsp-000055a8", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/sip-itsp-000055a8", "AMPUSERCIDNAME=") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/sip-itsp-000055a8", "1?report") in new stack
    -- Goto (macro-user-callerid,s,15)
    -- Executing [[email protected]:15] NoOp("SIP/sip-itsp-000055a8", "Macro Depth is 3") in new stack
    -- Executing [[email protected]:16] GotoIf("SIP/sip-itsp-000055a8", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,18)
    -- Executing [[email protected]:18] GotoIf("SIP/sip-itsp-000055a8", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,36)
    -- Executing [[email protected]:36] Set("SIP/sip-itsp-000055a8", "CALLERID(number)=+447200123456") in new stack
    -- Executing [[email protected]:37] Set("SIP/sip-itsp-000055a8", "CALLERID(name)=Reaction:+447200123456") in new stack
    -- Executing [[email protected]:38] GotoIf("SIP/sip-itsp-000055a8", "0?cnum") in new stack
    -- Executing [[email protected]:39] Set("SIP/sip-itsp-000055a8", "CDR(cnam)=Reaction:+447200123456") in new stack
    -- Executing [[email protected]:40] Set("SIP/sip-itsp-000055a8", "CDR(cnum)=+447200123456") in new stack
    -- Executing [[email protected]:41] Set("SIP/sip-itsp-000055a8", "CHANNEL(language)=en_GB") in new stack
    -- Executing [[email protected]:42] GosubIf("SIP/sip-itsp-000055a8", "0?app-check-classofservce,s,1()") in new stack
    -- Executing [[email protected]:2] Gosub("SIP/sip-itsp-000055a8", "sub-record-check,s,1(out,907333333333,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/sip-itsp-000055a8", "13?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [[email protected]:10] NoOp("SIP/sip-itsp-000055a8", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/sip-itsp-000055a8", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("SIP/sip-itsp-000055a8", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/sip-itsp-000055a8", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/sip-itsp-000055a8", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/sip-itsp-000055a8", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [[email protected]:1] NoOp("SIP/sip-itsp-000055a8", "Outbound Recording Check from +447200123456 to 907333333333") in new stack
    -- Executing [[email protected]:2] Set("SIP/sip-itsp-000055a8", "RECMODE=") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/sip-itsp-000055a8", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [[email protected]:7] Gosub("SIP/sip-itsp-000055a8", "recordcheck,1(dontcare,out,907333333333)") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/sip-itsp-000055a8", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]ecord-check:2] Goto("SIP/sip-itsp-000055a8", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:8] Return("SIP/sip-itsp-000055a8", "") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/sip-itsp-000055a8", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [[email protected]:4] Set("SIP/sip-itsp-000055a8", "EMERGENCYROUTE=YES") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "MOHCLASS=default") in new stack
    -- Executing [[email protected]:6] Set("SIP/sip-itsp-000055a8", "_NODEST=") in new stack
    -- Executing [[email protected]:7] Macro("SIP/sip-itsp-000055a8", "dialout-trunk,1,07333333333,,off") in new stack
    -- Executing [[email protected]:1] Set("SIP/sip-itsp-000055a8", "DIAL_TRUNK=1") in new stack
    -- Executing [[email protected]:2] GosubIf("SIP/sip-itsp-000055a8", "0?sub-pincheck,s,1()") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/sip-itsp-000055a8", "0?disabletrunk,1") in new stack
    -- Executing [[email protected]:4] Set("SIP/sip-itsp-000055a8", "DIAL_NUMBER=07333333333") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:6] Set("SIP/sip-itsp-000055a8", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [[email protected]:7] Set("SIP/sip-itsp-000055a8", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/sip-itsp-000055a8", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,10)
    -- Executing [[email protected]:10] GotoIf("SIP/sip-itsp-000055a8", "0?skipoutcid") in new stack
    -- Executing [[email protected]:11] Macro("SIP/sip-itsp-000055a8", "outbound-callerid,1") in new stack
    -- Executing [[email protected]:1] ExecIf("SIP/sip-itsp-000055a8", "1?Set(CALLERPRES(name-pres)=allowed_not_screened)") in new stack
    -- Executing [[email protected]:2] ExecIf("SIP/sip-itsp-000055a8", "1?Set(CALLERPRES(num-pres)=allowed_not_screened)") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/sip-itsp-000055a8", "0?Set(REALCALLERIDNUM=+447200123456)") in new stack
    -- Executing [[email protected]:4] GotoIf("SIP/sip-itsp-000055a8", "0?normcid") in new stack
    -- Executing [[email protected]:5] Set("SIP/sip-itsp-000055a8", "USEROUTCID=+447200123456") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/sip-itsp-000055a8", "1?bypass") in new stack
    -- Goto (macro-outbound-callerid,s,8)
    -- Executing [[email protected]:8] Set("SIP/sip-itsp-000055a8", "EMERGENCYCID=") in new stack
    -- Executing [[email protected]erid:9] Set("SIP/sip-itsp-000055a8", "TRUNKOUTCID=") in new stack
    -- Executing [[email protected]:10] GotoIf("SIP/sip-itsp-000055a8", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,15)
    -- Executing [[email protected]:15] ExecIf("SIP/sip-itsp-000055a8", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/sip-itsp-000055a8", "1?Set(CALLERID(all)=+447200123456)") in new stack
    -- Executing [[email protected]:17] ExecIf("SIP/sip-itsp-000055a8", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:18] ExecIf("SIP/sip-itsp-000055a8", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:19] ExecIf("SIP/sip-itsp-000055a8", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:20] Set("SIP/sip-itsp-000055a8", "CDR(outbound_cnum)=+447200123456") in new stack
    -- Executing [[email protected]:21] Set("SIP/sip-itsp-000055a8", "CDR(outbound_cnam)=") in new stack
    -- Executing [[email protected]:12] GosubIf("SIP/sip-itsp-000055a8", "0?sub-flp-1,s,1()") in new stack
    -- Executing [[email protected]:13] Set("SIP/sip-itsp-000055a8", "OUTNUM=07333333333") in new stack
    -- Executing [[email protected]:14] Set("SIP/sip-itsp-000055a8", "custom=AMP") in new stack
    -- Executing [[email protected]:15] ExecIf("SIP/sip-itsp-000055a8", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/sip-itsp-000055a8", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [[email protected]:17] Macro("SIP/sip-itsp-000055a8", "dialout-trunk-predial-hook,") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/sip-itsp-000055a8", "1?custom-freepbx-a2billing,07333333333,1:2") in new stack
    -- Goto (custom-freepbx-a2billing,07333333333,1)
  == Channel 'SIP/sip-itsp-000055a8' jumping out of macro 'dialout-trunk-predial-hook'
  == Channel 'SIP/sip-itsp-000055a8' jumping out of macro 'dialout-trunk'
    -- Executing [[email protected]:1] DeadAGI("SIP/sip-itsp-000055a8", "a2billing.php,1") in new stack
[2018-04-09 09:50:48] WARNING[10100][C-00004e50]: res_agi.c:4006 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
    -- <SIP/sip-itsp-000055a8> Playing 'prepaid-enter-pin-number.gsm' (language 'en_GB')
[2018-04-09 09:50:50] WARNING[10100][C-00004e50]: file.c:830 ast_readaudio_callback: Failed to write frame
[2018-04-09 09:50:50] WARNING[10100][C-00004e50]: channel.c:4861 ast_prod: Prodding channel 'SIP/sip-itsp-000055a8' failed
    -- <SIP/sip-itsp-000055a8>AGI Script a2billing.php completed, returning 4
  == Spawn extension (custom-freepbx-a2billing, 07333333333, 1) exited non-zero on 'SIP/sip-itsp-000055a8' in macro 'dial-one'
  == Spawn extension (custom-freepbx-a2billing, 07333333333, 1) exited non-zero on 'SIP/sip-itsp-000055a8' in macro 'exten-vm'
  == Spawn extension (custom-freepbx-a2billing, 07333333333, 1) exited non-zero on 'SIP/sip-itsp-000055a8'
    -- SIP/sip-itsp-000055a8 Internal Gosub(crm-hangup,s,1) start
    -- Executing [[email protected]:1] NoOp("SIP/sip-itsp-000055a8", "Sending Hangup to CRM") in new stack
    -- Executing [[email protected]:2] NoOp("SIP/sip-itsp-000055a8", "HANGUP CAUSE: 0") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/sip-itsp-000055a8", "0?Set(__CRM_VOICEMAIL=)") in new stack
    -- Executing [[email protected]:4] NoOp("SIP/sip-itsp-000055a8", "MASTER CHANNEL: 1523263848.22965 = 1523263848.22965") in new stack
    -- Executing [[email protected]:5] GotoIf("SIP/sip-itsp-000055a8", "0?return") in new stack
    -- Executing [[email protected]:6] Set("SIP/sip-itsp-000055a8", "__CRM_HANGUP=1") in new stack
    -- Executing [[email protected]:7] AGI("SIP/sip-itsp-000055a8", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <SIP/sip-itsp-000055a8>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [[email protected]:8] Return("SIP/sip-itsp-000055a8", "") in new stack
  == Spawn extension (custom-freepbx-a2billing, 07333333333, 1) exited non-zero on 'SIP/sip-itsp-000055a8'
    -- SIP/sip-itsp-000055a8 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=


In this case, +447200123456 calls the inbound DDI 01201234567, which calls extension 70111. 70111 has a cfwd to 907333333333.

Author:  GeekBoy [ Mon Jul 09, 2018 5:26 am ]
Post subject:  Re: Problem with call forwarding

This thing is dead now. They have moved on to other things. It was a great run. There are other open source projects out there which are still in the game, such as ASTPP

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/