tmusella_-idt_1
Feb 01, 2016Nimbostratus
SIP URI Manipulation
Hi,
I have a case where I want to use one irule to replace anything that has xyz.com in the URI. I have 10 or so DNS names that all have 2 charcters in front of xyz.com.
How can I map aaxyz.com, bbxyz.com, ccxyz.com to the local ip? Is there a wildcard I could use in the string map?
Thanks.
when SIP_REQUEST {
Check if URI contains xyz.com if {[SIP::uri] contains "xyz.com" }{
Replace xyz.com with the VIP address
SIP::uri [string map "xyz.com [IP::local_addr]" [SIP::uri]]
} }