From b1b4db95c2e6f2efaf23ba2ed0ae6b7149e218b1 Mon Sep 17 00:00:00 2001 From: James Golovich Date: Wed, 29 Sep 2004 03:32:58 +0000 Subject: Fix FastAGI working with non default ports (bug 2539) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3852 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_agi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/res_agi.c') diff --git a/res/res_agi.c b/res/res_agi.c index 626844150..7325d781b 100755 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -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"); -- cgit v1.2.3