Fix something I messed up in the merge I just did
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@174327 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
4d3a6e4a88
commit
8fc4fe7043
|
@ -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);
|
||||
|
|
Reference in New Issue