Lets say I have to make 40 phone calls quickly. If I use the AMI interface to originate a call, close the connection, open another connection etc... This works. but is slow... If I open the AMI interface and originate a call - DONT close the interface , get the response, originate another call, some of the calls are missed. even though I get OK response. (All calls are Async mode). If I open the AMI interface and orignate a call - DONT close the interface but sleep 1 second (again slow). this seems to work. Question is - how do I open the AMI, send the originate command, get the valid response and send the next originate command and have it actually do it. How is that done ? I am using asterisk 13.25.0, Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190311/d99bd70e/attachment.html>
On Tuesday 12 March 2019 at 01:19:37, Jerry Geis wrote:> Lets say I have to make 40 phone calls quickly. > > If I use the AMI interface to originate a call, close the connection, open > another connection etc... > This works. but is slow...How about using call files instead? https://wiki.asterisk.org/wiki/display/AST/Asterisk+Call+Files https://www.voip-info.org/asterisk-auto-dial-out/ I think that may work better for you. Antony. -- This sentence contains exacly three erors. Please reply to the list; please *don't* CC me.
On Mon, 11 Mar 2019, Jerry Geis wrote:> If I use the AMI interface to originate a call, close the connection, > open another connection etc...This works. but is slow...Would opening multiple AMI connections be an option? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281
On 3/12/19 11:03 AM, Steve Edwards wrote:> On Mon, 11 Mar 2019, Jerry Geis wrote: > >> If I use the AMI interface to originate a call, close the connection, >> open another connection etc...This works. but is slow... > > Would opening multiple AMI connections be an option? >You should be able to send multiple originate commands without having to wait as long as you are using the "Async" option in your originate action. That way you just send all your calls and then wait for an "OriginateResponse" event to know the result of each of your calls. Just remember to also use an "ActionID" to identify each call so you can match the response event. -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez +52 (55)8116-9161
Thanks all for the suggestions. 1) ActionID. I was not using, so that could definitely have helped. 2) I was using Async already. 3) I changed to open multiple AMI connections - Worked like a champ. 4) Used to use call files but slow to first action... So changed to AMI long time ago. Thanks, Jerry>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190312/982b873a/attachment.html>