<div dir="ltr">Ah ok, thank you for checking. <div>I'll maybe also try with the latest asterisk and/or other distro and see if this behavior is reproduced.</div></div><br><div class="gmail_quote"><div dir="ltr">пн, 13 мар. 2017 г. в 14:46, Joshua Colp <<a href="mailto:jcolp@digium.com">jcolp@digium.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Mar 13, 2017, at 08:43 AM, Kseniya Blashchuk wrote:<br class="gmail_msg">
> Mmh sorry I'm afraid I did not understand your last message. Yes the code<br class="gmail_msg">
> does that but only with UDP, for TCP the source address is 192.168.0.172<br class="gmail_msg">
> though it's bound to <a href="http://192.168.0.177" rel="noreferrer" class="gmail_msg" target="_blank">192.168.0.177</a>:<br class="gmail_msg">
> IP 192.168.0.172.47596 > <mydestip>.5061<br class="gmail_msg">
> If it was a system/kernel issue, then why is the behavior different for<br class="gmail_msg">
> TCP<br class="gmail_msg">
> and UDP? I thought that maybe the application does not request the bound<br class="gmail_msg">
> address as a source in case of TCP...<br class="gmail_msg">
<br class="gmail_msg">
The chan_sip module, from looking at the code, does use the bound<br class="gmail_msg">
address when connecting. Someone would need to dig deeper to understand<br class="gmail_msg">
if the problem is somehow in Asterisk or if it is the system somehow<br class="gmail_msg">
doing it.<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Joshua Colp<br class="gmail_msg">
Digium, Inc. | Senior Software Developer<br class="gmail_msg">
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br class="gmail_msg">
Check us out at: <a href="http://www.digium.com" rel="noreferrer" class="gmail_msg" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" rel="noreferrer" class="gmail_msg" target="_blank">www.asterisk.org</a><br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
_____________________________________________________________________<br class="gmail_msg">
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.api-digital.com</a> --<br class="gmail_msg">
<br class="gmail_msg">
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" class="gmail_msg" target="_blank">https://community.asterisk.org/</a><br class="gmail_msg">
<br class="gmail_msg">
New to Asterisk? Start here:<br class="gmail_msg">
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" class="gmail_msg" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br class="gmail_msg">
<br class="gmail_msg">
asterisk-users mailing list<br class="gmail_msg">
To UNSUBSCRIBE or update options visit:<br class="gmail_msg">
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br class="gmail_msg">
</blockquote></div>