On Fri, Mar 8, 2013 at 11:55 AM, Tamer Higazi <th982a@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@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

 

Products | Solutions | Events | Contact | Wiki | Facebook | Twitter`| | YouTube