From: Joshua C. Colp Date: Thu, 18 Jun 2020 08:49:37 +0000 (-0300) Subject: app_stream_echo: Fix state of added streams. X-Git-Tag: 16.12.0-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=397aa391b7287f5962fe05fefeaf2a5f71cc52ad;p=thirdparty%2Fasterisk.git 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 --- 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); }