diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-09-23 13:32:26 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-09-23 13:32:26 -0400 |
commit | f353df0326faea83ec669dc9cc47c8e106c01930 (patch) | |
tree | 08df95f54f40fa4f6c9ee893fb03714a7f82d680 /apps | |
parent | fc2d3e7e8123e0d6f06c27974abb000a6c299490 (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_stream_echo.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |