HMR to add a P-Preferred-Identity
This HMR illustrates how to add a P-Preferred-Identity header to an INVITE if one does not already exist.
If it already exists, do nothing.
The PPI header is created using username parameter present in the From header URI and the SBC's local IP address.
sip-manipulation
name addPPI
description Create P-Preferred-Identity if none present
split-headers
join-headers
header-rule
name PPIexists
header-name P-Preferred-Identity
action store
comparison-type pattern-rule
msg-type out-of-dialog
methods INVITE
match-value
new-value
header-rule
name addPPI
header-name P-Preferred-Identity
action add
comparison-type boolean
msg-type out-of-dialog
methods INVITE
match-value !$PPIexists
new-value sip:+$FROM_USER.$0+@+$LOCAL_IP