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
You need to identify the SIP requests, and direct them as you want.
Some links that may help you:
https://devcentral.f5.com/wiki/irules.sip.ashx
https://devcentral.f5.com/wiki/irules.node.ashx
https://devcentral.f5.com/wiki/irules.active_members.ashx
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