Acme Packet (MOSC)

MOSC Banner

SIPREC XML Parsing

in Acme Packet (MOSC) 6 commentsAnswered

ESBC v9.1.0

In XML sent in SIPREC, am trying to extract a value and use it in another field.

I want to take the value from parameter "xgc" and replace value in "ucid" or add another ucid would also be fine.

The parameters were added via another HMR when the call is REFER'd.

HMR that I tried is as follows:

    mime-rule

        name                  storeXML

        content-type              application/rs-metadata+xml

        msg-type                request

        methods                 INVITE

        format                 hex-ascii

        action                 store

        comparison-type             case-sensitive

        match-value               (.*xgc=)([a-zA-Z0-9]{16})(;.*$)

        new-value

    mime-rule

        name                  addUUItoXML

        content-type              application/rs-metadata+xml

        msg-type                request

        methods                 INVITE

        format                 ascii-string

        action                 find-replace-all

        comparison-type             case-sensitive

        match-value               </apkt:ucid>

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