<div dir="ltr">Can&#39;t your call controller handle the Output component&#39;s error?  If you want to retry, do it there.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 1, 2015 at 7:04 AM, eravelo <span dir="ltr">&lt;<a href="mailto:eravelo@dexem.com" target="_blank">eravelo@dexem.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 &quot;contain data in an unknown format&quot;. 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;<a href="http://www.w3.org/2001/10/synthesis" target="_blank">http://www.w3.org/2001/10/synthesis</a>&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;<a href="http://foo.bar.com/audio/commande_incorrecte.wav" target="_blank">http://foo.bar.com/audio/commande_incorrecte.wav</a>&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;<a href="http://foo.bar.com/audio/commande_incorrecte.wav" target="_blank">http://foo.bar.com/audio/commande_incorrecte.wav</a>&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) <a href="http://usera@192.168.0.1/foo.bar.com-22542" target="_blank">usera@192.168.0.1/foo.bar.com-22542</a>: ref count = 2
2015-05-28 17:30:36.431962 [DEBUG] rayo_components.c:62 Deliver <a href="http://936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1/output-8" target="_blank">936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1/output-8</a> =&gt; <a href="http://usera@192.168.0.1/foo.bar.com-22542" target="_blank">usera@192.168.0.1/foo.bar.com-22542</a> &lt;iq from=&#39;<a href="mailto:936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1" target="_blank">936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1</a>&#39; to=&#39;<a href="http://usera@192.168.0.1/foo.bar.com-22542" target="_blank">usera@192.168.0.1/foo.bar.com-22542</a>&#39; type=&#39;result&#39; id=&#39;c165ebaf-830c-4511-9b29-03263653a2a0&#39;&gt;&lt;ref xmlns=&#39;urn:xmpp:rayo:1&#39; uri=&#39;<a href="http://xmpp:936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1/output-8&#39;/" target="_blank">xmpp:936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1/output-8&#39;/</a>&gt;&lt;/iq&gt;
2015-05-28 17:30:36.431962 [DEBUG] mod_rayo.c:785 Release <a href="http://usera@192.168.0.1/foo.bar.com-22542" target="_blank">usera@192.168.0.1/foo.bar.com-22542</a>: 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 <a href="http://foo.bar.com/audio/commande_incorrecte.wav" target="_blank">foo.bar.com/audio/commande_incorrecte.wav</a> Discarding file.
2015-05-28 17:30:36.431962 [INFO] rayo_output_component.c:502 Failed to open ssml://&lt;speak xmlns=&quot;<a href="http://www.w3.org/2001/10/synthesis" target="_blank">http://www.w3.org/2001/10/synthesis</a>&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;<a href="http://foo.bar.com/audio/commande_incorrecte.wav" target="_blank">http://foo.bar.com/audio/commande_incorrecte.wav</a>&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" target="_blank">Rayo with mod_httapi does not handle invalid cache file</a><br>
Sent from the <a href="http://freeswitch-users.2379917.n2.nabble.com/" target="_blank">freeswitch-users mailing list archive</a> at Nabble.com.<br><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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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></blockquote></div><br></div>