From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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

 

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to