[asterisk-users] PHP AGI : handle Event /AGI session

Danny Nicholas danny at debsinc.com
Fri Nov 20 15:22:21 CST 2009


Steve is quite the Guru.  I'll second his advice about writing things in C.
I actually do Perl, but that's just because I haven't been able to devote
the time to polishing my C skills.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of mickael ropars
Sent: Friday, November 20, 2009 3:18 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] PHP AGI : handle Event /AGI session

 

thanks a lot for your advice. In my side, I am using a PHP agi library 

you seems to have a lot experience on asterisk ...

Regards

Mickael

2009/11/20 Steve Edwards <asterisk.org at sedwards.com>

>> On Fri, 20 Nov 2009, mickael ropars wrote:
>>
>>> someone send a URL to call someone a PHP script (script 1) is launch
>>> and in its I configure Astmanager in order to make an originating call
>>> then my script stop running and Asterisk continue processing the call
>>> in an extension when hangup occurs I execute another AGI script
>>> (script 2).

When you write your AGI script*, do yourself a favor and use an existing
library -- don't try to write your own.

The AGI protocol is not complex, it's just been my experience that
everybody gets it wrong the first time around :)

*) I write my AGIs in C. If you expect performance to ever be an issue,
you can execute hundreds of AGIs written in a compiled language (like C)
in the time it will take to load a script interpreter (like Perl or PHP)
and parse a single script.

--

Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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/20091120/01cb9b91/attachment.htm 


More information about the asterisk-users mailing list