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: 14.6.0-rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=213713bc4d14460eabd9ddb8c41f9f9c2d797643;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 5affee6ebc..118b5d5889 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -33289,7 +33289,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); }