aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-23 19:06:54 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-23 19:06:54 +0000
commit11708f14fa2efddeb26a1c1397f71c6b4afdff21 (patch)
tree2227c0f62257f69a465e5458a958bbb39ecf82ac /apps/app_dial.c
parentb2daf9aa8a5670c5ed04f54a0fe5e03eeb68b113 (diff)
When a call is forwarded stop any active indications. The new channel will provide an indication, if need be, itself.
(closes issue #14310) Reported by: RadicAlish git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@170568 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 303b36121..512931712 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -564,6 +564,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct dial_l
ast_set_callerid(c, S_OR(in->macroexten, in->exten), get_cid_name(cidname, sizeof(cidname), in), NULL);
}
}
+ if (single) {
+ ast_indicate(in, -1);
+ }
}
/* Hangup the original channel now, in case we needed it */
ast_hangup(winner);