[Asterisk-Users] Fast AGi Variables
Moises Silva
moises.silva at gmail.com
Tue Dec 20 08:13:12 MST 2005
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 <asagredo at peoplecall.com> 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 : asagredo at peoplecall.com
> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051220/d46b0360/attachment.htm
More information about the asterisk-users
mailing list