diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-30 20:27:29 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-30 20:27:29 +0000 |
commit | 365e5cf843f02dc117f130415ee38af373806df9 (patch) | |
tree | 873f5910ba46c4e775191000853c95d1bfe9205b /channel.c | |
parent | e9c19f16dc78d5879ecb9bad1e22061b4ae1ae85 (diff) |
Don't write AST_FRAME_NULL or AST_FRAME_IAX frames out to the channel driver. (issue #8390 reported by hselasky)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48161 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |