[Freeswitch-users] how to check if freetdm channel in use

Moises Silva moises.silva at gmail.com
Fri Mar 8 23:20:04 MSK 2013


On Fri, Mar 8, 2013 at 11:55 AM, Tamer Higazi <th982a at googlemail.com> wrote:

> Hi people!
> I have a A200 board running, and I want to figure out in the dialplan
> through it's variables if the channel is in use or not that if a second
> call comes inside to be routed somewhere else, let us say to my voicebox.
>
> I want to check if freetdm/1/1 is busy at the moment....
>
>
> Has anyone an idea how to accomplish this?!
>
>
I just pushed to git master a change so you can use "ftdm_usage 1 1", this
will return 0 if the channel is not being used at the moment. It may return
1 or more than 1 in some cases if the channel is being used for one call or
more.

*Moises Silva
**Manager, Software Engineering***

msilva at sangoma.com

Sangoma Technologies

100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada


t.   +1 800 388 2475 (N. America)

t.   +1 905 474 1990 x128

f.   +1 905 474 9223



**<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures>

Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`|
| YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130308/e5bc955c/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list