when we get a disconnect, we should stop the tones on te side..

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Christian Richter
2006-06-19 09:44:04 +00:00
parent cdbddf5892
commit 2302fa58d7
2 changed files with 6 additions and 1 deletions

View 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;

View 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;