[Serusers] Multiple Registrations

Ricardo Villa ricvil at epm.net.co
Thu Mar 20 00:58:15 CET 2003


Great!

I tried it and it is working as you described it.

I appreciate it.

Regards,
Ricardo

----- Original Message ----- 
From: "Jan Janak" <jan at iptel.org>
To: "Ricardo Villa" <ricvil at epm.net.co>
Cc: "Juha Heinanen" <jh at lohi.eng.song.fi>; <serusers at lists.iptel.org>
Sent: Wednesday, March 19, 2003 3:59 PM
Subject: Re: [Serusers] Multiple Registrations


Hello Ricardo,

enclosed find a patch that modifies the registrar so it will be possible
to use just one contact. You will have to use
modparam("registrar", "append_branches", 0) in your script and after
that only the most recently updated/created contact will be used (even if 
there are many of them).

Note: if you don't use the modparam, the registrar will still use all
registered contacts.

This should do exactly what you are asking for.

Put the patch in parent directory of ser-0.8.10 and apply it using
patch -p0 < reg-ordering.patch

  regards, Jan.

On 19-03 15:40, Ricardo Villa wrote:
> Hi Jan,
> 
> Regarding the "q" parameter, thank you for the explanation.
> 
> Regarding my "potential" problem, I was thinking that if I could use the
> "serctl ul rm" command:
> serctl ul rm <username> ................... delete user's UsrLoc entries
> 
> to delete the oldest duplicate contact, it would be great since I could
> write a Perl script for it.  But the "serctl ul rm" command does not do
> anything if we append the ipaddress to the username.
> 
> [root at maui sip]# serctl ul show pperez
> <sip:pperez at 192.168.0.111:5060;transport=udp>;q=0.00;expires=2335
> [root at maui sip]# serctl ul rm pperez at 192.168.0.111
> 200 user (location, pperez at 192.168.0.111) deleted
> [root at maui sip]# serctl ul show pperez
> <sip:pperez at 192.168.0.111:5060;transport=udp>;q=0.00;expires=2322
> [root at maui sip]#
> 
> I think this would be better than modifying the registrar and affect all
> other SER users.
> 
> Thanks,
> Ricardo
> 
> ----- Original Message -----
> From: "Jan Janak" <jan at iptel.org>
> To: "Juha Heinanen" <jh at lohi.eng.song.fi>
> Cc: "Ricardo Villa" <ricvil at epm.net.co>; <serusers at lists.iptel.org>
> Sent: Wednesday, March 19, 2003 3:01 PM
> Subject: Re: [Serusers] Multiple Registrations
> 
> 




More information about the sr-users mailing list