<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Make sure FreeSWITCH process has permission to open /create directories in /var/cache/freeswitch and that directory exists. </div><div><br></div><div>Chris</div><div><br></div><div><br>On Apr 20, 2016, at 08:26, Alexander Mustafin <<a href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8">Hi there!<div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">A respond of server look like:</div><div class=""><br class=""></div><div class=""><div class=""><a href="mailto:freeswitch@fs.sip3.net" class="">freeswitch@fs.sip3.net</a>> http_prefetch <a href="http://download.wavetlan.com/SVV/Media/HTTP/WAV/Media-Convert/Media-Convert_test4_Ulaw_Mono_VBR_8SS_22050Hz.wav" class="">http://download.wavetlan.com/SVV/Media/HTTP/WAV/Media-Convert/Media-Convert_test4_Ulaw_Mono_VBR_8SS_22050Hz.wav</a></div><div class="">+OK</div><div class=""><br class=""></div><div class="">2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:565 Locked cache</div><div class="">2016-04-20 12:22:38.810363 [INFO] mod_http_cache.c:653 Cache MISS: size = 1 (0 MB), hit ratio = 0/2</div><div class="">2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:718 Adding <a href="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)" class="">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)</a> to cache index 1</div><div class="">2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:576 Unlocked cache</div><div class="">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</div><div class="">2016-04-20 12:22:38.810363 [ERR] mod_http_cache.c:1103 open() error: No such file or directory</div><div class="">2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:565 Locked cache</div><div class="">2016-04-20 12:22:38.810363 [INFO] mod_http_cache.c:675 Failed to download URL <a href="http://download.wavetlan.com/SVV/Media/HTTP/WAV/Media-Convert/Media-Convert_test4_Ulaw_Mono_VBR_8SS_22050Hz.wav" class="">http://download.wavetlan.com/SVV/Media/HTTP/WAV/Media-Convert/Media-Convert_test4_Ulaw_Mono_VBR_8SS_22050Hz.wav</a></div><div class="">2016-04-20 12:22:38.810363 [DEBUG] mod_http_cache.c:576 Unlocked cache</div><div class=""><br class=""></div><div class="">And server does not try to obtain file from the url, because I listen 80 port and I can’t see anything.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Any clue for this problem?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div class="">Best regards,</div><div class="">Alexander Mustafin</div><div class=""><a href="mailto:mustafin.aleksandr@gmail.com" class="">mustafin.aleksandr@gmail.com</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span></div></blockquote></body></html>