aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_misdn.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r--channels/chan_misdn.c5
1 files changed, 4 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;