Re: [asterisk-users] Load balancing SIP extensions.

2008-02-24 Thread Yehavi Bourvine +972-8-9489444
Hello, Here is how I do this. The prerequisits are: - MySQL to hold the extensions realtime database. MySQL is synchronized among all servers using the Master/slave replication model. - The phones are spread by some external algorithm over the Asterisk servers (statefull load balancer,

Re: [asterisk-users] load balancing SIP extensions

2008-02-23 Thread Anthony Francis
Vieri wrote: What I would like to do is have two identical * servers which accept registrations of sip extensions 4000-4999. If I define a rrDNS or LinuxHA then I should have load-balanced registrations. However, say ext. 4001 is registered on *1 and 4002 is registered on *2, if 4001

Re: [asterisk-users] load balancing SIP extensions

2008-02-23 Thread Raj Jain
On Fri, 22 Feb 2008 19:44 +0200, Yehavi Bourvine +972-8-9489444 [EMAIL PROTECTED] wrote: When a call arrives I check whether the REGSERVER coloumn is the same as the local server or not. If not, then there are two options: - Pass the call via IAX to the other servers; this makes both server

Re: [asterisk-users] load balancing SIP extensions

2008-02-23 Thread Vieri
--- Anthony Francis [EMAIL PROTECTED] wrote: Have you tried placing the sip registrations in a db using realtime? I'm not that sure I want to use realtime because I would then depend on the sql service never failing (I could use clustered active-active MySQL but that sounds overkill, or maybe

[asterisk-users] load balancing SIP extensions

2008-02-22 Thread Vieri
What I would like to do is have two identical * servers which accept registrations of sip extensions 4000-4999. If I define a rrDNS or LinuxHA then I should have load-balanced registrations. However, say ext. 4001 is registered on *1 and 4002 is registered on *2, if 4001 tries to call 4002

Re: [asterisk-users] load balancing SIP extensions

2008-02-22 Thread Andres Jimenez
On Fri, Feb 22, 2008 at 11:42 AM, Vieri [EMAIL PROTECTED] wrote: However, say ext. 4001 is registered on *1 and 4002 is registered on *2, if 4001 tries to call 4002 then I would like to do something like: - lookup 4002 on *1, try to establish a call if it's REGISTERED here - if it's

Re: [asterisk-users] load balancing SIP extensions

2008-02-22 Thread Yehavi Bourvine +972-8-9489444
What I would like to do is have two identical * servers which accept registrations of sip extensions 4000-4999. If I define a rrDNS or LinuxHA then I should have load-balanced registrations. However, say ext. 4001 is registered on *1 and 4002 is registered on *2, if 4001 tries to call

Re: [asterisk-users] load balancing SIP extensions

2008-02-22 Thread Vieri
--- Andres Jimenez [EMAIL PROTECTED] wrote: On Fri, Feb 22, 2008 at 11:42 AM, Vieri [EMAIL PROTECTED] wrote: However, say ext. 4001 is registered on *1 and 4002 is registered on *2, if 4001 tries to call 4002 then I would like to do something like: - lookup 4002 on *1, try to

Re: [asterisk-users] load balancing SIP extensions

2008-02-22 Thread Andres Jimenez
On Fri, Feb 22, 2008 at 5:49 PM, Vieri [EMAIL PROTECTED] wrote: --- Andres Jimenez [EMAIL PROTECTED] wrote: On Fri, Feb 22, 2008 at 11:42 AM, Vieri [EMAIL PROTECTED] wrote: However, say ext. 4001 is registered on *1 and 4002 is registered on *2, if 4001 tries to call 4002

Re: [asterisk-users] load balancing SIP extensions

2008-02-22 Thread Andres Jimenez
On Fri, Feb 22, 2008 at 5:49 PM, Vieri [EMAIL PROTECTED] wrote: Thanks. I'll try that although I hope it won't go into an infinite loop between the 2 servers. You are right. That could happen if the phone is not registered anywhere You can put some security in the dialplan. if calls

Re: [asterisk-users] load balancing SIP extensions

2008-02-22 Thread Jared Bellows
I tried to use DUNDi on my local servers but I can't seem to make it work. Most howtos out there explain the use of DUNDi when the extension ranges do not overlap. The following doc describes using the same extensions across multiple * servers. It requires using realtime, but seems to do