]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't write AST_FRAME_NULL or AST_FRAME_IAX frames out to the channel driver. (issue...
authorJoshua Colp <jcolp@digium.com>
Thu, 30 Nov 2006 20:27:29 +0000 (20:27 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 30 Nov 2006 20:27:29 +0000 (20:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48161 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index c18022c8e9369c49337337c561586af5ee155c26..57ca8fe16299b18506bd80c4929608ac73300db6 100644 (file)
--- 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;