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 crashes and is restarted. I am running "BIG-IP 10.1.0 Build 3341.0 Final"... any help would be appreciated.
when CLIENT_DATA {
if {[regexp -indices {(172.16.10.4)} [UDP::payload] location] == 1} {
set offset [lindex $location 0]
log local0. "Offset = $offset"
}
}
when SIP_REQUEST_SEND {
log local0. "LB Server: [LB::server addr]"
UDP::payload replace $offset [string length [LB::server addr]] [LB::server addr]
}
Incidentally, if I were to move the "UDP::payload" line to CLIENT_DATA and hardcode the lenth and ip address tmm doesn't crash. If I put it in SIP_REQUEST_SEND with the hardcoded information it crashes.
- spark_86682Historic F5 AccountI would definitely open a case with F5 support.
- Rdouglas_80332
Nimbostratus
I 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.
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