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

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


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


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/53/5953/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 1994103..e3b3c84 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -33181,7 +33181,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/5953
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d0957150017c223136968ef1266f275d0d6695e
Gerrit-Change-Number: 5953
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/60069255/attachment-0001.html>


More information about the asterisk-code-review mailing list