If no port is specified in the outboundproxy setting then use the standard SIP port. (issue #9665 reported by tootai)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
fc9e664ccd
commit
4fbb449444
|
@ -1772,8 +1772,7 @@ static struct sip_proxy *proxy_allocate(char *name, char *port, int force)
|
||||||
return NULL;
|
return NULL;
|
||||||
proxy->force = force;
|
proxy->force = force;
|
||||||
ast_copy_string(proxy->name, name, sizeof(proxy->name));
|
ast_copy_string(proxy->name, name, sizeof(proxy->name));
|
||||||
if (!ast_strlen_zero(port))
|
proxy->ip.sin_port = htons((!ast_strlen_zero(port) ? atoi(port) : STANDARD_SIP_PORT));
|
||||||
proxy->ip.sin_port = htons(atoi(port));
|
|
||||||
proxy_update(proxy);
|
proxy_update(proxy);
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue