[asterisk-users] Problem with ChanIsAvail

Dan Journo dan at keshercommunications.com
Tue Nov 3 06:14:49 CST 2009


Hi all,

 

I am having a problem with ChanIsAvail. It always returns the same
result, regardless of whether an extension is available or not.

It always returns 0 Unknown Status.

 

This is my dialplan.

 

exten => _2XX,1,ChanIsAvail(SIP/winsor_${EXTEN}|s)

exten => _2XX,2,Verbose(0, ${AVAILSTATUS})

exten => _2XX,3,GoToIf($[${AVAILSTATUS} = "1"]?4:5) 

exten => _2XX,4,SIPAddHeader(Call-Info:
<sip:83.222.226.126>\;answer-after=0)

exten => _2XX,5,Page(SIP/winsor_${EXTEN})

 

I found a mention of the problem here however, the patch that was
recommended gave the same result.

https://issues.asterisk.org/view.php?id=14426

 

I am using the "s" option with ChanIsAvail because if I run the page, it
interrupts the current call.

I need to give the caller the busy signal when a minimum of 1 channel is
in use.

 

Can anyone suggest how to test whether the user is on the phone? 

 

Many thanks

Dan Journo

Kesher Communications Ltd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091103/d93e6123/attachment.htm 


More information about the asterisk-users mailing list