mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Only consider a RINGOFFHOOK as "UP" when a call is outgoing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2634,7 +2634,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) || (ast->_state == AST_STATE_DIALING)) {
|
||||
} else if (p->outgoing && ((ast->_state == AST_STATE_RINGING) || (ast->_state == AST_STATE_DIALING))) {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Line answered\n");
|
||||
if (p->confirmanswer) {
|
||||
|
Reference in New Issue
Block a user