[Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey
Mike van Lammeren
mike at van.lammeren.net
Fri Oct 2 09:58:16 PDT 2009
I am running the servers on the free version of VMware's ESX platform, but
only for development purposes. We will be setting up real machines sometime
in Spring 2010.
On Thu, Oct 1, 2009 at 2:12 PM, Even André Fiskvik <grevenx at me.com> wrote:
> That's very cool Mike!
> I'm going to try to configure four boxes with this as well (Btw, did you
> use physical hardware or virtualization?)
> and see how it goes. I followed Daniel Aliaman's blog as well, but I can
> try it again with the tips
> you provided on FreeSWITCH config to see if I can get it working properly
> this time.
> We did the setup on CentOS, but I wouldn't think that would be any issue.
>
> Perhaps you or we could write up a complete guide about this on the wiki
> since this is an scenario
> commonly used? Also it would be great if we could outline possible issues
> (and even better solutions)
> to this kind of setup with regards to stuff like conferencing, bridging
> between registered users and presence.
>
>
> Best regards,
> Even André
>
>
> On 1. okt. 2009, at 18.45, Mike van Lammeren wrote:
>
> Guess what? I have two FreeSWITCH servers working behind UltraMonkey, using
> heartbeat and ldirectord for load-balancing, fail-over and high
> availability! I'm probably not the first one to do it, but as near as Google
> and I can tell, I'm the first one to write about it.
> Here's how you can duplicate my setup:
>
> 1. Install Ubuntu Server 8 on four machines, either real or VM.
> 2. Compile and install FreeSWITCH v1.0.4 from source on two machines,
> following these instructions:
> http://wiki.freeswitch.org/wiki/Ubuntu_Quick_Start
> <http://wiki.freeswitch.org/wiki/Ubuntu_Quick_Start>3. Configure both
> FreeSWITCH boxes, and make sure they are both working.
> 4. Follow (most of) these instructions from Daniel Aliaman's blog. They
> were written for Asterisk, but since a SIP connection is a SIP connection,
> most of the document applies to FreeSWITCH:
> http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf
>
> <http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf>The one
> problem I ran into was the IP address and port to which FreeSWITCH was
> bound. The default is to use the primary address, which works great
> out-of-the-box for everything else. When a client tried to register, all it
> got back was an ICMP error -- Destination Unreachable, Port Unreachable.
> That error is returned when no sockets are listening for UDP packets. To get
> FreeSWITCH to listen for your Virtual IP, you need to set it in two places:
>
> 5. In /opt/freeswitch/conf/vars.xml, set "bind_server_ip".
> 6. In /opt/freeswitch/conf/sip_profiles/internal.xml, set "sip-ip".
>
> That should do it! If you have any success, please report to this list.
>
> Keep in mind that if you want to do something like conferencing between two
> registered clients, then you have to deal with the fact that the clients may
> or may not be on the same box.
>
> Mike van Lammeren
>
>
>
> On Tue, Sep 29, 2009 at 10:20 AM, Mike van Lammeren <mike at van.lammeren.net
> > wrote:
>
>>
>> On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx at me.com
>> > wrote:
>>
>>> From: "Even André Fiskvik" <grevenx at me.com>
>>> To: freeswitch-users at lists.freeswitch.org
>>> Date: Mon, 28 Sep 2009 22:52:13 +0200
>>> Subject: Re: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey
>>> I have been working with a similar setup myself, but for some reason I
>>> ended up ditching theUltraMonkey setup because I just couldn't get it to
>>> work right.
>>>
>>> It's been quite a while since my effort, so I don't remember what the
>>> exact issue was.
>>> I got registrations to work, but had some other sip-dialog issues.
>>>
>>> We have since then changed over to running OpenSIPs as a loadbalancer in
>>> front of
>>> multiple FreeSWITCH instances. This setup is still in testing, but
>>> seemlingy works fine
>>> (and if it doesn't, it's my own fault for writing a bad opensips config).
>>>
>>> After we have done some more testing I can create a wiki-page with config
>>> details.
>>>
>>>
>>> Best regards,
>>> Even André
>>>
>>>
>> Thanks, Even, that would be great! I might have to give up on the
>> ultramonkey solution, since I can't find anyone who has made it work. It's
>> too bad, because it would fit well with the rest of our architecture.
>>
>> Mike van Lammeren
>>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091002/9281eb71/attachment-0002.html
More information about the FreeSWITCH-users
mailing list