Rewrite MSRN in CON/ANM from MSC->STP
diff --git a/src/mgw_nat.erl b/src/mgw_nat.erl
index 32f249f..eee64bb 100644
--- a/src/mgw_nat.erl
+++ b/src/mgw_nat.erl
@@ -129,6 +129,16 @@
_ ->
PartyNum
end;
+% Mangle connected number in response to IAM
+mangle_isup_number(from_msc, MsgT, NumType, PartyNum) when MsgT == ?ISUP_MSGT_CON;
+ MsgT == ?ISUP_MSGT_ANM ->
+ case NumType of
+ ?ISUP_PAR_CONNECTED_NUM ->
+ io:format("CON MSRN rewrite (MSC->STP): "),
+ replace_isup_party_prefix(PartyNum, ?MSRN_PFX_MSC, ?MSRN_PFX_STP);
+ _ ->
+ PartyNum
+ end;
% default case: no rewrite
mangle_isup_number(from_msc, _, _, PartyNum) ->
PartyNum.