Options

aFLEX for SIP SLB on Code bases

Will this script load balance SIP traffic?

If Code 900 send traffic to node x.x.x.17
If code 903 send traffic to node x.x.x.18

Load balance rest of the traffic.

when SIP_REQUEST {
if { [SIP::to] starts_with "<sip:900" } {
node x.x.x.17
}
}
when SIP_REQUEST {
if { [SIP::to] starts_with "<sip:903" } {
node x.x.x.18
}
}

Secondly should i make two aFlex separatly or make it one?

Thanks

Comments

  • Options
    hkohn72hkohn72 Member
    edited March 2016
    Hello,

    i think this is what you are searching for.

    when SIP_REQUEST {
    if { [SIP::to] starts_with “<sip:900″ } {
    node x.x.x.17
    } elseif { [SIP::to] starts_with “<sip:903″ } {
    node x.x.x.18
    }
    }

    CU Holger!
Sign In or Register to comment.