<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
dispatcher module in kamailio includes a sample configuration file,
quite simple, but ready to use (with re-routing on failure):<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/4.2.x/modules/dispatcher.html#dispatcher.ex.config">http://kamailio.org/docs/modules/4.2.x/modules/dispatcher.html#dispatcher.ex.config</a><br>
<br>
It does round robin distribution for calls (algorithm 4), but you
can change the algorithm to be call load distribution (algorithm 8,
which selects least loaded freeswitch based on active calls).<br>
<br>
You have the option to manage the list of active freeswitch
addresses via rpc commands (xmlrpc, jsonrpc) or command line (via
kamctl).<br>
<br>
Kamailio with dispatcher module works perfectly on shared IP
deployments (ucarp, vrrp), being the most common installation I do
for a SIP load balancer.<br>
<br>
Note that if you forward the REGISTER requests, then you have to add
Path header (see path module in kamailio). Also, perhaps you have to
do the selection of freeswitch based on a different algorithm, in
case you want registrations from same user to land to same
freeswitch.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 02/02/15 09:55, Avi Marcus wrote:<br>
</div>
<blockquote
cite="mid:0000014b49801e73-38a05bea-40cf-4a4e-8d09-97bfecc7229f-000000@email.amazonses.com"
type="cite">
<div dir="ltr">Hi - I know this has come up several times and I
see several examples even on the old wiki - but I've never used
a SIP proxy before, and I don't understand most of the
configuration in the examples.
<div><br>
</div>
<div>Here's what I believe is a fairly common use case:</div>
<div><br>
</div>
<div>1) I have inbound calls via various carriers. Some only
support an IP endpoint (so DNS won't work) and some don't
support 302 redirects, so I can't use a stateless FS endpoint
either, so I need a sip proxy.</div>
<div><br>
</div>
<div>2) I need a SIP proxy that will route calls to various
FreeSWITCH endpoints.</div>
<div>(Preferably, it should route registration too (or manage
registration list itself?))</div>
<div><br>
</div>
<div>3) I need the ability to pull freeswitch nodes out of the
routing (waiting for them to drain is fine, I don't need
failover of live calls) to perform maintenance, and then add
them back to the routing.</div>
<div><br>
</div>
<div>4) I should be able to have this proxy on a floating IP
that I can move <i>this </i>too, <i>without downtime</i>,
for maintenance work.</div>
<div><br>
</div>
<div>I think this is mostly handled by <a
moz-do-not-send="true"
href="https://wiki.freeswitch.org/wiki/OpenSIPS_configuration_for_2_or_more_FreeSWITCH_installs">the</a>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/SBC_Setup">examples</a>
<a moz-do-not-send="true"
href="https://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS">I</a>
<a moz-do-not-send="true"
href="http://www.opensips.org/Documentation/Tutorials-OpenSIPSFreeSwitchIntegration">found</a>
- but the opensips configuration files are hundreds of lines
that I don't understand. If it's just routing calls to a
backend, shouldn't that be possible in a small numbers of
lines that are more understandable?</div>
<div><br>
</div>
<div>I imagine someone can probably just point me to a
tutorial/working code that I can use. Several have been shared
but I don't recall any one being particularly simple... Also,
most of them tell you about compiling code. FS has been
released in packages - has opensips? That might cut off many
steps from an updated tutorial.</div>
<div><br>
</div>
<div>Thanks!</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>