[asterisk-users] ChanIsAvail querry

ABBAS SHAKEEL shakeel.abbas.qau at gmail.com
Wed Nov 25 03:59:20 CST 2009


Hello

We need to know if a channel is not in use and can be used to dial a number
etc..
I have tried the ChanIsAvail function with different parameters.
ie ChanIsAvail(DAHDI/1&DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc

no matter the channel is busy or not it always return 0 .

Please suggest



FYI
 ChanIsAvail(Technology/resource[&Technology2/resource2...][,options]):
This application will check to see if any of the specified channels are
available.
  Options:
    a - Check for all available channels, not only the first one.
    s - Consider the channel unavailable if the channel is in use at all.
    t - Simply checks if specified channels exist in the channel list
        (implies option s).
This application sets the following channel variable upon completion:
  AVAILCHAN     - the name of the available channel, if one exists
  AVAILORIGCHAN - the canonical channel name that was used to create the
channel
  AVAILSTATUS   - the status code for the available channel


-- 
Best Regards
Shakeel Abbas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091125/0f258ab5/attachment.htm 


More information about the asterisk-users mailing list