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@maui sip]# serctl ul show pperez sip:pperez@192.168.0.111:5060;transport=udp;q=0.00;expires=2335 [root@maui sip]# serctl ul rm pperez@192.168.0.111 200 user (location, pperez@192.168.0.111) deleted [root@maui sip]# serctl ul show pperez sip:pperez@192.168.0.111:5060;transport=udp;q=0.00;expires=2322 [root@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@iptel.org To: "Juha Heinanen" jh@lohi.eng.song.fi Cc: "Ricardo Villa" ricvil@epm.net.co; serusers@lists.iptel.org Sent: Wednesday, March 19, 2003 3:01 PM Subject: Re: [Serusers] Multiple Registrations