aFLEX for SIP SLB on Code bases
irfan_telecom1
Member ✭
in aFleX
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
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
Tagged:
0
Comments
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!