projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
829b14f
)
Fix something I messed up in the merge I just did
author
Mark Michelson
<mmichelson@digium.com>
Mon, 9 Feb 2009 17:27:32 +0000
(17:27 +0000)
committer
Mark Michelson
<mmichelson@digium.com>
Mon, 9 Feb 2009 17:27:32 +0000
(17:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@174327
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
eea6d02
..
bfec672
100644
(file)
--- 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);