<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Fabian,<br>
<br>
yes, use only one option a) or b) ( from (1) ). and indeed, a)
gives you more liberty as you select the last 2 or so (not only
the last one as you have in b) ). But on second thoughts, use the
desc_timer_order in both cases (a and b) !<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>
<br>
On 10/25/2012 06:55 PM, Fabian Bernhard wrote:
<blockquote
cite="mid:CAEgBpcAB_fyBtyPKjZsss=ugrh=4CfdOSZ5LFyqMXzHdZgwbBA@mail.gmail.com"
type="cite">Hi Bogdan,
<div><br>
</div>
<div>Thank you very much for your answer. We have tested the
tcp_connect_timeout and have already very good results.</div>
<div><br>
</div>
<div>I have some follow up questions, if I may:</div>
<div><br>
</div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><tt> 1) limiting the
number of contacts to be used:<br>
a) either keep in memory just one registration (last
one) - see the "cxx" and "f" flags <br>
<a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292725"
target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292725</a><br>
doing save("location","c1f")<br>
b) either keep all contacts in mem, but use only the
most recent one:<br>
</tt><tt>modparam("usrloc", "desc_time_order",
1)<br>
lookup("location","b"); # see <a
moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292943"
target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292943</a><br>
<br>
</tt></div>
</blockquote>
<div><br>
</div>
<div>Do I understand this correctly, if I use option b) then
option a) is useless, i.e. I should only use one of the two
options?</div>
<div><br>
</div>
<div>It is not relevant for testing, but if we would like to
support multiple registrations with the same SIP id from
different locations, for instance home and office, should we
then use option a) with something like save("location",
"c2f")?</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Fabian</div>
<div> </div>
</div>
<br>
</div>
</blockquote>
</body>
</html>