SIP-manipulation for Allow
I have situation where Allow statement needs to be modified?
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
In this statement, UPDATE value needs to be deleted. How can I use SIP-manipulation to delete that from Allow line?
Here what I was trying to build which is not working.
header-rule
name removeUPDATE
header-name Allow
action manipulate
comparison-type case-sensitive
msg-type any
methods
match-value
new-value
element-rule
name delUPDATE
parameter-name
type header-value
action delete-element
match-val-type any
comparison-type pattern-rule
match-value (,\s*UPDATE|UPDATE\s*,)
new-value