Hi Vardan,<div><br></div><div>I am using use_dnid=yes and then setting the Account Code in Asterisk dialplan before sending the call to A2Billing _x. context which automatically dials. So, before the call goes to A2Billing, I can check to see if there is a channel up or not. I am not sure how the local channel you mentioned works. Would appreciate it if you share.</div>
<div><br></div><div>Can you determine the number of channels in the queue?</div><div><br></div><div>One of my trunks allows for 3 calls certain time of the day and sometime it allows for only 1 channel. Hence the need for this.</div>
<div><br></div><div>Thanks,</div><div><br><br><div class="gmail_quote">On Mon, May 31, 2010 at 11:39 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;">No, if You use call-limit the call will be dropped.<br>
How you put your customer on hold?<br>
If you use queue and the customer hear the music onhold, he will be<br>
billed for this connection<br>
I have try use queue and a2b, and I have do all connection using local<br>
channel, so I have become all is works, and the customer after speaking<br>
with agents and transferred to international number, is billed only for<br>
international call.<br>
<br>
Sorry for my english, if any question, please write. I will try to explain.<br>
<br>
Thanks<br>
<br>
--<br>
<div class="im">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>
<br>
bruce bruce wrote:<br>
</div><div class="im">> Thanks for the advice, but I have to keep the customer on hold till the<br>
> line becomes available. Is that possible by the method you mentioned? I<br>
> am using A2B 1.7 and Asterisk 1.4.<br>
><br>
> Thanks,<br>
><br>
><br>
> On Mon, May 31, 2010 at 2:27 AM, Vardan Harutyunyan <<a href="mailto:hvardan71@gmail.com">hvardan71@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:hvardan71@gmail.com">hvardan71@gmail.com</a>>> wrote:<br>
><br>
> 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>
</div>> E-mail: <a href="mailto:info@eif.am">info@eif.am</a> <mailto:<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> <<a href="http://www.eif-it.com" target="_blank">http://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<br>
> how it's<br>
> > used. You see, the call is placed by A2Billing so I don't have a<br>
> control<br>
> > over setting GROUP increase and so if there is a call GROUP_COUNT<br>
> 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<br>
> guru of<br>
> > "sed" to to give me a true false for a channel up or not using<br>
> "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>
> > <<a href="mailto:jonathan@thurmantech.com">jonathan@thurmantech.com</a> <mailto:<a href="mailto:jonathan@thurmantech.com">jonathan@thurmantech.com</a>><br>
</div>> <mailto:<a href="mailto:jonathan@thurmantech.com">jonathan@thurmantech.com</a> <mailto:<a href="mailto:jonathan@thurmantech.com">jonathan@thurmantech.com</a>>>><br>
<div class="im">> wrote:<br>
> ><br>
> > On Sun, May 30, 2010 at 9:37 AM, bruce bruce<br>
> <<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a> <mailto:<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a>><br>
</div><div><div></div><div class="h5">> > <mailto:<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a> <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<br>
> created a<br>
> > generic sub-routine to call for limiting trunks to a specific<br>
> number<br>
> > of calls. The code is documented, so it should give you a<br>
> 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<br>
> 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>
> <<a href="http://asterisk.org" target="_blank">http://asterisk.org</a>><br>
> > <<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>
> <<a href="http://sedwards.com" target="_blank">http://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<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>
> -------------------------------------------------------------------------<br>
> > >> Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> <mailto:<a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>><br>
</div></div>> > <mailto:<a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> <mailto:<a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>>><br>
<div><div></div><div class="h5">> Voice: +1-760-468-3867 PST<br>
> > >> Newline Fax:<br>
> > +1-760-731-3000<br>
> > >><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>
> _____________________________________________________________________<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>
> _____________________________________________________________________<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<br>
> 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>
> --<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></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>