diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-06 00:06:58 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-06 00:06:58 +0000 |
commit | feba4c5e2a2849f735335737a8bcd9d8988b9dbc (patch) | |
tree | d20405b2affb8d9e8df5c2f9c1aff2f59f8579db /channels/chan_zap.c | |
parent | 53dc3b55cb1681728ff4c21f31ada2b6307a041f (diff) |
Merged revisions 25123 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r25123 | russell | 2006-05-05 20:05:27 -0400 (Fri, 05 May 2006) | 3 lines
ensure that the appropriate manager events are sent in all of the places where
alarms are detected or cleared (issue #6866, flefoll)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25124 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 86cf8bdb5..b51292df6 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -6431,11 +6431,17 @@ static int handle_init_event(struct zt_pvt *i, int event) i->inalarm = 0; ast_log(LOG_NOTICE, "Alarm cleared on channel %d\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)); /* 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. */ |