summaryrefslogtreecommitdiff
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorJames Golovich <james@gnuinter.net>2004-09-29 03:32:58 +0000
committerJames Golovich <james@gnuinter.net>2004-09-29 03:32:58 +0000
commitb1b4db95c2e6f2efaf23ba2ed0ae6b7149e218b1 (patch)
treeb1b83976b4e5a81caf494733d1a6d1ed3339ec99 /res/res_agi.c
parent01e406626eb746a1b69fe505e5281fb3e988a436 (diff)
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
Diffstat (limited to 'res/res_agi.c')
-rwxr-xr-xres/res_agi.c2
1 files changed, 1 insertions, 1 deletions
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");