SIP manipulation to reject calls where TO and FROM numbers are the same
This is what I have and it just doesn't work. I also tried storing one of the numbers in a variable and comparing that. What am I missing?
sip-manipulation
name test-scott
description
split-headers
join-headers
header-rule
name to
header-name to
action manipulate
comparison-type case-sensitive
msg-type request
methods INVITE
match-value
new-value
element-rule
name rejectIfMatch
parameter-name
type uri-user
action reject
match-val-type any
comparison-type boolean
match-value ($FROM_USER == $TO_USER)
new-value 401:Denied