Merged revisions 293418 via svnmerge from
[asterisk/asterisk.git] / channels / chan_dahdi.c
index ad18374..64bfd32 100644 (file)
@@ -8193,17 +8193,6 @@ static struct ast_frame *dahdi_handle_event(struct ast_channel *ast)
                                                dahdi_enable_ec(p);
                                                ast_hangup(chan);
                                        } else {
-                                               struct ast_channel *other = ast_bridged_channel(p->subs[SUB_THREEWAY].owner);
-                                               int way3bridge = 0, cdr3way = 0;
-
-                                                       if (!other) {
-                                                       other = ast_bridged_channel(p->subs[SUB_REAL].owner);
-                                               } else
-                                                       way3bridge = 1;
-
-                                                       if (p->subs[SUB_THREEWAY].owner->cdr)
-                                                       cdr3way = 1;
-
                                                ast_verb(3, "Started three way call on channel %d\n", p->channel);
 
                                                /* Start music on hold if appropriate */