]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
send script parameter with FastAGI (bug #3270)
authorRussell Bryant <russell@russellbryant.com>
Sat, 8 Jan 2005 22:40:56 +0000 (22:40 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 8 Jan 2005 22:40:56 +0000 (22:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4721 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index dac64bc48924b09618e43698fbc273969c91ca12..e095668090090a920a8071e30b62e438c74ec4c3 100755 (executable)
@@ -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;