summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-02-09 17:27:32 +0000
committerMark Michelson <mmichelson@digium.com>2009-02-09 17:27:32 +0000
commite0b0ae07a3d937cb4a5858881507536dae93af6e (patch)
treefd5848c49f29dde98c60da8f2c034b9a8ff14b08 /channels
parent829b14fc3effe225f5cbe0344395dd00334e2fb1 (diff)
Fix something I messed up in the merge I just did
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@174327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index eea6d026f..bfec672aa 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4888,7 +4888,7 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer, struct sockadd
}
}
if (!portno)
- portno = port ? atoi(port) : STANDARD_SIP_PORT;
+ portno = port ? atoi(port) : (dialog->socket.type & SIP_TRANSPORT_TLS) ? STANDARD_TLS_PORT : STANDARD_SIP_PORT;
hp = ast_gethostbyname(hostn, &ahp);
if (!hp) {
ast_log(LOG_WARNING, "No such host: %s\n", peername);