summaryrefslogtreecommitdiff
path: root/channels/misdn
diff options
context:
space:
mode:
authorChristian Richter <christian.richter@beronet.com>2006-06-07 13:01:02 +0000
committerChristian Richter <christian.richter@beronet.com>2006-06-07 13:01:02 +0000
commit7924c21e334d868ce8d9bd543b420f4bab37fbb2 (patch)
tree97826d1e74e778a3eb8004f03cfa90c05b66a99c /channels/misdn
parentefd1fd98296caf526ac0ae366e4bd9fcbcc88c73 (diff)
changed the clean_up_bc function to work proper again. fixed the print with the conference nr. when bridged
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn')
-rw-r--r--channels/misdn/isdn_lib.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c
index a53b573eb..4d6b0a389 100644
--- a/channels/misdn/isdn_lib.c
+++ b/channels/misdn/isdn_lib.c
@@ -591,17 +591,16 @@ int clean_up_bc(struct misdn_bchannel *bc)
manager_ec_disable(bc);
}
- if (bc->bc_state == BCHAN_SETUP)
- mISDN_write_frame(stack->midev, buff, bc->layer_id|FLG_MSG_DOWN, MGR_DELLAYER | REQUEST, 0, 0, NULL, TIMEOUT_1SEC);
- else
- mISDN_write_frame(stack->midev, buff, bc->addr|FLG_MSG_DOWN, MGR_DELLAYER | REQUEST, 0, 0, NULL, TIMEOUT_1SEC);
+
+ mISDN_write_frame(stack->midev, buff, bc->layer_id|FLG_MSG_DOWN, MGR_DELLAYER | REQUEST, 0, 0, NULL, TIMEOUT_1SEC);
+#if 0
cb_log(3, stack->port, "$$$ CLEARING STACK\n");
-
ret=mISDN_clear_stack(stack->midev,bc->b_stid);
if (ret<0 && errno) {
cb_log(-1,stack->port,"clear stack failed [%s]\n",strerror(errno));
}
+#endif
bc->b_stid = 0;
bc_state_change(bc, BCHAN_CLEANED);