dect
/
asterisk
Archived
13
0
Fork 0

Only consider a RINGOFFHOOK as "UP" when a call is outgoing

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@815 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-04-11 03:03:41 +00:00
parent 4ae3c22d57
commit a168bed480
1 changed files with 1 additions and 1 deletions

View File

@ -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) {