diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-07-05 16:27:20 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-07-05 16:27:20 -0500 |
commit | ae56efb727fb26e2f55c7d025fa1d0f5d7ebbc46 (patch) | |
tree | b3281225d42e68718b14456d7b1678e2dea21deb /channels | |
parent | 75622dfc7d2bc8cb0f04895d4fafb9a31ed53c3c (diff) | |
parent | 43f636f6e50a01a788a57c903be299c3b4bdb0c1 (diff) |
Merge "chan_sip: Only when different, add TCP|TLS in autodomain (SIP Domain Support)." into 14
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 118b5d588..679cc3dfc 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -33279,15 +33279,15 @@ static int reload_config(enum channelreloadreason reason) /* If TCP is running on a different IP than UDP, then add it too */ if (!ast_sockaddr_isnull(&sip_tcp_desc.local_address) && - !ast_sockaddr_cmp(&bindaddr, &sip_tcp_desc.local_address)) { + ast_sockaddr_cmp_addr(&bindaddr, &sip_tcp_desc.local_address)) { add_sip_domain(ast_sockaddr_stringify_addr(&sip_tcp_desc.local_address), SIP_DOMAIN_AUTO, NULL); } /* 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_tls_desc.local_address), SIP_DOMAIN_AUTO, NULL); |