SIP manipulation (HMR) PAI questions
Hello
I want to use sip manipulation in AcmePacket to delete the cpc in the PAI header.
I applied this HMR and it is not working properly.
Can you confirm if this HMR is correct?
Example
P-Asserted-Identity: <sip:peer1@x.x.x.x:5060>;cpc=ordinary
sip-manipulation
name DEL_CPC
description
split-headers
join-headers
header-rule
name changePAID
header-name P-Asserted-Identity
action manipulate
comparison-type pattern-rule
msg-type any
methods
match-value
new-value
element-rule
name isPAID
parameter-name
type header-value
action store
match-val-type any
comparison-type pattern-rule
match-value ^([^;]+);([^@]+)@(.+)$
new-value
element-rule
name ChgPAID
parameter-name
type header-value
action replace
match-val-type any
comparison-type boolean
match-value $changePAID.$isPAID
new-value $changePAID.$isPAID.$1+@+$changePAID.$isPAID.$3