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?
Alejandro