Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-10-03 Thread Lenz Emilitri
The problem I see with this approach is that you usually do not just want to dial out 10 calls at a time, but you will want to keep track of what happened to them and (in case) reschedule them. So you will likely need to monitor them over AMI to make sure they went through, and you need to

Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-28 Thread A J Stiles
On Friday 28 September 2012, Patrick Archibald wrote: Hi, Is there a way to move 100 .call files in to /var/spool/asterisk/outgoing/ at once and have Asterisk call at maximum 10 at a time? Yes: Move them in batches of 10. Could be as simple as last if ++$n_files 9; if the script is in

Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-28 Thread Leif Madsen
On 27/09/12 09:01 PM, Patrick Archibald wrote: Is there a way to move 100 .call files in to /var/spool/asterisk/outgoing/ at once and have Asterisk call at maximum 10 at a time? snip I can certainly write a program to limit the number of simultaneous outgoing calls but before I do that I

Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-28 Thread Aldo Bergamini
On 28 Sep 2012, at 13:27, Leif Madsen leif.mad...@asteriskdocs.org wrote: Generally the preferred method when you're doing this programatically anyways is to use an external script through the Asterisk Manager Interface to generate your calls. Luckily, Russell Bryant has recently create

Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-28 Thread Leif Madsen
On 28/09/12 08:11 AM, Aldo Bergamini wrote: I am happy to hear that a new release of The Book is in the works! That's good! I'd hate to be working on something no one wanted :) I will have a look at Russell's script as soon as I am back at my work chair: there is however something I am very

Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-28 Thread Aldo Bergamini
On 28 Sep 2012, at 14:24, Leif Madsen leif.mad...@asteriskdocs.org wrote: That's good! I'd hate to be working on something no one wanted :) ;-))) Oh heck ya. You can start up an Asterisk instance and just start doing things with it via your programs. That's the immense power of AMI; it's

Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-28 Thread Patrick Archibald
Thanks everyone for the guidance on my outgoing call question. And I'm looking forward to Asterisk: The Definitive Guide 4e book too! Thanks, PLA -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to

[asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-27 Thread Patrick Archibald
Hi, Is there a way to move 100 .call files in to /var/spool/asterisk/outgoing/ at once and have Asterisk call at maximum 10 at a time? The maxcalls setting in asterisk.conf will limit the number of calls but not gracefully. The calls over 10 just fail. I need to queue them up. I can certainly

Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-27 Thread Patrick Lists
On 09/28/2012 03:01 AM, Patrick Archibald wrote: Hi, Is there a way to move 100 .call files in to /var/spool/asterisk/outgoing/ at once and have Asterisk call at maximum 10 at a time? Afaik that is not possible. Wouldn't it make more sense to move call files in batches of 10 to outgoing/?

Re: [asterisk-users] 100 outgoing calls - 10 at a time - /var/spool/asterisk/outgoing/

2012-09-27 Thread Logan Bibby
I agree. A script that read the spool directory, sent enough files to equal 10, wait a few seconds, check again and move more would do the trick. - Logan On Sep 27, 2012 11:27 PM, Patrick Lists asterisk-l...@puzzled.xs4all.nl wrote: On 09/28/2012 03:01 AM, Patrick Archibald wrote: Hi, Is