[asterisk-users] AMI perl daemon

vip killa vipkilla at gmail.com
Mon May 16 07:19:39 CDT 2011


If the script were called each time an extension were dialed in a dialplan
for example, wouldn't each new instance of the script need to re-connect to
AMI, run command, disconnect?

On Mon, May 16, 2011 at 8:16 AM, Alex Balashov <abalashov at evaristesys.com>wrote:

> 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/
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>              http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>  http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110516/c78bfe27/attachment.htm>


More information about the asterisk-users mailing list