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 message_epoint(unsigned int epoint_id, int message, union parameter *param);
void message_mISDNsignal(unsigned int epoint_id, int message_id, union parameter *param);
void message_crypt(unsigned int epoint_id, int message_id, union parameter *param);
+ void message_vootp(unsigned int epoint_id, int message_id, union parameter *param);
struct mISDNport *p_m_mISDNport; /* pointer to port */
int p_m_delay; /* use delay instead of dejitter */
int p_m_tx_dejitter; /* use dejitter on transmit data to DSP */
+ int p_m_disable_dejitter; /* usefull to send fax via bridge */
+ int p_m_preload; /* set to ISDN_LOAD, but may be changed later */
int p_m_tx_gain, p_m_rx_gain; /* volume shift (0 = no change) */
char p_m_pipeline[256]; /* filter pipeline */
int p_m_echo, p_m_conf; /* remote echo, conference number */
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);
int p_m_b_exclusive; /* if bchannel is exclusive */
int p_m_b_reserve; /* set if channel is reserved */
int p_m_b_mode; /* bchannel mode */
- int p_m_hold; /* if port is on hold */
struct lcr_timer p_m_timeout; /* timeout of timers */
int p_m_inband_send_on; /* triggers optional send function */