diff options
author | Mark Spencer <markster@digium.com> | 2004-08-17 23:57:36 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-08-17 23:57:36 +0000 |
commit | 1587fd6b841072527244abe5194a0e0754a77ba4 (patch) | |
tree | 6bfffc01b53bc1b8fe8d1ca2e67042af1338a25e | |
parent | ce51451ca6311cba8718d8dce0bc0b8776bbbf69 (diff) |
Fix port numbers in IAX2 and iax2prov (bug #2261)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | channels/chan_iax2.c | 5 | ||||
-rwxr-xr-x | channels/iax2-provision.c | 2 | ||||
-rwxr-xr-x | configs/iax.conf.sample | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 4f1ce01f2..9aab5dcc3 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -6601,10 +6601,9 @@ static int set_config(char *config_file, struct sockaddr_in* sin){ } v = ast_variable_browse(cfg, "general"); while(v) { - if (!strcasecmp(v->name, "port")){ - ast_log(LOG_WARNING, "Ignoring port for now\n"); -#if 0 + if (!strcasecmp(v->name, "bindport")){ sin->sin_port = ntohs(atoi(v->value)); +#if 0 if(last_port==0){ last_port=sin->sin_port; #if 0 diff --git a/channels/iax2-provision.c b/channels/iax2-provision.c index 08964ebfe..7f7189af7 100755 --- a/channels/iax2-provision.c +++ b/channels/iax2-provision.c @@ -289,7 +289,7 @@ static int iax_template_parse(struct iax_template *cur, struct ast_config *cfg, foundportno = 1; } else { cur->serverport = x; - foundserverportno = 0; + foundserverportno = 1; } } else ast_log(LOG_WARNING, "Ignoring invalid %s '%s' for '%s' at line %d\n", v->name, v->value, s, v->lineno); diff --git a/configs/iax.conf.sample b/configs/iax.conf.sample index ab822d547..5ca6f9099 100755 --- a/configs/iax.conf.sample +++ b/configs/iax.conf.sample @@ -7,7 +7,7 @@ ; local addresses). ; [general] -;port=5036 +;bindport=4569 ;bindaddr=192.168.0.1 ; ; Set iaxcompat to yes if you plan to use layered |