Thanks for the advice, but I have to keep the customer on hold till the line becomes available. Is that possible by the method you mentioned? I am using A2B 1.7 and Asterisk 1.4.<div><br></div><div>Thanks,</div><div><br><br>
<div class="gmail_quote">On Mon, May 31, 2010 at 2:27 AM, Vardan Harutyunyan <span dir="ltr"><<a href="mailto:hvardan71@gmail.com">hvardan71@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
What version of Asterisk You are use?<br>
And what version of A2Billing You are use?<br>
If You use version 1.4.X of Asterisk You can put call-limit string in<br>
sip.conf for this trunk<br>
<br>
If You use A2B ver 1.7 and Asterk 1.4 you can announce this trunk using<br>
sip config in A2B, and the are call-limit via web.<br>
<br>
And how I know, in 1.6 is no more call-limit in sip.conf<br>
<br>
<br>
--<br>
Vardan Harutyunyan,<br>
Senior System Administrator<br>
<br>
Enterprise Incubator Foundation<br>
123 Hovsep Emin Street,<br>
Yerevan 0051, Republic of Armenia<br>
Tel: + 374 10 219735<br>
Fax: + 374 10 219777<br>
E-mail: <a href="mailto:info@eif.am">info@eif.am</a><br>
<a href="http://www.eif-it.com" target="_blank">www.eif-it.com</a><br>
<div class="im"><br>
bruce bruce wrote:<br>
> Thanks for that. It very well detailed.<br>
><br>
> I am not sure if I can use GROUP and GROUP_COUNT now that I see how it's<br>
> used. You see, the call is placed by A2Billing so I don't have a control<br>
> over setting GROUP increase and so if there is a call GROUP_COUNT won't<br>
> work.<br>
><br>
> I might resort back to using "sed" and "awk" to take output of "core<br>
> show channels" and check for it's state. I will appreciate some guru of<br>
> "sed" to to give me a true false for a channel up or not using "sed" and<br>
> "core show channels"<br>
><br>
> Thanks,<br>
> Bruce<br>
><br>
> On Sun, May 30, 2010 at 1:47 PM, Jonathan Thurman<br>
</div><div class="im">> <<a href="mailto:jonathan@thurmantech.com">jonathan@thurmantech.com</a> <mailto:<a href="mailto:jonathan@thurmantech.com">jonathan@thurmantech.com</a>>> wrote:<br>
><br>
> On Sun, May 30, 2010 at 9:37 AM, bruce bruce <<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a>>> wrote:<br>
> > Thanks for the tip. I have been checking those two options. Would<br>
> you be<br>
> > able to provide an example of how GROUP or GROUP_COUNT may check<br>
> for a trunk<br>
> > usuage?<br>
><br>
> 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>
><br>
> -Jonathan<br>
><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><br>
</div>> <<a href="http://asterisk.org" target="_blank">http://asterisk.org</a>>@<a href="http://sedwards.com" target="_blank">sedwards.com</a> <<a href="http://sedwards.com" target="_blank">http://sedwards.com</a>>><br>
<div class="im">> > wrote:<br>
> >><br>
> >> On Sat, 29 May 2010, bruce bruce wrote:<br>
> >><br>
> >> > I am looking to use System() function along with some bash<br>
> scripting to<br>
> >> > determine if a Trunk is being used during certain time of the<br>
> day or<br>
> >> > not. Here is what I have in mind. Please guide me if you know<br>
> a better<br>
> >> > way:<br>
> >><br>
> >> Using the GROUP/GROUP_COUNT functions in the dialplan is a<br>
> 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>
> -------------------------------------------------------------------------<br>
> >> Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a><br>
</div>> <mailto:<a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>> Voice: +1-760-468-3867 PST<br>
<div class="im">> >> Newline Fax:<br>
> +1-760-731-3000<br>
> >><br>
> >> --<br>
> >><br>
> _____________________________________________________________________<br>
> >> -- Bandwidth and Colocation Provided by<br>
> <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<br>
> 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>
> --<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>
</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>