diff options
author | bbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-19 18:57:04 +0000 |
---|---|---|
committer | bbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-19 18:57:04 +0000 |
commit | 0353af4a86dd151c5a9addbbdda6339631df7d88 (patch) | |
tree | 470cd012abec7d2f4f9d6e895bd94408d90c0f02 /channels | |
parent | 50aa5b08d186be73c92a9c3494505b8833def7c1 (diff) |
Fix bug in sip registration that sets the default port to 5060 for tls.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124024 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d6a1ec961..2caaa0d76 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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); return -1; } + } else { + portnum = (transport == SIP_TRANSPORT_TLS) ? + STANDARD_TLS_PORT : STANDARD_SIP_PORT; } if (!(reg = ast_calloc(1, sizeof(*reg)))) { ast_log(LOG_ERROR, "Out of memory. Can't allocate SIP registry entry\n"); |