summaryrefslogtreecommitdiff
path: root/apps/app_stream_echo.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-09-23 13:32:26 -0400
committerSean Bright <sean.bright@gmail.com>2017-09-23 12:33:54 -0500
commit0fad11f21c309b44ada3572f593b6dd6588baa28 (patch)
treee790423068808bed90d77a13507a31b677f80afa /apps/app_stream_echo.c
parentf91a905003eb4bb3f68b04e7a235ecc5b0cd47dc (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/app_stream_echo.c')
-rw-r--r--apps/app_stream_echo.c5
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);