Acme Packet (MOSC)

MOSC Banner

HMR to match a Toll Free called number and add Diversion Header

edited Apr 1, 2014 4:00PM in Acme Packet (MOSC) 8 commentsAnswered ✓

Hello everyone,

 

This is my first time creating HMR's on my own.  I was hoping to get some help with the following scenario. 

 

I need to match any Toll Free called number in the "To" field in an INVITE (Prefix of 800, 855, 866, 877, 888) with or without a +1.  I then need to add a Diversion header with a static 10-digit number and the Local IP. This is what I've come up with so far.

 

header-rule

name checkto

header-name request-uri

action store

comparison-type pattern-rule

msg-type out-of-dialog

methods INVITE

match-value ^\+1(800|888|877|866|855){10,11}$

new-value

 

header-rule

name add_diversion

header-name Diversion

action add

comparison-type case-sensitive

msg-type request

methods INVITE

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