Index: asterisk/channels/chan_zap.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v retrieving revision 1.428 diff -u -r1.428 chan_zap.c --- asterisk/channels/chan_zap.c 21 Apr 2005 06:02:44 -0000 1.428 +++ asterisk/channels/chan_zap.c 23 Apr 2005 00:33:04 -0000 @@ -5243,8 +5243,12 @@ 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, "ZapDNDStatus", + "ZapChannel: %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; @@ -5252,8 +5256,12 @@ 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, "ZapDNDStatus", + "ZapChannel: %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; @@ -9246,10 +9254,12 @@ "Channel: %d\r\n" "Signalling: %s\r\n" "Context: %s\r\n" + "DND: %s\r\n" "Alarm: %s\r\n" "%s" "\r\n", tmp->channel, sig2str(tmp->sig), tmp->context, + tmp->dnd ? "Enabled" : "Disabled", alarm2str(alarm), idText); ast_mutex_unlock(&s->lock); }