Added layer1 hold feature. Requires new mISDN and mISDNuser package from git.
[lcr.git] / interface.h
index 1c713a8..a467a71 100644 (file)
@@ -8,7 +8,6 @@
 ** interface header file                                                     **
 **                                                                           **
 \*****************************************************************************/ 
-
 enum { /* interface type */
        IF_TYPE_DIRECT,
        IF_TYPE_EXTENSION,
@@ -45,10 +44,13 @@ struct interface_port {
        struct interface        *interface; /* link to interface */
        struct mISDNport        *mISDNport; /* link to port */
        int                     portnum; /* port number */
+       char                    portname[64]; /* alternately: port name */
        int                     ptp; /* force load stack in PTP mode */
        int                     ptmp; /* force load stack in PTP mode */
        int                     nt; /* load stack in NT-mode */
-       int                     l2hold; /* hold layer 2 (1=force, -1=disable */
+       int                     tespecial; /* special TE-mode behavior */
+       int                     l1hold; /* hold layer 1 (1=on, 0=off) */
+       int                     l2hold; /* hold layer 2 (1=force, -1=disable, 0=default) */
        int                     channel_force; /* forces channel by protocol */
        int                     nodtmf; /* disables DTMF */
        struct select_channel   *out_channel; /* list of channels to select */
@@ -61,6 +63,7 @@ struct interface_port {
         int                    tout_disconnect;
 //     int                     tout_hold;
 //     int                     tout_park;
+       int                     dialmax; /* maximum number of digits to dial */
 };
 
 struct interface_msn {