It's okay to be answered while you are in DIALING state

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 23 years ago
parent 6a72f56ee2
commit 7674dff43d

@ -2633,7 +2633,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
ast_log(LOG_DEBUG, "Ring detected\n"); ast_log(LOG_DEBUG, "Ring detected\n");
p->subs[index].f.frametype = AST_FRAME_CONTROL; p->subs[index].f.frametype = AST_FRAME_CONTROL;
p->subs[index].f.subclass = AST_CONTROL_RING; p->subs[index].f.subclass = AST_CONTROL_RING;
} else if (ast->_state == AST_STATE_RINGING) { } else if ((ast->_state == AST_STATE_RINGING) || (ast->_state == AST_STATE_DIALING)) {
if (option_debug) if (option_debug)
ast_log(LOG_DEBUG, "Line answered\n"); ast_log(LOG_DEBUG, "Line answered\n");
if (p->confirmanswer) { if (p->confirmanswer) {

Loading…
Cancel
Save