[Freeswitch-users] mod_http_cache doesn't retrieve any file

cmrienzo at gmail.com cmrienzo at gmail.com
Wed Apr 20 17:34:47 MSD 2016


Make sure FreeSWITCH process has permission to open /create directories in /var/cache/freeswitch and that directory exists. 

Chris


> On Apr 20, 2016, at 08:26, Alexander Mustafin <mustafin.aleksandr at gmail.com> wrote:
> 
> Hi there!
> 
> I am testing mod_http_cache module and unfortunately it doesn’t work for me properly. I loaded module, and trying console commands such as ‘http_prefetch’ and others.
> 
> A respond of server look like:
> 
> freeswitch at fs.sip3.net> http_prefetch http://download.wavetlan.com/SVV/Media/HTTP/WAV/Media-Convert/Media-Convert_test4_Ulaw_Mono_VBR_8SS_22050Hz.wav
> +OK
> 
> 2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:565 Locked cache
> 2016-04-20 12:22:38.810363 [INFO] mod_http_cache.c:653 Cache MISS: size = 1 (0 MB), hit ratio = 0/2
> 2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:718 Adding http://download.wavetlan.com/SVV/Media/HTTP/WAV/Media-Convert/Media-Convert_test4_Ulaw_Mono_VBR_8SS_22050Hz.wav(/var/cache/freeswitch/c9/396ca9-b29f-4a97-b40d-cb1430a7f1b6.wav) to cache index 1
> 2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:576 Unlocked cache
> 2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:1069 opening /var/cache/freeswitch/c9/396ca9-b29f-4a97-b40d-cb1430a7f1b6.wav for URL cache
> 2016-04-20 12:22:38.810363 [ERR] mod_http_cache.c:1103 open() error: No such file or directory
> 2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:565 Locked cache
> 2016-04-20 12:22:38.810363 [INFO] mod_http_cache.c:675 Failed to download URL http://download.wavetlan.com/SVV/Media/HTTP/WAV/Media-Convert/Media-Convert_test4_Ulaw_Mono_VBR_8SS_22050Hz.wav
> 2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:576 Unlocked cache
> 
> And server does not try to obtain file from the url, because I listen 80 port and I can’t see anything.
> 
> Possibly the problem here '2016-04-20 12:22:38.810363 [INFO] mod_http_cache.c:653 Cache MISS: size = 1 (0 MB), hit ratio = 0/2’ but I don’t know what  it’s about.
> 
> Any clue for this problem?
> 
> 
> Best regards,
> Alexander Mustafin
> mustafin.aleksandr at gmail.com
> 
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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/20160420/bef45a03/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list