int span_count; /* Total count of zaptel spans on the system*/
};
+struct zt_maintinfo {
+ int span_no; /* span number */\r
+ int command; /* Maintenance mode to set (from zt_maintenance_mode_t) */
+};
+
/* Enumerations */
/* Values in zt_params structure for member g711_type */
ZT_RINGOFF = 6
} zt_hookstate_t;
+typedef enum {\r
+ ZT_MAINT_NONE = 0, /* Normal Mode */\r
+ ZT_MAINT_LOCALLOOP = 1, /* Local Loopback */\r
+ ZT_MAINT_REMOTELOOP = 2, /* Remote Loopback */\r
+ ZT_MAINT_LOOPUP = 3, /* Send Loopup Code */\r
+ ZT_MAINT_LOOPDOWN = 4, /* Send Loopdown Code */\r
+ ZT_MAINT_LOOPSTOP = 5, /* Stop Sending Loop Codes */\r
+} zt_maintenance_mode_t;
+
/* Defines */
#define ZT_GETEVENT _IOR (ZT_CODE, 8, int) /* Get Signalling Event */
#define ZT_IOMUX _IOWR (ZT_CODE, 9, int) /* Wait for something to happen (IO Mux) */
#define ZT_SPANSTAT _IOWR (ZT_CODE, 10, struct zt_spaninfo) /* Get Span Status */
-
+#define ZT_MAINT _IOW (ZT_CODE, 11, struct zt_maintinfo)/* Set Maintenance Mode for a span */
#define ZT_GETCONF _IOWR (ZT_CODE, 12, struct zt_confinfo) /* Get Conference Mode */
#define ZT_SETCONF _IOWR (ZT_CODE, 13, struct zt_confinfo) /* Set Conference Mode */
#define ZT_CONFLINK _IOW (ZT_CODE, 14, struct zt_confinfo) /* Setup or Remove Conference Link */