|
@@ -854,6 +854,13 @@ route[PSTN] {
|
|
|
exit;
|
|
|
}
|
|
|
|
|
|
+ # normalize target number for pstn gateway
|
|
|
+ # - convert leading 00 to +
|
|
|
+ if (starts_with("$rU", "00")) {
|
|
|
+ strip(2);
|
|
|
+ prefix("+");
|
|
|
+ }
|
|
|
+
|
|
|
if (strempty($sel(cfg_get.pstn.gw_port))) {
|
|
|
$ru = "sip:" + $rU + "@" + $sel(cfg_get.pstn.gw_ip);
|
|
|
} else {
|