asterisk/rest-api/api-docs
Andre Barbosa a47308ccb2 res_stasis_playback: Send PlaybackFinish event only once for errors
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 many events.

This patch adds a 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.

When we reach the last sound, we send the PlaybackFinish with
the failed state.

ASTERISK-29464 #close

Change-Id: I4c2e5921cc597702513af0d7c6c2c982e1798322
2021-06-24 10:43:19 -05:00
..
applications.json ARI event type filtering 2019-02-20 09:56:22 -06:00
asterisk.json Added ARI resource /ari/asterisk/ping 2019-01-30 12:51:03 +00:00
bridges.json res_stasis.c: Added video_single option for bridge creation 2020-09-10 09:53:27 -05:00
channels.json ari: Allow variables to be set on channel create. 2020-05-15 06:41:45 -05:00
deviceStates.json Add missing OPTIONAL_API and ARI dependences. 2018-01-22 12:16:58 -05:00
endpoints.json message & stasis/messaging: make text message variables work in ARI 2020-03-02 12:12:11 -06:00
events.json res/res_ari: Added timestamp as a requirement for all ARI events 2019-03-11 23:57:01 +01:00
mailboxes.json Add missing OPTIONAL_API and ARI dependences. 2018-01-22 12:16:58 -05:00
playbacks.json res_stasis_playback: Send PlaybackFinish event only once for errors 2021-06-24 10:43:19 -05:00
recordings.json Add missing OPTIONAL_API and ARI dependences. 2018-01-22 12:16:58 -05:00
sounds.json Bump ARI version to 2.0.0 2016-11-18 10:56:31 -05:00