HMR - match and store only 8 digits header
Hi All,
I have a scenario where I receive 8 digits or 10 digits in the TO header of the SIP INVITE. I need to store the TO header user value when it sends only 8 digits. May I know how to achieve it.
I tried to use below. But it didn't help. It is storing the first 8 digits either way. I do not want to trigger this when I receive 10 digits.
name Store8DigtTO
header-name TO
action store
comparison-type case-sensitive
msg-type any
methods INVITE
match-value
new-value
element-rule
name StoreTO
parameter-name
type uri-user
action store
match-val-type any
comparison-type boolean
match-value [0-9]{8,8} new-value
Thank you..!