Merged revisions 72099 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r72099 | crichter | 2007-06-27 15:22:37 +0200 (Mi, 27 Jun 2007) | 1 line

simplified generation for dummy bchannels, also we mark them as dummies, so they are not used later as real-bchannels, optimized the RESTART mechanisms, we block a channel now on cause:44, and send out a RESTART automatically, then on reception of RESTART_ACKNOWLEDGE we unblock the channel again.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Christian Richter
2007-07-02 08:27:19 +00:00
parent 9dc0104a12
commit 8fc4089947
4 changed files with 40 additions and 34 deletions

View File

@@ -4814,8 +4814,10 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
case EVENT_RESTART:
stop_bc_tones(ch);
release_chan(bc);
if (!bc->dummy) {
stop_bc_tones(ch);
release_chan(bc);
}
break;