diff options
author | Christian Richter <christian.richter@beronet.com> | 2006-03-20 18:04:05 +0000 |
---|---|---|
committer | Christian Richter <christian.richter@beronet.com> | 2006-03-20 18:04:05 +0000 |
commit | 52eb1ad9d14c96df905049d4b3e2193585dbc3e8 (patch) | |
tree | 91eb71315e168de7dbbf6e042c92898c12168e6a /channels/misdn | |
parent | 3cb576801616a22ef57ae3402cab69e33791fd70 (diff) |
removed dynamic switching from transparent to hdlc mode. Instead we've got a config option hdlc=yes now which enables the hdlc controller for a data call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn')
-rw-r--r-- | channels/misdn/chan_misdn_config.h | 1 | ||||
-rw-r--r-- | channels/misdn/isdn_lib.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/channels/misdn/chan_misdn_config.h b/channels/misdn/chan_misdn_config.h index d30e1482c..9717e7846 100644 --- a/channels/misdn/chan_misdn_config.h +++ b/channels/misdn/chan_misdn_config.h @@ -27,6 +27,7 @@ enum misdn_cfg_elements { MISDN_CFG_TXGAIN, /* int */ MISDN_CFG_TE_CHOOSE_CHANNEL, /* int (bool) */ MISDN_CFG_PMP_L1_CHECK, /* int (bool) */ + MISDN_CFG_HDLC, /* int (bool) */ MISDN_CFG_CONTEXT, /* char[] */ MISDN_CFG_LANGUAGE, /* char[] */ MISDN_CFG_MUSICCLASS, /* char[] */ diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index a699d7f8a..b0e9477d0 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -818,9 +818,11 @@ int setup_bc(struct misdn_bchannel *bc) int channel=bc->channel-1-(bc->channel>16); int b_stid=stack->b_stids[channel>=0?channel:0]; +#if 0 if (bc->hdlc) { clean_up_bc(bc); } +#endif if (bc->upset) { cb_log(4, stack->port, "$$$ bc already upsetted stid :%x\n", b_stid); @@ -946,9 +948,7 @@ int setup_bc(struct misdn_bchannel *bc) bc->upset=1; - manager_bchannel_deactivate(bc); - return 0; } |