[asterisk-bugs] [JIRA] (ASTERISK-29464) ARI - PlaybackFinish skip error events
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Thu Jun 24 08:54:33 CDT 2021
[ https://issues.asterisk.org/jira/browse/ASTERISK-29464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255456#comment-255456 ]
Friendly Automation commented on ASTERISK-29464:
------------------------------------------------
Change 16118 merged by Friendly Automation:
res_stasis_playback: Send PlaybackFinish event only once for errors
[https://gerrit.asterisk.org/c/asterisk/+/16118|https://gerrit.asterisk.org/c/asterisk/+/16118]
> 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
> Assignee: Andre Barbosa
> Labels: patch
> Attachments: playback_finish_error_state.diff
>
>
> This one is related with 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.
> This patch adds STASIS_PLAYBACK_STATE_ERROR state (ASTERISK-29463 please) 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.
> 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