I want to have Asterisk Dial individual numbers and play a recording if each answers. If they don't answer then the code rolls to the next number. Should I set up a spreadsheet somewhere and load with the numbers? Or, an AGI script? 1. Dial number 1 2. If connect, then play message 3. If connect, finish message and move to next number 4. Dial 1 - 10,000 in succession
First of all, if your connection is DAHDI/POTS, forget about this. That being said, the simple thing to do is to set up a context that plays your recording and do a script to read through the list of numbers and call each using AMI and the context. You could use the call queue, but that wouldn't give you any control. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Thomas Perron Sent: Monday, December 21, 2009 7:04 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] script I want to have Asterisk Dial individual numbers and play a recording if each answers. If they don't answer then the code rolls to the next number. Should I set up a spreadsheet somewhere and load with the numbers? Or, an AGI script? 1. Dial number 1 2. If connect, then play message 3. If connect, finish message and move to next number 4. Dial 1 - 10,000 in succession _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
2009/12/21 Thomas Perron <thomas.perron at gmail.com>:> I want to have Asterisk Dial individual numbers and play a recording > if each answers. > If they don't answer then the code rolls to the next number. > > Should I set up a spreadsheet somewhere and load with the numbers? > Or, an AGI script? > > 1. ?Dial number 1 > 2. ?If connect, then play message > 3. ?If connect, finish message and move to next number > 4. ?Dial 1 - 10,000 in successionI've developed several solutions using a combination of AMI to originate calls and AGI to personalize messages. If message is the same for all destinations, you can skip using AGI. And if you need to make the calls just once you might want to take a look at asterisk call files instead of AMI, probably they will suit your needs, depending on how much control do you need over the calls. Roman blog: http://it-result.me
Neither. Use call files or the AMI Originate command. -- Sent from mobile device On Dec 21, 2009, at 8:04 AM, Thomas Perron <thomas.perron at gmail.com> wrote:> I want to have Asterisk Dial individual numbers and play a recording > if each answers. > If they don't answer then the code rolls to the next number. > > Should I set up a spreadsheet somewhere and load with the numbers? > Or, an AGI script? > > 1. Dial number 1 > 2. If connect, then play message > 3. If connect, finish message and move to next number > 4. Dial 1 - 10,000 in succession > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users