[Freeswitch-users] mod_httapi caching and sample rate

Michael Jerris mike at jerris.com
Wed Jul 16 16:59:48 MSD 2014


it's hitting the cache, but it's sample rate isn't what it's looking
for, so it has to resample.

> On Jul 16, 2014, at 2:03 AM, Neil Patel <neilp at cs.stanford.edu> wrote:
>
> I have a Lua IVR app that is reading files from a remote server. mod_httapi is caching files to local storage. However, I see this error in the logs frequently:
>
> freeswitch.log.2014-07-14-20-00-06.1:2014-07-14 19:39:40.690935 [DEBUG] switch_core_file.c:216 File /usr/local/freeswitch/storage/http_file_cache/7b1120ea3a0ebce2718d6f5588846b9e.wav sample rate 44100 doesn't match requested rate 8000
>
> Does this mean there is a cache miss? I am using session:playAndGetDigits to playback the file, how do I adjust my request to ensure a cache hit?
>
> Thanks,
> Neil
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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



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