From: Jenkins2 Date: Wed, 5 Jul 2017 21:06:44 +0000 (-0500) Subject: Merge "chan_sip: Only when different, add TCP|TLS in autodomain (SIP Domain Support... X-Git-Tag: 13.17.0-rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6e0b8f8b5b0db2bbe4bec0aff17770812bd151;p=thirdparty%2Fasterisk.git Merge "chan_sip: Only when different, add TCP|TLS in autodomain (SIP Domain Support)." into 13 --- cf6e0b8f8b5b0db2bbe4bec0aff17770812bd151 diff --cc channels/chan_sip.c index e3b3c8439f,f24b74eab1..488fbf4184 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@@ -33178,10 -33178,10 +33178,10 @@@ static int reload_config(enum channelre /* If TLS is running on a different IP than UDP and TCP, then add that too */ if (!ast_sockaddr_isnull(&sip_tls_desc.local_address) && - !ast_sockaddr_cmp(&bindaddr, &sip_tls_desc.local_address) && - !ast_sockaddr_cmp(&sip_tcp_desc.local_address, + ast_sockaddr_cmp_addr(&bindaddr, &sip_tls_desc.local_address) && + ast_sockaddr_cmp_addr(&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); }