diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-07-05 16:29:45 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-07-05 16:29:45 -0500 |
commit | 2ec388680b3d41607b37a51fcf74a612456ccaf6 (patch) | |
tree | e3367698f10e1cd6a91584bffdf9f2b735421937 /channels | |
parent | a10bc3e23fb40b2938cdad3e99e0754daf9fd974 (diff) | |
parent | 910c05455d33564fd2008225b3f18917dd980ca6 (diff) |
Merge "chan_sip: Only when different, add TCP|TLS in autodomain (SIP Domain Support)."
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 aaeb01e13..bdff0a998 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -33278,15 +33278,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_tcp_desc.local_address), SIP_DOMAIN_AUTO, NULL); |