From 7e3b44be2f46090755b850199629f99df17f3a37 Mon Sep 17 00:00:00 2001 From: markster Date: Fri, 28 Mar 2003 23:39:24 +0000 Subject: It's okay to be answered while you are in DIALING state git-svn-id: http://svn.digium.com/svn/asterisk/trunk@714 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels') diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 56dc9e940..035576451 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2633,7 +2633,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast) ast_log(LOG_DEBUG, "Ring detected\n"); p->subs[index].f.frametype = AST_FRAME_CONTROL; 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) ast_log(LOG_DEBUG, "Line answered\n"); if (p->confirmanswer) { -- cgit v1.2.3