mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
Make ringing clearer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -308,9 +308,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
|
|||||||
case AST_CONTROL_RINGING:
|
case AST_CONTROL_RINGING:
|
||||||
if (option_verbose > 2)
|
if (option_verbose > 2)
|
||||||
ast_verbose( VERBOSE_PREFIX_3 "%s is ringing\n", o->chan->name);
|
ast_verbose( VERBOSE_PREFIX_3 "%s is ringing\n", o->chan->name);
|
||||||
if (!*sentringing && !outgoing->musiconhold) {
|
if (!(*sentringing) && !outgoing->musiconhold) {
|
||||||
ast_indicate(in, AST_CONTROL_RINGING);
|
ast_indicate(in, AST_CONTROL_RINGING);
|
||||||
*sentringing++;
|
(*sentringing)++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case AST_CONTROL_PROGRESS:
|
case AST_CONTROL_PROGRESS:
|
||||||
@@ -326,7 +326,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
|
|||||||
if (option_verbose > 2)
|
if (option_verbose > 2)
|
||||||
ast_verbose( VERBOSE_PREFIX_3 "%s stopped sounds\n", o->chan->name);
|
ast_verbose( VERBOSE_PREFIX_3 "%s stopped sounds\n", o->chan->name);
|
||||||
ast_indicate(in, -1);
|
ast_indicate(in, -1);
|
||||||
*sentringing = 0;
|
(*sentringing) = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user