Skip to content
Snippets Groups Projects
Commit 0fad11f2 authored by Sean Bright's avatar Sean Bright
Browse files

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
parent f91a9050
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment