<div dir="ltr">
<p class=""><span class="">I'm troubleshooting Tone detection in Freeswitch installed in AWS (Debian)</span></p><p class=""><span class="">I have 2 servers one works the other doesn't:</span></p><p class=""><span class=""><b>FreeSWITCH (Version 1.7.0 -928-db61f4d 64bit)</b> DigitalOcean WORKS</span></p><p class=""><span class=""><a href="http://pastebin.com/bPx4xGCP">http://pastebin.com/bPx4xGCP</a><br></span></p><p class=""><b>FreeSWITCH (Version 1.6.9 -16-d574870 64bit)</b> is ready AWS FAILS</p><p class=""><span class=""></span></p><p class=""><span class=""></span></p><p class=""><span class=""><a href="http://pastebin.com/ktnFYJ05">http://pastebin.com/ktnFYJ05</a></span></p><p class=""><span class=""><br></span></p><p class=""><span class=""><b>Troubleshooting</b></span></p><p class=""><span class="">Seems to be that Freeswitch in AWS EC2 because of NAT is not able to get the RTP from remote side. When I do a packet capture I don't get any RTP from remote end and in initial SIP SDP from Freeswitch I do see local IP address from AWS even though ext-X params are configured.</span></p><p class=""><span class="">1. One instance is installed in AWS, the other one in DigitalOcean,</span></p><p class="">2. I'm originating my calls using ESL and my Gateway:</p><p class=""><span class=""><b>originate {ignore_early_media=true}sofia/gateway/asterisk/+14171111111 handle_calls</b></span></p><p class=""><span class="">3. I already configured<b> ext-rtp-ip and ext-sip-ip</b> fields in external.xml</span></p><p class=""><span class=""><param </span><span class="">name</span><span class="">=</span><span class="">"ext-rtp-ip"</span><span class=""> </span><span class="">value</span><span class="">=</span><span class="">"$${external_rtp_ip}"</span><span class="">/></span></p><p class=""><span class="">
</span></p><p class=""><span class=""><param </span><span class="">name</span><span class="">=</span><span class="">"ext-sip-ip"</span><span class=""> </span><span class="">value</span><span class="">=</span><span class="">"$${external_sip_ip}"</span><span class="">/></span></p><p class=""><span class=""><br></span></p><p class=""><span class=""><a href="https://www.twilio.com/resources/images/docs/Twilio-Freeswitch.pdf">https://www.twilio.com/resources/images/docs/Twilio-Freeswitch.pdf</a><br></span></p><p class=""><span class="">Any ideas?</span></p><p class=""><span class=""><br></span></p><p class=""><span class=""><b>Logs</b></span></p><p class=""><span class="">sofia status gateway asterisk </span></p><p class=""><span class="">=================================================================================================</span></p><p class=""><span class="">Name <span class="">        </span>asterisk</span></p><p class=""><span class="">Profile <span class="">        </span>external</span></p><p class=""><span class="">Scheme <span class="">        </span>Digest</span></p><p class=""><span class="">Realm <span class="">        </span><a href="http://192.241.203.21:5090">192.241.203.21:5090</a></span></p><p class=""><span class="">Username<span class="">        </span>FreeSWITCH</span></p><p class=""><span class="">Password<span class="">        </span>no</span></p><p class=""><span class="">From <span class="">        </span><<a href="http://sip:FreeSWITCH@192.241.203.21:5090">sip:FreeSWITCH@192.241.203.21:5090</a>></span></p><p class=""><span class="">Contact <span class="">        </span><sip:gw+asterisk@52.67.78.120:5090;transport=udp;gw=asterisk></span></p><p class=""><span class="">Exten <span class="">        </span>FreeSWITCH</span></p><p class=""><span class="">To <span class="">        </span><a href="http://sip:FreeSWITCH@192.241.203.21:5090">sip:FreeSWITCH@192.241.203.21:5090</a></span></p><p class=""><span class="">Proxy <span class="">        </span>sip:<a href="http://192.241.203.21:5090">192.241.203.21:5090</a></span></p><p class=""><span class="">Context <span class="">        </span>public</span></p><p class=""><span class="">Expires <span class="">        </span>3600</span></p><p class=""><span class="">Freq <span class="">        </span>3600</span></p><p class=""><span class="">Ping <span class="">        </span>0</span></p><p class=""><span class="">PingFreq<span class="">        </span>0</span></p><p class=""><span class="">PingTime<span class="">        </span>0.00</span></p><p class=""><span class="">PingState<span class="">        </span>0/0/0</span></p><p class=""><span class="">State <span class="">        </span>NOREG</span></p><p class=""><span class="">Status <span class="">        </span>UP</span></p><p class=""><span class="">Uptime <span class="">        </span>290s</span></p><p class=""><span class="">CallsIN <span class="">        </span>0</span></p><p class=""><span class="">CallsOUT<span class="">        </span>2</span></p><p class=""><span class="">FailedCallsIN<span class="">        </span>0</span></p><p class=""><span class="">
</span></p><p class=""><span class="">FailedCallsOUT<span class="">        </span>0</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">sofia status profile external</span></p><p class=""><span class="">=================================================================================================</span></p><p class=""><span class="">Name <span class="">        </span>external</span></p><p class=""><span class="">Domain Name <span class="">        </span>N/A</span></p><p class=""><span class="">Auto-NAT <span class="">        </span>false</span></p><p class=""><span class="">DBName <span class="">        </span>sofia_reg_external</span></p><p class=""><span class="">Pres Hosts <span class="">        </span></span></p><p class=""><span class="">Dialplan <span class="">        </span>XML</span></p><p class=""><span class="">Context <span class="">        </span>public</span></p><p class=""><span class="">Challenge Realm <span class="">        </span>auto_to</span></p><p class=""><span class="">RTP-IP <span class="">        </span>172.31.3.166</span></p><p class=""><span class="">Ext-RTP-IP <span class="">        </span>52.67.78.120</span></p><p class=""><span class="">SIP-IP <span class="">        </span>172.31.3.166</span></p><p class=""><span class="">Ext-SIP-IP <span class="">        </span>52.67.78.120</span></p><p class=""><span class="">URL <span class="">        </span><a href="http://sip:mod_sofia@52.67.78.120:5090">sip:mod_sofia@52.67.78.120:5090</a></span></p><p class=""><span class="">BIND-URL <span class="">        </span>sip:mod_sofia@52.67.78.120:5090;maddr=172.31.3.166;transport=udp,tcp</span></p><p class=""><span class="">HOLD-MUSIC <span class="">        </span>local_stream://moh</span></p><p class=""><span class="">OUTBOUND-PROXY <span class="">        </span>N/A</span></p><p class=""><span class="">CODECS IN <span class="">        </span>OPUS,G722,PCMU,PCMA,VP8</span></p><p class=""><span class="">CODECS OUT <span class="">        </span>OPUS,G722,PCMU,PCMA,VP8</span></p><p class=""><span class="">TEL-EVENT <span class="">        </span>101</span></p><p class=""><span class="">DTMF-MODE <span class="">        </span>rfc2833</span></p><p class=""><span class="">CNG <span class="">        </span>13</span></p><p class=""><span class="">SESSION-TO <span class="">        </span>0</span></p><p class=""><span class="">MAX-DIALOG <span class="">        </span>0</span></p><p class=""><span class="">NOMEDIA <span class="">        </span>false</span></p><p class=""><span class="">LATE-NEG <span class="">        </span>true</span></p><p class=""><span class="">PROXY-MEDIA <span class="">        </span>false</span></p><p class=""><span class="">ZRTP-PASSTHRU <span class="">        </span>true</span></p><p class=""><span class="">AGGRESSIVENAT <span class="">        </span>true</span></p><p class=""><span class="">CALLS-IN <span class="">        </span>0</span></p><p class=""><span class="">FAILED-CALLS-IN <span class="">        </span>0</span></p><p class=""><span class="">CALLS-OUT <span class="">        </span>2</span></p><p class=""><span class="">FAILED-CALLS-OUT <span class="">        </span>1</span></p><p class=""><span class="">
</span></p><p class=""><span class="">REGISTRATIONS <span class="">        </span>0</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">Mod_spandsp</span></p><p class=""><span class="">>module_exists mod_spandsp</span></p><p class=""><span class="">true</span></p><p class=""><span class=""></span>>show applications</p><p class=""><span class="">spandsp_detect_tdd,Detect TDD data,,mod_spandsp</span></p><p class=""><span class="">spandsp_inject_tdd,Send TDD data,,mod_spandsp</span></p><p class=""><span class="">spandsp_send_tdd,Send TDD data,,mod_spandsp</span></p><p class=""><span class="">spandsp_start_dtmf,Detect dtmf,,mod_spandsp</span></p><p class=""><span class="">spandsp_start_fax_detect,start fax detect,<app>[ <arg>][ <timeout>][ <tone_type>],mod_spandsp</span></p><p class=""><span class="">spandsp_start_tone_detect,Start background tone detection with cadence,<name>,mod_spandsp</span></p><p class=""><span class="">spandsp_stop_detect_tdd,stop sending tdd,,mod_spandsp</span></p><p class=""><span class="">spandsp_stop_dtmf,stop inband dtmf,,mod_spandsp</span></p><p class=""><span class="">spandsp_stop_fax_detect,stop fax detect,,mod_spandsp</span></p><p class=""><span class="">spandsp_stop_inject_tdd,stop sending tdd,,mod_spandsp</span></p><p class=""><span class="">spandsp_stop_tone_detect,Stop background tone detection with cadence,,mod_spandsp</span></p><br><p class="">Thanks</p><p class=""><span class=""></span><br></p><p class=""><br></p></div>