From: Russell Bryant Date: Sat, 8 Jan 2005 22:40:56 +0000 (+0000) Subject: send script parameter with FastAGI (bug #3270) X-Git-Tag: 1.0.11.1~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0a516034f11a4dc1098bcc5859d1e70ea9f2777;p=thirdparty%2Fasterisk.git send script parameter with FastAGI (bug #3270) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4721 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_agi.c b/res/res_agi.c index dac64bc489..e095668090 100755 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -185,6 +185,9 @@ static int launch_netscript(char *agiurl, char *argv[], int *fds, int *efd, int return -1; } ast_log(LOG_DEBUG, "Wow, connected!\n"); + /* Send the script parameter */ + if (!ast_strlen_zero(script)) + fdprintf(s, "agi_network_script: %s\n", script); fds[0] = s; fds[1] = s; *opid = -1;