<div dir="ltr"><span style="font-size:12.800000190734863px">"Freeswitch always sends RTP traffic from it's private IP", Because thats all it CAN do, the public IP isn't directly bound on the system so it can't send from the public IP.</span><br><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">/b</span></div><div><span style="font-size:12.800000190734863px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 17, 2017 at 4:33 AM, Sean Ingham <span dir="ltr"><<a href="mailto:sean@missionlabs.co.uk" target="_blank">sean@missionlabs.co.uk</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:12.8px">Hi,<br>I'm running FreeSwitch on an AWS EC2 with config as per the wiki EC2 page.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">external_rtp_ip & bind_server_ip are both set to the box's public AWS Elastic IP - as is ext_rtp_ip on all profiles.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">I'm running a WebRTC gateway also in AWS. I can see that SDPs from Freeswitch to the gateway all include Freeswitch's public IP as desired, however when the call is answered Freeswitch always sends RTP traffic from it's private IP. Then a second or 2 later Freeswitch sees incoming RTP from the gateway to it's public IP address and RTP auto swtiching behaviour kicks in, resulting in a line like this in FS logs:</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">switch_rtp.c:6954 Auto Changing audio port from 172.31.x.x:31196 to 52.17.x.x:31196</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">As it happens, the gateway is able to receive media from either private or public IP as the box is in the same subnet, but in around 30% of cases at the point this switching occurs the call audio drops. (I'm guessing the gateway has issues stitching together the rtp streams from 2 different sources.)</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I've tried experimenting with the disable_rtp_auto_switch parameter, but seems to me a cleaner solution would be to have Freeswitch send RTP from it's public IP in the first place, and I can't understand why it's not doing that given it's negotiated to use the public IP in it's SDP.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Can anyone provide any explanation for the behaviour I'm currently seeing, or suggest how I can get FS to set the initial outgoing RTP port correctly?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Sean.</div>
</div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>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.<wbr>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">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><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><b style="font-family:monospace,monospace;font-size:small"><i>Twitter: @FreeSWITCH , @briankwest</i></b></p><p><font size="2" face="monospace, monospace"><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 size="2" face="monospace, monospace"><a href="https://freeswitch.com/appointment" target="_blank">Book a phone call (CST)</a><br><br>Allison prompts for FreeSWITCH:</font></p><table cellspacing="0" cellpadding="0" style="font-size:12.8px"><tbody><tr><td valign="baseline"><p><span><a href="https://www.gofundme.com/allison-prompts-for-freeswitch" target="_blank"><b>https://www.gofundme.com/allison-prompts-for-freeswitch</b></a></span></p></td></tr></tbody></table><p><span style="font-family:monospace,monospace;font-size:12.8px">Got Bugs? Report them </span><a href="https://freeswitch.org/jira" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">here</a><span style="font-family:monospace,monospace;font-size:12.8px">! | Reddit: </span><a href="https://www.reddit.com/r/freeswitch" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">/r/freeswitch</a><br></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>Skype:</b>briankwest<br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>