Forum Discussion
Rdouglas_80332
Nimbostratus
Feb 01, 2010Using irule to replace IP in SIP INVITE
I want to replace the IP address in the SIP INVITE (which happens to be the virtual IP) with that of a server behind the F5.
I have the following irule... but when it runs tmm crash...
Rdouglas_80332
Nimbostratus
Feb 08, 2010I have a case open with support... tmm will be fixed to throw an error instead of crashing. To solve my initial issue I am using SIP::uri which works quite elegantly.
when RULE_INIT {
set vs_ip 172.16.10.5
}
when SIP_REQUEST_SEND {
set my_ip_map [list $vs_ip [LB::server addr]]
log local0. "Current uri: [SIP::uri] "
set new_uri [string map $my_ip_map [SIP::uri] ]
SIP::uri $new_uri
log local0. "New uri: [SIP::uri]"
}
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