From b0a516034f11a4dc1098bcc5859d1e70ea9f2777 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 8 Jan 2005 22:40:56 +0000 Subject: [PATCH] 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 --- res/res_agi.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.2