On Sat, Jan 05, 2008 at 11:54:41AM +0100, Anselm Martin Hoffmeister wrote:

> Using cronjobs is possibly a bad idea because you create load spikes, if
> e.g. 5000 asterisk -rx commands are issued within a few seconds. 

Why would you do that?

If you want to write 5000 commands, write them directly to the socket or
use the manager interface.

I posted one a simple script for writing batch commands to the
asterisk.ctl socket using socat. You have to strip the '\n' in the end
of each command, and write every command in a separate write (I used a
'sleep 0.001' for that).

-- 
               Tzafrir Cohen
icq#16849755              jabber:[EMAIL PROTECTED]
+972-50-7952406           mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

_______________________________________________
--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

Reply via email to