Dial Plan: When using goto or changing extension calls drop
Posted: Fri Sep 10, 2010 11:46 am
Using GoAutoDial CE 2.0 RC2.
Everything is working properly and setup.
Now I need to modify the dial plan to allow for dynamic callerid's on outbound calls and transfers. Here is my dial plan.
exten => _101NXXNXXXXXX,1,AGI(bt-caller-id.php,L1,C2,${EXTEN:3})
exten => _101NXXNXXXXXX,n,Set(__BTCID=${RETURNID})
exten => _101NXXNXXXXXX,n,Set(__LINE1=${EXTEN:3})
exten => _101NXXNXXXXXX,n,Goto(${EXTEN:3},3)
exten => _102NXXNXXXXXX,1,AGI(bt-caller-id.php,L1,C1,${EXTEN:3})
exten => _102NXXNXXXXXX,n,Set(__BTCID=${RETURNID})
exten => _102NXXNXXXXXX,n,Set(__LINE1=${EXTEN:3})
exten => _102NXXNXXXXXX,n,Goto(${EXTEN:3},3)
exten => _NXXNXXXXXX,1,AGI(bt-caller-id.php,L2,,${EXTEN},${LINE1})
exten => _NXXNXXXXXX,2,Set(__BTCID=${RETURNID})
exten => _NXXNXXXXXX,3,Set(CALLERID(all)=${BTCID})
exten => _NXXNXXXXXX,n,AGI(agi://127.0.0.1:4577/call_log,${EXTEN})
exten => _NXXNXXXXXX,n,Dial(SIP/+1${EXTEN}@PROVIDER-SIP-A,,tTor)
exten => _NXXNXXXXXX,n,Hangup
As soon as the call is answered or shows answered status the DeadAGI runs as if the call was hung up, the agent doesn't receive a call, and it's never brought into the conference.
My assumption is this has something to do with call_log and the EXTEN being passed to it? However, when I move it into the different levels 101,102 it still has the same behavior.
Is there a link with more detailed information on how call_log functions or how to build more complex dial plans similar to what is being done here?
The reason I'm using 101 and 102 is this is how I will distinguish between C1 or C2 (campaign1 or 2) to determine which cid is being looked up from the agi.
Thanks!
Everything is working properly and setup.
Now I need to modify the dial plan to allow for dynamic callerid's on outbound calls and transfers. Here is my dial plan.
exten => _101NXXNXXXXXX,1,AGI(bt-caller-id.php,L1,C2,${EXTEN:3})
exten => _101NXXNXXXXXX,n,Set(__BTCID=${RETURNID})
exten => _101NXXNXXXXXX,n,Set(__LINE1=${EXTEN:3})
exten => _101NXXNXXXXXX,n,Goto(${EXTEN:3},3)
exten => _102NXXNXXXXXX,1,AGI(bt-caller-id.php,L1,C1,${EXTEN:3})
exten => _102NXXNXXXXXX,n,Set(__BTCID=${RETURNID})
exten => _102NXXNXXXXXX,n,Set(__LINE1=${EXTEN:3})
exten => _102NXXNXXXXXX,n,Goto(${EXTEN:3},3)
exten => _NXXNXXXXXX,1,AGI(bt-caller-id.php,L2,,${EXTEN},${LINE1})
exten => _NXXNXXXXXX,2,Set(__BTCID=${RETURNID})
exten => _NXXNXXXXXX,3,Set(CALLERID(all)=${BTCID})
exten => _NXXNXXXXXX,n,AGI(agi://127.0.0.1:4577/call_log,${EXTEN})
exten => _NXXNXXXXXX,n,Dial(SIP/+1${EXTEN}@PROVIDER-SIP-A,,tTor)
exten => _NXXNXXXXXX,n,Hangup
As soon as the call is answered or shows answered status the DeadAGI runs as if the call was hung up, the agent doesn't receive a call, and it's never brought into the conference.
My assumption is this has something to do with call_log and the EXTEN being passed to it? However, when I move it into the different levels 101,102 it still has the same behavior.
Is there a link with more detailed information on how call_log functions or how to build more complex dial plans similar to what is being done here?
The reason I'm using 101 and 102 is this is how I will distinguish between C1 or C2 (campaign1 or 2) to determine which cid is being looked up from the agi.
Thanks!