mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user