[asterisk-bugs] [JIRA] (ASTERISK-29464) ARI - PlaybackFinish skip error events

Andre Barbosa (JIRA) noreply at issues.asterisk.org
Fri Jun 4 05:19:08 CDT 2021


Andre Barbosa created ASTERISK-29464:
----------------------------------------

             Summary: ARI - PlaybackFinish skip error events
                 Key: ASTERISK-29464
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29464
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: Resources/res_stasis_playback
    Affects Versions: 18.4.0
            Reporter: Andre Barbosa


This one is related with https://issues.asterisk.org/jira/browse/ASTERISK-29463

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.

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.

With this patch with STASIS_PLAYBACK_STATE_ERROR state (https://issues.asterisk.org/jira/browse/ASTERISK-29463 please), we understand that the play failed and we don't send the event if we still have a list of sounds to play.

When we reach the last sound, we fired the PlaybackFinish with the error state.


 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list