X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=mISDN.h;h=cbebcacc5c86b1214b23a214e5c5f73c42735a71;hp=4f1e596136315b74ab087b3e6897815bfae078f7;hb=473d6569efcad130f9a5044b182b75a1c07a1eee;hpb=20a671d76854520ad9d5ea9d481e008240465e62 diff --git a/mISDN.h b/mISDN.h index 4f1e596..cbebcac 100644 --- a/mISDN.h +++ b/mISDN.h @@ -67,6 +67,9 @@ struct mISDNport { /* gsm */ int gsm; /* this is the (only) GSM interface */ int lcr_sock; /* socket of loopback on LCR side */ + + /* ss5 */ + unsigned int ss5; /* set, if SS5 signalling enabled, also holds feature bits */ }; extern mISDNport *mISDNport_first; @@ -89,7 +92,8 @@ calls with no bchannel (call waiting, call on hold). int mISDN_initialize(void); void mISDN_deinitialize(void); int mISDN_getportbyname(int sock, int cnt, char *portname); -struct mISDNport *mISDNport_open(int port, char *portname, int ptp, int force_nt, int te_special, int l1hold, int l2hold, struct interface *interface, int gsm); +struct mISDNport *mISDNport_open(struct interface_port *ifport); +void mISDNport_static(struct mISDNport *mISDNport); void mISDNport_close_all(void); void mISDNport_close(struct mISDNport *mISDNport); void mISDN_port_reorder(void); @@ -121,6 +125,7 @@ class PmISDN : public Port 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_mute; /* if set, conf is disconnected */ int p_m_tone; /* current kernel space tone */ int p_m_rxoff; /* rx from driver is disabled */ // int p_m_nodata; /* all parties within a conf are isdn ports, so pure bridging is possible */ @@ -152,6 +157,7 @@ class PmISDN : public Port void set_tone(const char *dir, const char *name); void set_echotest(int echotest); + void set_conf(int oldconf, int newconf); int p_m_portnum; /* used port number (1...n) */ int p_m_b_index; /* index 0,1 0..29 */ @@ -168,6 +174,18 @@ class PmISDN : public Port unsigned int p_m_remote_ref; /* join to export bchannel to */ int p_m_remote_id; /* sock to export bchannel to */ + int p_m_inband_send_on; /* triggers optional send function */ + int p_m_inband_receive_on; /* triggers optional receive function */ + int p_m_mute_on; /* if mute is on, bridge is removed */ + virtual int inband_send(unsigned char *buffer, int len); + void inband_send_on(void); + void inband_send_off(void); + virtual void inband_receive(unsigned char *buffer, int len); + void inband_receive_on(void); + void inband_receive_off(void); + void mute_on(void); + void mute_off(void); + int seize_bchannel(int channel, int exclusive); /* requests / reserves / links bchannels, but does not open it! */ void drop_bchannel(void); };