diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-31 20:26:17 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-31 20:26:17 +0000 |
commit | 6e35ac4a2cefb6af73f1eb688473dfbf583e7493 (patch) | |
tree | c2246c9014681c639eee8f1814823287b0617e4b /channels/chan_zap.c | |
parent | db1a2718186b0a4483b24f202a96794e2c2e00e2 (diff) |
fix misplaced manager event (issue #6866, flefoll)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@31127 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c167db2ba..09b06aee0 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -6338,18 +6338,18 @@ static int handle_init_event(struct zt_pvt *i, int event) case ZT_EVENT_NOALARM: i->inalarm = 0; ast_log(LOG_NOTICE, "Alarm cleared on channel %d\n", i->channel); + manager_event(EVENT_FLAG_SYSTEM, "AlarmClear", + "Channel: %d\r\n", i->channel); break; - manager_event(EVENT_FLAG_SYSTEM, "AlarmClear", - "Channel: %d\r\n", i->channel); case ZT_EVENT_ALARM: i->inalarm = 1; res = get_alarms(i); ast_log(LOG_WARNING, "Detected alarm on channel %d: %s\n", i->channel, alarm2str(res)); + manager_event(EVENT_FLAG_SYSTEM, "Alarm", + "Alarm: %s\r\n" + "Channel: %d\r\n", + alarm2str(res), i->channel); /* fall thru intentionally */ - manager_event(EVENT_FLAG_SYSTEM, "Alarm", - "Alarm: %s\r\n" - "Channel: %d\r\n", - alarm2str(res), i->channel); case ZT_EVENT_ONHOOK: if (i->radio) break; /* Back on hook. Hang up. */ |