]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add zt_spaninfo and ZT_SPANSTAT
authorMichael Jerris <mike@jerris.com>
Tue, 29 May 2007 20:22:10 +0000 (20:22 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 29 May 2007 20:22:10 +0000 (20:22 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@183 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/include/zap_zt.h

index 1b85af49ade3df3e8fe6f1cc87ced08f33f4f051..b1defdb476787f86cad99640c8b2702e3ddbc30c 100644 (file)
@@ -83,6 +83,25 @@ struct zt_gains {
        unsigned char transmit_gain[256];       /* Transmit gain table                          */
 };
 
+/* Used with ioctl: ZT_SPANSTAT */
+struct zt_spaninfo {
+       int span_no;                                            /* span number (-1 to use name)                         */\r
+       char name[20];                                          /* Name of span                                                         */\r
+       char description[40];                           /* Description of span                                          */\r
+       int alarms;                                                     /* alarms status                                                        */\r
+       int transmit_level;                                     /* Transmit level                                                       */\r
+       int receive_level;                                      /* Receive level                                                        */\r
+       int bpv_count;                                          /* Current BPV count                                            */\r
+       int crc4_count;                                         /* Current CRC4 error count                                     */\r
+       int ebit_count;                                         /* Current E-bit error count                            */\r
+       int fas_count;                                          /* Current FAS error count                                      */\r
+       int irq_misses;                                         /* Current IRQ misses                                           */\r
+       int sync_src;                                           /* Span # of sync source (0 = free run)         */\r
+       int configured_chan_count;                      /* Count of channels configured on the span     */\r
+       int channel_count;                                      /* Total count of channels on the span          */\r
+       int span_count;                                         /* Total count of zaptel spans on the system*/
+};
+
 /* Enumerations */
 
 /* Values in zt_params structure for member g711_type */
@@ -159,6 +178,7 @@ typedef enum {
 #define                ZT_HOOK                         _IOW  (ZT_CODE, 7, int)                                 /* Set Hookswitch Status */
 #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_GETCONF                      _IOWR (ZT_CODE, 12, struct zt_confinfo) /* Get Conference Mode */
 #define                ZT_SETCONF                      _IOWR (ZT_CODE, 13, struct zt_confinfo) /* Set Conference Mode */