Great!
I tried it and it is working as you described it.
I appreciate it.
Regards,
Ricardo
----- Original Message -----
From: "Jan Janak" <jan(a)iptel.org>
To: "Ricardo Villa" <ricvil(a)epm.net.co>
Cc: "Juha Heinanen" <jh(a)lohi.eng.song.fi>fi>;
<serusers(a)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@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(a)192.168.0.111
200 user (location, pperez(a)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(a)iptel.org>
To: "Juha Heinanen" <jh(a)lohi.eng.song.fi>
Cc: "Ricardo Villa" <ricvil(a)epm.net.co>co>;
<serusers(a)lists.iptel.org>
Sent: Wednesday, March 19, 2003 3:01 PM
Subject: Re: [Serusers] Multiple Registrations