<p> Attention is currently required from: Andre Barbosa. </p>
<p>Andre Barbosa <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15987">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_stasis_playback: Send PlaybackFinish event only once for a list of sounds, when we have errors<br><br>When we try to play a list of sound files in the same Play command, we get only one PlaybackFinish event, after all sounds are played.<br><br>But in the case where the Play fails (because channel is destroyed for example), Asterisk will send one PlaybackFinish event for each sound file still to be played. If the list is big, Asterisk is sending lot of events.<br><br>This patch adds STASIS_PLAYBACK_STATE_FAILED state so we can understand that the play failed. On that case we don't send the event, if we still have a list of sounds to be played.<br><br>When we reach the last sound, we fired the PlaybackFinish with the failed state.<br><br>ASTERISK-29464 #close<br><br>Change-Id: I4c2e5921cc597702513af0d7c6c2c982e1798322<br>---<br>M include/asterisk/stasis_app_playback.h<br>M res/res_stasis_playback.c<br>M rest-api/api-docs/playbacks.json<br>3 files changed, 14 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/87/15987/4</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15987">change 15987</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/+/15987"/><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: I4c2e5921cc597702513af0d7c6c2c982e1798322 </div>
<div style="display:none"> Gerrit-Change-Number: 15987 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Andre Barbosa <andre.emanuel.barbosa@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Attention: Andre Barbosa <andre.emanuel.barbosa@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>