diff options
author | Joshua Colp <jcolp@digium.com> | 2007-05-14 18:21:30 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-05-14 18:21:30 +0000 |
commit | 4fbb4494445fd96e266f7681588e6fd998cb5859 (patch) | |
tree | 9b097d5d55e7f867c42d46f3cd10c07fef5cfd18 | |
parent | fc9e664ccd1b755d1db7cdab8d4e43a1e838286a (diff) |
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
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e9e38d08f..dc46c66c6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1772,8 +1772,7 @@ static struct sip_proxy *proxy_allocate(char *name, char *port, int force) return NULL; proxy->force = force; ast_copy_string(proxy->name, name, sizeof(proxy->name)); - if (!ast_strlen_zero(port)) - proxy->ip.sin_port = htons(atoi(port)); + proxy->ip.sin_port = htons((!ast_strlen_zero(port) ? atoi(port) : STANDARD_SIP_PORT)); proxy_update(proxy); return proxy; } |