From 795e189aa2f87901a0e87f360269871c45cf35e0 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Fri, 22 Jun 2007 15:38:08 +0000 Subject: [PATCH] Merged revisions 70672 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70672 | crichter | 2007-06-21 15:11:29 +0200 (Do, 21 Jun 2007) | 1 line 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.4@71123 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_misdn.c | 1 - channels/misdn/isdn_lib.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index a742299774..85afca84e3 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -5297,7 +5297,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 1eb1080124..92c594aec5 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -3276,6 +3276,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: