<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>You'll find these two variables in your internal and external profiles, try setting them to either STUN (as per the examples in the comments) or hard code the IP address:</p>
<pre>&lt;param name="ext-rtp-ip" value="$${external_rtp_ip}"/&gt;
&lt;param name="ext-sip-ip" value="$${external_sip_ip}"/&gt;
</pre>
<p>This along with opening the correct ports is the best solution I've found for double NAT scenarios, but that's installing on bare metal. YMMV.</p>
<p>&nbsp;</p>
<div>&nbsp;</div>
<p>On 2014-05-06 00:02, Steven Ayre wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">Also check the IP in the logged "remote SDP" message (which is before what you're posted). Verify that it's an IP actually reachable from the server. A common problem is having a client that's behind NAT sending the LAN IP which isn't reachable over the internet, rather than it's external IP.</div>
<div class="gmail_extra"><br /><br />
<div class="gmail_quote">On 5 May 2014 14:55, Michael Jerris <span>&lt;<a href="mailto:mike@jerris.com">mike@jerris.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 style="word-wrap: break-word;">do you have udp ports open for rtp?
<div>
<div class="h5">
<div><br />
<div>
<div>On May 4, 2014, at 9:03 PM, Jeff Stark &lt;<a href="mailto:jstark888@gmail.com">jstark888@gmail.com</a>&gt; wrote:</div>
<br />
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<div dir="ltr">Hi,
<div>&nbsp;</div>
<div>I installed FreeSwitch 1.2.23 on an Amazon EC2 instance (running Amazon Linux). I opened port 5060 for UDP to the server. I then registered as user 1005 using SipDroid on my phone via WiFi. At first when I dialed 9198, I could hear the Tetris music. I could also hear the music on hold audio (when I dialed 9664). However, the echo test failed. Therefore I tried changing the config for the server according to this:&nbsp;<a href="http://wiki.freeswitch.org/wiki/Amazon_EC2">http://wiki.freeswitch.org/wiki/Amazon_EC2</a> However, after doing that not only did the echo test not work, but neither did the Tetris or music on hold tests. So I returned the config back to what it was originally. Unfortunately I still can't hear the Tetris or music on hold audio. I have tried using both LinPhone and XLite softphones as alternatives, but I can't hear the audio on those either. Signalling appears to work. I can dial an extension on a registered softphone and have another registered softphone ring, but there is no audio. I would appreciate any help or insight anyone has on what the problem might be. Also, I have tried using G722, PCMA, PCMU and GSM audio codecs, but none have worked. All the softphones I have tried are able to register without any noticeable problems.</div>
<div>&nbsp;</div>
<div>Thanks.</div>
<div>&nbsp;</div>
<div>Jeff Stark</div>
<div>&nbsp;</div>
<div>Below is part of the log for a typical session where I can't hear the Tetris audio. (I have masked the IP addresses with descriptive labels):</div>
<div>&nbsp;</div>
<div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 Dialplan: sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; Regex (PASS) [tone_stream] destination_number(9198) =~ /^9198$/ break=on-false</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 Dialplan: sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; Action answer()</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 Dialplan: sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; Action playback({loops=10}tone_stream://path=${base_dir}/conf/tetris.ttml)</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_state_machine.c:167 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) State Change CS_ROUTING -&gt; CS_EXECUTE</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [BREAK]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_state_machine.c:471 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) State ROUTING going to sleep</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) Running State Change CS_EXECUTE</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_state_machine.c:478 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) State EXECUTE</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] mod_sofia.c:243 sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; SOFIA EXECUTE</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_state_machine.c:209 sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; Standard EXECUTE</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 EXECUTE sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; hash(insert/&lt;FreeSwitch server Private IP&gt;-spymap/1005/84a7c5c8-d251-11e3-9565-7f053ccdf4d9)</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 EXECUTE sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; hash(insert/&lt;FreeSwitch server Private IP&gt;-last_dial/1005/9198)</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 EXECUTE sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; hash(insert/&lt;FreeSwitch server Private IP&gt;-last_dial/global/84a7c5c8-d251-11e3-9565-7f053ccdf4d9)</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 EXECUTE sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; export(RFC2822_DATE=Fri, 02 May 2014 23:28:51 +0000)</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_channel.c:1242 EXPORT (export_vars) [RFC2822_DATE]=[Fri, 02 May 2014 23:28:51 +0000]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 EXECUTE sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; answer()</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] sofia_glue.c:5282 Audio Codec Compare [G722:9:8000:20:64000]/[G722:9:8000:20:64000]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] sofia_glue.c:3190 Set Codec sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; G722/8000 20 ms 160 samples 64000 bits</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_codec.c:111 sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; Original read codec set to G722:9</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] sofia_glue.c:5451 Set 2833 dtmf send/recv payload to 101</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] sofia_glue.c:3449 AUDIO RTP [sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;] &lt;FreeSwitch server Private IP&gt; port 23728 -&gt; &lt;Softphone Public IP&gt; port 50062 codec: 9 ms: 20</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_rtp.c:2040 Starting timer [soft] 160 bytes per 20ms</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] sofia_glue.c:3716 Set 2833 dtmf send payload to 101</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] sofia_glue.c:3722 Set 2833 dtmf receive payload to 101</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] sofia_glue.c:3749 sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; Set rtp dtmf delay to 40</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [NOTICE] sofia_glue.c:4360 Pre-Answer sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;!</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_channel.c:3368 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) Callstate Change RINGING -&gt; EARLY</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] mod_sofia.c:866 Local SDP sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;:</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 v=0</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 o=FreeSWITCH 1399049603 1399049604 IN IP4 &lt;FreeSwitch server Private IP&gt;</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 s=FreeSWITCH</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 c=IN IP4 &lt;FreeSwitch server Private IP&gt;</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 t=0 0</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 m=audio 23728 RTP/AVP 9 101</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 a=rtpmap:9 G722/8000</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 a=rtpmap:101 telephone-event/8000</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 a=fmtp:101 0-16</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 a=ptime:20</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 a=sendrecv</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [BREAK]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] sofia.c:5815 Channel sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; entering state [completed][200]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_core_session.c:871 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [BREAK]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [NOTICE] mod_dptools.c:1225 Channel [sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;] has been answered</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_channel.c:3647 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) Callstate Change EARLY -&gt; ACTIVE</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 EXECUTE sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; playback({loops=10}tone_stream://path=/usr/local/freeswitch/conf/tetris.ttml)</div>
<div>2014-05-02 23:28:51.111375 [DEBUG] switch_event.c:1661 Parsing variable [loops]=[10]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.111375 [DEBUG] switch_ivr_play_say.c:1314 Codec Activated L16@16000hz 1 channels 20ms</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.331419 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [BREAK]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.331419 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [BREAK]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.331419 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [BREAK]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:28:51.331419 [DEBUG] sofia.c:5815 Channel sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; entering state [ready][200]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.331345 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [BREAK]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [NOTICE] sofia.c:737 Hangup sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [CS_EXECUTE] [NORMAL_CLEARING]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_channel.c:3187 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [KILL]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; [BREAK]</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_ivr_play_say.c:1717 done playing file {loops=10}tone_stream://path=/usr/local/freeswitch/conf/tetris.ttml</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_core_session.c:2810 sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_core_state_machine.c:478 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) State EXECUTE going to sleep</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) Running State Change CS_HANGUP</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_core_state_machine.c:678 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) Callstate Change ACTIVE -&gt; HANGUP</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_core_state_machine.c:680 (sofia/internal/1005@&lt;FreeSwitch server Public IP&gt;) State HANGUP</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] mod_sofia.c:506 Channel sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; hanging up, cause: NORMAL_CLEARING</div>
<div>84a7c5c8-d251-11e3-9565-7f053ccdf4d9 2014-05-02 23:29:31.351377 [DEBUG] switch_core_state_machine.c:48 sofia/internal/1005@&lt;FreeSwitch server Public IP&gt; Standard HANGUP, cause: NORMAL_CLEARING</div>
</div>
<div>&nbsp;</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</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">http://www.freeswitchsolutions.com</a><br /><br /> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br /><a href="http://www.cudatel.com">http://www.cudatel.com</a><br /><br /> Official FreeSWITCH Sites<br /><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br /><a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br /> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /><br /></blockquote>
</div>
</div>
<br />
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
</body></html>