diff options
author | Joshua Colp <jcolp@digium.com> | 2008-03-05 22:43:22 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2008-03-05 22:43:22 +0000 |
commit | 496adc6fc08da92e9c151829ed1db9e9fc480ce4 (patch) | |
tree | a996e649bf519c5eb10d31e1e353e551a9fca363 /apps | |
parent | 82b3a87fd7fd93f1c62b512d1c03cd8d5e33de07 (diff) |
Merged revisions 106235 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r106235 | file | 2008-03-05 18:32:10 -0400 (Wed, 05 Mar 2008) | 4 lines
Add a control frame to indicate the source of media has changed. Depending on the underlying technology it may need to change some things.
(closes issue #12148)
Reported by: jcomellas
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@106239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dial.c | 7 | ||||
-rw-r--r-- | apps/app_followme.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 5698c1945..b52a97b2d 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -717,6 +717,10 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, ast_verb(3, "%s requested a video update, passing it to %s\n", c->name, in->name); ast_indicate(in, AST_CONTROL_VIDUPDATE); break; + case AST_CONTROL_SRCUPDATE: + ast_verb(3, "%s requested a source update, passing it to %s\n", c->name, in->name); + ast_indicate(in, AST_CONTROL_SRCUPDATE); + break; case AST_CONTROL_PROCEEDING: ast_verb(3, "%s is proceeding passing it to %s\n", c->name, in->name); if (single && CAN_EARLY_BRIDGE(peerflags)) @@ -820,7 +824,8 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, if (single && (f->frametype == AST_FRAME_CONTROL) && ((f->subclass == AST_CONTROL_HOLD) || (f->subclass == AST_CONTROL_UNHOLD) || - (f->subclass == AST_CONTROL_VIDUPDATE))) { + (f->subclass == AST_CONTROL_VIDUPDATE) || + (f->subclass == AST_CONTROL_SRCUPDATE))) { ast_verb(3, "%s requested special control %d, passing it to %s\n", in->name, f->subclass, outgoing->chan->name); ast_indicate_data(outgoing->chan, f->subclass, f->data, f->datalen); } diff --git a/apps/app_followme.c b/apps/app_followme.c index 9dd130b9d..4e83c819f 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -656,6 +656,9 @@ static struct ast_channel *wait_for_winner(struct findme_user_listptr *findme_us case AST_CONTROL_VIDUPDATE: ast_verb(3, "%s requested a video update, passing it to %s\n", winner->name, caller->name); break; + case AST_CONTROL_SRCUPDATE: + ast_verb(3, "%s requested a source update, passing it to %s\n", winner->name, caller->name); + break; case AST_CONTROL_PROCEEDING: ast_verb(3, "%s is proceeding passing it to %s\n", winner->name,caller->name); break; |