Shahid H
2013-Feb-24 12:30 UTC
[asterisk-users] Asterisk AMI - Create a daemon (background process)
I wanted to create a daemon (background process) in PHP. A daemon will use socket to connect with Asterisk AMI to send events and listen the actions. A daemon will also listen the commands from agents via HTTP, for example: A agent pressed a hang up button on a browser - it will send http command to a daemon. A daemon received a command and will then send Hang Up Action to AMI. How should a daemon process be designed to listen multiple actions and events? For example: 50 agents currently on the calls and how should a daemon to monitor the Actions/Events from 50 agents? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130224/0ebf401e/attachment.htm>
Alex Villacís Lasso
2013-Feb-25 18:11 UTC
[asterisk-users] Asterisk AMI - Create a daemon (background process)
El 24/02/13 07:30, Shahid H escribi?:> I wanted to create a daemon (background process) in PHP. A daemon will use socket to connect with Asterisk AMI to send events and listen the actions. > > A daemon will also listen the commands from agents via HTTP, for example: A agent pressed a hang up button on a browser - it will send http command to a daemon. A daemon received a command and will then send Hang Up Action to AMI. > > How should a daemon process be designed to listen multiple actions and events? For example: 50 agents currently on the calls and how should a daemon to monitor the Actions/Events from 50 agents? >You may want to take a look to the Elastix CallCenter code. This project has a daemon component to implement the autodialer, written in PHP. This code already solves the AMI connection issue and the multiple agent issue. http://elastix.svn.sourceforge.net/viewvc/elastix/trunk/apps/extras/callcenter/
Paul Belanger
2013-Feb-26 06:12 UTC
[asterisk-users] Asterisk AMI - Create a daemon (background process)
On 13-02-24 07:30 AM, Shahid H wrote:> I wanted to create a daemon (background process) in PHP. A daemon will use > socket to connect with Asterisk AMI to send events and listen the actions. > > A daemon will also listen the commands from agents via HTTP, for example: > A agent pressed a hang up button on a browser - it will send http command > to a daemon. A daemon received a command and will then send Hang Up Action > to AMI. > > How should a daemon process be designed to listen multiple actions and > events? For example: 50 agents currently on the calls and how should a > daemon to monitor the Actions/Events from 50 agents? >You don't want to use PHP for your daemon, change to another scripting language (EG: python). -- Paul Belanger | PolyBeacon, Inc. Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode) Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger
On 26 Feb 2013, at 16:52, Gary Carr wrote:> Is it possible to issue the POKE to a end point from the CLI? Our asterisk servers is not seeing some end points drop off and I would like to create a script to manually check end points.http://www.geekinter.net/iaxping.txt May be of use to you. Just dug it out of my subversion repo of useful bits so make need some poking (excuse the pun) to get it running. No warranty etc etc. Steve