diff options
author | Christian Richter <christian.richter@beronet.com> | 2006-08-03 16:38:00 +0000 |
---|---|---|
committer | Christian Richter <christian.richter@beronet.com> | 2006-08-03 16:38:00 +0000 |
commit | fc3d27cf6fe27e5796b5def1932feb9932947244 (patch) | |
tree | e0b13b91f114361f7c52e40a5a9306ec9612ef89 /channels/misdn/isdn_lib.h | |
parent | aac4712421516b7a0aed816fdfd0bd4f4e244a7f (diff) |
* removed pp_l2_check (fixed L2 bug in mISDNuser)
* added blocking flag to stack object. A port can be blocked/unblocked from the
cli
* added EVENT_PORT_ALARM to send alarm infos to the chan_misdn.c layer (later
we can add a manager event for that)
* added block_on_alarm option, to block the port whenever a ALARM occurs
* added need_busy flag to indicate if we've sended a CONTROL_BUSY already
* changed a bunch of cb_log(-1,..) to cb_log(0,..) due to funny behaviour in
recent asterisk ast_log messages..
* fixed a few ETSI state violations, especially when finishing calls in
different seldom states
* changed debug levels a lot to make the log more readable in low debuglevels
* some first fixes for the HOLD/RETRIEVE stuff (doesn't work totally still)
* removed the PRECONNECTED state stuff
* added cause 27 when we get a CLEANUP directly after a outgoing SETUP, this
creates a CHANISUNAVAIL instead of a NOANSWER
* removed the addr pointer from "misdn show stacks" that's not needed anymore
and makes the output more unreadable
* added cause saving on RELEASE/RELEASE_COMPLETE
* set cause to 16 on prepare_bc
* removed stack getting from ph_control functions, we don't really need it
there
* added beroec api
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn/isdn_lib.h')
-rw-r--r-- | channels/misdn/isdn_lib.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/channels/misdn/isdn_lib.h b/channels/misdn/isdn_lib.h index d5e5a3bbd..918d3a617 100644 --- a/channels/misdn/isdn_lib.h +++ b/channels/misdn/isdn_lib.h @@ -19,6 +19,30 @@ /* typedef int ie_nothing_t ;*/ /** end of init usage **/ +#ifdef WITH_BEROEC +typedef int beroec_t; + + +enum beroec_type { + BEROEC_FULLBAND=0, + BEROEC_SUBBAND, + BEROEC_FASTSUBBAND +}; + +void beroec_init(void); +void beroec_exit(void); +beroec_t *beroec_new(int tail, enum beroec_type type, int anti_howl, + int tonedisable, int zerocoeff, int adapt, int nlp); + +void beroec_destroy(beroec_t *ec); +int beroec_cancel_alaw_chunk(beroec_t *ec, + char *send, + char *receive , + int len); + +int beroec_version(void); +#endif + enum tone_e { @@ -114,6 +138,7 @@ enum event_e { EVENT_DTMF_TONE, EVENT_NEW_L3ID, EVENT_NEW_BC, + EVENT_PORT_ALARM, EVENT_NEW_CHANNEL, EVENT_UNKNOWN }; @@ -326,6 +351,16 @@ struct misdn_bchannel { int ec_deftaps; int ec_whenbridged; int ec_training; + +#ifdef WITH_BEROEC + beroec_t *ec; + int bnec_tail; + int bnec_ah; + int bnec_nlp; + int bnec_td; + int bnec_adapt; + int bnec_zero; +#endif int orig; @@ -375,6 +410,9 @@ void manager_ph_control(struct misdn_bchannel *bc, int c1, int c2); int misdn_lib_port_restart(int port); int misdn_lib_get_port_info(int port); +int misdn_lib_port_block(int port); +int misdn_lib_port_unblock(int port); + int misdn_lib_port_up(int port, int notcheck); int misdn_lib_get_port_down(int port); |