aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-30 20:27:29 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-30 20:27:29 +0000
commit365e5cf843f02dc117f130415ee38af373806df9 (patch)
tree873f5910ba46c4e775191000853c95d1bfe9205b
parente9c19f16dc78d5879ecb9bad1e22061b4ae1ae85 (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
-rw-r--r--channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index c18022c8e..57ca8fe16 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;