From 4ee5c4b20871079159e6bd0bd8e6f3c06c3c0f7f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 25 Jun 2013 16:14:01 +0200 Subject: ISM: correctly handle TC-U-ERROR component in class1/class2 op --- TCAP/src/ITU/tcap_ism_fsm.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TCAP/src/ITU/tcap_ism_fsm.erl b/TCAP/src/ITU/tcap_ism_fsm.erl index 2793f6c..6718215 100644 --- a/TCAP/src/ITU/tcap_ism_fsm.erl +++ b/TCAP/src/ITU/tcap_ism_fsm.erl @@ -131,7 +131,7 @@ op_sent_cl1(P=#'TC-RESULT-L'{}, State) -> % start reject timer Trej = start_reject_timer(), {next_state, wait_for_reject, State#state{rej_timer = Trej}}; -op_sent_cl1(P=#'TC-U-REJECT'{}, State) -> +op_sent_cl1(P=#'TC-U-ERROR'{}, State) -> % Figure A.7/Q.774 (2 of 6) % TC-U-ERROR.ind to user gen_fsm:send_event(State#state.usap, {'TC', 'U-ERROR', indication, P}), @@ -159,9 +159,9 @@ wait_for_reject({timer_expired, reject}, State) -> % terminate {stop, normal, State}. -op_sent_cl2(P=#'TC-U-REJECT'{}, State) -> +op_sent_cl2(P=#'TC-U-ERROR'{}, State) -> % TC-U-ERROR.ind to user - gen_fsm:send_event(State#state.usap, {'TC', 'U-REJECT', indication, P}), + gen_fsm:send_event(State#state.usap, {'TC', 'U-ERROR', indication, P}), % stop invocation timer timer:cancel(State#state.inv_timer), % start reject timer -- cgit v1.2.3