Acme Packet (MOSC)

MOSC Banner

How to create a Sip Manipulation to create the p-asserted-identity copying the from header.

in Acme Packet (MOSC) 2 commentsAnswered

I need to create the p-asserted-identity header copying the from header just when a call comes in without the p-asserted-identity header.

I've created this sip-manipulation but the condition doesn't work and the p-asserted-identity is not created:

sip-manipulation
name SM-customer10-AddPAI
description Add header PAI si no existe
split-headersjoin-headersheader-rule
name checkPAI
header-name P-Asserted-Identity
action store
comparison-type pattern-rule
msg-type request
methods INVITE
match-valuenew-valueelement-rule
name ddiPAI
parameter-nametype uri-user-only
action store
match-val-type any
comparison-type pattern-rule
match-value ^(+)(.*)$
new-valueheader-rule
name AddPAIheader-name P-Asserted-Identity
action manipulate
comparison-type case-sensitive
msg-type request
methods INVITE
match-value !$checkPAI.$ddiPAI
new-value sip:+$FROM_PHONE.$0+@+10.103.28.167:5060

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