]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Reset visible indication after answer.
authorRussell Bryant <russell@russellbryant.com>
Tue, 10 Aug 2010 17:45:45 +0000 (17:45 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 10 Aug 2010 17:45:45 +0000 (17:45 +0000)
(closes issue #17641)
Reported by: klaus3000
Patches:
      ast1.6.2.9-app_dial-visible_indication.patch.txt uploaded by klaus3000 (license 65)
Tested by: schmidts

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

apps/app_dial.c

index 3a942ffc2129fef96f239682e2d7259ef0bbac91..f1dd6ef3d3cd0aad5f76debcdbbf1defe670f114 100644 (file)
@@ -1856,8 +1856,9 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
                                sentringing = 0;
                                ast_indicate(chan, -1);
                        }
-                       /* Be sure no generators are left on it */
+                       /* Be sure no generators are left on it and reset the visible indication */
                        ast_deactivate_generator(chan);
+                       chan->visible_indication = 0;
                        /* Make sure channels are compatible */
                        res = ast_channel_make_compatible(chan, peer);
                        if (res < 0) {