Acme Packet (MOSC)

MOSC Banner

How to HMR and compare in From Value and use that to add a country code in To Header.

in Acme Packet (MOSC) 3 commentsAnswered ✓

Hello Again Oracle community.

I need to build HMR based in FROM uri-user, that if it starts with country code 47, I will add the value (country code) 47 in TO header.

I was able to figure regex for new value in TO Header (to add the country code 47 which is below:
^47+$TO_USER.$0

What I am missing is the regex to check if the first 2 digits in From header ($FROM_USER.$0) starts with 47.

below is my MHR but does not work,thanks a lot!

sip-manipulation
        name                                    Test_Add_CountryCodeBasedinFROM_and_copyintoToHeader
        description                             Based from the country code in From, add it in ToHeader.
        split-headers

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