mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 19:20:35 +00:00
app_stream_echo: Don't echo declined streams
Discovered while experimenting with Cyber Mega Phone 2K Ultimate Dynamic Edition after accepting the audio request but declining the video one. Change-Id: Iaa86d41fccfbc1b559a30ccf740d78a3b5f8a98c
This commit is contained in:
@@ -249,6 +249,11 @@ static struct ast_stream_topology *stream_echo_topology_alloc(
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) {
|
||||
/* Don't copy removed/declined streams */
|
||||
continue;
|
||||
}
|
||||
|
||||
do {
|
||||
stream = ast_stream_clone(stream, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user