I'm testing ChanIsAvail context and it is not working for me.
exten => 55,1,ChanIsAvail(SIP/11&SIP/21)
exten => 55,2,Cut(theChannel=AVAILCHAN,,1)
exten => 55,3,Dial(${theChannel},r)
exten => 55,4,Hangup
exten => 55,102,Goto(s,4)
It is not dialing SIP/21 when I'm talking on SIP/11, it execute
Hangup instruction instruction.
According to notes:
The channels are checked in the order listed, returning the first
available channel in the list in ${AVAILCHAN}.
so when my SIP/21 is available, and it is, it should ring it but it is
not.
--
#Joseph
Hi!> I'm testing ChanIsAvail context and it is not working for me. > > exten => 55,1,ChanIsAvail(SIP/11&SIP/21) > exten => 55,2,Cut(theChannel=AVAILCHAN,,1) > exten => 55,3,Dial(${theChannel},r) > exten => 55,4,Hangup > exten => 55,102,Goto(s,4) > > According to notes: > The channels are checked in the order listed, returning the first > available channel in the list in ${AVAILCHAN}. > > so when my SIP/21 is available, and it is, it should ring it but it is > not.This is a guess: "SIP/11" is not an appropriate channel name. Use "show channels" or "sip show channels" to see the difference. Cheers, Philipp