Hi all, Just ran into some issue with the originate AMI command. It seems that there is a limit of around 120 calls I can place with the originate command simutanously. By that I mean sending Asterisk a lot of originate command very fast. Anyone know if there is a limitation? Thnx. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070910/876c50f0/attachment.htm
On 9/11/07, Wai Wu <wkwu at calltrol.com> wrote:> Just ran into some issue with the originate AMI command. It seems that there > is a limit of around 120 calls I can place with the originate command > simutanously. By that I mean sending Asterisk a lot of originate command > very fast. Anyone know if there is a limitation? Thnx.What did you mean by "simultaneously"? Opening 120 manager connections, and originating call at exactly the same time? I doubt.. So, probably there is some interval - within second/minute, etc.. And how many manager connections do you use? Maybe asterisk have some limit of them. Also - i think, there is some limit of asterisk accepting commands sequentially from one connection. Btw, what is your CPU load, when creating those 120 calls "instantly"? Regards, Atis -- Atis Lezdins, IT Responsible of BEST Riga, atis at BEST.eu.org ICQ: 142239285 Skype: atis.lezdins Cell Phone: +371 28806004 [Tele2, Latvia] Work phone: +1 800 7502835 [Toll free, USA] ?BEST? -> www.BEST.eu.org
Matt Riddell
2007-Sep-10 21:27 UTC
[asterisk-users] Asterisk Manager API - Originate command
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wai Wu wrote:> Hi all, > > Just ran into some issue with the originate AMI command. It seems that > there is a limit of around 120 calls I can place with the originate > command simutanously. By that I mean sending Asterisk a lot of originate > command very fast. Anyone know if there is a limitation? Thnx.First off, you should be using Async: true Secondly, you shouldn't really be doing 120 simultaneous calls. If your server can take say 300 concurrent calls, you will probably need to start those up with about 30ms between them. If you really need to start 120 calls all at the identical time, you probably want to be looking at clustering Asterisk servers. In SmoothTorque we set a minimum value for delay between calls, then have a funnel which accepts calls from predictive campaigns. The funnel knows about the connections to the Asterisk servers, and distributes the calls in a round robin fashion (assuming all servers are up). Each server has a queue which allows calls sent to that server to back up, and if a queue gets too full calls won't be sent to that server. If, after stopping the sending of calls to a server, the queue does not empty out, the server is placed into an inactive state, and a server marked as standby is moved into the active state. Any calls which remain in the queue are redistributed to other servers. Hope that helps! - -- Kind Regards, Matt Riddell Director _______________________________________________ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://feeds.venturevoip.com/AsteriskNews (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5bbeDQNt8rg0Kp4RArWFAKCoMPxaDmVLwPD+hupU9T8n+NuFYQCguq8c T3+G284pc4LV/JMlj13v8gU=oaJj -----END PGP SIGNATURE-----
Just to clear things up. It was one TCP connection to the manager interface and the originate commands are send in a batch. I was able to get away with 80 calls in a batch. Anything more than that is not good. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Atis Sent: Monday, September 10, 2007 5:26 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk Manager API - Originate command On 9/11/07, Wai Wu <wkwu at calltrol.com> wrote:> Just ran into some issue with the originate AMI command. It seems that> there is a limit of around 120 calls I can place with the originate > command simutanously. By that I mean sending Asterisk a lot of > originate command very fast. Anyone know if there is a limitation?Thnx. What did you mean by "simultaneously"? Opening 120 manager connections, and originating call at exactly the same time? I doubt.. So, probably there is some interval - within second/minute, etc.. And how many manager connections do you use? Maybe asterisk have some limit of them. Also - i think, there is some limit of asterisk accepting commands sequentially from one connection. Btw, what is your CPU load, when creating those 120 calls "instantly"? Regards, Atis -- Atis Lezdins, IT Responsible of BEST Riga, atis at BEST.eu.org ICQ: 142239285 Skype: atis.lezdins Cell Phone: +371 28806004 [Tele2, Latvia] Work phone: +1 800 7502835 [Toll free, USA] ?BEST? -> www.BEST.eu.org _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --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
Thanks for sharing your experience. I will play around with the Asteirsk server tomorrow again. I took a look at it just before I left the office. It has loads of crap. It's got all those non-essential things and X windows running. Also, I can probably be able to get away with starting a call every 30-50ms. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matt Riddell Sent: Monday, September 10, 2007 5:28 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk Manager API - Originate command -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wai Wu wrote:> Hi all, > > Just ran into some issue with the originate AMI command. It seems that> there is a limit of around 120 calls I can place with the originate > command simutanously. By that I mean sending Asterisk a lot of > originate command very fast. Anyone know if there is a limitation?Thnx. First off, you should be using Async: true Secondly, you shouldn't really be doing 120 simultaneous calls. If your server can take say 300 concurrent calls, you will probably need to start those up with about 30ms between them. If you really need to start 120 calls all at the identical time, you probably want to be looking at clustering Asterisk servers. In SmoothTorque we set a minimum value for delay between calls, then have a funnel which accepts calls from predictive campaigns. The funnel knows about the connections to the Asterisk servers, and distributes the calls in a round robin fashion (assuming all servers are up). Each server has a queue which allows calls sent to that server to back up, and if a queue gets too full calls won't be sent to that server. If, after stopping the sending of calls to a server, the queue does not empty out, the server is placed into an inactive state, and a server marked as standby is moved into the active state. Any calls which remain in the queue are redistributed to other servers. Hope that helps! - -- Kind Regards, Matt Riddell Director _______________________________________________ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://feeds.venturevoip.com/AsteriskNews (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5bbeDQNt8rg0Kp4RArWFAKCoMPxaDmVLwPD+hupU9T8n+NuFYQCguq8c T3+G284pc4LV/JMlj13v8gU=oaJj -----END PGP SIGNATURE----- _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --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
Just checked. I do have Async set to yes. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Wai Wu Sent: Monday, September 10, 2007 7:28 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk Manager API - Originate command Thanks for sharing your experience. I will play around with the Asteirsk server tomorrow again. I took a look at it just before I left the office. It has loads of crap. It's got all those non-essential things and X windows running. Also, I can probably be able to get away with starting a call every 30-50ms. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matt Riddell Sent: Monday, September 10, 2007 5:28 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk Manager API - Originate command -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wai Wu wrote:> Hi all, > > Just ran into some issue with the originate AMI command. It seems that> there is a limit of around 120 calls I can place with the originate > command simutanously. By that I mean sending Asterisk a lot of > originate command very fast. Anyone know if there is a limitation?Thnx. First off, you should be using Async: true Secondly, you shouldn't really be doing 120 simultaneous calls. If your server can take say 300 concurrent calls, you will probably need to start those up with about 30ms between them. If you really need to start 120 calls all at the identical time, you probably want to be looking at clustering Asterisk servers. In SmoothTorque we set a minimum value for delay between calls, then have a funnel which accepts calls from predictive campaigns. The funnel knows about the connections to the Asterisk servers, and distributes the calls in a round robin fashion (assuming all servers are up). Each server has a queue which allows calls sent to that server to back up, and if a queue gets too full calls won't be sent to that server. If, after stopping the sending of calls to a server, the queue does not empty out, the server is placed into an inactive state, and a server marked as standby is moved into the active state. Any calls which remain in the queue are redistributed to other servers. Hope that helps! - -- Kind Regards, Matt Riddell Director _______________________________________________ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://feeds.venturevoip.com/AsteriskNews (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5bbeDQNt8rg0Kp4RArWFAKCoMPxaDmVLwPD+hupU9T8n+NuFYQCguq8c T3+G284pc4LV/JMlj13v8gU=oaJj -----END PGP SIGNATURE----- _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --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 _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --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