[Asterisk-code-review] chan sip: Fix a typo for tlsbindaddr in autodomain (SIP Doma... (asterisk[master])

Alexander Traud asteriskteam at digium.com
Mon Jul 3 10:53:33 CDT 2017


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/5952


Change subject: chan_sip: Fix a typo for tlsbindaddr in autodomain (SIP Domain Support).
......................................................................

chan_sip: Fix a typo for tlsbindaddr in autodomain (SIP Domain Support).

Because of a copy-and-paste error when the struct ast_sockaddr changed,
tlsbindaddr was not added, when sip.conf contained autodomain=yes; see
"show sip domains" on the command-line interface (CLI) of Asterisk.

ASTERISK-27106

Change-Id: I3d0957150017c223136968ef1266f275d0d6695e
---
M channels/chan_sip.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/52/5952/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index aaeb01e..dff1482 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -33288,7 +33288,7 @@
 		    !ast_sockaddr_cmp(&bindaddr, &sip_tls_desc.local_address) &&
 		    !ast_sockaddr_cmp(&sip_tcp_desc.local_address,
 				      &sip_tls_desc.local_address)) {
-			add_sip_domain(ast_sockaddr_stringify_addr(&sip_tcp_desc.local_address),
+			add_sip_domain(ast_sockaddr_stringify_addr(&sip_tls_desc.local_address),
 				       SIP_DOMAIN_AUTO, NULL);
 		}
 

-- 
To view, visit https://gerrit.asterisk.org/5952
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d0957150017c223136968ef1266f275d0d6695e
Gerrit-Change-Number: 5952
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170703/d206a6b9/attachment.html>


More information about the asterisk-code-review mailing list