Hello all,

With mod_httapi, sometimes an audio file fetched from an URL cannot be played, because for whatever reason, the file is said to "contain data in an unknown format". The problem is that mod_rayo raises an error and the call fails, rather than trying to re-fetch the file.
<br/>
Is this a bug in the way FreeSWITCH handles he audio file cache (mod_httapi) ?
<br/>
Version: 1.4.15
<br/>
Here is the FreeSWITCH log snippet:


<pre>2015-05-28 17:30:36.431962 [DEBUG] mod_ssml.c:812 Open: &lt;speak xmlns=&quot;http://www.w3.org/2001/10/synthesis&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;http://foo.bar.com/audio/commande_incorrecte.wav&quot;/&gt;
&lt;/speak&gt;
2015-05-28 17:30:36.431962 [DEBUG] mod_ssml.c:738 Skipping empty tts
2015-05-28 17:30:36.431962 [DEBUG] mod_ssml.c:597 Adding &lt;audio&gt;: &quot;http://foo.bar.com/audio/commande_incorrecte.wav&quot;
2015-05-28 17:30:36.431962 [DEBUG] mod_ssml.c:738 Skipping empty tts
2015-05-28 17:30:36.431962 [DEBUG] mod_rayo.c:778 Locate (jid) usera@192.168.0.1/foo.bar.com-22542: ref count = 2
2015-05-28 17:30:36.431962 [DEBUG] rayo_components.c:62 Deliver 936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1/output-8 =&gt; usera@192.168.0.1/foo.bar.com-22542 &lt;iq from='936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1' to='usera@192.168.0.1/foo.bar.com-22542' type='result' id='c165ebaf-830c-4511-9b29-03263653a2a0'&gt;&lt;ref xmlns='urn:xmpp:rayo:1' uri='xmpp:936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1/output-8'/&gt;&lt;/iq&gt;
2015-05-28 17:30:36.431962 [DEBUG] mod_rayo.c:785 Release usera@192.168.0.1/foo.bar.com-22542: ref count = 1
2015-05-28 17:30:36.431962 [ERR] mod_sndfile.c:202 Error Opening File [/var/lib/freeswitch/storage/http_file_cache/bc6d923a7979fcad6e67fc28a08280fa.wav] [File contains data in an unknown format.]
2015-05-28 17:30:36.431962 [ERR] mod_httapi.c:2965 Invalid cache file /var/lib/freeswitch/storage/http_file_cache/bc6d923a7979fcad6e67fc28a08280fa.wav opening url foo.bar.com/audio/commande_incorrecte.wav Discarding file.
2015-05-28 17:30:36.431962 [INFO] rayo_output_component.c:502 Failed to open ssml://&lt;speak xmlns=&quot;http://www.w3.org/2001/10/synthesis&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;http://foo.bar.com/audio/commande_incorrecte.wav&quot;/&gt;
&lt;/speak&gt;</pre>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Rayo-with-mod-httapi-does-not-handle-invalid-cache-file-tp7596166.html">Rayo with mod_httapi does not handle invalid cache file</a><br/>
Sent from the <a href="http://freeswitch-users.2379917.n2.nabble.com/">freeswitch-users mailing list archive</a> at Nabble.com.<br/>