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

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


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


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/54/5954/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 5affee6..118b5d5 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -33289,7 +33289,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/5954
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d0957150017c223136968ef1266f275d0d6695e
Gerrit-Change-Number: 5954
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/951819fe/attachment.html>


More information about the asterisk-code-review mailing list