Fix FastAGI working with non default ports (bug 2539)
authorJames Golovich <james@gnuinter.net>
Wed, 29 Sep 2004 03:32:58 +0000 (03:32 +0000)
committerJames Golovich <james@gnuinter.net>
Wed, 29 Sep 2004 03:32:58 +0000 (03:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3852 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 6268441..7325d78 100755 (executable)
@@ -136,7 +136,7 @@ static int launch_netscript(char *agiurl, char *argv[], int *fds, int *efd, int
        if ((c = strchr(host, ':'))) {
                *c = '\0';
                c++;
-               port = atoi(c + 1);
+               port = atoi(c);
        }
        if (efd) {
                ast_log(LOG_WARNING, "AGI URI's don't support Enhanced AGI yet\n");