<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Let me see if I understood. Do I have to create an external profile for VoIP and an internal profile for gateway? Because the way I'm doing now is external profile for both.</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> freeswitch-users-bounces@lists.freeswitch.org &lt;freeswitch-users-bounces@lists.freeswitch.org&gt; on behalf of Steven Ayre &lt;steveayre@gmail.com&gt;<br>
<b>Sent:</b> Monday, October 3, 2016 9:38 AM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Bridging calls to other server</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">On 'Main Server' you want to bind the internal profile to eth0's IP and the external profile to eth1's IP. That's the sip-ip rtp-ip ext-sip-ip ext-rtp-ip settings.
<div><br>
</div>
<div>The IP the call is sent from depends which profile you're bridging through, you'd want to bridge to sofia/internal/<a href="mailto:12345@192.168.1.255" target="_blank">12345@192.168.<wbr>1.255</a>. Right now it sounds like you're using the external profile
 instead.</div>
<div><br>
</div>
<div>If you use a sofia gateway you'd bridge to sofia/gateway/mygsmgateway/<wbr>12345 and the profile it would use is the one the gateway is configured under.</div>
<div><br>
</div>
<div>You would use the external profile to communicate with your VoIP provider.</div>
<div><br>
</div>
<div>In FreeSWITCH it's not possible by design to bind to 0.0.0.0, instead you configure a different profile for each IP/port you want to listen on.</div>
<div><br>
</div>
<div>-Steve</div>
<div><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 28 September 2016 at 19:03, Caio Assis <span dir="ltr">
&lt;<a href="mailto:caioebassis@hotmail.com" target="_blank">caioebassis@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-1873189411445624604m_944869160750239097divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Good afternoon.</p>
<p><br>
</p>
<p>The situation I'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's set with a internal IP as well), and I have a VoIP account to bridge other calls. The problem I'm facing is: when I try to bridge a call to my gateway, in my private&nbsp;network, the IP freeswitch is sending is the external IP, so the call is
 denied by my gateway. With the VoIP I don't have any problem, since the IP external meets my voip's external IP. Just to give you an example, it's like this.</p>
<p><br>
</p>
<p>&nbsp;Main&nbsp;Server (eth0:&nbsp;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'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>
______________________________<wbr>______________________________<wbr>_____________<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<wbr>.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.o<wbr>rg</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.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>