]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When a call is forwarded stop any active indications. The new channel will provide...
authorJoshua Colp <jcolp@digium.com>
Fri, 23 Jan 2009 19:06:54 +0000 (19:06 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 23 Jan 2009 19:06:54 +0000 (19:06 +0000)
(closes issue #14310)
Reported by: RadicAlish

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@170568 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 303b3612123efe6a72cb3dcfe7254a1b0a4bc0ce..512931712c14ddf810e93832c87fd84368805682 100644 (file)
@@ -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);