I am testing outbound voice translation patterns and have come across a weird result.
(Numbers are fake for question purposes)
Test DID Number: 4123
Full Number: 738998723 (7389987XX)
rule 45 /^.*41\([2-3].\)$/ /7389987\1/
rule 46 /4123/ /738998723/
rule 90 /^.*/ /738112333/
When placing a call outbound it seems to skip the VTR (voice translation rule) set and substitutes it for 738112333
432494872: Jun 18 15:54:26.282 AEST: //-1/86351A800003/RXRULE/regxrule_match: No match; number=738998723 rule precedence=44
432494873: Jun 18 15:54:26.282 AEST: //-1/86351A800003/RXRULE/regxrule_match: more digits needed; number=738998723 rule precedence=45
432494874: Jun 18 15:54:26.282 AEST: //-1/86351A800003/RXRULE/regxrule_match: No match; number=738998723 rule precedence=46
432494875: Jun 18 15:54:26.283 AEST: //-1/86351A800003/RXRULE/sed_subst: Successful substitution; pattern=738998723 matchPattern=^.* replacePattern=738112333 replaced pattern=738112333
432494876: Jun 18 15:54:26.283 AEST: //-1/86351A800003/RXRULE/regxrule_subst_num_type: Match Type = none, Replace Type = none Input Type = unknown
432494877: Jun 18 15:54:26.283 AEST: //-1/86351A800003/RXRULE/regxrule_subst_num_plan: Match Plan = none, Replace Plan = none Input Plan = unknown
432494878: Jun 18 15:54:26.283 AEST: //-1/86351A800003/RXRULE/regxrule_profile_translate_internal: xlt_number=738112333 xlt_type=unknown xlt_plan=unknown
I understand rule 45 is possibly a bit dodgy but surely 46 would scoop it up.
Provide pls dial-peer and translation-profile configuration.
You are trying to match number 738998723 with this translation-rule. There is no number 4123 in debug output
In your output, you see the voice translation rule matching on
No match; number=738998723
And not just on the last four digits. So either the full number of 738998723 is being presented to the router, or a second voice translation is happening (correctly matching Rule 45 or Rule 46) before the one you are showing in the output below.
As suggested, can you post your voice translation rules/profiles and the dial-peers (inbound and outbound) involved in the call?