From ad50f139c432ba62b060f90240b3c85daba42e11 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Mon, 12 Nov 2007 09:57:23 +0000 Subject: [PATCH] fixed the support for CW and therefore for the reject_cause option. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89170 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/misdn/isdn_lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index ae87a0e940..31316e6f9d 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -1561,6 +1561,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;