diff --git a/main/core_local.c b/main/core_local.c index 07a6ff7beaf4bef001256771cb85c16fb50743ad..15a546cbfc6b24ee9ffdf4770022d1e251ea05dc 100644 --- a/main/core_local.c +++ b/main/core_local.c @@ -967,7 +967,8 @@ static struct ast_channel *local_request_with_stream_topology(const char *type, stream = ast_stream_topology_get_stream(audio_filtered_topology, i); - if (ast_stream_get_type(stream) != AST_MEDIA_TYPE_AUDIO) { + if (ast_stream_get_type(stream) != AST_MEDIA_TYPE_AUDIO || + ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) { continue; }