aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-08-07 13:29:22 +0200
committerHarald Welte <laforge@gnumonks.org>2010-08-07 13:29:22 +0200
commit34ff133237da37528244d93daf8d6a2e48a9c6d9 (patch)
treeb7c4970792ef604f8d31fba58e6558023f5fa076
parent056e05be581575f1fae2b5fdb9093dd2d4bb9e8c (diff)
tcap_map_patch.erl now also does the ASN.1 re-encode after patching
-rw-r--r--src/tcap_map_patch.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tcap_map_patch.erl b/src/tcap_map_patch.erl
index 7134bf6..16540ba 100644
--- a/src/tcap_map_patch.erl
+++ b/src/tcap_map_patch.erl
@@ -21,7 +21,10 @@
-module(tcap_map_patch).
--compile(export_all).
+-author('Harald Welte <laforge@gnumonks.org>').
+%-compile(export_all).
+
+-export([handle_tcap_msg/1]).
-define(PATCH_HLR_NUMBER, [1]).
-define(PATCH_SGSN_NUMBER, [2]).
@@ -274,6 +277,7 @@ handle_tcap_msg(PayloadL) ->
case asn1rt:decode('MAP', 'MapSpecificPDUs', PayloadL) of
{ok, {Type, TcapMsgDec}} ->
io:format("success!~n"),
- handle_tcap_msg_dec(Type, TcapMsgDec);
+ {Type, NewTcapMsgDec} = handle_tcap_msg_dec(Type, TcapMsgDec),
+ asn1rt:encode('MAP', Type, NewTcapMsgDec);
Error -> Error
end.