From bc7ce4619956b949002ca278b39f69f2732ee921 Mon Sep 17 00:00:00 2001 From: "Joshua C. Colp" Date: Thu, 18 Jun 2020 05:49:37 -0300 Subject: [PATCH] app_stream_echo: Fix state of added streams. When stream support was added to Asterisk the stream state was used inconsistently, resulting in odd behavior. This was then standardized to be the state of a stream from the perspective of Asterisk. This change updates the StreamEcho dialplan application to use the correct state, send only, since we are only sending to the endpoint and not expecting them to send us multiple video streams. ASTERISK-28954 Change-Id: I35bfd533ef1184ffe62586b22bbd253c82872a56 --- apps/app_stream_echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_stream_echo.c b/apps/app_stream_echo.c index 717ed1c886..669f92e72c 100644 --- a/apps/app_stream_echo.c +++ b/apps/app_stream_echo.c @@ -274,7 +274,7 @@ static struct ast_stream_topology *stream_echo_topology_alloc( * cloning the same stream. */ ast_stream_set_state(stream, n == num ? - AST_STREAM_STATE_SENDRECV : AST_STREAM_STATE_RECVONLY); + AST_STREAM_STATE_SENDRECV : AST_STREAM_STATE_SENDONLY); } while (--n); } -- 2.47.2