Merged revisions 174327 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
r174327 | mmichelson | 2009-02-09 11:27:32 -0600 (Mon, 09 Feb 2009) | 3 lines

Fix something I messed up in the merge I just did


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@174328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2009-02-09 17:28:52 +00:00
parent 0919e13437
commit f4113354e4

View File

@@ -4193,7 +4193,7 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer)
}
}
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);