Hi Alberto. I never have used FastAGI, usually i use MAGI(), but AFIAK, just use a pipe to pass the arguments:

Agi(script_source|firstargument|nextone|andnextone|etc)

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:

while ((stringp = strsep(&tmp, "|"))) {
       argv[argc++] = stringp;
}

after that pass the arguments argv  to the function static int launch_script that decides wether to launch a network script, or fork()

I have checked this on version 1.2.1, but i remember that has not changed much lately.

Best Regards

On 12/20/05, Alberto Sagredo <[EMAIL PROTECTED]> wrote:
Has anyone an example to pass variables to a fagi script?

I have succesfull made some examples with traditional AGIs, but i could
not find a way to do with FastAGI.

Regards

--
Alberto Sagredo
Departamento Técnico
Peoplecall


Email : [EMAIL PROTECTED]
Blog: http://www.voip-novatos.es

Tel./Ph. : +34 91 120 5080
Tel. Dir./Dir. Ph.: 700 755 048
Fax./Fax.: +34 91 661 9460


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to