On Tue, Apr 22, 2003 at 09:33:45AM -0400, Alejandro Olchik wrote:
I need some help to implement load balance when sending invites to an external sip proxy server.
I would like to be able to balance load between to IPs (10.0.0.1 and 10.0.0.2) and use the backup IP when the primary one fails.
Below is the routing code I have:
if (!lookup("location")) { rewritehost("10.0.0.1"); if (!t_relay_to("10.0.0.1","5060")) { sl_send_reply("404", "Not Found"); }; break; };
How can I add this behaviour?
Any suggestion?
Write a small module that will randomly send redirect reply to incoming INVITE requests.
-Maxim