From: Christian Richter Date: Sun, 4 Mar 2007 10:39:50 +0000 (+0000) Subject: fixed another place where the out_cause was hardcoded to 16 X-Git-Tag: 1.2.17~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfcff16e0922674dc850765a353582bd4cee5ed2;p=thirdparty%2Fasterisk.git fixed another place where the out_cause was hardcoded to 16 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57753 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 40231309ba..5714079fcd 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -3890,8 +3890,6 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) case EVENT_RELEASE: { - bc->out_cause=16; - hangup_chan(ch); release_chan(bc); diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index 5a3ab7916e..7bfbfd18cf 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -3305,8 +3305,10 @@ int misdn_lib_send_event(struct misdn_bchannel *bc, enum event_e event ) if (bc->channel>0) empty_chan_in_stack(stack,bc->channel); int tmpcause=bc->cause; + int tmp_out_cause=bc->out_cause; empty_bc(bc); bc->cause=tmpcause; + bc->out_cause=tmp_out_cause; clean_up_bc(bc); } break;