summaryrefslogtreecommitdiff
path: root/include/dahdi/user.h
diff options
context:
space:
mode:
authorRuss Meyerriecks <rmeyerreicks@digium.com>2010-07-26 20:14:49 +0000
committerRuss Meyerriecks <rmeyerreicks@digium.com>2010-07-26 20:14:49 +0000
commitde893b61bceb214534db3425f6c163c2f348469b (patch)
tree5a183a48fdb6ae198437483486f0076e2fb0ae91 /include/dahdi/user.h
parentd4bc33c24eedb87c405ed8f553d188ff23a23826 (diff)
Added card level event handler
When a loss of syncronization signal occurs on one of the spans, it affects all spans on that card. Since we do not have a span or card level event system, we have to queue up a global event on all channels for that card The new event is DAHDI_EVENT_SYNC git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8998 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include/dahdi/user.h')
-rw-r--r--include/dahdi/user.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/include/dahdi/user.h b/include/dahdi/user.h
index 6417e79..fc0d494 100644
--- a/include/dahdi/user.h
+++ b/include/dahdi/user.h
@@ -314,20 +314,19 @@ enum {
#define DAHDI_CONF_PSEUDO_TALKER 0x800 /* pseudo is a talker on the conference */
/* Alarm Condition bits */
-#define DAHDI_ALARM_NONE 0 /* No alarms */
-#define DAHDI_ALARM_RECOVER (1 << 0) /* Recovering from alarm */
-#define DAHDI_ALARM_LOOPBACK (1 << 1) /* In loopback */
-#define DAHDI_ALARM_YELLOW (1 << 2) /* Yellow Alarm */
-#define DAHDI_ALARM_RED (1 << 3) /* Red Alarm */
-#define DAHDI_ALARM_BLUE (1 << 4) /* Blue Alarm */
-#define DAHDI_ALARM_NOTOPEN (1 << 5)
+#define DAHDI_ALARM_NONE 0 /* No alarms */
+#define DAHDI_ALARM_RECOVER (1 << 0) /* Recovering from alarm */
+#define DAHDI_ALARM_LOOPBACK (1 << 1) /* In loopback */
+#define DAHDI_ALARM_YELLOW (1 << 2) /* Yellow Alarm */
+#define DAHDI_ALARM_RED (1 << 3) /* Red Alarm */
+#define DAHDI_ALARM_BLUE (1 << 4) /* Blue Alarm */
+#define DAHDI_ALARM_NOTOPEN (1 << 5)
/* Verbose alarm states (upper byte) */
-#define DAHDI_ALARM_LOS (1 << 8) /* Loss of Signal */
-#define DAHDI_ALARM_LFA (1 << 9) /* Loss of Frame Alignment */
-#define DAHDI_ALARM_LMFA (1 << 10) /* Loss of Multi-Frame Alignment */
-#define DAHDI_ALARM_XLS (1 << 11) /* Transmit line Short */
-#define DAHDI_ALARM_XLO (1 << 12) /* Transmit line Open */
-#define DAHDI_ALARM_SYNC (1 << 13) /* Loss of Sync source */
+#define DAHDI_ALARM_LOS (1 << 8) /* Loss of Signal */
+#define DAHDI_ALARM_LFA (1 << 9) /* Loss of Frame Alignment */
+#define DAHDI_ALARM_LMFA (1 << 10)/* Loss of Multi-Frame Align */
+#define DAHDI_ALARM_XLS (1 << 11)/* Transmit line Short */
+#define DAHDI_ALARM_XLO (1 << 12)/* Transmit line Open */
/* Maintenance modes */
#define DAHDI_MAINT_NONE 0 /* Normal Mode */
@@ -454,6 +453,9 @@ enum {
#define DAHDI_EVENT_DTMFDOWN (1 << 17) /* Ditto for DTMF key down event */
#define DAHDI_EVENT_DTMFUP (1 << 18) /* Ditto for DTMF key up event */
+/* If the source of timing changes */
+#define DAHDI_EVENT_SYNC 29
+
/* Transcoder related definitions */
struct dahdi_transcoder_formats {