From f353df0326faea83ec669dc9cc47c8e106c01930 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Sat, 23 Sep 2017 13:32:26 -0400 Subject: 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 --- apps/app_stream_echo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps') diff --git a/apps/app_stream_echo.c b/apps/app_stream_echo.c index 9695dcc87..717ed1c88 100644 --- a/apps/app_stream_echo.c +++ b/apps/app_stream_echo.c @@ -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); -- cgit v1.2.3