Hi Everyone:
I am a newbie in kamailio. Basically I am looking for a way to restrict the registration or login in kamailio per user to just one.
The experience I want to setup is to unregister an older register/login to kamailio by a new login/register after the register command has already passed the authentication leg.
Is there an example for this? Thanks.
Hi, you have to call the save() function with the flag 0x04.
http://www.kamailio.org/docs/modules/4.0.x/modules/registrar.html#idp1813984
Regards,
Federico On 5 Apr 2014 10:03, "MrIhaveAnOpinionOnEverything" melryanf@gmail.com wrote:
Hi Everyone:
I am a newbie in kamailio. Basically I am looking for a way to
restrict the registration or login in kamailio per user to just one.
The experience I want to setup is to unregister an older
register/login to kamailio by a new login/register after the register command has already passed the authentication leg.
Is there an example for this? Thanks.
"When I look at you I see two people, ther person you are and the person you are supposed to be. Someday these two people will meet. And when they do, they will achieve great things"
- Gene Hackman, The Replacements
Catch up on me and check my BLOG at http://mrihaveanopiniononeverything.blogspot.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Sat, Apr 5, 2014 at 2:03 AM, MrIhaveAnOpinionOnEverything < melryanf@gmail.com> wrote:
Hi Everyone:
I am a newbie in kamailio. Basically I am looking for a way to
restrict the registration or login in kamailio per user to just one.
The experience I want to setup is to unregister an older
register/login to kamailio by a new login/register after the register command has already passed the authentication leg.
Is there an example for this? Thanks.
http://kamailio.org/docs/modules/stable/modules/registrar.html
Take a look at the registrar module. There's a "max_contacts" option. There are also functions "registered()" and "unregister()" which you can use to manipulate the saved locations.
Corey