X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=mISDN.h;h=e3c278dcee0e9f012a4a7f552f186f898166ffe8;hp=aad6f72eff100dbf8489155ad0e6e1e3f1b95a40;hb=4b85a2abcd708ad8d0e02dca9913db7bd6ab4fed;hpb=3f7ef909c907a374a1760ffae0c01b49487f18d7 diff --git a/mISDN.h b/mISDN.h index aad6f72..e3c278d 100644 --- a/mISDN.h +++ b/mISDN.h @@ -45,6 +45,8 @@ struct mISDNport { int ntmode; /* is TRUE if port is NT mode */ int tespecial; /* is TRUE if port uses special TE mode */ int pri; /* is TRUE if port is a primary rate interface */ + int pots; /* is TRUE if port is of type POTS */ + struct lcr_fd pots_sock; /* socket for L1 */ int tones; /* TRUE if tones are sent outside connect state */ int earlyb; /* TRUE if tones are received outside connect state */ int b_num; /* number of bchannels */ @@ -100,7 +102,7 @@ void bchannel_event(struct mISDNport *mISDNport, int i, int event); class PmISDN : public Port { public: - PmISDN(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode); + PmISDN(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, struct interface *interface, int channel, int exclusive, int mode); ~PmISDN(); void bchannel_receive(struct mISDNhead *hh, unsigned char *data, int len); void transmit(unsigned char *buffer, int length); @@ -120,6 +122,7 @@ class PmISDN : public Port int p_m_rxoff; /* rx from driver is disabled */ int p_m_txdata; /* get what we transmit */ int p_m_dtmf; /* dtmf decoding is enabled */ + int p_m_dtmf_threshold; /* dtmf level threshold */ int bridge_rx(unsigned char *data, int len);