Dear all,
I have an old installation of FusionPBX and a brand new new installation that behave differently and I don't know why. It's about the fact that I want to modify the calling number as it is to be dialed when calling back from the local area network.
The number translation looks like this:
^\+492331(\d+)$ > $1
^\+49(\d+)$ > 0$1
^\+(\d+)$ > 00$1
It is called in an inbound route (order 20):
action set
effective_caller_id_number=${translate(${effective_caller_id_number} ONKZ)}
In the old installation it works fine. In the new installation, the result is always "1". In the log I see the following difference:
old OK:
2 2023-05-28 20:44:26.624595 [DEBUG] mod_translate.c:137 +49233112345 =~ /^\+492331(\d+)$/
new NOK:
1 2023-05-28 18:29:45.864975 97.30% [DEBUG] mod_translate.c:137 +49233112345 =~ /^\+492331(\d+)/
The regex is missing the trailing "$".
Does anyone have any good ideas what else I could check?
Best regards
Daniel
I have an old installation of FusionPBX and a brand new new installation that behave differently and I don't know why. It's about the fact that I want to modify the calling number as it is to be dialed when calling back from the local area network.
The number translation looks like this:
^\+492331(\d+)$ > $1
^\+49(\d+)$ > 0$1
^\+(\d+)$ > 00$1
It is called in an inbound route (order 20):
action set
effective_caller_id_number=${translate(${effective_caller_id_number} ONKZ)}
In the old installation it works fine. In the new installation, the result is always "1". In the log I see the following difference:
old OK:
2 2023-05-28 20:44:26.624595 [DEBUG] mod_translate.c:137 +49233112345 =~ /^\+492331(\d+)$/
new NOK:
1 2023-05-28 18:29:45.864975 97.30% [DEBUG] mod_translate.c:137 +49233112345 =~ /^\+492331(\d+)/
The regex is missing the trailing "$".
Does anyone have any good ideas what else I could check?
Best regards
Daniel