summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-06-24 09:40:06 +0200
committerHarald Welte <laforge@gnumonks.org>2013-06-24 09:41:15 +0200
commit82d7f610ee60175b123663ab86422f8d4841c670 (patch)
tree23e9708f36b5a577ed04fd0635f04b34f12266ce
parentad354b3136878c5a33e03bb5b9d9a916cd67f13d (diff)
TCAP ISM: Don't generate ERROR REPORT on stop due to timer expiry
If we don't state 'normal' as 'stop' reason, gen_fsm will generate an ERROR_REPORT, which is not what we want here.
-rw-r--r--TCAP/src/ITU/tcap_ism_fsm.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/TCAP/src/ITU/tcap_ism_fsm.erl b/TCAP/src/ITU/tcap_ism_fsm.erl
index d405441..0789e14 100644
--- a/TCAP/src/ITU/tcap_ism_fsm.erl
+++ b/TCAP/src/ITU/tcap_ism_fsm.erl
@@ -154,7 +154,7 @@ wait_for_reject('terminate', State) ->
wait_for_reject({timer_expired, reject}, State) ->
% reject timer expiry
% terminate
- {stop, rej_timer_exp, State}.
+ {stop, normal, State}.
op_sent_cl2(P=#'TC-U-REJECT'{}, State) ->
% TC-U-ERROR.ind to user
@@ -176,7 +176,7 @@ op_sent_cl2(Op, State) when
% stop invocation timer
timer:cancel(State#state.inv_timer),
% terminate
- {stop, class2_result, State};
+ {stop, normal, State};
op_sent_cl2('terminate', State) ->
% terminate
{stop, normal, State}.
@@ -214,7 +214,7 @@ op_sent_cl4(Op, State) ->
% stop invocation timer
timer:cancel(State#state.inv_timer),
% terminate
- {stop, cl4_op_received, State}.
+ {stop, normal, State}.
handle_event({timer_expired, invoke}, _StateName, State) ->
% invocation timer expiry
@@ -222,7 +222,7 @@ handle_event({timer_expired, invoke}, _StateName, State) ->
% TC-L-CANCEL.ind to user
P = #'TC-L-CANCEL'{dialogueID = DlgId, invokeID = InvId},
gen_fsm:send_event(State#state.usap, P),
- {stop, inv_timer_expired, State}.
+ {stop, normal, State}.
%% handle any other message
handle_info(Info, StateName, State) ->