mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
Pass RING events in DOWN or RING states
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2701,7 +2701,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
|
||||
case SIG_SF_FEATD:
|
||||
case SIG_SF_FEATDMF:
|
||||
case SIG_SF_FEATB:
|
||||
if (ast->_state == AST_STATE_DOWN) {
|
||||
if ((ast->_state == AST_STATE_DOWN) || (ast->_state == AST_STATE_RING)) {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Ring detected\n");
|
||||
p->subs[index].f.frametype = AST_FRAME_CONTROL;
|
||||
|
||||
Reference in New Issue
Block a user