Hi all! 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. 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. 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. Can anybody explain if it's a normal behavior? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170309/776dc20f/attachment.html>
Hey guys, any thoughts on that? Probably a bug or is it a default behavior? On Thu, Mar 9, 2017, 2:05 PM Kseniya Blashchuk <ksyblast at gmail.com> wrote:> Hi all! > 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. > 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. > 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. > Can anybody explain if it's a normal behavior? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170311/99760bbd/attachment.html>
On Sat, Mar 11, 2017, at 11:50 AM, Kseniya Blashchuk wrote:> Hey guys, any thoughts on that? Probably a bug or is it a default > behavior?I'd suggest providing the configuration to make sure it is correct. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org