]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Only when different, add TCP|TLS in autodomain (SIP Domain Support).
authorAlexander Traud <pabstraud@compuserve.com>
Mon, 3 Jul 2017 15:59:43 +0000 (17:59 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Mon, 3 Jul 2017 16:01:38 +0000 (11:01 -0500)
commit39d2ebbf56635355432eb96ff850c0c9bf2a5d63
tree500e323adcea1873e8b18f03747c571fe6af1e8a
parent067410a4454959e500508f58a5c6eefa68a78767
chan_sip: Only when different, add TCP|TLS in autodomain (SIP Domain Support).

When sip.conf contained tcpenable=yes and autodomain=yes, the TCP domain was
added in any case, because of a local Boolean-negation error of the return value
of ast_sockaddr_cmp. After fixing this error for TCP and TLS, the TLS domain was
still always added with tlsenable=yes, because the domains were not compared
just on the address but also on the port – and TLS is always on a different port
than UDP/TCP.

ASTERISK-27106

Change-Id: I14fe9e319e238320b094016980445ef3a5b3337c
channels/chan_sip.c