diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index ba15b93a68..89cbf67f73 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -5135,7 +5135,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 f1de82b7fc..078c6b79e5 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -3273,6 +3273,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: