Skip to content
Snippets Groups Projects
Commit 249ac33a authored by Brett Bryant's avatar Brett Bryant
Browse files

Fix bug in sip registration that sets the default port to 5060 for tls.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@124024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent fa4bce7c
No related branches found
No related tags found
No related merge requests found
...@@ -6397,6 +6397,9 @@ static int sip_register(const char *value, int lineno) ...@@ -6397,6 +6397,9 @@ static int sip_register(const char *value, int lineno)
ast_log(LOG_WARNING, "%s is not a valid port number at line %d\n", porta, lineno); ast_log(LOG_WARNING, "%s is not a valid port number at line %d\n", porta, lineno);
return -1; return -1;
} }
} else {
portnum = (transport == SIP_TRANSPORT_TLS) ?
STANDARD_TLS_PORT : STANDARD_SIP_PORT;
} }
if (!(reg = ast_calloc(1, sizeof(*reg)))) { if (!(reg = ast_calloc(1, sizeof(*reg)))) {
ast_log(LOG_ERROR, "Out of memory. Can't allocate SIP registry entry\n"); ast_log(LOG_ERROR, "Out of memory. Can't allocate SIP registry entry\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment