mgw_nat: Fix bug where we skipped the SCCP static mangling before masq

This commit is contained in:
Harald Welte 2011-05-23 12:39:36 +02:00
parent 097ad255f6
commit 71b158fca6
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ mangle_rx_mtp3_serv(Fn, From, Path, ?MTP3_SERV_SCCP, Mtp3 = #mtp3_msg{payload =
{ok, Sccp} = sccp_codec:parse_sccp_msg(Payload),
%io:format("SCCP Decode: ~p~n", [Sccp]),
SccpMangled = Fn(sccp, From, Path ++ [Mtp3], Sccp#sccp_msg.msg_type, Sccp),
SccpMasqued = mangle_rx_sccp_map(Fn, From, Path ++ [Mtp3], SccpMangled#sccp_msg.msg_type, Sccp),
SccpMasqued = mangle_rx_sccp_map(Fn, From, Path ++ [Mtp3],
SccpMangled#sccp_msg.msg_type, SccpMangled),
%SccpMangled = mangle_rx_sccp(From, Path ++ [Mtp3], Sccp#sccp_msg.msg_type, Sccp),
%SccpMasqued = sccp_masq:sccp_masq_msg(From, SccpMangled#sccp_msg.msg_type,
% SccpMangled),