<div dir="ltr">On Fri, Mar 8, 2013 at 11:55 AM, Tamer Higazi <span dir="ltr">&lt;<a href="mailto:th982a@googlemail.com" target="_blank">th982a@googlemail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi people!<br>
I have a A200 board running, and I want to figure out in the dialplan<br>
through it&#39;s variables if the channel is in use or not that if a second<br>
call comes inside to be routed somewhere else, let us say to my voicebox.<br>
<br>
I want to check if freetdm/1/1 is busy at the moment....<br>
<br>
<br>
Has anyone an idea how to accomplish this?!<br>
<br></blockquote><div><br></div><div>I just pushed to git master a change so you can use &quot;ftdm_usage 1 1&quot;, 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.<br>
</div><div><br clear="all"><div><table style="width:486.3pt;border-collapse:collapse" border="0" cellpadding="0" cellspacing="0" width="648"><tbody><tr style="height:60.55pt"><td style="border-style:dotted none none;border-top:1pt dotted rgb(128,176,214);padding:1.45pt 5.75pt;height:60.55pt">
<p style="margin:0px;line-height:15px"><b><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)" lang="PT-BR">Moises Silva<br></span></b><b><i><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="EN-CA">Manager, Software Engineering</span></i></b><b><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)" lang="PT-BR"></span></b></p>
<p style="margin:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA"><a href="mailto:msilva@sangoma.com" target="_blank">msilva@sangoma.com</a></span></p>
<p style="margin:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA">Sangoma Technologies</span></p><p style="margin:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA">100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada</span><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(255,192,0)" lang="EN-CA"></span></p>
</td><td style="width:140.45pt;border-style:dotted none none;border-top:1pt dotted rgb(128,176,214);padding:1.45pt 5.75pt;height:60.55pt" width="187"><p style="margin:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA"><br>
t.   +1 800 388 2475 (N. America)</span></p><p style="margin:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA">t.   +1 905 474 1990 x128</span></p>
<p style="margin:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA">f.   +1 905 474 9223</span></p><p style="margin:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(31,73,125)" lang="EN-CA"> </span></p>
</td><td rowspan="2" style="width:111.55pt;border-style:dotted none;border-top:1pt dotted rgb(128,176,214);border-bottom:1pt dotted rgb(128,176,214);padding:1.45pt 5.75pt;height:60.55pt" width="149"><p style="margin:0px;line-height:15px">
<a href="http://www.sangoma.com/contact?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email+signatures" target="_blank"><b><span style="color:rgb(31,73,125);text-decoration:none"><img height="15" border="0" width="96"></span></b></a><span style="color:rgb(31,73,125)"></span></p>
</td></tr><tr><td colspan="2" style="width:374.75pt;border-style:none none dotted;border-bottom:1pt dotted rgb(128,176,214);padding:1.45pt 5.75pt" width="500"><p style="margin:0px;line-height:15px"><a href="http://sangoma.com/products?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Products</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://sangoma.com/solutions?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Solutions</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://sangoma.com/about_us/events?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Events</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://www.sangoma.com/contact?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Contact</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://wiki.sangoma.com/?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Wiki</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Facebook</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://www.twitter.com/sangoma?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Twitter</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">`| | </span><a href="http://www.youtube.com/sangomatechnologies?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">YouTube</span></a><span style="font-size:8pt;line-height:12px;color:rgb(31,73,125)"></span></p>
</td></tr></tbody></table><p style="margin:0px"><span><br></span></p></div>
<br></div></div></div></div>