Forum Discussion
Romel_77740
Nimbostratus
Jun 14, 2010manipulating SIP request URI domain name
I need to replace the domain name of a SIP Request-URI to the local Virutal IP addr of my LTM only if domain name is xyz.com. How can I do this?
hoolio
Cirrostratus
Jun 14, 2010Hi Romel,
You can use SIP::uri to retrieve and set the URI. So you could try something like this:
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]]
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
