1 /*****************************************************************************\
3 ** Linux Call Router **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg **
8 ** mISDN channel handlin for remote application **
10 \*****************************************************************************/
14 struct bchannel *next;
15 struct chan_call *call; /* link to call process */
16 unsigned int handle; /* handle for stack id */
17 int b_sock; /* socket for b-channel */
18 int b_mode; /* dsp, raw, dsphdlc */
23 int b_tx_gain, b_rx_gain;
32 unsigned char b_bf_key[128];
36 extern struct bchannel *bchannel_first;
37 extern pid_t bchannel_pid;
39 int bchannel_initialize(void);
40 void bchannel_deinitialize(void);
41 void bchannel_destroy(struct bchannel *bchannel);
42 int bchannel_create(struct bchannel *channel, int mode);
43 void bchannel_activate(struct bchannel *channel, int activate);
44 void bchannel_transmit(struct bchannel *channel, unsigned char *data, int len);
45 void bchannel_join(struct bchannel *channel, unsigned short id);
46 void bchannel_dtmf(struct bchannel *channel, int on);
47 void bchannel_blowfish(struct bchannel *bchannel, unsigned char *key, int len);
48 void bchannel_pipeline(struct bchannel *bchannel, char *pipeline);
49 void bchannel_gain(struct bchannel *bchannel, int gain, int tx);
50 int bchannel_handle(void);
51 struct bchannel *find_bchannel_handle(unsigned int handle);
52 //struct bchannel *find_bchannel_ref(unsigned int ref);
53 struct bchannel *alloc_bchannel(unsigned int handle);
54 void free_bchannel(struct bchannel *channel);