mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
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
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user