<div dir="ltr">Can't your call controller handle the Output component'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"><<a href="mailto:eravelo@dexem.com" target="_blank">eravelo@dexem.com</a>></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 "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: <speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank">http://www.w3.org/2001/10/synthesis</a>" version="1.0" xml:lang="en-US">
<audio src="<a href="http://foo.bar.com/audio/commande_incorrecte.wav" target="_blank">http://foo.bar.com/audio/commande_incorrecte.wav</a>"/>
</speak>
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 <audio>: "<a href="http://foo.bar.com/audio/commande_incorrecte.wav" target="_blank">http://foo.bar.com/audio/commande_incorrecte.wav</a>"
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> => <a href="http://usera@192.168.0.1/foo.bar.com-22542" target="_blank">usera@192.168.0.1/foo.bar.com-22542</a> <iq from='<a href="mailto:936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1" target="_blank">936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1</a>' to='<a href="http://usera@192.168.0.1/foo.bar.com-22542" target="_blank">usera@192.168.0.1/foo.bar.com-22542</a>' type='result' id='c165ebaf-830c-4511-9b29-03263653a2a0'><ref xmlns='urn:xmpp:rayo:1' uri='<a href="http://xmpp:936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1/output-8'/" target="_blank">xmpp:936b8201-399a-49eb-bb57-aa091cc5be34@192.168.0.1/output-8'/</a>></iq>
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://<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank">http://www.w3.org/2001/10/synthesis</a>" version="1.0" xml:lang="en-US">
<audio src="<a href="http://foo.bar.com/audio/commande_incorrecte.wav" target="_blank">http://foo.bar.com/audio/commande_incorrecte.wav</a>"/>
</speak></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>