On Mon, Jun 17, 2013 at 7:22 PM, Steve Edwards <asterisk....@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 sedwa...@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
-- _____________________________________________________________________ -- 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