<div dir="ltr">Yes, look:<div><div>netstat -nlp | egrep '506[01]'</div><div>tcp 0 0 <a href="http://192.168.0.177:5061">192.168.0.177:5061</a> 0.0.0.0:* LISTEN 13255/asterisk </div><div>udp 0 0 <a href="http://192.168.0.177:5060">192.168.0.177:5060</a> 0.0.0.0:* 13255/asterisk </div></div><div>Still, the problem is with <b>outgoing</b> <b>TCP</b> packets originated from asterisk. Source IP is set to the first IP address of the interface only when TCP is used. As I understand, the application (chan_sip in this case) should request kernel to use the specific source IP address (used in bind directive) for outgoing packets, however it seems to be done only for UDP. For outgoing packets on TCP/5061 I see the following:</div><div><div>IP <b>192.168.0.172</b>.47596 > <mydestip>.5061: Flags [S], seq 2529313754, win 29200, options [mss 1460,sackOK,TS val 82765588 ecr 0,nop,wscale 7], length 0</div></div><div>And with UDP as transport:</div><div>IP <b>192.168.0.177</b>.5060 > <mydestip>.5060: SIP: OPTIONS ....</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">пн, 13 мар. 2017 г. в 13:55, 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 03:52 AM, Kseniya Blashchuk wrote:<br class="gmail_msg">
> Hi!<br class="gmail_msg">
> Attached sip.conf and interface config as well. In this case we use only<br class="gmail_msg">
> TLS, but I have checked with TCP - same situation, 192.168.0.172 is used<br class="gmail_msg">
> as<br class="gmail_msg">
> a source. For UDP 192.168.0.177 is used as expected.<br class="gmail_msg">
<br class="gmail_msg">
Does the output of netstat -a confirm that it is bound to only that IP<br class="gmail_msg">
address? If so, then it seems chan_sip has done its part.<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>