Skip to content
Snippets Groups Projects
Commit 21e6e48a authored by Mark Spencer's avatar Mark Spencer
Browse files

Don't pass agent audio until call is confirmed (bug #3677)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent b2169887
No related branches found
No related tags found
No related merge requests found
...@@ -406,6 +406,11 @@ static struct ast_frame *agent_read(struct ast_channel *ast) ...@@ -406,6 +406,11 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
ast_frfree(f); ast_frfree(f);
f = NULL; f = NULL;
} }
if (f && (f->frametype == AST_FRAME_VOICE) && !p->acknowledged) {
/* Don't pass along agent audio until call is acknowledged */
ast_frfree(f);
f = &null_frame;
}
CLEANUP(ast,p); CLEANUP(ast,p);
if (p->chan && !p->chan->_bridge) { if (p->chan && !p->chan->_bridge) {
if (strcasecmp(p->chan->type, "Local")) { if (strcasecmp(p->chan->type, "Local")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment