dect
/
asterisk
Archived
13
0
Fork 0

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:
mmichelson 2009-02-09 17:27:32 +00:00
parent 4d3a6e4a88
commit 8fc4fe7043
1 changed files with 1 additions and 1 deletions

View File

@ -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);