<p dir="ltr">Hey guys, any thoughts on that? Probably a bug or is it a default behavior?</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 9, 2017, 2:05 PM Kseniya Blashchuk <<a href="mailto:ksyblast@gmail.com">ksyblast@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><span style="color:rgb(33,33,33);font-size:13px" class="gmail_msg">Hi all!</span><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">I am running asterisk 13.1.0 on Ubuntu server 16.04. There are two IP addresses from the same subnet set on one interface, and bindaddr is set to the second on them in sip.conf and in iax.conf. </div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">Incoming connections work as expected. However, for outgoing connections it seems that asterisk tells the kernel to use the specific "bind" address only in case of UDP usage (both SIP and IAX work like that). In case of outgoing TCP connections (SIP TCP and TLS) the first IP address from the interface is used. </div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">In my understanding, normally 'bind' should not only tell on which address to listen, but also which source address to request for outgoing connections, but it works only for UDP connections for some reason.</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">Can anybody explain if it's a normal behavior?</div></div></blockquote></div>