mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 08:13:22 +00:00
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
This commit is contained in:
@@ -3890,8 +3890,6 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
|||||||
|
|
||||||
case EVENT_RELEASE:
|
case EVENT_RELEASE:
|
||||||
{
|
{
|
||||||
bc->out_cause=16;
|
|
||||||
|
|
||||||
hangup_chan(ch);
|
hangup_chan(ch);
|
||||||
release_chan(bc);
|
release_chan(bc);
|
||||||
|
|
||||||
|
@@ -3305,8 +3305,10 @@ int misdn_lib_send_event(struct misdn_bchannel *bc, enum event_e event )
|
|||||||
if (bc->channel>0)
|
if (bc->channel>0)
|
||||||
empty_chan_in_stack(stack,bc->channel);
|
empty_chan_in_stack(stack,bc->channel);
|
||||||
int tmpcause=bc->cause;
|
int tmpcause=bc->cause;
|
||||||
|
int tmp_out_cause=bc->out_cause;
|
||||||
empty_bc(bc);
|
empty_bc(bc);
|
||||||
bc->cause=tmpcause;
|
bc->cause=tmpcause;
|
||||||
|
bc->out_cause=tmp_out_cause;
|
||||||
clean_up_bc(bc);
|
clean_up_bc(bc);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user