diff options
author | Christian Richter <christian.richter@beronet.com> | 2007-11-12 13:03:00 +0000 |
---|---|---|
committer | Christian Richter <christian.richter@beronet.com> | 2007-11-12 13:03:00 +0000 |
commit | b2f3d1203c193e510f21cd6e42b0121b3b7e4282 (patch) | |
tree | 0eb1a4d621930a26c3530782fc0f25e990ba4a5a /channels/misdn | |
parent | c9b8afb447b8cf7a1bcf8bd0404b2ec9f12d3b54 (diff) |
Merged revisions 89170 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r89170 | crichter | 2007-11-12 10:57:23 +0100 (Mo, 12 Nov 2007) | 1 line
fixed the support for CW and therefore for the reject_cause option.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn')
-rw-r--r-- | channels/misdn/isdn_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index dba065f71..4b45b4175 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -1568,6 +1568,11 @@ static int handle_event ( struct misdn_bchannel *bc, enum event_e event, iframe_ bc->channel=0; if (find_free_chan_in_stack(stack, bc, bc->channel, 0)<0){ + if (!stack->pri && !stack->ptp) { + bc->cw=1; + break; + } + cb_log(0, stack->port, "Any Channel Requested, but we have no more!!\n"); misdn_lib_send_event(bc,EVENT_RELEASE_COMPLETE); return -1; |