AMI Mulitple Calls Quickly
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
4 thoughts on - AMI Mulitple Calls Quickly
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.
—
Would opening multiple AMI connections be an option?
—
Thanks in advance,
————————————————————————-
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281
—
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