Issue #6878 - Manager event DNDstate hidden under verbose option (casper)
authorOlle Johansson <oej@edvina.net>
Tue, 4 Apr 2006 18:26:24 +0000 (18:26 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 4 Apr 2006 18:26:24 +0000 (18:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17366 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 3f933df..f1729ab 100644 (file)
@@ -5814,12 +5814,11 @@ lax);
                                break;
                        } else if (!strcmp(exten, "*78")) {
                                /* Do not disturb */
-                               if (option_verbose > 2) {
+                               if (option_verbose > 2)
                                        ast_verbose(VERBOSE_PREFIX_3 "Enabled DND on channel %d\n", p->channel);
-                                       manager_event(EVENT_FLAG_SYSTEM, "DNDState",
-                                                               "Channel: Zap/%d\r\n"
-                                                               "Status: enabled\r\n", p->channel);
-                               }
+                               manager_event(EVENT_FLAG_SYSTEM, "DNDState",
+                                                       "Channel: Zap/%d\r\n"
+                                                       "Status: enabled\r\n", p->channel);
                                res = tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_DIALRECALL);
                                p->dnd = 1;
                                getforward = 0;
@@ -5827,12 +5826,11 @@ lax);
                                len = 0;
                        } else if (!strcmp(exten, "*79")) {
                                /* Do not disturb */
-                               if (option_verbose > 2) {
+                               if (option_verbose > 2)
                                        ast_verbose(VERBOSE_PREFIX_3 "Disabled DND on channel %d\n", p->channel);
-                                       manager_event(EVENT_FLAG_SYSTEM, "DNDState",
-                                                               "Channel: Zap/%d\r\n"
-                                                               "Status: disabled\r\n", p->channel);
-                               }
+                               manager_event(EVENT_FLAG_SYSTEM, "DNDState",
+                                                       "Channel: Zap/%d\r\n"
+                                                       "Status: disabled\r\n", p->channel);
                                res = tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_DIALRECALL);
                                p->dnd = 0;
                                getforward = 0;