[asterisk-users] AVAILSTATUS always 0
Danny Nicholas
danny at debsinc.com
Thu Oct 4 09:59:09 CDT 2012
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens
Sent: Thursday, October 04, 2012 9:48 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] AVAILSTATUS always 0
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.
Kind regards,
Jonas.
Could be a realtime issue. What do the other 3 variables return?
-= Info about application 'ChanIsAvail' =-
[Synopsis]
Check channel availability
[Description]
This application will check to see if any of the specified channels are
available.
This application sets the following channel variables:
${AVAILCHAN}: The name of the available channel, if one exists
${AVAILORIGCHAN}: The canonical channel name that was used to create the
channel
${AVAILSTATUS}: The device state for the device
${AVAILCAUSECODE}: The cause code returned when requesting the channel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121004/1c3f0a0a/attachment.htm>
More information about the asterisk-users
mailing list