Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-26 Thread Steve Edwards
On Tue, 26 Feb 2013, Paul Belanger wrote: You don't want to use PHP for your daemon, change to another scripting language (EG: python). Why? I'm just a 'c' weenie, but why would Python be a better choice than PHP? -- Thanks in advance,

Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-26 Thread Eric Wieling
Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Edwards Sent: Tuesday, February 26, 2013 11:12 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk AMI - Create a daemon

Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-26 Thread A J Stiles
On Tuesday 26 February 2013, Steve Edwards wrote: On Tue, 26 Feb 2013, Paul Belanger wrote: You don't want to use PHP for your daemon, change to another scripting language (EG: python). Why? I'm just a 'c' weenie, but why would Python be a better choice than PHP? Because that poster

Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-26 Thread Steve Edwards
On Tue, 26 Feb 2013, Eric Wieling wrote: For me, PHP with its C-like syntax... For me, C with it's C-like syntax... -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST

Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-26 Thread Tzafrir Cohen
On Tue, Feb 26, 2013 at 11:29:44AM -0500, Eric Wieling wrote: PHP has had memory leak issues in the past, though modern versions are apparently much better. The thing is, when you write a daemon you must EXPECT it to exit at some point, maybe the socket went away or the system restarted or

Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-26 Thread Don Kelly
On Tue, 26 Feb 2013, Eric Wieling wrote: For me, PHP with its C-like syntax... Steve Edward said: For me, C with it's C-like syntax... So that brings up the question I have. Shouldn't a daemon be a compiled process? --Don --

Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-26 Thread Steve Edwards
On Tue, 26 Feb 2013, Don Kelly wrote: So that brings up the question I have. Shouldn't a daemon be a compiled process? Since C is my sharpest tool, the question is somewhat moot :) Once you get past the overhead of parsing a scripting language like PHP or Python, I think the efficiency

Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-25 Thread Alex Villací­s Lasso
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

Re: [asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-25 Thread Paul Belanger
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

[asterisk-users] Asterisk AMI - Create a daemon (background process)

2013-02-24 Thread Shahid H
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