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 */
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);
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);