[asterisk-users] Asterisk / PHP-AGI / pthreads

Satish Barot satish4asterisk at gmail.com
Thu Jun 20 00:18:24 CDT 2013


On Mon, Jun 17, 2013 at 7:22 PM, Steve Edwards <asterisk.org at sedwards.com>wrote:

> On Mon, 17 Jun 2013, Thorsten Göllner wrote:
>
>  does anyone have experience with Asterisk-AGI-Scripts in PHP while using
>> pthreads in PHP? Are there any limitations or problems known?
>>
>
> I've written 'pthread-ed' AGIs in C.
>
> The only 'pthread related' limitation I stumbled into is that you can only
> execute a single AGI request at a time -- which is kind of obvious if you
> understand the AGI protocol.
>
> My use case was playing a file ('Please wait while we authorize your
> credit card') while processing the credit request.
>
> Since our card processor almost always returned the credit response before
> the end of the file, the 'user experience' was that the credit request was
> instantaneous.
>
> --
> Thanks in advance,
> ------------------------------**------------------------------**
> -------------
> Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
> Newline                                              Fax: +1-760-731-3000
> --
>
> Steve,

Would you mind sharing a sample of your pthread-ed C AGI?
This will help someone like me who has written AGI in Perl/PHP and now
exploring C AGI.

Thanks,
--Satish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130620/e9814691/attachment.htm>


More information about the asterisk-users mailing list