chan_sip: Fix a typo for tlsbindaddr in autodomain (SIP Domain Support).
authorAlexander Traud <pabstraud@compuserve.com>
Mon, 3 Jul 2017 15:38:32 +0000 (17:38 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Mon, 3 Jul 2017 15:38:32 +0000 (17:38 +0200)
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

channels/chan_sip.c

index aaeb01e..dff1482 100644 (file)
@@ -33288,7 +33288,7 @@ static int reload_config(enum channelreloadreason reason)
                    !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);
                }