<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6300">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">main/app: Only look to end of file if ':end' is specified, and not just ':'<br><br>There is a little known feature in app_controlplayback that will cause the<br>specified offset to be used relative to the end of a file if a ':end' is<br>detected within the filename.<br><br>This feature is pretty bad, but okay.<br><br>However, a bug exists in this code where a ':' detected in the filename<br>will cause the end pointer to be non-NULL, even if the full ':end' isn't<br>specified. This causes us to treat an unspecified offset (0) as being<br>"start playing from the end of the file", resulting in no file playback<br>occurring.<br><br>This patch fixes this bug by resetting the end pointer if ':end' is not<br>found in the filename.<br><br>ASTERISK-23608 #close<br>Reported by: Jonathan White<br><br>Change-Id: Ib4c7b1b45283e4effd622a970055c51146892f35<br>(cherry picked from commit 13efea24f7ce6ccc01d1a5a0603be2636d83a408)<br>---<br>M main/app.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/app.c b/main/app.c<br>index 85dc87d..8ea6f82 100644<br>--- a/main/app.c<br>+++ b/main/app.c<br>@@ -1113,6 +1113,8 @@<br> if (!strcasecmp(end, ":end")) {<br> *end = '\0';<br> end++;<br>+ } else {<br>+ end = NULL;<br> }<br> }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6300">change 6300</a>. To unsubscribe, 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/6300"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ib4c7b1b45283e4effd622a970055c51146892f35 </div>
<div style="display:none"> Gerrit-Change-Number: 6300 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>