aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-31 18:47:51 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-31 18:47:51 +0000
commite4b13479c6619bf0316927e5c486fdd8e036d8d0 (patch)
tree0979ba2da08a0e12df56018c1648f81b7b9dc705 /main
parent73641d61f2b758599f39dbc41eb9c1243b16fdf1 (diff)
Don't fail the write if they try to write a NULL or IAX frame as we just ignore these.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41596 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index 6ba79eea6..16d89d661 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -2532,6 +2532,7 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
case AST_FRAME_NULL:
case AST_FRAME_IAX:
/* Ignore these */
+ res = 0;
break;
default:
res = chan->tech->write(chan, f);