X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=interface.h;h=221b08507b4c6d08cf42b5174291356b9955b22c;hp=f97c28be4a863edcb021b3c03437034cc40ca153;hb=b2a665f8f1cdeb7d02c3f665d95e6a80297e21d1;hpb=d2ffecef264949e36341e87f8e1ff41a8effb1f2 diff --git a/interface.h b/interface.h index f97c28b..221b085 100644 --- a/interface.h +++ b/interface.h @@ -9,9 +9,6 @@ ** ** \*****************************************************************************/ -#define FLAG_PORT_USE 1 -#define FLAG_PORT_PTP (1<<1) - enum { /* interface type */ IF_TYPE_DIRECT, IF_TYPE_EXTENSION, @@ -48,14 +45,23 @@ 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 channel_force; /* forces channel by protocol */ int nodtmf; /* disables DTMF */ struct select_channel *out_channel; /* list of channels to select */ struct select_channel *in_channel; /* the same for incoming channels */ int block; /* set if interface is blocked */ + int tout_setup; + int tout_dialing; + int tout_proceeding; + int tout_alerting; + int tout_disconnect; +// int tout_hold; +// int tout_park; }; struct interface_msn { @@ -85,18 +91,18 @@ struct interface { struct interface_msn *ifmsn; /* link to interface msn list */ struct interface_screen *ifscreen_in; /* link to screening list */ struct interface_screen *ifscreen_out; /* link to screening list */ - int gain_tx, gain_rx; /* filter gain */ + int tx_gain, rx_gain; /* filter gain */ char pipeline[256]; /* filter pipeline */ unsigned char bf_key[56]; /* filter blowfish */ int bf_len; /* filter length of blowfish */ }; struct interface_param { - char *name; + const char *name; /* return value (pointer of function)(args ...) */ int (*func)(struct interface *, char *, int, char *, char*); - char *usage; - char *help; + const char *usage; + const char *help; };