mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
First stab at supporting video in chan_local
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -90,6 +90,7 @@ static const struct ast_channel_tech local_tech = {
|
|||||||
.answer = local_answer,
|
.answer = local_answer,
|
||||||
.read = local_read,
|
.read = local_read,
|
||||||
.write = local_write,
|
.write = local_write,
|
||||||
|
.write_video = local_write,
|
||||||
.exception = local_read,
|
.exception = local_read,
|
||||||
.indicate = local_indicate,
|
.indicate = local_indicate,
|
||||||
.fixup = local_fixup,
|
.fixup = local_fixup,
|
||||||
@@ -256,11 +257,12 @@ static int local_write(struct ast_channel *ast, struct ast_frame *f)
|
|||||||
/* Just queue for delivery to the other side */
|
/* Just queue for delivery to the other side */
|
||||||
ast_mutex_lock(&p->lock);
|
ast_mutex_lock(&p->lock);
|
||||||
isoutbound = IS_OUTBOUND(ast, p);
|
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);
|
check_bridge(p, isoutbound);
|
||||||
if (!p->alreadymasqed)
|
if (!p->alreadymasqed)
|
||||||
res = local_queue_frame(p, isoutbound, f, ast);
|
res = local_queue_frame(p, isoutbound, f, ast);
|
||||||
else {
|
else {
|
||||||
|
if (option_debug)
|
||||||
ast_log(LOG_DEBUG, "Not posting to queue since already masked on '%s'\n", ast->name);
|
ast_log(LOG_DEBUG, "Not posting to queue since already masked on '%s'\n", ast->name);
|
||||||
res = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user