Fixed ackcall (once again, this time differently) in chan_agent

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jim Dixon
2004-12-22 20:50:23 +00:00
parent 414430d775
commit 46c3db1169

View File

@@ -354,7 +354,7 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
p->acknowledged = 0;
}
}
if (f && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_ANSWER)) {
if ((p->chan && (p->chan->_state != AST_STATE_UP)) && f && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_ANSWER)) {
/* TC */
if (p->ackcall) {
if (option_verbose > 2)