aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-30 02:12:09 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-30 02:12:09 +0000
commitcd0067f95a3d30b8c59cf745e051810295fc96db (patch)
tree523cf56292aca0be31b6cbce502ff6608eab29a2 /apps/app_dial.c
parent1369e0caffc94ce9dc3be97252868373c6b6a91b (diff)
Add SIP video fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6448 f38db490-d61c-443f-a65b-d21fe96a405b
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))