From: Joshua Colp Date: Fri, 23 Jan 2009 19:06:54 +0000 (+0000) Subject: When a call is forwarded stop any active indications. The new channel will provide... X-Git-Tag: 1.4.24-rc1~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a1faf0a5860fde9546926dcaa6fff214999d183;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@170568 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 303b361212..512931712c 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);