Forum Discussion
Stephane_Deshai
Sep 11, 2012Nimbostratus
Change IP in a SIP INVITE
I'm managed to change the IP in a SIP INVITE with this iRule :
when SIP_REQUEST {
if {[SIP::method] == "INVITE" && [SIP::uri] contains "10.215.186.38" }{
...
Stephane_Deshai
Sep 12, 2012Nimbostratus
Thank you ! but something doesnt work here the change I made .. :
when SIP_REQUEST {
if {[SIP::method] == "INVITE" && [SIP::uri] contains "10.215.186.38" }{
eval [LB::select]
set ipSelected [string map "10.215.186.38 [LB::server addr]" [SIP::uri]]
set ip [getfield $ipSelected "%10" 1][SIP::uri]
I'm not sure about the last [SIP::uri]
Also, is it possible that each time a make a change in an iRule that I have remove the iRule from the VS and put it back ?
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