<div dir="ltr">local_ip_v4 and local_ip_v6 will always resolve to the IP on the interfaces that can reach the internet.  Anything else such as your setup will require you to set the values on the sofia profiles specifically.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 31, 2015 at 4:02 AM, Vallimamod Abdullah <span dir="ltr">&lt;<a href="mailto:vma@440hz.fr" target="_blank">vma@440hz.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Try to set the following in your internal profile:<br>
<br>
    &lt;param name=&quot;sip-ip&quot; value=&quot;$${internal_sip_ip}”/&gt;<br>
    &lt;param name=&quot;rtp-ip&quot; value=&quot;$${internal_rtp_ip}&quot;/&gt;<br>
<br>
along with the following in vars.xml:<br>
<br>
     &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;internal_sip_ip=192.168.nn.nn&quot;/&gt;<br>
     &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;internal_rtp_ip=192.168.nn.nn”/&gt;<br>
<br>
Keep also in mind that you need to restart freeswitch everytime you change any X-PRE-PROCESS statement.<br>
<br>
Best Regards,<br>
Vallimamod<br>
.<br>
<br>
&gt; On 30 Mar 2015, at 22:57, T Fred Farmington &lt;<a href="mailto:tfred31@yahoo.com">tfred31@yahoo.com</a>&gt; wrote:<br>
&gt;<br>
&gt; We have 2 network cards on our FS server.<br>
&gt; *  One IP goes to the &#39;outside&#39; world  (IP = 107.1.nn.nn)<br>
&gt; *  And the other IP goes to the &#39;inside&#39; world  (IP = 192.168.nn.nn)<br>
&gt;<br>
&gt; In spite of making suggested changes to   vars.xml   when FS launches it sets itself up to &#39;listen&#39; to the &#39;outside&#39; world (IP = 107 etc.)<br>
&gt; But the result of that is that none of the in-house SIP phones can register to it.<br>
&gt;<br>
&gt; The changes I made (following suggestions found on the web)  to   vars.xml   are as follows:<br>
&gt;   New entry:<br>
&gt;        &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;local_ip_v4=192.168.nn.nn&quot;/&gt;   &lt;!-- where nn values are &#39;real&#39; values --&gt;<br>
&gt;   This new line was entered immediately before<br>
&gt;       &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;domain=$${local_ip_v4}&quot;/&gt;<br>
&gt;<br>
&gt; Additionally another web reference suggested that the following 2 lines be added near the bottom of   vars.xml<br>
&gt;      &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;internal_sip_ip=192.168.nn.nn&quot;/&gt;<br>
&gt;      &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;internal_rtp_ip=192.168.nn.nn&quot;/&gt;<br>
&gt;<br>
&gt; PROBLEM:   None of that seems to work.<br>
&gt;                    Even after not only ReStarting the FS Service, but also after ReStarting the FS Server itself and then Starting the FS Service<br>
&gt;<br>
&gt; When through FS_CLI  I run:    sofia  status     and/or   sofia status profile internal      both of them show the 107 IP instead of the 192 IP<br>
&gt; Those changes have not caused FS to &#39;see&#39; and &#39;listen to&#39; the 192  port.<br>
&gt;<br>
&gt; What am I doing wrong?<br>
&gt;<br>
&gt; Your advice/suggestions would be greatly appreciated.<br>
&gt;<br>
&gt; Thanks<br>
&gt; TF<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">ClueCon 2015 <a href="https://www.cluecon.com/call-for-speakers/" target="_blank">Call for Speakers</a> | <a href="https://freeswitch.com/cart.php?gid=1" target="_blank">Register</a> TODAY! | Reddit: <a href="https://www.reddit.com/r/freeswitch">/r/freeswitch</a></font></p>
<p><font face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div>
</div>