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">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">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>