[asterisk-users] AVAILSTATUS always 0
Joshua Colp
jcolp at digium.com
Fri Oct 5 07:45:12 CDT 2012
Jonas Kellens wrote:
> Hello,
>
> I notice that the function ChanIsAvail always returns result : 0
>
> It does not matter if the realtime SIP peer is registered or not.
>
> How come ??
>
> My dialplan :
>
> exten => s,n,ChanIsAvail(SIP/${SIPPEERNAME})
> exten => s,n,NoOp(availstatus = ${AVAILSTATUS})
>
> ${SIPPEERNAME} = sip username from realtime Mysql database.
Additionally,
Even without the 's' option if ${AVAILCHAN} contains a value it can be
dialed, within the eyes of Asterisk. The remote side may choose to
decline the call but that can only be determined by actually placing a call.
Cheers,
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-users
mailing list