Oops, they're system, not agent events
authorMark Spencer <markster@digium.com>
Mon, 18 Aug 2003 14:20:12 +0000 (14:20 +0000)
committerMark Spencer <markster@digium.com>
Mon, 18 Aug 2003 14:20:12 +0000 (14:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1366 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index a95b7a9..114defd 100755 (executable)
@@ -2585,7 +2585,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
                        p->inalarm = 1;
                        res = get_alarms(p);
                        ast_log(LOG_WARNING, "Detected alarm on channel %d: %s\n", p->channel, alarm2str(res));
-                       manager_event(EVENT_FLAG_AGENT, "Alarm",
+                       manager_event(EVENT_FLAG_SYSTEM, "Alarm",
                                                                "Alarm: %s\r\n"
                                                                "Channel: %d\r\n",
                                                                alarm2str(res), p->channel);
@@ -2789,7 +2789,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
                case ZT_EVENT_NOALARM:
                        p->inalarm = 0;
                        ast_log(LOG_NOTICE, "Alarm cleared on channel %d\n", p->channel);
-                       manager_event(EVENT_FLAG_AGENT, "AlarmClear",
+                       manager_event(EVENT_FLAG_SYSTEM, "AlarmClear",
                                                                "Channel: %d\r\n", p->channel);
                        break;
                case ZT_EVENT_WINKFLASH: