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
This commit is contained in:
Russell Bryant
2005-01-08 22:40:56 +00:00
parent 2880956743
commit b0a516034f

View File

@@ -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;