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:
Mark Spencer
2004-11-03 22:37:55 +00:00
parent 5718466917
commit 94994626b6
4 changed files with 46 additions and 1 deletions

View File

@@ -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 */