Thanks Ben,<br><br>I'm new to FreeSWITCH so just wanted to confirm that I wasn't doing something wrong before adding a bug to JIRA.<br><br>See: <a href="http://jira.freeswitch.org/browse/FS-5220">http://jira.freeswitch.org/browse/FS-5220</a><br>
<br><div class="gmail_quote">On Tue, Mar 26, 2013 at 11:22 PM, Ben Langfeld <span dir="ltr"><<a href="mailto:ben@langfeld.co.uk" target="_blank">ben@langfeld.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">This is almost certainly a bug and you will very shortly have chants of "JIRA!" shouted at you ;)</div><div class="gmail_extra"><br clear="all"><div>Regards,<br>Ben Langfeld</div>
<br><br><div class="gmail_quote"><div><div class="h5">On 26 March 2013 12:30, David Wilkie <span dir="ltr"><<a href="mailto:dwilkie@gmail.com" target="_blank">dwilkie@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
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:<br><br>configuration name="http_cache.conf" description="HTTP GET cache"><br>
<settings><br> <param name="max-urls" value="10000"/><br> <param name="location" value="$${base_dir}/http_cache"/><br> <param name="default-max-age" value="86400"/><br>
<param name="prefetch-thread-count" value="8"/><br> <param name="prefetch-queue-size" value="100"/><br> </settings><br></configuration><br><br>After placing a call with the following dialplan:<br>
<br><extension name="Adhearsion"><br> <condition field="destination_number" expression=".*$"><br> <action application="playback" data="<a href="http://s3.amazonaws.com/chibimp3/en/welcome.mp3" target="_blank">http://s3.amazonaws.com/chibimp3/en/welcome.mp3</a>"/><br>
</condition><br></extension><br><br>it saves the following files to: /usr/local/freeswitch/storage/http_file_cache<br><br>d79f3de20148020fd468d1a16c578aba.mp3.mp3<br>d79f3de20148020fd468d1a16c578aba.mp3.meta<br>
<br>(note the double .mp3)<br><br>After I make another phone call<br><br>I get the following error:<br><br>2013-03-26 22:21:20.039296 [ERR] mod_shout.c:683 Error opening /usr/local/freeswitch/storage/http_file_cache/d79f3de20148020fd468d1a16c578aba.mp3<br>
2013-03-26 22:21:20.039296 [ERR] mod_shout.c:862 Error from mpg123: File access error. (code 22)<br>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 <a href="http://s3.amazonaws.com/chibimp3/en/welcome.mp3" target="_blank">s3.amazonaws.com/chibimp3/en/welcome.mp3</a> Discarding file.<br>
<br>Note that from the log it looks like it is trying to open d79f3de20148020fd468d1a16c578aba.mp3 instead of d79f3de20148020fd468d1a16c578aba.mp3.mp3<br><br>Is this a bug in http_cache or am I doing something wrong?<br>
<br>
<br>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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" target="_blank">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>
<br></blockquote></div><br></div>
<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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>
<br></blockquote></div><br>