<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Anthony
Minessale<br>
<b>Sent:</b> Thursday, October 01, 2009 2:14 PM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> Re: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>can we do it without
advertising to use ubuntu =D<br>
We don't like encouraging our users to use bleeding edge OS for our own sanity
with debugging.<br>
Not to say you are not allowed to I just don't want to encourage it =p<br>
<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>On Thu, Oct 1, 2009 at 1:12 PM, Even André Fiskvik <<a
href="mailto:grevenx@me.com">grevenx@me.com</a>> wrote:<o:p></o:p></p>
<div>
<p class=MsoNormal>That's very cool Mike!<o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>I'm going to try to configure four boxes with this as well
(Btw, did you use physical hardware or virtualization?)<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>and see how it goes. I followed Daniel Aliaman's blog as
well, but I can try it again with the tips<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>you provided on FreeSWITCH config to see if I can get it
working properly this time.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>We did the setup on CentOS, but I wouldn't think that would
be any issue.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Perhaps you or we could write up a complete guide about this
on the wiki since this is an scenario<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>commonly used? Also it would be great if we could outline
possible issues (and even better solutions)<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>to this kind of setup with regards to stuff like
conferencing, bridging between registered users and presence.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Best regards,<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Even André<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<p class=MsoNormal>On 1. okt. 2009, at 18.45, Mike van Lammeren wrote:<o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>
<div>
<div>
<p class=MsoNormal>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.<o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Here's how you can duplicate my setup:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>1. Install Ubuntu Server 8 on four machines, either real or
VM.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>2. Compile and install FreeSWITCH v1.0.4 from source on two
machines, following these instructions: <a
href="http://wiki.freeswitch.org/wiki/Ubuntu_Quick_Start" target="_blank">http://wiki.freeswitch.org/wiki/Ubuntu_Quick_Start</a><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>3. Configure both FreeSWITCH boxes, and make sure they are
both working.<o:p></o:p></p>
<div>
<p class=MsoNormal>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:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><a
href="http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf"
target="_blank">http://www.danielaliaman.com/blog/files/ultramonkeyasterisk.pdf</a><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>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:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>5. In /opt/freeswitch/conf/vars.xml, set
"bind_server_ip".<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>6. In /opt/freeswitch/conf/sip_profiles/internal.xml, set
"sip-ip".<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>That should do it! If you have any success, please report to
this list.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>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.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Mike van Lammeren<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>On Tue, Sep 29, 2009 at 10:20 AM, Mike van Lammeren <<a
href="mailto:mike@van.lammeren.net" target="_blank">mike@van.lammeren.net</a>>
wrote:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>On Mon, Sep 28, 2009 at 9:05 PM, "Even André
Fiskvik" <<a href="mailto:grevenx@me.com" target="_blank">grevenx@me.com</a>> wrote:<o:p></o:p></p>
<p class=MsoNormal>From: "Even André Fiskvik" <<a
href="mailto:grevenx@me.com" target="_blank">grevenx@me.com</a>><br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Date: Mon, 28 Sep 2009 22:52:13 +0200<br>
Subject: Re: [Freeswitch-users] Load-Balance FreeSWITCH with Ultramonkey<o:p></o:p></p>
<div>
<p class=MsoNormal>I have been working with a similar setup myself, but for
some reason I ended up ditching the<o:p></o:p></p>
<div>
<p class=MsoNormal>UltraMonkey setup because I just couldn't get it to work
right.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>It's been quite a while since my effort, so I don't remember
what the exact issue was.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>I got registrations to work, but had some other sip-dialog
issues.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>We have since then changed over to running OpenSIPs as a loadbalancer
in front of <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>multiple FreeSWITCH instances. This setup is still in
testing, but seemlingy works fine<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>(and if it doesn't, it's my own fault for writing a bad
opensips config).<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>After we have done some more testing I can create a
wiki-page with config details.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Best regards,<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Even André<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>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.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><span style='color:#888888'>Mike van Lammeren<o:p></o:p></span></p>
</div>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<div>
<p class=MsoNormal>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<o:p></o:p></p>
</div>
</body>
</html>