From 37db91a3b8cbee6e4532418603991de418bbdf24 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 30 Nov 2006 20:27:29 +0000 Subject: [PATCH] Don't write AST_FRAME_NULL or AST_FRAME_IAX frames out to the channel driver. (issue #8390 reported by hselasky) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48161 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/channel.c b/channel.c index c18022c8e9..57ca8fe162 100644 --- a/channel.c +++ b/channel.c @@ -2296,6 +2296,11 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr) else res = 0; break; + case AST_FRAME_NULL: + case AST_FRAME_IAX: + /* Ignore these */ + res = 0; + break; default: if (chan->tech->write) { f = (chan->writetrans) ? ast_translate(chan->writetrans, fr, 0) : fr;