Hello forum,
it looks like the call forward using original caller id is not working. Caller id is set to the extension that is doing the callfwd.
Example: Extension 391 calling to 314 which is forwarded to 99389683.
-- Executing [314@from-inside:1] Macro("SIP/391-b563a0e0", "tl-set-variables2|from-inside-redir") in new stack
-- Executing [s@macro-tl-set-variables2:1] Set("SIP/391-b563a0e0", "tenant=") in new stack
-- Executing [s@macro-tl-set-variables2:2] Set("SIP/391-b563a0e0", "CDR(userfield)=") in new stack
-- Executing [s@macro-tl-set-variables2:3] Set("SIP/391-b563a0e0", "MOH=fastplusad200802") in new stack
-- Executing [s@macro-tl-set-variables2:4] GotoIf("SIP/391-b563a0e0", "1 ?setmoh") in new stack
-- Goto (macro-tl-set-variables2,s,6)
-- Executing [s@macro-tl-set-variables2:6] SetMusicOnHold("SIP/391-b563a0e0", "fastplusad200802") in new stack
-- Executing [s@macro-tl-set-variables2:7] Goto("SIP/391-b563a0e0", "from-inside-redir|314|1") in new stack
-- Goto (from-inside-redir,314,1)
== Channel 'SIP/391-b563a0e0' jumping out of macro 'tl-set-variables2'
-- Executing [314@from-inside-redir:1] Macro("SIP/391-b563a0e0", "tl-stdexten|SIP/314|314|") in new stack
-- Executing [s@macro-tl-stdexten:1] Set("SIP/391-b563a0e0", "DIALED_NUMBER=314") in new stack
-- Executing [s@macro-tl-stdexten:2] Macro("SIP/391-b563a0e0", "tl-userexten-base|SIP/314|314|") in new stack
-- Executing [s@macro-tl-userexten-base:1] GotoIf("SIP/391-b563a0e0", "1?set_options") in new stack
-- Goto (macro-tl-userexten-base,s,7)
-- Executing [s@macro-tl-userexten-base:7] Set("SIP/391-b563a0e0", "OPTIONS=rtT") in new stack
-- Executing [s@macro-tl-userexten-base:8] Set("SIP/391-b563a0e0", "THISEXT=TL/314") in new stack
-- Executing [s@macro-tl-userexten-base:9] Set("SIP/391-b563a0e0", "_CLIMYID=314") in new stack
-- Executing [s@macro-tl-userexten-base:10] Set("SIP/391-b563a0e0", "THISCHAN=TL/314") in new stack
-- Executing [s@macro-tl-userexten-base:11] GotoIf("SIP/391-b563a0e0", "0?beenhere") in new stack
-- Executing [s@macro-tl-userexten-base:12] Set("SIP/391-b563a0e0", "_ORIG_EXTEN=314") in new stack
-- Executing [s@macro-tl-userexten-base:13] Macro("SIP/391-b563a0e0", "tl-notify") in new stack
-- Executing [s@macro-tl-notify:1] Set("SIP/391-b563a0e0", "ADDRESS=") in new stack
-- Executing [s@macro-tl-notify:2] NoOp("SIP/391-b563a0e0", "TL/314") in new stack
-- Executing [s@macro-tl-notify:3] GotoIf("SIP/391-b563a0e0", "1?s-exit|1") in new stack
-- Goto (macro-tl-notify,s-exit,1)
-- Executing [s-exit@macro-tl-notify:1] MacroExit("SIP/391-b563a0e0", "") in new stack
-- Executing [s@macro-tl-userexten-base:14] Goto("SIP/391-b563a0e0", "checkformat") in new stack
-- Goto (macro-tl-userexten-base,s,16)
-- Executing [s@macro-tl-userexten-base:16] GotoIf("SIP/391-b563a0e0", "1?cont1") in new stack
-- Goto (macro-tl-userexten-base,s,18)
-- Executing [s@macro-tl-userexten-base:18] Set("SIP/391-b563a0e0", "RECORD_CALLEE=") in new stack
-- Executing [s@macro-tl-userexten-base:19] Set("SIP/391-b563a0e0", "MY_CHAN=391-b563a0e0") in new stack
-- Executing [s@macro-tl-userexten-base:20] Set("SIP/391-b563a0e0", "MYEXTENSION=391") in new stack
-- Executing [s@macro-tl-userexten-base:21] Set("SIP/391-b563a0e0", "MYID=391") in new stack
-- Executing [s@macro-tl-userexten-base:22] NoOp("SIP/391-b563a0e0", "391") in new stack
-- Executing [s@macro-tl-userexten-base:23] NoOp("SIP/391-b563a0e0", "391") in new stack
-- Executing [s@macro-tl-userexten-base:24] Set("SIP/391-b563a0e0", "RECORD_CALLER=") in new stack
-- Executing [s@macro-tl-userexten-base:25] Set("SIP/391-b563a0e0", "VM=1") in new stack
-- Executing [s@macro-tl-userexten-base:26] Set("SIP/391-b563a0e0", "VMT0=30") in new stack
-- Executing [s@macro-tl-userexten-base:27] Set("SIP/391-b563a0e0", "CFNAEXT=0") in new stack
-- Executing [s@macro-tl-userexten-base:28] Set("SIP/391-b563a0e0", "CFNAAN=") in new stack
-- Executing [s@macro-tl-userexten-base:29] GotoIf("SIP/391-b563a0e0", "1?done_checkrecord") in new stack
-- Goto (macro-tl-userexten-base,s,47)
-- Executing [s@macro-tl-userexten-base:47] NoOp("SIP/391-b563a0e0", "") in new stack
-- Executing [s@macro-tl-userexten-base:48] NoOp("SIP/391-b563a0e0", "") in new stack
-- Executing [s@macro-tl-userexten-base:49] NoOp("SIP/391-b563a0e0", "") in new stack
-- Executing [s@macro-tl-userexten-base:50] NoOp("SIP/391-b563a0e0", "rtT") in new stack
-- Executing [s@macro-tl-userexten-base:51] NoOp("SIP/391-b563a0e0", "") in new stack
-- Executing [s@macro-tl-userexten-base:52] Set("SIP/391-b563a0e0", "TIMEOUT=30") in new stack
-- Executing [s@macro-tl-userexten-base:53] GotoIf("SIP/391-b563a0e0", "1?next1") in new stack
-- Goto (macro-tl-userexten-base,s,55)
-- Executing [s@macro-tl-userexten-base:55] Set("SIP/391-b563a0e0", "CDR(userfield)=") in new stack
-- Executing [s@macro-tl-userexten-base:56] Set("SIP/391-b563a0e0", "SCREEN=") in new stack
-- Executing [s@macro-tl-userexten-base:57] GotoIf("SIP/391-b563a0e0", "1?getblock") in new stack
-- Goto (macro-tl-userexten-base,s,62)
-- Executing [s@macro-tl-userexten-base:62] Set("SIP/391-b563a0e0", "BLOCK=") in new stack
-- Executing [s@macro-tl-userexten-base:63] GotoIf("SIP/391-b563a0e0", "1?getrecord") in new stack
-- Goto (macro-tl-userexten-base,s,67)
-- Executing [s@macro-tl-userexten-base:67] Set("SIP/391-b563a0e0", "RECORD=") in new stack
-- Executing [s@macro-tl-userexten-base:68] NoOp("SIP/391-b563a0e0", "calleridnum=391 ") in new stack
-- Executing [s@macro-tl-userexten-base:69] GotoIf("SIP/391-b563a0e0", "1?screening") in new stack
-- Goto (macro-tl-userexten-base,s,100)
-- Executing [s@macro-tl-userexten-base:100] GotoIf("SIP/391-b563a0e0", "1?recording") in new stack
-- Goto (macro-tl-userexten-base,s,125)
-- Executing [s@macro-tl-userexten-base:125] GotoIf("SIP/391-b563a0e0", "1?forwarding") in new stack
-- Goto (macro-tl-userexten-base,s,127)
-- Executing [s@macro-tl-userexten-base:127] Set("SIP/391-b563a0e0", "FORWARD=1") in new stack
-- Executing [s@macro-tl-userexten-base:128] GotoIf("SIP/391-b563a0e0", "0?notforwarded") in new stack
-- Executing [s@macro-tl-userexten-base:129] Set("SIP/391-b563a0e0", "__CALLFWD=1") in new stack
-- Executing [s@macro-tl-userexten-base:130] Set("SIP/391-b563a0e0", "FORWARD_NUM=99389683") in new stack
-- Executing [s@macro-tl-userexten-base:131] GotoIf("SIP/391-b563a0e0", "0?notforwarded") in new stack
-- Executing [s@macro-tl-userexten-base:132] Dial("SIP/391-b563a0e0", "Local/99389683@from-inside|30|rtT") in new stack
-- Called 99389683@from-inside
-- Executing [99389683@from-inside:1] Macro("Local/99389683@from-inside-f639,2", "tl-set-variables2|from-inside-redir") in new stack
-- Executing [s@macro-tl-set-variables2:1] Set("Local/99389683@from-inside-f639,2", "tenant=") in new stack
-- Executing [s@macro-tl-set-variables2:2] Set("Local/99389683@from-inside-f639,2", "CDR(userfield)=") in new stack
-- Executing [s@macro-tl-set-variables2:3] Set("Local/99389683@from-inside-f639,2", "MOH=fastplusad200802") in new stack
-- Executing [s@macro-tl-set-variables2:4] GotoIf("Local/99389683@from-inside-f639,2", "1 ?setmoh") in new stack
-- Goto (macro-tl-set-variables2,s,6)
-- Executing [s@macro-tl-set-variables2:6] SetMusicOnHold("Local/99389683@from-inside-f639,2", "fastplusad200802") in new stack
-- Executing [s@macro-tl-set-variables2:7] Goto("Local/99389683@from-inside-f639,2", "from-inside-redir|99389683|1") in new stack
-- Goto (from-inside-redir,99389683,1)
== Channel 'Local/99389683@from-inside-f639,2' jumping out of macro 'tl-set-variables2'
-- Executing [99389683@from-inside-redir:1] Macro("Local/99389683@from-inside-f639,2", "KMDialoutAgent|60|SIP/PRDSER|""|""|""") in new stack
-- Executing [s@macro-KMDialoutAgent:1] Set("Local/99389683@from-inside-f639,2", "DIALED_NUMBER=99389683") in new stack
-- Executing [s@macro-KMDialoutAgent:2] NoOp("Local/99389683@from-inside-f639,2", ""Caller id=391"") in new stack
-- Executing [s@macro-KMDialoutAgent:3] GotoIf("Local/99389683@from-inside-f639,2", "0 ?agentcallout") in new stack
-- Executing [s@macro-KMDialoutAgent:4] NoOp("Local/99389683@from-inside-f639,2", ""Normal caller detected"") in new stack
-- Executing [s@macro-KMDialoutAgent:5] Macro("Local/99389683@from-inside-f639,2", "tl-dialout-base|60|SIP/PRDSER|""|""|""") in new stack
-- Executing [s@macro-tl-dialout-base:1] Set("Local/99389683@from-inside-f639,2", "status=") in new stack
-- Executing [s@macro-tl-dialout-base:2] GotoIf("Local/99389683@from-inside-f639,2", "1?enabled") in new stack
-- Goto (macro-tl-dialout-base,s,4)
-- Executing [s@macro-tl-dialout-base:4] Set("Local/99389683@from-inside-f639,2", "i=2") in new stack
-- Executing [s@macro-tl-dialout-base:5] Set("Local/99389683@from-inside-f639,2", "MY_CHAN=99389683@from-inside-f639,2") in new stack
-- Executing [s@macro-tl-dialout-base:6] Set("Local/99389683@from-inside-f639,2", "MYEXTENSION=99389683@from") in new stack
-- Executing [s@macro-tl-dialout-base:7] Set("Local/99389683@from-inside-f639,2", "MYID=99389683@from") in new stack
-- Executing [s@macro-tl-dialout-base:8] NoOp("Local/99389683@from-inside-f639,2", "99389683@from") in new stack
-- Executing [s@macro-tl-dialout-base:9] NoOp("Local/99389683@from-inside-f639,2", "99389683@from") in new stack
-- Executing [s@macro-tl-dialout-base:10] SetAMAFlags("Local/99389683@from-inside-f639,2", "billing") in new stack
-- Executing [s@macro-tl-dialout-base:11] Set("Local/99389683@from-inside-f639,2", "RECORD=") in new stack
-- Executing [s@macro-tl-dialout-base:12] GotoIf("Local/99389683@from-inside-f639,2", "1?done_checkrecord") in new stack
-- Goto (macro-tl-dialout-base,s,21)
-- Executing [s@macro-tl-dialout-base:21] NoOp("Local/99389683@from-inside-f639,2", "") in new stack
-- Executing [s@macro-tl-dialout-base:22] NoOp("Local/99389683@from-inside-f639,2", "") in new stack
-- Executing [s@macro-tl-dialout-base:23] NoOp("Local/99389683@from-inside-f639,2", "") in new stack
-- Executing [s@macro-tl-dialout-base:24] NoOp("Local/99389683@from-inside-f639,2", "wav49") in new stack
-- Executing [s@macro-tl-dialout-base:25] Set("Local/99389683@from-inside-f639,2", "temp=") in new stack
-- Executing [s@macro-tl-dialout-base:26] GotoIf("Local/99389683@from-inside-f639,2", "1?accountcodeallowed") in new stack
-- Goto (macro-tl-dialout-base,s,28)
-- Executing [s@macro-tl-dialout-base:28] Set("Local/99389683@from-inside-f639,2", "CALLERID(num)=") in new stack
-- Executing [s@macro-tl-dialout-base:29] Set("Local/99389683@from-inside-f639,2", "CALLERID(name)=OTENET") in new stack
-- Executing [s@macro-tl-dialout-base:30] Set("Local/99389683@from-inside-f639,2", "temp=") in new stack
-- Executing [s@macro-tl-dialout-base:31] GotoIf("Local/99389683@from-inside-f639,2", "1?calleridallowed") in new stack
-- Goto (macro-tl-dialout-base,s,33)
-- Executing [s@macro-tl-dialout-base:33] NoOp("Local/99389683@from-inside-f639,2", "314") in new stack
-- Executing [s@macro-tl-dialout-base:34] NoOp("Local/99389683@from-inside-f639,2", "99389683@from") in new stack
-- Executing [s@macro-tl-dialout-base:35] Set("Local/99389683@from-inside-f639,2", "CLI=22693314") in new stack
-- Executing [s@macro-tl-dialout-base:36] GotoIf("Local/99389683@from-inside-f639,2", "1?chkcallfwd") in new stack
-- Goto (macro-tl-dialout-base,s,41)
-- Executing [s@macro-tl-dialout-base:41] NoOp("Local/99389683@from-inside-f639,2", "99389683@from") in new stack
-- Executing [s@macro-tl-dialout-base:42] NoOp("Local/99389683@from-inside-f639,2", "") in new stack
-- Executing [s@macro-tl-dialout-base:43] NoOp("Local/99389683@from-inside-f639,2", "1") in new stack
-- Executing [s@macro-tl-dialout-base:44] GotoIf("Local/99389683@from-inside-f639,2", "0?setcalleridasabove") in new stack
-- Executing [s@macro-tl-dialout-base:45] Set("Local/99389683@from-inside-f639,2", "CDR(accountcode)=") in new stack
-- Executing [s@macro-tl-dialout-base:46] NoOp("Local/99389683@from-inside-f639,2", "TL/314/CFRETAINCLI") in new stack
-- Executing [s@macro-tl-dialout-base:47] GotoIf("Local/99389683@from-inside-f639,2", "0?setcalleridasabove") in new stack
-- Executing [s@macro-tl-dialout-base:48] GotoIf("Local/99389683@from-inside-f639,2", "1?setcalleridasabove") in new stack
-- Goto (macro-tl-dialout-base,s,50)
-- Executing [s@macro-tl-dialout-base:50] Set("Local/99389683@from-inside-f639,2", "CALLERID(num)=22693314") in new stack
-- Executing [s@macro-tl-dialout-base:51] Set("Local/99389683@from-inside-f639,2", "temp=") in new stack
-- Executing [s@macro-tl-dialout-base:52] GotoIf("Local/99389683@from-inside-f639,2", "1?onetrunk|1") in new stack
-- Goto (macro-tl-dialout-base,onetrunk,1)
-- Executing [onetrunk@macro-tl-dialout-base:1] Set("Local/99389683@from-inside-f639,2", "FULLNAME=SIP/PRDSER") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:2] Set("Local/99389683@from-inside-f639,2", "TRUNK=PRDSER") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:3] GotoIf("Local/99389683@from-inside-f639,2", "0?failed|1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:4] Set("Local/99389683@from-inside-f639,2", "TRUNK_STATUS=1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:5] GotoIf("Local/99389683@from-inside-f639,2", "0?next|1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:6] Set("Local/99389683@from-inside-f639,2", "ROUTE_PREPEND=""") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:7] Set("Local/99389683@from-inside-f639,2", "ROUTE_STRIP=""") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:8] Set("Local/99389683@from-inside-f639,2", "ROUTE_OPTIONS=""") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:9] Set("Local/99389683@from-inside-f639,2", "NUMBER_TO_DIAL=99389683") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:10] Set("Local/99389683@from-inside-f639,2", "TRUNK_DIALSTRING=") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:11] Set("Local/99389683@from-inside-f639,2", "TRUNK_NAME=PRDSER") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:12] Set("Local/99389683@from-inside-f639,2", "TRUNK_PROTOCOL=SIP") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:13] Set("Local/99389683@from-inside-f639,2", "TRUNK_STRIP=0") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:14] Set("Local/99389683@from-inside-f639,2", "TRUNK_PREPEND=") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:15] Set("Local/99389683@from-inside-f639,2", "CALLERID(num)=22693314") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:16] GotoIf("Local/99389683@from-inside-f639,2", "0?dial-CUSTOM|1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:17] Goto("Local/99389683@from-inside-f639,2", "dial-SIP|1") in new stack
-- Goto (macro-tl-dialout-base,dial-SIP,1)
-- Executing [dial-SIP@macro-tl-dialout-base:1] GotoIf("Local/99389683@from-inside-f639,2", "1?NoOpt") in new stack
-- Goto (macro-tl-dialout-base,dial-SIP,4)
-- Executing [dial-SIP@macro-tl-dialout-base:4] GotoIf("Local/99389683@from-inside-f639,2", "0?noarg") in new stack
-- Executing [dial-SIP@macro-tl-dialout-base:5] Dial("Local/99389683@from-inside-f639,2", "SIP/99389683@PRDSER|60") in new stack
-- Called 99389683@PRDSER
What is wrong?
Also is this implemented with Diversion header or is it just a simple replacement of the from number?
Thanks
KM