<div dir="ltr"><div><div><div>For the said scenario you would probably need policy-based routing on the OS/Netowrk level...<br></div>If one of the interfaces is a default interface then all trafic wants to leave from that interface. You could try <br>
</div>route add -net/-host <ipaddress>/<netmask> dev eth(second ethernet) <br></div>to add static routes for the providers on the same interface they arrive.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Mar 14, 2014 at 11:15 PM, Javier Aristizábal <span dir="ltr"><<a href="mailto:javieraristizabal@gmail.com" target="_blank">javieraristizabal@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span style="font-size:medium;font-family:'Lucida Grande'">Hi guys,</span><br><div><br></div><div><span style="font-size:medium;font-family:'Lucida Grande'">I have a server on AWS. And I need two IP address on my FS box, because my stupid carriers can't send the DIDs to the 5080 port anyway, on AWS I only can configure private addresses on my ethernet interfaces, so I have eth0: 10.0.0.97 and eth1: 10.0.0.164. And have two Public IPs associated with each of this Private IPs.</span></div>
<div><font color="#000000" face="Lucida Grande" size="3"><br></font></div><div><span style="font-size:medium;font-family:'Lucida Grande'">On rtp-ip and sip-ip, I used the private ip, and for ext-rtp-ip and ext-sip-ip I use the public IP. On both external profile and another external profile.</span></div>
<div><font color="#000000" face="Lucida Grande" size="3"><br></font></div><div><span style="font-size:medium;font-family:'Lucida Grande'">I have a nice carrier that can send DIDs to the port 5080. So I registered an extension, call to the DID:5080 and I get the call on the external profile and I get audio on both sides. </span></div>
<div><span style="font-size:medium;font-family:'Lucida Grande'"><br></span></div><div><font color="#000000" face="Lucida Grande" size="3">But when I sent the DID:5060 to another external, I can't get audio. This is a test call :</font><a href="http://pastebin.freeswitch.org/22132" target="_blank">http://pastebin.freeswitch.org/22132</a></div>
<div><br></div><div><span style="font-size:medium;font-family:'Lucida Grande'">I appreciate any clue.</span></div><div><font color="#000000" face="Lucida Grande" size="3"><br></font></div><div><font color="#000000" face="Lucida Grande" size="3"><br>
</font></div><div><font color="#000000" face="Lucida Grande" size="3">Thanks</font></div><span class="HOEnZb"><font color="#888888"><div><font color="#000000" face="Lucida Grande" size="3"><br></font></div><div><font color="#000000" face="Lucida Grande" size="3">Javier</font><br>
</div></font></span></div>
<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Kerem Erciyes - Sistem Danismani<br><a href="http://keremerciyes.com" target="_blank">http://keremerciyes.com</a><br><br>
</div>