aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-04 10:39:50 +0000
committercrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-04 10:39:50 +0000
commit3f4a4f132408448c4245b2e051229f8524fa335d (patch)
tree96d501492c42989f920af90a68d3e11bf4dd9178
parente62e4e376009e346edf92cffff0e5d7d3cc325de (diff)
fixed another place where the out_cause was hardcoded to 16
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@57753 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_misdn.c2
-rw-r--r--channels/misdn/isdn_lib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index 40231309b..5714079fc 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 5a3ab7916..7bfbfd18c 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;