Merged revisions 281568 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Tue, 10 Aug 2010 17:49:36 +0000 (17:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 10 Aug 2010 17:49:36 +0000 (17:49 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r281568 | russell | 2010-08-10 12:48:42 -0500 (Tue, 10 Aug 2010) | 22 lines

  Merged revisions 281567 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2

  ................
    r281567 | russell | 2010-08-10 12:47:13 -0500 (Tue, 10 Aug 2010) | 15 lines

    Merged revisions 281566 via svnmerge from
    https://origsvn.digium.com/svn/asterisk/branches/1.4

    ........
      r281566 | russell | 2010-08-10 12:45:45 -0500 (Tue, 10 Aug 2010) | 8 lines

      Reset visible indication after answer.

      (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/trunk@281570 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 60bf7b4..0f7b488 100644 (file)
@@ -2611,8 +2611,9 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast
                                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) {