<div dir="ltr">Hi,<div><br></div><div>I think that splitting internal and external VoIP traffic with sofia profiles would solve your problem.</div><div><br></div><div>I.e. external sofia profile with external IP address and external VoIP gateways (ITSP)</div><div>internal sofia profile with internal IP address and gsm gateway definition.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 28, 2016 at 9:05 PM Caio Assis &lt;<a href="mailto:caioebassis@hotmail.com">caioebassis@hotmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Good afternoon.</p>
<p><br>
</p>
<p>The situation I&#39;m facing is this: I have a server that has 2 network interfaces (eth0 and eth1), the former with an external static IP set, and the ladder with a internal IP set. I have one more server on my private network that bridges calls to my gsm gateway
 (which means it&#39;s set with a internal IP as well), and I have a VoIP account to bridge other calls. The problem I&#39;m facing is: when I try to bridge a call to my gateway, in my private network, the IP freeswitch is sending is the external IP, so the call is
 denied by my gateway. With the VoIP I don&#39;t have any problem, since the IP external meets my voip&#39;s external IP. Just to give you an example, it&#39;s like this.</p>
<p><br>
</p>
<p> Main Server (eth0: 192.168.1.50, eth1: 123.123.123.123)</p>
<p>Main Server bridges calls to Gateway (192.168.1.255). The gateway recieves an request coming from 123.123.123.123, and it&#39;s set to decline external IP, so the call gets a forbidden signal.</p>
<p>Main Server bridges calls to VoIP provider(177.177.177.177). VoIP accepts my calls, since the request it receives is coming from the external IP.</p>
<p><br>
</p>
<p>I need Freeswitch to send the call to the gateway using the internal IP and voip using external IP. I use asterisk, and i set a parameter brindaddr=0.0.0.0 to accept request coming from both internal and external IPs. All of my asterisk configurations work
 fine.</p>
<p><br>
</p>
<p>Thanks.</p>
</div>
</div>

_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Best regards,<div>Vladyslav Zakhozhai</div><div>email: <a href="mailto:v.zakhozhai@gmail.com">v.zakhozhai@gmail.com</a></div><div>tel.: +380(93) 757-21-61</div></div></div>