mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user