Forum Discussion
F5 SIP proxy load-balancer handle REGISTRATION
- Aug 10, 2017
Hi Sathish,
Below is the requested iRule. Some correction. When SIP Request is REGISTER and server1 is up, REGISTER request will be send to server1. When SIP Request is other than REGISTER and server2 is up, SIP request will be send to server2.
When either server1 is down or server2 is down, all request will be send to available server.
when SIP_REQUEST { if { [SIP::method] eq "REGISTER" } { if { [LB::status pool pool_name member server1_ip server1_port] eq "up" } { pool pool_name member server1_ip server1_port } } else { if { [LB::status pool pool_name member server2_ip server2_port] eq "up" } { pool pool_name member server2_ip server2_port } } }
Thanks
Syed Nazir
Hi Sathish,
Below is the requested iRule. Some correction. When SIP Request is REGISTER and server1 is up, REGISTER request will be send to server1. When SIP Request is other than REGISTER and server2 is up, SIP request will be send to server2.
When either server1 is down or server2 is down, all request will be send to available server.
when SIP_REQUEST {
if { [SIP::method] eq "REGISTER" } {
if { [LB::status pool pool_name member server1_ip server1_port] eq "up" } {
pool pool_name member server1_ip server1_port
}
}
else {
if { [LB::status pool pool_name member server2_ip server2_port] eq "up" } {
pool pool_name member server2_ip server2_port
}
}
}
Thanks
Syed Nazir
- satish_txt_2254Aug 11, 2017Cirrus
You are awesome! this is what i was looking for.
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