<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 7:22 PM, Steve Edwards <span dir="ltr"><<a href="mailto:asterisk.org@sedwards.com" target="_blank">asterisk.org@sedwards.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, 17 Jun 2013, Thorsten Göllner wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
does anyone have experience with Asterisk-AGI-Scripts in PHP while using pthreads in PHP? Are there any limitations or problems known?<br>
</blockquote>
<br></div>
I've written 'pthread-ed' AGIs in C.<br>
<br>
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.<br>
<br>
My use case was playing a file ('Please wait while we authorize your credit card') while processing the credit request.<br>
<br>
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.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Thanks in advance,<br>
------------------------------<u></u>------------------------------<u></u>-------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000</font></span><br>--<br>
<br></blockquote><div>Steve,<br><br></div><div>Would you mind sharing a sample of your pthread-ed C AGI? <br></div><div>This will help someone like me who has written AGI in Perl/PHP and now exploring C AGI.<br><br></div>
<div>Thanks,<br></div><div>--Satish<br></div></div><br></div></div>