Thanks for that. It very well detailed. <div><br></div><div>I am not sure if I can use GROUP and GROUP_COUNT now that I see how it's used. You see, the call is placed by A2Billing so I don't have a control over setting GROUP increase and so if there is a call GROUP_COUNT won't work.</div>
<div><br></div><div>I might resort back to using "sed" and "awk" to take output of "core show channels" and check for it's state. I will appreciate some guru of "sed" to to give me a true false for a channel up or not using "sed" and "core show channels"</div>
<div><br></div><div>Thanks,</div><div>Bruce<br><br><div class="gmail_quote">On Sun, May 30, 2010 at 1:47 PM, Jonathan Thurman <span dir="ltr"><<a href="mailto:jonathan@thurmantech.com">jonathan@thurmantech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sun, May 30, 2010 at 9:37 AM, bruce bruce <<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a>> wrote:<br>
> Thanks for the tip. I have been checking those two options. Would you be<br>
> able to provide an example of how GROUP or GROUP_COUNT may check for a trunk<br>
> usuage?<br>
<br>
</div>Here is how I do it. It is based on Asterisk 1.6.1.x, and I created a<br>
generic sub-routine to call for limiting trunks to a specific number<br>
of calls. The code is documented, so it should give you a good idea<br>
of how to use it.<br>
<br>
<a href="http://thurmantech.com/node/7" target="_blank">http://thurmantech.com/node/7</a><br>
<font color="#888888"><br>
-Jonathan<br>
</font><div><div></div><div class="h5"><br>
<br>
>From what I see is that you have to assing certain routes a group<br>
> and then count the group, but how I do include a trunk in the group?<br>
> Thanks<br>
><br>
> On Sat, May 29, 2010 at 7:07 PM, Steve Edwards <<a href="http://asterisk.org" target="_blank">asterisk.org</a>@<a href="http://sedwards.com" target="_blank">sedwards.com</a>><br>
> wrote:<br>
>><br>
>> On Sat, 29 May 2010, bruce bruce wrote:<br>
>><br>
>> > I am looking to use System() function along with some bash scripting to<br>
>> > determine if a Trunk is being used during certain time of the day or<br>
>> > not. Here is what I have in mind. Please guide me if you know a better<br>
>> > way:<br>
>><br>
>> Using the GROUP/GROUP_COUNT functions in the dialplan is a better way.<br>
>><br>
>> Using system() will mean creating a bunch of processes (each<br>
>> sed/awk/cut/etc command).<br>
>><br>
>> --<br>
>> Thanks in advance,<br>
>> -------------------------------------------------------------------------<br>
>> Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
>> Newline Fax: +1-760-731-3000<br>
>><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>
><br>
><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>
><br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">_____________________________________________________________________<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>
</div></div></blockquote></div><br></div>