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: [email protected] | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter:
https://twitter.com/pabelanger
--
_____________________________________________________________________
-- 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