mirror of https://github.com/asterisk/asterisk
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: I4c2e5921cc597702513af0d7c6c2c982e179832219.0
parent
bc973bd719
commit
a47308ccb2
@ -0,0 +1,9 @@
|
||||
Subject: PlaybackFinished has a new error state
|
||||
|
||||
The PlaybackFinished event now has a new state "failed"
|
||||
that is used when the sound file was not played due to an error.
|
||||
Before the state on PlaybackFinished was always "done".
|
||||
|
||||
In case of multiple sound files to be played,
|
||||
the PlaybackFinished is sent only once in the end of the list,
|
||||
even in case of error.
|
Loading…
Reference in new issue