X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=mISDN.h;h=cbebcacc5c86b1214b23a214e5c5f73c42735a71;hp=90f686ba1f8a2b0d1d651d540172a3f8e339d09a;hb=473d6569efcad130f9a5044b182b75a1c07a1eee;hpb=a425aedc1ee2c0bba4ba20904943afb21bd6e2e5 diff --git a/mISDN.h b/mISDN.h index 90f686b..cbebcac 100644 --- a/mISDN.h +++ b/mISDN.h @@ -15,6 +15,8 @@ extern int entity; extern int mISDNdevice; +extern int mISDNsocket; + enum { B_EVENT_USE, /* activate/export bchannel */ B_EVENT_EXPORTREQUEST, /* remote app requests bchannel */ @@ -61,6 +63,13 @@ struct mISDNport { unsigned int b_remote_ref[128]; /* the ref currently exported */ int locally; /* local causes are sent as local causes not remote */ int los, ais, rdi, slip_rx, slip_tx; + + /* 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; @@ -82,7 +91,9 @@ calls with no bchannel (call waiting, call on hold). /* mISDN none-object functions */ int mISDN_initialize(void); void mISDN_deinitialize(void); -struct mISDNport *mISDNport_open(int port, char *portname, int ptp, int force_nt, int te_special, int l1hold, int l2hold, struct interface *interface); +int mISDN_getportbyname(int sock, int cnt, char *portname); +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); @@ -114,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 */ @@ -145,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 */ @@ -161,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); };