From 3bf400d91a1e65bd66bf09e034df5465f2727715 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 8 Jun 2013 00:55:01 +0200 Subject: [PATCH] TSM: we already receive decoded asn.1, don't try to feed that to decoder again --- TCAP/src/ITU/tcap_tsm_fsm.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCAP/src/ITU/tcap_tsm_fsm.erl b/TCAP/src/ITU/tcap_tsm_fsm.erl index 729b38e..e5ae21e 100644 --- a/TCAP/src/ITU/tcap_tsm_fsm.erl +++ b/TCAP/src/ITU/tcap_tsm_fsm.erl @@ -94,7 +94,7 @@ idle({'BEGIN', received, SccpParms}, State) %% Store remote address and remote TID NewState = State#state{remote_address = SccpParms#'N-UNITDATA'.callingAddress, remoteTID = (SccpParms#'N-UNITDATA'.userData)#'Begin'.otid}, - {ok, Begin} = 'TR':decode('TCMessage', SccpParms#'N-UNITDATA'.userData), + Begin = SccpParms#'N-UNITDATA'.userData, QOS = {SccpParms#'N-UNITDATA'.sequenceControl, SccpParms#'N-UNITDATA'.returnOption}, UserData = #'TR-user-data'{dialoguePortion = Begin#'Begin'.dialoguePortion, componentPortion = Begin#'Begin'.components},