[asterisk-users] AMI perl daemon

Alex Balashov abalashov at evaristesys.com
Mon May 16 07:16:50 CDT 2011


On 05/16/2011 08:14 AM, vip killa wrote:

> Would anybody know how to run a perl script as a daemon that would stay
> connected to asterisk via AMI?
> Right now, my AMI script connects to the manager interface, originates a
> call, disconnects. The script will be run maybe 20+ per minute. It would
> make more sense to me to have the script run as a daemon and have
> a persistent connection to asterisk's AMI. Thank you in advance for your
> input.

Well, you would just write the Perl script in such a way as to not close 
the connection :-), but continue reading from the socket, ideally in an 
asynchronous manner.

-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the asterisk-users mailing list