Logical AND operation in HMR
Is it possible to use logical AND operation in match-value field.
I want to add P-Asserted Identity field based on FROM value only if:
- PAI does not exists,
AND
- uri user part is a number only.
This will prevent me from introducing second PAI header or PAI header with non-digits.
Have you dot any ideas: here is what I wanted to introduce (NN4250, 6.1)
header-rule
name PAIexists
header-name P-Asserted-Identity
action store
comparison-type pattern-rule
match-value
msg-type any
new-value
methods INVITE
header-rule
name storeFROM
header-name From
action store
comparison-type case-sensitive
match-value
msg-type any
new-value
methods INVITE
element-rule
name storeNumber
parameter-name
type uri-phone-number-only
action store