[asterisk-commits] jpdionne: branch group/v6-new r271194 - /team/group/v6-new/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 17 11:02:45 CDT 2010
Author: jpdionne
Date: Thu Jun 17 11:02:41 2010
New Revision: 271194
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=271194
Log:
Use tls default port with tlsenable=yes and unspecified tlsbinadddr.
Modified:
team/group/v6-new/channels/chan_sip.c
Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=271194&r1=271193&r2=271194
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Thu Jun 17 11:02:41 2010
@@ -26638,8 +26638,10 @@
memcpy(sip_tls_desc.tls_cfg, &default_tls_cfg, sizeof(default_tls_cfg));
if (ast_ssl_setup(sip_tls_desc.tls_cfg)) {
- if (ast_sockaddr_isnull(&sip_tls_desc.local_address))
+ if (ast_sockaddr_isnull(&sip_tls_desc.local_address)) {
ast_sockaddr_copy(&sip_tls_desc.local_address, &bindaddr);
+ ast_sockaddr_set_port(&sip_tls_desc.local_address, STANDARD_TLS_PORT);
+ }
if (!ast_sockaddr_port(&sip_tls_desc.local_address))
ast_sockaddr_set_port(&sip_tls_desc.local_address, STANDARD_TLS_PORT);
ast_tcptls_server_start(&sip_tls_desc);
More information about the asterisk-commits
mailing list