search for: __originalcallernum

Displaying 1 result from an estimated 1 matches for "__originalcallernum".

2010 Feb 17
3
chan_local and Originate
...llback context: exten => 100,1,Answer exten => 100,2,Wait(2) exten => 100,3,NoOP(${ANSWERED} ${USEREXT}) exten => 100,4,AGI(getChannelState.agi|${USEREXT}) exten => 100,5,GotoIf($[${EXISTS(${ANSWERED})}]?6:2) exten => 100,6,Set(CDR(accountcode)=${USERFIELD}) exten => 100,7,Set(__OriginalCallerNum=c2c ${USEREXT}) exten => 100,8,Goto(handleq,s,new) exten => 100,9,Hangup The getChannelState AGI script just waits until the call to 123456789 is answered before putting the caller into a queue. The problem is that the second leg of the Originate, the call to 123456789 at trunk, never happe...