Thanks for the input.<div><br></div><div>Is there no Asterisk command in dialplan to return true or false or number of channels per trunk rather than going to bash script?</div><div><br></div><div>And if I do the bash script how can I use "sed" and "awk" to search for the right words to see if trunk is in use or not.</div>
<div><br></div><div>A bit detail would be really helpful.</div><div><br></div><div>Thanks,</div><div>Bruce<br><br><div class="gmail_quote">On Sat, May 29, 2010 at 5:28 PM, Zeeshan Zakaria <span dir="ltr"><<a href="mailto:zishanov@gmail.com">zishanov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p>Should be solid. After all munin also works on the same lines and it works solid.<br></p>
<p>Zeeshan A Zakaria</p>
<p>--<br>
Sent from my Android phone with K-9 Mail.</p>
<p></p><blockquote type="cite"><div><div></div><div class="h5">On 2010-05-29 5:12 PM, "bruce bruce" <<a href="mailto:bruceb444@gmail.com" target="_blank">bruceb444@gmail.com</a>> wrote:<br><br>Hi Guys,<div>
<br></div><div>I am looking to use System() function along with some bash scripting to determine if a Trunk is being used during certain time of the day or not. Here is what I have in mind. Please guide me if you know a better way:</div>
<div><br></div><div>exten => s,1,answer</div><div>exten => s,n,System(/tmp/check.sh)</div><div><br></div><div>check.sh:</div><div>check EPOCH time => do an IF for certain times => Allow mutiple calls in certain times and only single call at certain times</div>
<div>return back to Asterisk context and report if Trunk would allow more channels or not...</div><div><br></div><div>Something along those lines. Should this be a solid thing to do? I am looking to use GotoIF and `asterisk -rx "sip show channels"` to grab results or `asterisk -rx "core show channels"`</div>
<div><br></div><div>Thanks</div>
<br></div></div>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote><p></p>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>