[OpenSIPS-Users] Script for Load Balancing of PSTN calls on Asterisk Servers

2011-09-22 Thread Faisal Rehman
Hi Everyone, I want to do load balancing of two asterisk servers which are dealing with PSTN calls only, the script that I found on OpenSIPS website is a little complex and not my requirement. Let's say I have two asterisk boxes to be load balanced & whose IP addresses with allocated resources

Re: [OpenSIPS-Users] Script for Load Balancing of PSTN calls on Asterisk Servers

2011-09-23 Thread Sam Govind
yup..seems good enough if (load_balance("1","pstn")) { # dst URI points to the new destination xlog("sending call to $du\n"); t_relay(); exit; } else{ xlog("Load Balancer Failed\n"); sl_send_reply("503","Something Bad happened to Load Balancer"); exit(); } On Fri

Re: [OpenSIPS-Users] Script for Load Balancing of PSTN calls on Asterisk Servers

2011-09-23 Thread Faisal Rehman
Hi Sam, Okay I will surely try it.   With Best Regards, Faisal Rehman From: Sam Govind To: Faisal Rehman ; OpenSIPS users mailling list Sent: Friday, September 23, 2011 12:11 PM Subject: Re: [OpenSIPS-Users] Script for Load Balancing of PSTN calls on