Forum Discussion
PS_332920
Nimbostratus
Nov 25, 2018iRules - Matching multiple entries and making decision FIFO basis
Need your advise regarding an iRule modification I am looking into. The present iRule logic in place checks for "AMR-WB" in the SIP payload and directs to PoolA and all remaining requests including "...
Nov 25, 2018
Maybe something like this:
when SIP_REQUEST {
if {[active_members PoolA ] != 0 and [active_members PoolB ] != 0}{
log local0. "AMR - Primary Site"
if {[SIP::method] eq "INVITE" } {
log local0. "AMR SIP Payload [SIP::payload]"
if { [SIP::payload] contains "AMR-WB"} {
log local0. "AMR WB found in Payload"
if { [findstr [SIP::payload] "AMR" 0 "AMR-WB"] != "" } {
log local0. "AMR before AMR-WB found -> PoolB"
pool PoolB
}
else {
log local0. "Only AMR-WB found -> PoolA"
pool PoolA
}
} else {
pool PoolB
}
} else {
pool PoolB
}
}
}
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