<div dir="ltr">If you want to have a sip proxy on board then you have to learn how sip works. You can set up opensips and the example script will work as a simple sip proxy. But to get exactly what you want you have to learn what each module does and how it change the packets. I can recomend you to start from book called Building Telephony Systems with OpenSIPS 1.6. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-03 23:27 GMT+06:00 I put the Who? in Mishehu <span dir="ltr"><<a href="mailto:mishehu@freeswitch.org" target="_blank">mishehu@freeswitch.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Avi,<br>
<br>
I understand your reluctance, as I've been down this path too.
Admittedly OpenSIPS and Kamailio both have a pretty steep learning
curve even when compared to FS. The trick to remember is that
your config in either OpenSIPS or Kamailio are SIP message base,
because first and foremost both operate on an individual SIP
message basis, and it's only via the tm module that you get
transactional SIP awareness, and limited dialog awareness with the
dialog module. But believe me that it's well worth the time spent
to learn these systems, as they are highly powerful and you may
find you want to do a lot more than just what you outlined, but
you'll also have the power to implement that as well.<br>
<br>
As for more stateful load balancing, there is the loadbalance
module which can track capabilities that you define on your
entries, as the dispatcher module is basically just a
fire-and-forget without any actual load management.<span class="HOEnZb"><font color="#888888"><br>
<br>
<pre cols="72">--
Yossi Neiman
On 02/02/2015 02:55 AM, Avi Marcus wrote:
</pre>
</font></span></div>
<blockquote type="cite"><div><div class="h5">
<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 href="https://wiki.freeswitch.org/wiki/OpenSIPS_configuration_for_2_or_more_FreeSWITCH_installs" target="_blank">the</a>
<a href="http://wiki.freeswitch.org/wiki/SBC_Setup" target="_blank">examples</a>
<a href="https://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS" target="_blank">I</a>
<a href="http://www.opensips.org/Documentation/Tutorials-OpenSIPSFreeSwitchIntegration" target="_blank">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><br>
</div>
<div><br>
</div>
<div>-Avi Marcus</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><span class=""><pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
</span></blockquote>
<br>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Kamil Nigmatullin<br>Tel: 77272323748<br>mob: 7 (707) 2517003<br>Skype: kamil.nigmatullin</div></div>
</div>