<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>But if you use db_mode, the 2
proxies do share all the registrations via the DB (you mentioned
they do use the same DB). So even if a registration in stored by
P1, P2 will also see it. So both proxies will see exactly the
same set of registration, disregarding which proxy actually did
store for a certain registration.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 27.01.2015 01:25, Duane Larson wrote:<br>
</div>
<blockquote
cite="mid:CAFcM1Epcndv3rKYMvUq0pbpeRD36kMgzLyAH0nFWpYnSh1ic=w@mail.gmail.com"
type="cite">
<div dir="ltr">Correct. I meant Priority. I set my Primary
Server as "0" and backup as "1". For the db_mode I use 3 which
is "DB Only" mode.
<div><br>
</div>
<div>I did look into the possibility of using Bin replication
but it sounds like in order to use that both OpenSIPS
instances have to use the same IP address. Will see what I
can do with t_relay'ing INVITE's to the correct Proxy that the
client is registered with.</div>
<div><br>
</div>
<div>Thanks</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Jan 26, 2015 at 10:42 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div><tt>Hi Duane,<br>
<br>
First, in regards to your DNS records - I suppose you
use higher priority and not higher weight ? The weight
are used to control how many (as ratio) times each
record is used. If you want to have all the time R1
and have R2 only if R1 is done, then you should use
priorities.<br>
<br>
Now, you mentioned both proxies do use the same
location table in DB. But what db_mode is used in the
usrloc module ? If you have DB_ONLY mode, I see no
problem with the scenario you described (as both
proxies will read/write from/to single DB). If you use
other db modes, you will probably need to use the bin
replication in usrloc module in order to sync the
cache too.<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div class="h5"> On 25.01.2015 02:31, Duane Larson
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Before I try to reinvent the wheel I
wanted to see if there is already a way to do
this.
<div><br>
</div>
<div>For redundancy I have two Proxies and I am
using DNS SRV with Proxy01 weighted higher so
that it is the primary that all clients register
and use. Both proxies use the same location
database. In the event of a failure on Proxy01
all clients would register with Proxy02.
Everything is fine but what happens when clients
register time expires and they start
re-registering with Proxy01 since it is weighted
higher. So now some clients will be registered
with Proxy01 and some with Proxy02. Everything
will work fine but what if Client01 (who is
registered with Proxy01) calls Client02 (who is
registered with Proxy02)? I think the INVITE
should do the following</div>
<div><br>
</div>
<div>Client01 -> Proxy01 -> Proxy02 ->
Client02</div>
<div><br>
</div>
<div>On Proxy01 I could look in the location
database to see what is set in the "socket"
field and then route it to Proxy02 but I was
wondering if there is already a way to do this?</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>