[asterisk-commits] branch 1.2 r17367 -
/branches/1.2/channels/chan_zap.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Apr 4 11:28:16 MST 2006
Author: oej
Date: Tue Apr 4 13:28:14 2006
New Revision: 17367
URL: http://svn.digium.com/view/asterisk?rev=17367&view=rev
Log:
Issue #6878 - Unhide DNDstate manager events (thanks casper)
Modified:
branches/1.2/channels/chan_zap.c
Modified: branches/1.2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_zap.c?rev=17367&r1=17366&r2=17367&view=diff
==============================================================================
--- branches/1.2/channels/chan_zap.c (original)
+++ branches/1.2/channels/chan_zap.c Tue Apr 4 13:28:14 2006
@@ -5655,10 +5655,10 @@
/* Do not disturb */
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;
@@ -5666,12 +5666,11 @@
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",
+ 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;
More information about the asterisk-commits
mailing list