<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5700.7" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Tahoma color=#0000ff size=2>the parameter desc_time_order ( set 
to 1) order the conctact in descending time order, and use the most recently 
updated/created user.<BR>and, if I understand, if the user A register from 
address 1 (Home), and more later register from address 2 (work) <BR>(the 
REGISTER is sent every minute from two address)</FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2>and the soft re-send the register 
from address 1</FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2>how recognize openser that address 
2&nbsp;is the valid address?<BR>I attach the doc from this two 
parameters.</FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2>1.3.12. desc_time_order 
(integer)<BR>If set to 1 then all contacts will be ordered in descending 
modification time order. In this case the most recently updated/created contact 
will be used. </FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2>Default value is 0. </FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2>Example 1-12. Set desc_time_order 
parameter</FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2>...<BR>modparam("registrar", 
"desc_time_order", 1)</FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT>&nbsp;</DIV><FONT face=Tahoma 
color=#0000ff size=2>
<DIV><BR>1.3.9. append_branches (integer)<BR>The parameter controls how lookup 
function processes multiple contacts. If there are multiple contacts for the 
given username in usrloc and this parameter is set to 1, Request-URI will be 
overwritten with the highest-q rated contact and the rest will be appended to 
sip_msg structure and can be later used by tm for forking. If the parameter is 
set to 0, only Request-URI will be overwritten with the highest-q rated contact 
and the rest will be left unprocessed. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Default value is 1. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Example 1-9. Set append_branches parameter</DIV>
<DIV>&nbsp;</DIV>
<DIV>...<BR>modparam("registrar", "append_branches", 0)<BR>...<BR></FONT>----- 
Original Message ----- </DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=bogdan@voice-system.ro 
  href="mailto:bogdan@voice-system.ro">Bogdan-Andrei Iancu</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=blairs@isc.upenn.edu 
  href="mailto:blairs@isc.upenn.edu">Steve Blair</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=users@openser.org 
  href="mailto:users@openser.org">users</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 28, 2006 10:52 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Users] UN-REGISTER</DIV>
  <DIV><BR></DIV>of course there is contact timeout as each contact is 
  registered for a <BR>limited time period.<BR><BR>a more elegant solution is to 
  use the "desc_time_order" and <BR>"append_branches" module parameter in order 
  to retrieve from usrloc only <BR>the latest contact. 
  See:<BR>&nbsp;&nbsp;&nbsp; <A 
  href="http://openser.org/docs/modules/1.1.x/registrar.html">http://openser.org/docs/modules/1.1.x/registrar.html</A><BR><BR>regards,<BR>bogdan<BR><BR>Steve 
  Blair wrote:<BR><BR>&gt;<BR>&gt; You could also get creative and upon 
  successful registration exec a <BR>&gt; script that will examine the location 
  table and remove (or manipulate <BR>&gt; as you want) specific registrations. 
  If these moves happen often this <BR>&gt; approach will not scale well. If you 
  only need one registration per <BR>&gt; user then setting the max_contacts 
  parameter is the easiest way to <BR>&gt; accomplish this goal.<BR>&gt;<BR>&gt; 
  _Steve<BR>&gt;<BR>&gt; Max Gregorian wrote:<BR>&gt;<BR>&gt;&gt; Perhaps 
  implement Registration Timeouts.<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; If the aim is 
  to stop the user from connecting using that IP address, <BR>&gt;&gt; then you 
  could, on OpenSER, do something along the lines of:<BR>&gt;&gt;&nbsp; 
  <BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; if(src_ip==192.168.0.55 &lt;<A 
  href="http://192.168.0.55/">http://192.168.0.55/</A>&gt;)<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; 
  {<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("404", "User 
  not found..");<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; 
  };<BR>&gt;&gt;<BR>&gt;&gt;&nbsp; <BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;&nbsp; 
  <BR>&gt;&gt; On 9/28/06, *Bogdan-Andrei Iancu* &lt;<A 
  href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</A> <BR>&gt;&gt; 
  &lt;<A 
  href="mailto:bogdan@voice-system.ro">mailto:bogdan@voice-system.ro</A>&gt;&gt; 
  wrote:<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi 
  Javier,<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; that must be done by 
  the phone.<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  regards,<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  bogdan<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Javier 
  wrote:<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; can I unregister 
  the the firsth register ?<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; ----- 
  Original Message -----<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;&nbsp;&nbsp;&nbsp;&nbsp; *From:* Daniel-Constantin 
  Mierla<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A 
  href="mailto:daniel@voice-system.ro">mailto:daniel@voice-system.ro</A> &lt;<A 
  href="mailto:daniel@voice-system.ro">mailto:daniel@voice-system.ro</A>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;&nbsp;&nbsp;&nbsp;&nbsp; *To:* Javier Ramirez &lt;mailto: <A 
  href="mailto:jvr_78@yahoo.com.ar">jvr_78@yahoo.com.ar</A><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;<A 
  href="mailto:jvr_78@yahoo.com.ar">mailto:jvr_78@yahoo.com.ar</A>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;&nbsp;&nbsp;&nbsp;&nbsp; *Cc:* users &lt;<A 
  href="mailto:users@openser.org">mailto:users@openser.org</A><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;<A 
  href="mailto:users@openser.org">mailto:users@openser.org</A>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;&nbsp;&nbsp;&nbsp;&nbsp; *Sent:* Saturday, September 23, 2006 5:36 
  PM<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; *Subject:* 
  Re: [Users] UN-REGISTER<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; If the 
  user closes the sip client on 0.55, then the 
  client<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  should<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  automatically un-register. If not, then the user will have 
  two<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  contacts<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; and 
  both phones will ring.<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; If you 
  want to limit the number of registered contacts, 
  you<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; can do 
  it<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; via 
  max_contacts parameter of registrar 
  module:<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  <BR>&gt;&gt; <A 
  href="http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233">http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233</A><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  Cheers,<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  Daniel<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; On 
  09/22/06 23:47, Javier Ramirez wrote:<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hi, I have a 
  question:<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; the 
  user A is register, the ip of register is 
  192.168.0.55<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A 
  href="http://192.168.0.55">http://192.168.0.55</A>&gt;.<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; the user change PC, and this PC have the ip 
  192.168.0.66<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A 
  href="http://192.168.0.66">http://192.168.0.66</A>&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; the user register again, in the new machine, 
  but, how to<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  unregister<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt; the firsth registration from 
  192.168.0.55<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A 
  href="http://192.168.0.55">http://192.168.0.55</A>&gt; 
  ?<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; 
  best regards<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt; Javier<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  &gt;<BR>&gt;<BR><BR><BR>_______________________________________________<BR>Users 
  mailing list<BR><A href="mailto:Users@openser.org">Users@openser.org</A><BR><A 
  href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</A><BR><BR>__________ 
  NOD32 1.1776 (20060926) Information __________<BR><BR>This message was checked 
  by NOD32 antivirus system.<BR><A 
  href="http://www.eset.com">http://www.eset.com</A><BR><BR></BLOCKQUOTE></BODY></HTML>