Acme Packet (MOSC)

MOSC Banner

Manipulate Uri-User Diversion Header

edited Oct 2, 2025 4:00PM in Acme Packet (MOSC) 6 commentsAnswered

Hi

I am trying to manipulate the user in the Diversion header to add the country code if it does not have one, but I doesnt work Any ideas?

sip-manipulation

    name                                    Changediver

description

split-headers

join-headers

header-rule

name store_Diversion_HR

header-name Diversion

action store

comparison-type case-sensitive

msg-type request

methods INVITE

match-value

new-value

element-rule

name store_Diversion_ER

parameter-name

type uri-user-only

action store

match-val-type any

comparison-type pattern-rule

match-value ^([6-9])([\d]{8}$)

new-value

header-rule

name add_div_HR

header-name Diversion

action add

comparison-type boolean

msg-type request

methods INVITE

match-value $store_Diversion_HR.$store_Diversion_ER

new-value "34"+$store_Diversion_HR.$store_Diversion_ER

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