On Mon, Mar 13, 2017, at 08:43 AM, Kseniya Blashchuk wrote:> Mmh sorry I'm afraid I did not understand your last message. Yes the code > does that but only with UDP, for TCP the source address is 192.168.0.172 > though it's bound to 192.168.0.177: > IP 192.168.0.172.47596 > <mydestip>.5061 > If it was a system/kernel issue, then why is the behavior different for > TCP > and UDP? I thought that maybe the application does not request the bound > address as a source in case of TCP...The chan_sip module, from looking at the code, does use the bound address when connecting. Someone would need to dig deeper to understand if the problem is somehow in Asterisk or if it is the system somehow doing it. -- 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
Ah ok, thank you for checking. I'll maybe also try with the latest asterisk and/or other distro and see if this behavior is reproduced. ??, 13 ???. 2017 ?. ? 14:46, Joshua Colp <jcolp at digium.com>:> On Mon, Mar 13, 2017, at 08:43 AM, Kseniya Blashchuk wrote: > > Mmh sorry I'm afraid I did not understand your last message. Yes the code > > does that but only with UDP, for TCP the source address is 192.168.0.172 > > though it's bound to 192.168.0.177: > > IP 192.168.0.172.47596 > <mydestip>.5061 > > If it was a system/kernel issue, then why is the behavior different for > > TCP > > and UDP? I thought that maybe the application does not request the bound > > address as a source in case of TCP... > > The chan_sip module, from looking at the code, does use the bound > address when connecting. Someone would need to dig deeper to understand > if the problem is somehow in Asterisk or if it is the system somehow > doing it. > > -- > 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 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170313/85d6b7d0/attachment.html>
Tested with latest Asterisk 14.3.0 on Ubuntu 16 kernel 4.4.0-66-generic and Centos 7 kernel 3.10.0-514.10.2.el7.x86_64. Absolutely the same behavior. Joshua, maybe you can advice what can be done further? ??, 13 ???. 2017 ?. ? 14:52, Kseniya Blashchuk <ksyblast at gmail.com>:> Ah ok, thank you for checking. > I'll maybe also try with the latest asterisk and/or other distro and see > if this behavior is reproduced. > > ??, 13 ???. 2017 ?. ? 14:46, Joshua Colp <jcolp at digium.com>: > > On Mon, Mar 13, 2017, at 08:43 AM, Kseniya Blashchuk wrote: > > Mmh sorry I'm afraid I did not understand your last message. Yes the code > > does that but only with UDP, for TCP the source address is 192.168.0.172 > > though it's bound to 192.168.0.177: > > IP 192.168.0.172.47596 > <mydestip>.5061 > > If it was a system/kernel issue, then why is the behavior different for > > TCP > > and UDP? I thought that maybe the application does not request the bound > > address as a source in case of TCP... > > The chan_sip module, from looking at the code, does use the bound > address when connecting. Someone would need to dig deeper to understand > if the problem is somehow in Asterisk or if it is the system somehow > doing it. > > -- > 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 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170313/57a9f05e/attachment.html>