mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
(re)added support of dynamical enabling hdlc on bchannels
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4463,7 +4463,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");
|
||||
if (!ch->bc->hdlc) {
|
||||
ch->bc->hdlc=1;
|
||||
misdn_lib_setup_bc(ch->bc);
|
||||
}
|
||||
}
|
||||
ch->bc->capability=INFO_CAPABILITY_DIGITAL_UNRESTRICTED;
|
||||
break;
|
||||
|
@@ -882,6 +882,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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user