Forum Discussion
wiked_jeeds_131
Nimbostratus
Aug 27, 2013SIP load balance criteria by call no. using irule
Hi all,
I got a requirement to load balancing SIP by call number.
for example,
when client phone No. 0811234567 calls to No *123
in SIP header [SIP.To] shows *1230811234567
and client phone No....
Kevin_Davies_40
Nacreous
Aug 31, 2013Set load balance to round robin. Set persistence to blank Universal with the following iRule
when SIP_REQUEST {
persist [string range [SIP::to] 1 3]
}
This will persist on the first three numeric characters of the destination number to the backend server. If however you want exactly as you specified above then..
when SIP_REQUEST {
switch [string range [SIP::to] 1 3] {
123 { node server1 port1 }
456 { node server2 port2 }
}
}
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