[Asterisk-Users] Call roll-over question...

Chris A. Icide chris at netgeeks.net
Sat Mar 6 20:28:25 MST 2004


At 06:54 PM 3/6/2004, you wrote:
>At 03:52 PM 3/6/2004, you wrote:
>>try this in extentions.conf, it should do what you want...
>>
>>exten => 2001,1,ChanIsAvail(SIP/2001&SIP/3001)
>>exten => 2001,2,SubString,ToDial=${AVAILCHAN}|0|8
>>exten => 2001,3,Dial(${ToDial},20)
>>exten => 2001,4,Voicemail(u2001)
>>exten => 2001,5,Hangup
>>exten => 2001,104,Voicemail(b2001)
>>exten => 2001,105,Hangup
>>
>>exten => 3001,1,ChanIsAvail(SIP/3001&SIP/2001)
>>exten => 3001,2,SubString,ToDial=${AVAILCHAN}|0|8
>>exten => 3001,3,Dial(${ToDial},20)
>>exten => 3001,4,Voicemail(u3001)
>>exten => 3001,5,Hangup
>>exten => 3001,104,Voicemail(b3001)
>>exten => 3001,105,Hangup
>
>
>Another example that functions as I think you want is below.  I like the 
>example above, but if you want to stay away from variables for some 
>reason, the function below does the same as above for calling 2001.  You 
>can copy and reverse the numbers for 3001 as well.


Actually, the above example doesn't work.  In this particular case, with 
your 7960 phone set to no call waiting. ChanIsAvail will return the 
original channel as being available if you are using it, and you'll get 
back a message from the cisco when you try to ring the active line, saying 
'Got SIP response 486 "Busy here" back from xxx.xxx.xxx.xxx' and then 
SIP/2001-abcd is busy.

At least thats what happened when I tested the above dialplan.  This brings 
me to the question of whether or not there is a command or a form of a 
command that actually does a test on whether a channel is active at that 
moment.  I guess you could do a check on the priority ${PRIORITY}, but then 
why not just move on to the next priority as the decision point instead of 
mucking around with variables?  Well, I'm just typing my though process 
now, and yes, it's slow enough for me to keep up typing....

-Chris







More information about the asterisk-users mailing list