diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-10 13:50:26 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-10 13:50:26 +0000 |
commit | 16e4196309e470fcb859cf6db150bffc0beaf855 (patch) | |
tree | 84d434a3ac8db04875387cd0feb7a6cf1067dd05 | |
parent | 0388f19e597945448310e0aae91a2e6a42c3dbd4 (diff) |
Merged revisions 44785 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r44785 | crichter | 2006-10-10 15:34:33 +0200 (Di, 10 Okt 2006) | 1 line
(re)added support of dynamical enabling hdlc on bchannels
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44786 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_misdn.c | 5 | ||||
-rw-r--r-- | channels/misdn/isdn_lib.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 76b4165bc..c4f49c8bf 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -4872,7 +4872,10 @@ static int misdn_set_opt_exec(struct ast_channel *chan, void *data) if (strlen(tok) > 1 && tok[1]=='1') { chan_misdn_log(1, ch->bc->port, "SETOPT: HDLC \n"); - ch->bc->hdlc=1; + if (!ch->bc->hdlc) { + ch->bc->hdlc=1; + misdn_lib_setup_bc(ch->bc); + } } ch->bc->capability=INFO_CAPABILITY_DIGITAL_UNRESTRICTED; break; diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index b22e4d61e..94813a381 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -896,6 +896,7 @@ static int create_process (int midev, struct misdn_bchannel *bc) { void misdn_lib_setup_bc(struct misdn_bchannel *bc) { + clean_up_bc(bc); setup_bc(bc); } |