From: Christian Richter Date: Thu, 21 Jun 2007 13:11:29 +0000 (+0000) Subject: we activate the bchannels in TE mode on incoming calls only when we want to connect... X-Git-Tag: 1.2.20~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d4454ae5f9f5163055d76bf85801a8e67d4052;p=thirdparty%2Fasterisk.git we activate the bchannels in TE mode on incoming calls only when we want to connect the call. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@70672 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 58802776da..a9d0b64f1c 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -4997,7 +4997,6 @@ static int misdn_set_opt_exec(struct ast_channel *chan, void *data) 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; diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index 73072254a5..441367aded 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -3266,6 +3266,8 @@ int misdn_lib_send_event(struct misdn_bchannel *bc, enum event_e event ) case EVENT_ALERTING: case EVENT_PROCEEDING: case EVENT_SETUP_ACKNOWLEDGE: + if (!stack->nt) break; + case EVENT_CONNECT: case EVENT_RETRIEVE_ACKNOWLEDGE: