Hi Alberto. I never have used FastAGI, usually i use MAGI(), but AFIAK, just use a pipe to pass the arguments:<br>
<br>
Agi(script_source|firstargument|nextone|andnextone|etc)<br>
<br>
if youre curiose enough, you can check this on the asterisk source
res/res_agi.c function static int agi_exec_full(). It does the
following to get the arguments:<br>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">
<pre>while ((stringp = strsep(&tmp, "|"))) {
argv[argc++] = stringp;
}<br><br></pre>after
that pass the arguments argv to the function static int
launch_script that decides wether to launch a network script, or fork()<br>
<br>
I have checked this on version 1.2.1, but i remember that has not changed much lately.<br>
<br>
Best Regards<br>
<br>
<div><span class="gmail_quote">On 12/20/05, <b class="gmail_sendername">Alberto Sagredo</b> <<a href="mailto:asagredo@peoplecall.com">asagredo@peoplecall.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Has anyone an example to pass variables to a fagi script?<br><br>I have succesfull made some examples with traditional AGIs, but i could<br>not find a way to do with FastAGI.<br><br>Regards<br><br>--<br>Alberto Sagredo<br>
Departamento Técnico<br>Peoplecall<br><br><br>Email : <a href="mailto:asagredo@peoplecall.com">asagredo@peoplecall.com</a><br>Blog: <a href="http://www.voip-novatos.es">http://www.voip-novatos.es</a><br><br>Tel./Ph. : +34 91 120 5080
<br>Tel. Dir./Dir. Ph.: 700 755 048<br>Fax./Fax.: +34 91 661 9460<br><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>
Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div>
<br><br clear="all"><br>-- <br>"Su nombre es GNU/Linux, no solamente Linux, mas info en <a href="http://www.gnu.org">http://www.gnu.org</a>"