aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-14 16:09:38 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-14 16:09:38 +0000
commitc84930e93790ae6aa9b6fc3910402c342e024dee (patch)
tree3e7493484f6e022ef3fe70778708c9eb5bcb6e2c /apps/app_dial.c
parent05976c185484954e8997f0d8b5134ee72cb5fcb3 (diff)
Reset the sentringing indication when redirects occur.
If a redirecting control frame is processed or a call forward occurs, we need to reset the sentringing flag so that we can send another ringing indication to the phone that may contain a connected line update. AST-164 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@206455 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 92d16576b..ceb5f5d2f 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -972,6 +972,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
continue;
/* here, o->chan == c == winner */
if (!ast_strlen_zero(c->call_forward)) {
+ (*sentringing) = 0;
do_forward(o, &num, peerflags, single, to);
continue;
}
@@ -1097,6 +1098,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
} else {
ast_verb(3, "%s redirecting info has changed, passing it to %s\n", c->name, in->name);
ast_indicate_data(in, AST_CONTROL_REDIRECTING, f->data.ptr, f->datalen);
+ (*sentringing) = 0;
}
break;
case AST_CONTROL_PROCEEDING: