[asterisk-users] tcpbind and source IP address

Kseniya Blashchuk ksyblast at gmail.com
Sat Mar 11 08:50:23 CST 2017


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>


More information about the asterisk-users mailing list