Forum Discussion
Irule for traffic segregation between 3 type of codec to differentiate the traffic for different pool.
HI all
please help me with the irule in LTM for SIP traffic segregation between 3 codec for differentiate the traffic for different pool.
conditions:-
1)there are 3 codec i:e AMR -WB , AMR-NB and EVS
2)All pools WB, EVS and NB should be up on primary site else the traffic will be route to DR location
3)In case of the primary site down Traffic will be diverted to DR Site
NOTE:- i have the irule for 2 types of codec traffic segregation(for reference)
when SIP_REQUEST {
if {[active_members POOL1 ] != 0 and [active_members POOL2 ] != 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"
pool POOL1 }
else { pool POOL2 }
} else { pool POOL2 }
} else { if {[active_members DR_POOL1] != 0 and [active_members DR_POOL2] != 0}{
if {[SIP::method] eq "INVITE" } {
# log local0. "AMR SIP Payload Geo Redundant Site [SIP::payload]"
if { [SIP::payload] contains "AMR-WB"}{
# log local0. "AMR WB found in Payload"
pool DR_POOL1 }
else { pool DR_POOL2 }
}else { pool DR_POOL2 }
}
}
}
Recent Discussions
Related Content
* 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