diff --git a/channels/chan_websocket.c b/channels/chan_websocket.c index 8235ccebc3..0d6e6c9fa3 100644 --- a/channels/chan_websocket.c +++ b/channels/chan_websocket.c @@ -1168,10 +1168,14 @@ static int webchan_write(struct ast_channel *ast, struct ast_frame *f) return -1; } + if (f->frametype == AST_FRAME_CNG) { + return 0; + } + if (f->frametype != AST_FRAME_VOICE) { ast_log(LOG_WARNING, "%s: This WebSocket channel only supports AST_FRAME_VOICE frames\n", ast_channel_name(ast)); - return -1; + return 0; } if (ast_format_cmp(f->subclass.format, instance->native_format) == AST_FORMAT_CMP_NOT_EQUAL) {