[Freeswitch-users] Mod http_cache and file extension

David Wilkie dwilkie at gmail.com
Tue Mar 26 19:35:26 MSK 2013


Thanks Ben,

I'm new to FreeSWITCH so just wanted to confirm that I wasn't doing
something wrong before adding a bug to JIRA.

See: http://jira.freeswitch.org/browse/FS-5220

On Tue, Mar 26, 2013 at 11:22 PM, Ben Langfeld <ben at langfeld.co.uk> wrote:

> This is almost certainly a bug and you will very shortly have chants of
> "JIRA!" shouted at you ;)
>
> Regards,
> Ben Langfeld
>
>
> On 26 March 2013 12:30, David Wilkie <dwilkie at gmail.com> wrote:
>
>> I'm using FreeSWITCH Version 1.2.7+git~20130307T181046Z~93e2a38efd with
>> mod_http_cache and mod_httapi loaded with the default mod_http_cache
>> configuration as follows:
>>
>> configuration name="http_cache.conf" description="HTTP GET cache">
>>   <settings>
>>     <param name="max-urls" value="10000"/>
>>     <param name="location" value="$${base_dir}/http_cache"/>
>>     <param name="default-max-age" value="86400"/>
>>     <param name="prefetch-thread-count" value="8"/>
>>     <param name="prefetch-queue-size" value="100"/>
>>   </settings>
>> </configuration>
>>
>> After placing a call with the following dialplan:
>>
>> <extension name="Adhearsion">
>>   <condition field="destination_number" expression=".*$">
>>     <action application="playback" data="
>> http://s3.amazonaws.com/chibimp3/en/welcome.mp3"/>
>>   </condition>
>> </extension>
>>
>> it saves the following files to:
>> /usr/local/freeswitch/storage/http_file_cache
>>
>> d79f3de20148020fd468d1a16c578aba.mp3.mp3
>> d79f3de20148020fd468d1a16c578aba.mp3.meta
>>
>> (note the double .mp3)
>>
>> After I make another phone call
>>
>> I get the following error:
>>
>> 2013-03-26 22:21:20.039296 [ERR] mod_shout.c:683 Error opening
>> /usr/local/freeswitch/storage/http_file_cache/d79f3de20148020fd468d1a16c578aba.mp3
>> 2013-03-26 22:21:20.039296 [ERR] mod_shout.c:862 Error from mpg123: File
>> access error. (code 22)
>> 2013-03-26 22:21:20.039296 [ERR] mod_httapi.c:2763 Invalid cache file
>> /usr/local/freeswitch/storage/http_file_cache/d79f3de20148020fd468d1a16c578aba.mp3
>> opening url s3.amazonaws.com/chibimp3/en/welcome.mp3 Discarding file.
>>
>> Note that from the log it looks like it is trying to open
>> d79f3de20148020fd468d1a16c578aba.mp3 instead of
>> d79f3de20148020fd468d1a16c578aba.mp3.mp3
>>
>> Is this a bug in http_cache or am I doing something wrong?
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.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
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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/20130326/7bf56097/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list