How to create a Sip Manipulation to create the p-asserted-identity copying the from header.
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