mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
app_playback.c: Fix PLAYBACKSTATUS regression.
In Asterisk 11, if a channel was redirected away during Playback(),
the PLAYBACKSTATUS variable would be set to SUCCESS. In Asterisk 12
(specifically commit 7d9871b394
) that
behavior was inadvertently changed and the same operation would result
in the PLAYBACKSTATUS variable being set to FAILED. The Asterisk 11
behavior has been restored.
Partial fix for ASTERISK~25661.
Change-Id: I53f54e56b59b61c99403a481b6cb8d88b5a559ff
This commit is contained in:
committed by
George Joseph
parent
91415a83d1
commit
cbaba132a7
@@ -507,8 +507,7 @@ static int playback_exec(struct ast_channel *chan, const char *data)
|
|||||||
if (!res) {
|
if (!res) {
|
||||||
res = ast_waitstream(chan, "");
|
res = ast_waitstream(chan, "");
|
||||||
ast_stopstream(chan);
|
ast_stopstream(chan);
|
||||||
}
|
} else {
|
||||||
if (res) {
|
|
||||||
if (!ast_check_hangup(chan)) {
|
if (!ast_check_hangup(chan)) {
|
||||||
ast_log(LOG_WARNING, "Playback failed on %s for %s\n", ast_channel_name(chan), (char *)data);
|
ast_log(LOG_WARNING, "Playback failed on %s for %s\n", ast_channel_name(chan), (char *)data);
|
||||||
}
|
}
|
||||||
|
8
doc/UPGRADE-staging/app_playback_playbackstatus.txt
Normal file
8
doc/UPGRADE-staging/app_playback_playbackstatus.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Subject: app_playback
|
||||||
|
|
||||||
|
In Asterisk 11, if a channel was redirected away during Playback(),
|
||||||
|
the PLAYBACKSTATUS variable would be set to SUCCESS. In Asterisk 12
|
||||||
|
(specifically commit 7d9871b3940fa50e85039aef6a8fb9870a7615b9) that
|
||||||
|
behavior was inadvertently changed and the same operation would result
|
||||||
|
in the PLAYBACKSTATUS variable being set to FAILED. The Asterisk 11
|
||||||
|
behavior has been restored.
|
Reference in New Issue
Block a user