VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
mike at van.lammeren.net Guest
|
Posted: Mon Sep 28, 2009 3:51 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
Hello!
I followed a tutorial that describes load-balancing Asterisk with Ultramonkey, but cannot get it to work with FreeSWITCH:
http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf
My X-Lite client fails to register with the server. I have looked at the packets with wireshark, and found that when X-Lite sends a SIP Register packet, it gets an ICMP response: Destination Unreachable (Port Unreachable).
Has anyone got a load-balanced FreeSWITCH setup working?
Mike van Lammeren |
|
Back to top |
|
|
grevenx at me.com Guest
|
Posted: Mon Sep 28, 2009 4:01 pm Post subject: [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é
On 28. sep. 2009, at 22.12, Mike van Lammeren wrote:
|
|
Back to top |
|
|
sprice at gmail.com Guest
|
|
Back to top |
|
|
nandy1925 at gmail.com Guest
|
Posted: Mon Sep 28, 2009 5:15 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
please check Redfone's foneBridge. i come across an article about this before.
On Tue, Sep 29, 2009 at 5:26 AM, SP <sprice@gmail.com (sprice@gmail.com)> wrote:
|
|
Back to top |
|
|
mike at van.lammeren.net Guest
|
Posted: Tue Sep 29, 2009 9:37 am Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)> wrote:
Quote: | From: "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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 |
|
Back to top |
|
|
mike at van.lammeren.net Guest
|
Posted: Thu Oct 01, 2009 12:06 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
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
[/url]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:
[url=http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf]http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf
[url=http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf][/url]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@van.lammeren.net (mike@van.lammeren.net)> wrote:
Quote: |
On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)> wrote:
Quote: | From: "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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
|
|
|
Back to top |
|
|
raffaele.p.guidi at gm... Guest
|
Posted: Thu Oct 01, 2009 1:15 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
And, should someone succed replicating this setup, consider writing about it on the wiki
On Thu, Oct 1, 2009 at 18:45, Mike van Lammeren <mike@van.lammeren.net (mike@van.lammeren.net)> wrote:
Quote: | 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
[/url]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:
[url=http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf]http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf
[/url]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@van.lammeren.net (mike@van.lammeren.net)> wrote:
Quote: |
On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)> wrote:
Quote: | From: "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
[url=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
grevenx at me.com Guest
|
Posted: Thu Oct 01, 2009 1:26 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
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:
Quote: | 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
[/url]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:
[url=http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf]http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf
[url=http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf][/url]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@van.lammeren.net (mike@van.lammeren.net)> wrote:
Quote: |
On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)> wrote:
Quote: | From: "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Thu Oct 01, 2009 2:26 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
can we do it without advertising to use ubuntu =D
We don't like encouraging our users to use bleeding edge OS for our own sanity with debugging.
Not to say you are not allowed to I just don't want to encourage it =p
On Thu, Oct 1, 2009 at 1:12 PM, Even André Fiskvik <grevenx@me.com (grevenx@me.com)> wrote:
Quote: | 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:
Quote: |
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
[/url]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:
[url=http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf]http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf
[/url]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@van.lammeren.net (mike@van.lammeren.net)> wrote:
Quote: |
On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)> wrote:
Quote: | From: "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
[url=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users]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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
hads at nice.net.nz Guest
|
Posted: Thu Oct 01, 2009 2:57 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
On Thu, 2009-10-01 at 14:14 -0500, Anthony Minessale wrote:
Quote: | can we do it without advertising to use ubuntu =D
We don't like encouraging our users to use bleeding edge OS for our
own sanity with debugging.
|
I understand your stance, though if we're talking about Ubuntu 8.04 LTS
(Long Term Support - 5 years) it's not really bleeding edge anymore. 18
months ago when it was released it may have been a little, but the LTS
releases still aren't as bleeding edge as the standard support in
between releases.
hads
--
http://nicegear.co.nz
New Zealand's Open Source Hardware Supplier
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
peder at networkoblivi... Guest
|
Posted: Thu Oct 01, 2009 2:58 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
Looking thru the example, it looks like each box has a real address of 21, 22 or 23 and they all have a loopback of .17, right? So even though they connections are being load balanced, each box really thinks it is .17 and each client that connects thinks it is connecting to .17, right? If that’s the case, how does a client on one box call a client on the other box? Since every box thinks it is .17 how would you bridge to another user on another box that also thinks it is .17? Or am I totally missing how it works?
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Thursday, October 01, 2009 2:14 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey
can we do it without advertising to use ubuntu =D
We don't like encouraging our users to use bleeding edge OS for our own sanity with debugging.
Not to say you are not allowed to I just don't want to encourage it =p
On Thu, Oct 1, 2009 at 1:12 PM, Even André Fiskvik <grevenx@me.com (grevenx@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:
Quote: |
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
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
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@van.lammeren.net (mike@van.lammeren.net)> wrote:
On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)> wrote:
From: "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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 the
UltraMonkey 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@lists.freeswitch.org (FreeSWITCH-users@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
mike at van.lammeren.net Guest
|
Posted: Fri Oct 02, 2009 12:02 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
I only mentioned the OS I used as a reference for people. If they want to do the same thing on another OS, then they might not have apt-get, etc.
Mike van Lammeren
On Thu, Oct 1, 2009 at 3:41 PM, Hadley Rich <hads@nice.net.nz (hads@nice.net.nz)> wrote:
|
|
Back to top |
|
|
mike at van.lammeren.net Guest
|
Posted: Fri Oct 02, 2009 12:10 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
The load balancer listens to the virtual IP address, and port-forwards to one of the FreeSWITCH boxes. Each FreeSWITCH box listens for the same virtual IP address for SIP registrations and connections, which is what FreeSWITCH needs to bind to. All other traffic actually travels over their real IP address, which is what the FreeSWITCH servers would use to talk to each other.
On Thu, Oct 1, 2009 at 3:44 PM, Peder <peder@networkoblivion.com (peder@networkoblivion.com)> wrote:
Quote: |
Looking thru the example, it looks like each box has a real address of 21, 22 or 23 and they all have a loopback of .17, right? So even though they connections are being load balanced, each box really thinks it is .17 and each client that connects thinks it is connecting to .17, right? If that’s the case, how does a client on one box call a client on the other box? Since every box thinks it is .17 how would you bridge to another user on another box that also thinks it is .17? Or am I totally missing how it works?
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Anthony Minessale
Sent: Thursday, October 01, 2009 2:14 PM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey
can we do it without advertising to use ubuntu =D
We don't like encouraging our users to use bleeding edge OS for our own sanity with debugging.
Not to say you are not allowed to I just don't want to encourage it =p
On Thu, Oct 1, 2009 at 1:12 PM, Even André Fiskvik <grevenx@me.com (grevenx@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:
Quote: |
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
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
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@van.lammeren.net (mike@van.lammeren.net)> wrote:
On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)> wrote:
From: "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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 the
UltraMonkey 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@lists.freeswitch.org (FreeSWITCH-users@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
mike at van.lammeren.net Guest
|
Posted: Fri Oct 02, 2009 12:15 pm Post subject: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey |
|
|
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@me.com (grevenx@me.com)> wrote:
Quote: | 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:
Quote: |
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
[/url]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:
[url=http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf]http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf
[/url]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@van.lammeren.net (mike@van.lammeren.net)> wrote:
Quote: |
On Mon, Sep 28, 2009 at 9:05 PM, "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)> wrote:
Quote: | From: "Even André Fiskvik" <grevenx@me.com (grevenx@me.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
[url=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users]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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|