X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=mISDN.h;h=62ec524682d8d4511a5ca396d4905cb1fc2c5d22;hp=aa9511aab0b692a5265946dd4288939c81a2a808;hb=ff4d197d5ecb2cb29a55f78b260ab387e3afc80d;hpb=f51147e028fc6eb0db5cec7b6dbd685860bda5bd 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 */