when we get a disconnect, we should stop the tones on te side..
authorChristian Richter <christian.richter@beronet.com>
Mon, 19 Jun 2006 09:44:04 +0000 (09:44 +0000)
committerChristian Richter <christian.richter@beronet.com>
Mon, 19 Jun 2006 09:44:04 +0000 (09:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34788 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c
channels/misdn/isdn_lib.c

index 710bb8b..b77e401 100644 (file)
@@ -1971,7 +1971,9 @@ static int misdn_hangup(struct ast_channel *ast)
                return 0;
        }
 
-       /*stop_bc_tones(p);*/
+       if (!p->bc->nt) 
+               stop_bc_tones(p);
+
        
        release_unlock;
        
index 01365d2..644edb7 100644 (file)
@@ -1495,6 +1495,9 @@ int handle_cr ( struct misdn_stack *stack, iframe_t *frm)
                                cb_log(4, stack->port, " --> lib: CLEANING UP l3id: %x\n",frm->dinfo);
                                empty_chan_in_stack(stack,bc->channel);
                                empty_bc(bc);
+                               
+                               bc_state_change(bc, BCHAN_EMPTY);
+
                                clean_up_bc(bc);
                                dump_chan_list(stack);
                                bc->pid = 0;