]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure remote consoles unmute themselves again after reconnecting.
authorRussell Bryant <russell@russellbryant.com>
Mon, 15 Oct 2007 13:05:45 +0000 (13:05 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 15 Oct 2007 13:05:45 +0000 (13:05 +0000)
(closes issue #10847)
Reported by: atis
Patches:
      console_unmute_on_reconnect.patch uploaded by atis (license 242)

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

main/asterisk.c

index 873828e2f20caed242a4db73b12b4a631a211652..a5f0139120122634ff9591605d97b21b05a68584 100644 (file)
@@ -1764,6 +1764,10 @@ static int ast_el_read_char(EditLine *el, char *cp)
                                                        fprintf(stderr, "Reconnect succeeded after %.3f seconds\n", 1.0 / reconnects_per_second * tries);
                                                        printf(term_quit());
                                                        WELCOME_MESSAGE;
+                                                       if (!ast_opt_mute)
+                                                               fdprint(ast_consock, "logger mute silent");
+                                                       else 
+                                                               printf("log and verbose output currently muted ('logger mute' to unmute)\n");
                                                        break;
                                                } else {
                                                        usleep(1000000 / reconnects_per_second);