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
This commit is contained in:
Joshua C. Colp 2020-06-18 05:49:37 -03:00 committed by Friendly Automation
parent d88e230037
commit 00a52b4752
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}