Displaying 1 result from an estimated 1 matches for "getchannelst".
Did you mean:
getchannels
2010 Feb 17
3
chan_local and Originate
...intended to first call extension 100 in the callback context,
and then when that is answered, call 123456789 in the trunk context. I
have the following in the callback 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 t...