[Freeswitch-users] Mod http_cache and file extension
David Wilkie
dwilkie at gmail.com
Tue Mar 26 18:30:05 MSK 2013
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130326/64653dcb/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list