Acme Packet (MOSC)

MOSC Banner

HMR for writing Contact from 300 message to CDR and removing commas.

edited May 17, 2014 2:49PM in Acme Packet (MOSC) 1 comment

Hello,

I am trying to write an Header Manipulation Rule in my Acme/Oracle SBC. This HMR is taken from the book and works at writing the value of the Contact header to the CDR.

sip-manipulation

  name                           VSA200

  description                   

  split-headers                 

  join-headers                  

  header-rule

  name                           storeContact

  header-name                    from

  action                         store

  comparison-type                pattern-rule

  msg-type                       reply

  methods                       

  match-value                    .*

  new-value                     

  header-rule

  name                           generateVSA200

  header-name                    P-Acme-VSA

  action                         add

  comparison-type                case-sensitive

  msg-type                       any

  methods                        INVITE

  match-value                   

  new-value                      200:+$storeContact.$0

Here is the Contact Header I receive in the 300:

Contact: <sip:+12394957995@SAG-BW>, <sip:+12394957995@SAG-L3-VT>, <sip:+12394957995@SAG-LASTCALL>

Here is what it looks like in CDR/CSV format:

... ,"<sip:+12394957995@SAG-BW>, <sip:+12394957995@SAG-L3-VT>, <sip:+12394957995@SAG-LASTCALL>

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