[asterisk-app-dev] Limit file extensions tried?
John Kiniston
johnkiniston at gmail.com
Mon Apr 9 17:53:33 CDT 2018
Have you tried limiting what file formats your asterisk installation can
read?
If you are only using ulaw only load format_pcm.so and that could cut down
on the searching.
On Sun, Apr 8, 2018 at 8:36 PM, Naftoli Gugenheim <naftoligug at gmail.com>
wrote:
> I have an asterisk instance deployed on google cloud, with the prompts are
> stored in a cloud storage bucket, using gcsfuse to mount it. The problem is
> that every time asterisk is supposed to play a file, it checks for the
> existence of a LOT of possible filenames (based on the set of possible file
> extensions). It seems like it doesn't even stop when it finds one that
> exists. However since it's a remote filesystem, each check has a cost and
> it really adds up.
>
> Is there any way to tell Asterisk not to try all those files?
>
> Some output logged by gcsfuse showing the huge number and cost of these
> lookups: https://gist.github.com/nafg/06f4a4272c2bdc5dee18230625eab046
>
>
> _______________________________________________
> asterisk-app-dev mailing list
> asterisk-app-dev at lists.digium.com
> http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
>
>
--
A human being should be able to change a diaper, plan an invasion, butcher
a hog, conn a ship, design a building, write a sonnet, balance accounts,
build a wall, set a bone, comfort the dying, take orders, give orders,
cooperate, act alone, solve equations, analyze a new problem, pitch manure,
program a computer, cook a tasty meal, fight efficiently, die gallantly.
Specialization is for insects.
---Heinlein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20180409/e77b8864/attachment.html>
More information about the asterisk-app-dev
mailing list