[Freeswitch-users] Rayo with mod_httapi does not handle invalid cache file

Christopher Rienzo cmrienzo at gmail.com
Mon Jun 1 19:04:41 MSD 2015


Can't your call controller handle the Output component's error?  If you
want to retry, do it there.

On Mon, Jun 1, 2015 at 7:04 AM, eravelo <eravelo at dexem.com> wrote:

> 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.
> Is this a bug in the way FreeSWITCH handles he audio file cache
> (mod_httapi) ?
> Version: 1.4.15
> Here is the FreeSWITCH log snippet:
>
> 2015-05-28 17:30:36.431962 [DEBUG] mod_ssml.c:812 Open: <speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
>   <audio src="http://foo.bar.com/audio/commande_incorrecte.wav"/>
> </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>: "http://foo.bar.com/audio/commande_incorrecte.wav"
> 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 at 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 at 192.168.0.1/output-8 => usera at 192.168.0.1/foo.bar.com-22542 <iq from='936b8201-399a-49eb-bb57-aa091cc5be34 at 192.168.0.1' to='usera at 192.168.0.1/foo.bar.com-22542' type='result' id='c165ebaf-830c-4511-9b29-03263653a2a0'><ref xmlns='urn:xmpp:rayo:1' uri='xmpp:936b8201-399a-49eb-bb57-aa091cc5be34 at 192.168.0.1/output-8'/></iq>
> 2015-05-28 17:30:36.431962 [DEBUG] mod_rayo.c:785 Release usera at 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://<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
>   <audio src="http://foo.bar.com/audio/commande_incorrecte.wav"/>
> </speak>
>
>
> ------------------------------
> View this message in context: Rayo with mod_httapi does not handle
> invalid cache file
> <http://freeswitch-users.2379917.n2.nabble.com/Rayo-with-mod-httapi-does-not-handle-invalid-cache-file-tp7596166.html>
> Sent from the freeswitch-users mailing list archive
> <http://freeswitch-users.2379917.n2.nabble.com/> at Nabble.com.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150601/9bf0c3e3/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list