summaryrefslogtreecommitdiffstats
path: root/mISDN.h
diff options
context:
space:
mode:
authorSuper User2008-07-26 17:42:16 +0200
committerSuper User2008-07-26 17:42:16 +0200
commitff4d197d5ecb2cb29a55f78b260ab387e3afc80d (patch)
tree3db42ea3a70133f12c8208bdc58f2c4c00ad8a3e /mISDN.h
parentmany fixes on HDLC issues (diff)
downloadlcr-ff4d197d5ecb2cb29a55f78b260ab387e3afc80d.tar.gz
lcr-ff4d197d5ecb2cb29a55f78b260ab387e3afc80d.tar.xz
lcr-ff4d197d5ecb2cb29a55f78b260ab387e3afc80d.zip
now LCR features real HDLC bchannel mode.
-> if initial caller uses pure data mode (or video), the bchannels for this call are handled in HDLC mode. (hardware/software briding is still applicable.) modified: apppbx.cpp modified: chan_lcr.c modified: dss1.cpp modified: dss1.h modified: lcradmin.c modified: lcrsocket.h modified: mISDN.cpp modified: mISDN.h modified: message.h modified: socket_server.c
Diffstat (limited to 'mISDN.h')
-rw-r--r--mISDN.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mISDN.h b/mISDN.h
index aa9511a..62ec524 100644
--- a/mISDN.h
+++ b/mISDN.h
@@ -51,6 +51,7 @@ struct mISDNport {
class PmISDN *b_port[128]; /* bchannel assigned to port object */
struct mqueue upqueue;
int b_socket[128];
+ int b_mode[128]; /* B_MODE_* */
int b_state[128]; /* statemachine, 0 = IDLE */
double b_timer[128]; /* timer for state machine */
int b_remote_id[128]; /* the socket currently exported (0=none) */
@@ -97,7 +98,7 @@ void message_bchannel_from_remote(class JoinRemote *joinremote, int type, unsign
class PmISDN : public Port
{
public:
- PmISDN(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive);
+ PmISDN(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
~PmISDN();
void bchannel_receive(struct mISDNhead *hh, unsigned char *data, int len);
int handler(void);
@@ -149,6 +150,7 @@ class PmISDN : public Port
int p_m_b_reserve; /* set if channel is reserved */
// long long p_m_jittercheck; /* time of audio data */
// long long p_m_jitterdropped; /* number of bytes dropped */
+ int p_m_b_mode; /* bchannel mode */
int p_m_delete; /* true if obj. must del. */
int p_m_hold; /* if port is on hold */
unsigned int p_m_timeout; /* timeout of timers */