mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Pass through flash hook
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -358,6 +358,8 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
|
||||
/* We ran out of time */
|
||||
config->timelimit = 0;
|
||||
who = chan;
|
||||
if (f)
|
||||
ast_frfree(f);
|
||||
f = NULL;
|
||||
res = 0;
|
||||
}
|
||||
@@ -384,6 +386,12 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
|
||||
else
|
||||
ast_indicate(chan, -1);
|
||||
}
|
||||
if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_FLASH)) {
|
||||
if (who == chan)
|
||||
ast_indicate(peer, AST_CONTROL_FLASH);
|
||||
else
|
||||
ast_indicate(chan, AST_CONTROL_FLASH);
|
||||
}
|
||||
if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_OPTION)) {
|
||||
aoh = f->data;
|
||||
/* Forward option Requests */
|
||||
|
Reference in New Issue
Block a user