X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=mISDN.h;h=62ec524682d8d4511a5ca396d4905cb1fc2c5d22;hp=8f0b98c73388eb669d5c2864fd148bf77c75d2f5;hb=ff4d197d5ecb2cb29a55f78b260ab387e3afc80d;hpb=e602f7bfbdf28bd72d89af6ffa4e6f7dad02ff03 diff --git a/mISDN.h b/mISDN.h index 8f0b98c..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) */ @@ -78,7 +79,6 @@ calls with no bchannel (call waiting, call on hold). /* mISDN none-object functions */ int mISDN_initialize(void); void mISDN_deinitialize(void); -void mISDN_port_info(void); struct mISDNport *mISDNport_open(int port, int ptp, int force_nt, int l2hold, struct interface *interface); void mISDNport_close_all(void); void mISDNport_close(struct mISDNport *mISDNport); @@ -98,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); @@ -150,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 */