<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You'll have to do the manual assignments of your IP's in each profile. &nbsp;You can't depend on the automatic stuff we have in our default configs. &nbsp;<div><br></div><div>hint sip-ip and rtp-ip need to be set for each profile to the proper values.</div><div><br></div><div>/b</div><div><br><div><div>On Feb 7, 2012, at 10:40 AM, <a href="mailto:rico-freeswitch@ricozome.net">rico-freeswitch@ricozome.net</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi guys,<br><br>I'm facing a stupid issue on a fresh installed Debian Squeeze (amd64)<br>server with two NICs, and FreeSwitch bottstraped from Git tree :<br><br>- eth0 is connected to the local LAN (172.16.96.3/24)<br>- eth1 is connected to Internet and have a public IP address.<br>To be exact, eth0 is on a DMZ, but anyway, it's a RFC1918 address.<br><br>FS is :<br>FreeSWITCH Version 1.0.head (git-d2c9fb5 2012-02-06 14-12-22 -0600)<br><br>The problem is when I start the server with its default config,<br>mod_sofia automatically binds into the public IP address, and nothing<br>listens on the local IP address !<br><br>thougth the CLI, I get this :<br>freeswitch@internal&gt; sofia status<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;&nbsp;Type<span class="Apple-tab-span" style="white-space:pre">        </span><br> &nbsp;Data<span class="Apple-tab-span" style="white-space:pre">        </span>State<br>=================================================================================================<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;194.79.xxx.xxx<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;alias<span class="Apple-tab-span" style="white-space:pre">        </span><br>internal<span class="Apple-tab-span" style="white-space:pre">        </span>ALIASED<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;internal<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span><br><a href="sip:mod_sofia@194.79.xxx.xxx:5060">sip:mod_sofia@194.79.xxx.xxx:5060</a><span class="Apple-tab-span" style="white-space:pre">        </span>RUNNING (0)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;internal-ipv6<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span><br>sip:mod_sofia@[::1]:5060<span class="Apple-tab-span" style="white-space:pre">        </span>RUNNING (0)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;external<span class="Apple-tab-span" style="white-space:pre">        </span>profile<span class="Apple-tab-span" style="white-space:pre">        </span><br>sip:mod_sofia@194.79.xxx.xxx:5080<span class="Apple-tab-span" style="white-space:pre">        </span>RUNNING (0)<br> &nbsp;&nbsp;&nbsp;external::example.com<span class="Apple-tab-span" style="white-space:pre">        </span>gateway<span class="Apple-tab-span" style="white-space:pre">        </span><br>sip:joeuser@example.com<span class="Apple-tab-span" style="white-space:pre">        </span>NOREG<br>=================================================================================================<br>3 profiles 1 alias<br>freeswitch@internal&gt; eval ${local_ip_v4}<br>194.79.xxx.xxx<br><br>I have to precise it is my first attemps to install FS, and I'm<br>discovering the software, so I may forget something... But I didn't<br>found a way to force FS to link "internal" profile with the local IP<br>address.<br>I also could modify sip_profiles/internal.xml and hardcode the correct<br>IP address, but my feeling is it's not the right way, and I guess it<br>would probably have some side effects on the setup ?<br><br>Last, I tried both old 1.0.6 branch and lastest Git tree, both with<br>compiled packages "ala" Debian way, and bootstraped, and I always got<br>the same behavior...<br><br>So my question is simple : is this normal, ? and how should I handle FS<br>setup with mutiple NICs ?<br><br>Thanks for your help,<br><br>-- <br>Eric Belhomme<br><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br>consulting@freeswitch.org<br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></div></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">--&nbsp;<br>Brian West&nbsp;<br>FreeSWITCH Solutions, LLC<br>Phone: +1 (918) 420-9266&nbsp;<br>Fax: &nbsp; +1 (918) 420-9267<br><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>http://www.freeswitch.org</span>
</div>
<br></div></body></html>