summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-08-30 21:17:21 +0000
committerJoshua Colp <jcolp@digium.com>2007-08-30 21:17:21 +0000
commit1e12db06da803d46ba4d3cd3ad89623f79cd9da8 (patch)
tree97432b9b7eedaec194b501eac84bae1eafbdb12a
parent837ae96aeb574e00debf6233d4271d5749fee8e0 (diff)
(closes issue #10565)
Reported by: tootai Make sure the external IP address has the standard SIP port set for when the user does not specify the port in the externip setting. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3325c962b..105151a34 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -17716,6 +17716,7 @@ static int reload_config(enum channelreloadreason reason)
global_outboundproxy.ip.sin_port = htons(STANDARD_SIP_PORT);
global_outboundproxy.ip.sin_family = AF_INET; /* Type of address: IPv4 */
bindaddr.sin_port = htons(STANDARD_SIP_PORT);
+ externip.sin_port = htons(STANDARD_SIP_PORT);
global_srvlookup = DEFAULT_SRVLOOKUP;
global_tos_sip = DEFAULT_TOS_SIP;
global_tos_audio = DEFAULT_TOS_AUDIO;