From: Alexander Traud Date: Mon, 3 Jul 2017 15:38:32 +0000 (+0200) Subject: chan_sip: Fix a typo for tlsbindaddr in autodomain (SIP Domain Support). X-Git-Tag: 15.0.0-beta1~55^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4398aa8fa42f6812491782ec93eb42627cb45468;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index aaeb01e139..dff1482ccc 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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); }