<div dir="ltr"><div>Have you tried limiting what file formats your asterisk installation can read?<br><br></div>If you are only using ulaw only load format_pcm.so and that could cut down on the searching.<br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 8, 2018 at 8:36 PM, Naftoli Gugenheim <span dir="ltr"><<a target="_blank" href="mailto:naftoligug@gmail.com">naftoligug@gmail.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr">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.<div><br></div><div>Is there any way to tell Asterisk not to try all those files?</div><div><br></div><div>Some output logged by gcsfuse showing the huge number and cost of these lookups: <a target="_blank" href="https://gist.github.com/nafg/06f4a4272c2bdc5dee18230625eab046">https://gist.github.<wbr>com/nafg/<wbr>06f4a4272c2bdc5dee18230625eab0<wbr>46</a></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.<wbr>com</a><br>
<a target="_blank" rel="noreferrer" href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev">http://lists.digium.com/cgi-<wbr>bin/mailman/listinfo/asterisk-<wbr>app-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">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.<br>---Heinlein</div>
</div></div></div></div></div></div>