<p> Attention is currently required from: Sean Bright. </p>
<p><a href="https://gerrit.asterisk.org/c/asterisk/+/19797">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">Patchset:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/19797?tab=comments">Patch Set #1:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Ultimately the check-then-act is always going to result in a race condition. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Agreed. Thinking about it some more, the root cause is that `filehelper` is full of logic that only makes sense for 'local files', not for media cached-files: like iterating over file extensions. Instead of adding more exceptions there, I opted to avoid this method altogether for media cache files.</p><p style="white-space: pre-wrap; word-wrap: break-word;">My second patch is not yet formatted and doesn't work for video yet, but it illustrates the idea. The method `ast_openstream_full` now has different codepaths depending on where the file comes from (local file / media cache). To avoid much duplicated code, I added `stream_file` which links to audio file to the channel for both scenarion.</p><p style="white-space: pre-wrap; word-wrap: break-word;">If we can agree on this idea, i'm happy to format the patch and apply for video too, although i don't have a test setup for video.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19797">change 19797</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/19797"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If6b5f4af9cbdf39009252594eb987b07bfb493a4 </div>
<div style="display:none"> Gerrit-Change-Number: 19797 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nathan Bruning <nathan@iperity.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-Attention: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 08 Feb 2023 11:55:34 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Comment-In-Reply-To: Nathan Bruning <nathan@iperity.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>