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
1.0
Mark Spencer 21 years ago
parent ce51451ca6
commit 1587fd6b84

@ -6601,10 +6601,9 @@ static int set_config(char *config_file, struct sockaddr_in* sin){
} }
v = ast_variable_browse(cfg, "general"); v = ast_variable_browse(cfg, "general");
while(v) { while(v) {
if (!strcasecmp(v->name, "port")){ if (!strcasecmp(v->name, "bindport")){
ast_log(LOG_WARNING, "Ignoring port for now\n");
#if 0
sin->sin_port = ntohs(atoi(v->value)); sin->sin_port = ntohs(atoi(v->value));
#if 0
if(last_port==0){ if(last_port==0){
last_port=sin->sin_port; last_port=sin->sin_port;
#if 0 #if 0

@ -289,7 +289,7 @@ static int iax_template_parse(struct iax_template *cur, struct ast_config *cfg,
foundportno = 1; foundportno = 1;
} else { } else {
cur->serverport = x; cur->serverport = x;
foundserverportno = 0; foundserverportno = 1;
} }
} else } else
ast_log(LOG_WARNING, "Ignoring invalid %s '%s' for '%s' at line %d\n", v->name, v->value, s, v->lineno); ast_log(LOG_WARNING, "Ignoring invalid %s '%s' for '%s' at line %d\n", v->name, v->value, s, v->lineno);

@ -7,7 +7,7 @@
; local addresses). ; local addresses).
; ;
[general] [general]
;port=5036 ;bindport=4569
;bindaddr=192.168.0.1 ;bindaddr=192.168.0.1
; ;
; Set iaxcompat to yes if you plan to use layered ; Set iaxcompat to yes if you plan to use layered

Loading…
Cancel
Save