Acme Packet (MOSC)

MOSC Banner

REGEX translation-rules

in Acme Packet (MOSC) 5 commentsAnswered

we are on 9.3.x which allows REGEX in translation rules and it works great, we are using these rules to change both the RURI and called headers.

translation-rules
id replace-my_called-header
description replace
input-header-type called-header
input-header-value ^(.*?)+555123(.*)$
output-header-type called-header
output-header-value $01220$02

Now I came across a phone number in the To header that includes some hyphens

To: <tel:+55-5-1234567>

the rule still works correctly and the output is

To: <sip:2204567>

while this is great, the actual To number doesn't match the input-header-value regex. I am assuming the SBC either removes any hyphens before the regex gets to look at the number? is that configured somewhere or does the SBC "just knows" what needs to be done?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center