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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org