aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_misdn.c8
-rw-r--r--channels/misdn/isdn_lib.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index c4f49c8bf..2dd5ebbe5 100644
--- a/channels/chan_misdn.c
+++ b/channels/chan_misdn.c
@@ -2658,7 +2658,6 @@ static enum ast_bridge_result misdn_bridge (struct ast_channel *c0,
carr[0]=c0;
carr[1]=c1;
-
if (ch1 && ch2 ) ;
else
return -1;
@@ -2682,7 +2681,6 @@ static enum ast_bridge_result misdn_bridge (struct ast_channel *c0,
ch2->bc->ec_enable=0;
manager_ec_disable(ch2->bc);
}
-
/* trying to make a mISDN_dsp conference */
chan_misdn_log(1, ch1->bc->port, "I SEND: Making conference with Number:%d\n", ch1->bc->pid +1);
@@ -2732,7 +2730,11 @@ static enum ast_bridge_result misdn_bridge (struct ast_channel *c0,
break;
}
-
+ if (f->frametype == AST_FRAME_VOICE) {
+ chan_misdn_log(1,0,"Got Voice frame in Bridged state..\n");
+ continue;
+ }
+
if (who == c0) {
ast_write(c1,f);
}
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c
index 7b87807b8..6776eab9c 100644
--- a/channels/misdn/isdn_lib.c
+++ b/channels/misdn/isdn_lib.c
@@ -4276,7 +4276,7 @@ void manager_ec_disable(struct misdn_bchannel *bc)
return;
}
- if ( bc->ec_enable) {
+ if ( ! bc->ec_enable) {
cb_log(1, stack?stack->port:0, "Sending Control ECHOCAN_OFF\n");
manager_ph_control(bc, ECHOCAN_OFF, 0);
}