Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-31 Thread Vardan Harutyunyan
Hello, What version of Asterisk You are use? And what version of A2Billing You are use? If You use version 1.4.X of Asterisk You can put call-limit string in sip.conf for this trunk If You use A2B ver 1.7 and Asterk 1.4 you can announce this trunk using sip config in A2B, and the are

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-31 Thread bruce bruce
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. Thanks, On Mon, May 31, 2010 at 2:27 AM, Vardan Harutyunyan hvarda...@gmail.comwrote: Hello, What version of

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-31 Thread Vardan Harutyunyan
No, if You use call-limit the call will be dropped. How you put your customer on hold? If you use queue and the customer hear the music onhold, he will be billed for this connection I have try use queue and a2b, and I have do all connection using local channel, so I have become all is works, and

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-31 Thread bruce bruce
Hi Vardan, 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

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-31 Thread Vardan Harutyunyan
A ok, I think I have understand what you want. The first, are you want that a2b calculate the buying price? If it for you not so important, the you can use failover trunk in a2b. Try this. If no, then you can you dialplan to explain what he must do on hangup cause. I use AEL. For example,

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-31 Thread Helius Ferreira
Using in you dialplan.. GROUP GROUP_LIST GROUP_MATCH_COUNT to limit outgoing calls per trunk CLI show function GROUP_LIST Returns a space separated list of all the groups set on a channel. Helius On Monday 31 May 2010 22:38:52 Vardan Harutyunyan wrote: A ok, I think I have understand

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-30 Thread bruce bruce
Thanks for the tip. I have been checking those two options. Would you be able to provide an example of how GROUP or GROUP_COUNT may check for a trunk usuage? From what I see is that you have to assing certain routes a group and then count the group, but how I do include a trunk in the group?

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-30 Thread Jonathan Thurman
On Sun, May 30, 2010 at 9:37 AM, bruce bruce bruceb...@gmail.com wrote: Thanks for the tip. I have been checking those two options. Would you be able to provide an example of how GROUP or GROUP_COUNT may check for a trunk usuage? Here is how I do it. It is based on Asterisk 1.6.1.x, and I

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-30 Thread bruce bruce
Thanks for that. It very well detailed. 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. I might resort back to using sed

[asterisk-users] Best way to limit outgoing calls per trunk

2010-05-29 Thread bruce bruce
Hi Guys, 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: exten = s,1,answer exten = s,n,System(/tmp/check.sh) check.sh: check

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-29 Thread Zeeshan Zakaria
Should be solid. After all munin also works on the same lines and it works solid. Zeeshan A Zakaria -- Sent from my Android phone with K-9 Mail. On 2010-05-29 5:12 PM, bruce bruce bruceb...@gmail.com wrote: Hi Guys, I am looking to use System() function along with some bash scripting to

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-29 Thread Jonathan Thurman
On Sat, May 29, 2010 at 2:02 PM, bruce bruce bruceb...@gmail.com wrote: Hi Guys, 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

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-29 Thread bruce bruce
Thanks for the input. Is there no Asterisk command in dialplan to return true or false or number of channels per trunk rather than going to bash script? 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. A bit detail would be

Re: [asterisk-users] Best way to limit outgoing calls per trunk

2010-05-29 Thread Steve Edwards
On Sat, 29 May 2010, bruce bruce wrote: 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: Using the GROUP/GROUP_COUNT