aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_misdn.c6
-rw-r--r--channels/misdn/isdn_lib.c11
2 files changed, 2 insertions, 15 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index e90eff8c4..6dd537a82 100644
--- a/channels/chan_misdn.c
+++ b/channels/chan_misdn.c
@@ -701,10 +701,8 @@ static int misdn_overlap_dial_task (const void *data)
} else {
misdn_overlap_dial_task_disconnect:
hanguptone_indicate(ch);
- if (ch->bc->nt)
- misdn_lib_send_event(ch->bc, EVENT_RELEASE_COMPLETE );
- else
- misdn_lib_send_event(ch->bc, EVENT_RELEASE);
+ ch->bc->out_cause=1;
+ misdn_lib_send_event(ch->bc, EVENT_DISCONNECT);
}
ch->overlap_dial_task = -1;
return 0;
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c
index a5e802b9b..443bc90fb 100644
--- a/channels/misdn/isdn_lib.c
+++ b/channels/misdn/isdn_lib.c
@@ -1247,17 +1247,6 @@ struct misdn_stack* stack_init( int midev, int port, int ptp )
stack->nt=1;
break;
-
-#ifndef MISDN_1_2
- case ISDN_PID_L0_TE_U:
- break;
- case ISDN_PID_L0_NT_U:
- break;
- case ISDN_PID_L0_TE_UP2:
- break;
- case ISDN_PID_L0_NT_UP2:
- break;
-#endif
case ISDN_PID_L0_TE_E1:
cb_log(8, port, "TE S2M Stack\n");
stack->nt=0;