Don't set state to UP state within the driver, but instead allow ast_read to do so.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-10-02 17:16:36 +00:00
parent 7aef6a5b83
commit c8673a011e
2 changed files with 2 additions and 4 deletions

View File

@@ -3867,7 +3867,6 @@ struct ast_frame *zt_read(struct ast_channel *ast)
p->subs[index].needanswer = 0;
p->subs[index].f.frametype = AST_FRAME_CONTROL;
p->subs[index].f.subclass = AST_CONTROL_ANSWER;
ast_setstate(ast, AST_STATE_UP);
ast_mutex_unlock(&p->lock);
return &p->subs[index].f;
}
@@ -4019,7 +4018,6 @@ struct ast_frame *zt_read(struct ast_channel *ast)
of a DTMF digit */
p->subs[index].f.frametype = AST_FRAME_CONTROL;
p->subs[index].f.subclass = AST_CONTROL_ANSWER;
ast_setstate(ast, AST_STATE_UP);
f = &p->subs[index].f;
} else if (p->callwaitcas) {
if ((f->subclass == 'A') || (f->subclass == 'D')) {