From f97d92bd0abe31910c5929c765df0657d863fa48 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 5 Sep 2018 11:39:40 +0000 Subject: [PATCH] core: Don't stop generators when writing RTCP frames. Generators provide such functionality as tone generation or silence generation. RTCP frames provide RTCP information and should not stop generators from operating. ASTERISK-28005 Change-Id: Ieadada07b068a7aa426e8763f1b73a18e1ac34a9 --- main/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/channel.c b/main/channel.c index c0e3cb43ec..b5492999a8 100644 --- a/main/channel.c +++ b/main/channel.c @@ -5029,7 +5029,7 @@ int ast_write_stream(struct ast_channel *chan, int stream_num, struct ast_frame goto done; } - if (ast_channel_generatordata(chan) && (!fr->src || strcasecmp(fr->src, "ast_prod"))) { + if (ast_channel_generatordata(chan) && (fr->frametype != AST_FRAME_RTCP) && (!fr->src || strcasecmp(fr->src, "ast_prod"))) { if (ast_test_flag(ast_channel_flags(chan), AST_FLAG_WRITE_INT)) { ast_deactivate_generator(chan); } else { -- 2.47.2