Forum Discussion

Girish9022's avatar
Girish9022
Icon for Nimbostratus rankNimbostratus
Jun 26, 2019

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 }

                             }

                          }

}

 

No RepliesBe the first to reply