HMR to Match URI-Host
Hi,
I am trying to create a HMR to match URI-HOST using a alternator, but keep getting error?
header-rule
name requestUri
header-name request-uri
action manipulate
comparison-type case-sensitive
msg-type any
methods INVITE
match-value
new-value
element-rule
name convertshortcodeforuridialWebex
parameter-name host
type uri-host
action replace
match-val-type any
comparison-type pattern-rule
match-value $RURI_HOST.$0!="alpha.webex.com|webex.com"
new-value xyz.com
element-rule
name convertoldshortcodetoneWebex
parameter-name user
type uri-user
action replace
match-val-type any
comparison-type pattern-rule
match-value $RURI_HOST.$0!="alpha.webex.com|webex.com"
new-value 62900
Input: INVITE sip:923637752@abc.com SIP/2.0
Expected output: INVITE sip:62900@xyz.com SIP/2.0.
Any help is highly appreciated ?
Thanks,
Gaurav