Manipulate Uri-User Diversion Header
Hi
I am trying to manipulate the user in the Diversion header to add the country code if it does not have one, but I doesnt work Any ideas?
sip-manipulation
name Changediver
description
split-headers
join-headers
header-rule
name store_Diversion_HR
header-name Diversion
action store
comparison-type case-sensitive
msg-type request
methods INVITE
match-value
new-value
element-rule
name store_Diversion_ER
parameter-name
type uri-user-only
action store
match-val-type any
comparison-type pattern-rule
match-value ^([6-9])([\d]{8}$)
new-value
header-rule
name add_div_HR
header-name Diversion
action add
comparison-type boolean
msg-type request
methods INVITE
match-value $store_Diversion_HR.$store_Diversion_ER
new-value "34"+$store_Diversion_HR.$store_Diversion_ER
0