projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix FastAGI working with non default ports (bug 2539)
[asterisk/asterisk.git]
/
res
/
res_agi.c
diff --git
a/res/res_agi.c
b/res/res_agi.c
index
6268441
..
7325d78
100755
(executable)
--- 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++;
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");
}
if (efd) {
ast_log(LOG_WARNING, "AGI URI's don't support Enhanced AGI yet\n");