nat: Look at the number type to figure out if we want to rewrite it
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index abcb271..b345a77 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -773,7 +773,9 @@
TLVP_VAL(&tp, GSM48_IE_CALLED_BCD) - 1);
/* check if it looks international and stop */
- if (strncmp(called.number, "+", 1) == 0)
+ if (called.plan != 1)
+ return msg;
+ if (called.type == 1)
return msg;
if (strncmp(called.number, "00", 2) == 0)
return msg;