Discussion:
[SR-Users] Questions about multiple contacts in kamailio
qw
2014-09-30 08:54:03 UTC
Permalink
Hi,


I have one question about contact in kamailio.


Sometimes, one user may register multiple contacts in kamailio server, where contacts are represented as ip:port. For example, the user registers at first, and lose connection to the internet later. After one minute, the user connects the internet again, but can't get service from kamailio server. Then the user need to registers with new contact. Now there are two contacts in kamailio, i.e. old one and new one. How can I remove the old contact, and make sure there is only one contact in kamailio server.



Looking forward to your help!


B.R.


andrew
Federico Cabiddu
2014-09-30 09:18:18 UTC
Permalink
Hi,
you can achieve this by using the flag 0x04 when calling save() function
from registrar module:
http://kamailio.org/docs/modules/stable/modules/registrar.html#idp1965144

Regards,

Federico
On 30 Sep 2014 10:54, "qw" <applemax82-9Onoh4P/***@public.gmane.org> wrote:

Hi,

I have one question about contact in kamailio.

Sometimes, one user may register multiple contacts in kamailio server,
where contacts are represented as ip:port. For example, the user registers
at first, and lose connection to the internet later. After one minute, the
user connects the internet again, but can't get service from kamailio
server. Then the user need to registers with new contact. Now there are two
contacts in kamailio, i.e. old one and new one. How can I remove the old
contact, and make sure there is only one contact in kamailio server.

Looking forward to your help!

B.R.

andrew

Loading...