diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-12 09:57:23 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-12 09:57:23 +0000 |
commit | 8f1edffdb8394f86c6b6db39a3003ec40e423eb5 (patch) | |
tree | ee07a6da51ae5ae6f4defd5f26ec17e779f743ed /channels/misdn/isdn_lib.c | |
parent | 0a43dfc9b04638ce189d3c97030ae1d87d3fd838 (diff) |
fixed the support for CW and therefore for the reject_cause option.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89170 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/misdn/isdn_lib.c')
-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 ae87a0e94..31316e6f9 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; |