summaryrefslogtreecommitdiff
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-08-30 02:12:09 +0000
committerMark Spencer <markster@digium.com>2005-08-30 02:12:09 +0000
commit5d4d2fdfd41a804fc2696b737ef3fca5d64daaca (patch)
tree523cf56292aca0be31b6cbce502ff6608eab29a2 /apps/app_dial.c
parent538e160956259f65c197a467e459803860b11ef6 (diff)
Add SIP video fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-xapps/app_dial.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 8fe9fc43a..ca72060b9 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -493,6 +493,11 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
if (!ast_test_flag(outgoing, DIAL_RINGBACKONLY))
ast_indicate(in, AST_CONTROL_PROGRESS);
break;
+ case AST_CONTROL_VIDUPDATE:
+ if (option_verbose > 2)
+ ast_verbose ( VERBOSE_PREFIX_3 "%s requested a video update, passing it to %s\n", o->chan->name,in->name);
+ ast_indicate(in, AST_CONTROL_VIDUPDATE);
+ break;
case AST_CONTROL_PROCEEDING:
if (option_verbose > 2)
ast_verbose ( VERBOSE_PREFIX_3 "%s is proceeding passing it to %s\n", o->chan->name,in->name);
@@ -600,6 +605,11 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
if (ast_write(outgoing->chan, f))
ast_log(LOG_WARNING, "Unable to forward voice\n");
}
+ if (single && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_VIDUPDATE)) {
+ if (option_verbose > 2)
+ ast_verbose ( VERBOSE_PREFIX_3 "%s requested a video update, passing it to %s\n", in->name,outgoing->chan->name);
+ ast_indicate(outgoing->chan, AST_CONTROL_VIDUPDATE);
+ }
ast_frfree(f);
}
if (!*to && (option_verbose > 2))