diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-19 08:03:28 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-19 08:03:28 +0000 |
commit | 37e912b541b4b6529812ed8a75b897660e681852 (patch) | |
tree | 8c1e6fdda81c923eb44b1cf47dc9d918a2b9be11 /channels/chan_local.c | |
parent | c45866947a950382a87c7953cd0d81aef253ac8f (diff) |
First stab at supporting video in chan_local
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28502 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r-- | channels/chan_local.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index a366ee0ed..4854f49b3 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -90,6 +90,7 @@ static const struct ast_channel_tech local_tech = { .answer = local_answer, .read = local_read, .write = local_write, + .write_video = local_write, .exception = local_read, .indicate = local_indicate, .fixup = local_fixup, @@ -256,12 +257,13 @@ static int local_write(struct ast_channel *ast, struct ast_frame *f) /* Just queue for delivery to the other side */ ast_mutex_lock(&p->lock); isoutbound = IS_OUTBOUND(ast, p); - if (f && (f->frametype == AST_FRAME_VOICE)) + if (f && (f->frametype == AST_FRAME_VOICE || f->frametype == AST_FRAME_VIDEO)) check_bridge(p, isoutbound); if (!p->alreadymasqed) res = local_queue_frame(p, isoutbound, f, ast); else { - ast_log(LOG_DEBUG, "Not posting to queue since already masked on '%s'\n", ast->name); + if (option_debug) + ast_log(LOG_DEBUG, "Not posting to queue since already masked on '%s'\n", ast->name); res = 0; } ast_mutex_unlock(&p->lock); |