[Kamailio-Users] disable simultaneous register
Luis Guaman
luis.guaman at interlancompu.com
Wed Jan 7 18:47:52 CET 2009
Hello Daniel,
Thanks for your support.
I am going to migrate to 1.5v and use:
save("location","0x04");
Luis
Daniel-Constantin Mierla escribió:
> Hello Luis,
>
> On 01/07/2009 02:53 PM, Luis Guaman wrote:
>> Hello Daniel,
>> Thanks for replying..
>> I have a similar case. I am using persitent db registers and
>> max_contacts = 1. When I close my softphone it send a final register
>> but it keeps registered on the proxy server and I needs to use kamctl
>> ul rm "user" to allow register again... How can I let the softphone
>> register again without wait to expire the first register?? (same
>> thing when the pc freeze or when the user close the laptop while
>> remain the softphone open).
> you have to use the trunk and save() function with flag 0x04:
> http://kamailio.org/docs/modules/devel/registrar.html#id2506205
>
> I cannot say if it would be hard to backport registrar+usrloc modules
> from trunk to 1.4. Anyhow, you don't have to wait too long for 1.5 to
> be out, so you can try to test trunk and see if it is stable enough.
>
> Cheers,
> Daniel
>
>>
>> New register module looks great!!
>>
>> Thanks again
>> Luis
>>
>> Daniel-Constantin Mierla escribió:
>>> Hello,
>>>
>>> On 01/05/09 20:02, Luis Guaman wrote:
>>>> Thanks Alex,
>>>> Here is the configuration to allow 1 concurrent register:
>>>>
>>>> modparam("registrar", "max_contacts", 1)
>>>>
>>> here you should pay attention to contact updates. In some cases,
>>> like mobile phones with wi-fi and sip stack, if they
>>> crash/lose/migrate to new AP connection, same phone sends a new
>>> register with different contact without un-registering the previous
>>> one.
>>>
>>> If you encounter this, you can use the enhancements of the registrar
>>> module in Kamailio trunk (to be released as 1.5 in about
>>> 1.5-2months) -- here are more details:
>>> http://openser.blogspot.com/2008/10/registrar-enhancements.html
>>>
>>> Practically you can iterate through the existing contacts and do
>>> more checks or use save() with the proper flag that will overwrite
>>> any existing contact and will maintain only one in location table.
>>>
>>> Cheers,
>>> Daniel
>>>
>>>> Luis Guaman
>>>> InterlanCompu
>>>> Quito - Ecuador
>>>> +593-2-2526585
>>>>
>>>> Alex Balashov escribió:
>>>>
>>>>> Yes; you can limit concurrent contacts to 1, using a module
>>>>> parameter for 'registrar.' See the documentation.
>>>>>
>>>>> Luis Guaman wrote:
>>>>>
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> Does anybody let me know how to disable simultaneous registers,
>>>>>> using the same user login/password in two or more different
>>>>>> machines?
>>>>>>
>>>>>>
>>>>>> thanks in advance
>>>>>> Luis Guaman
>>>>>> Interlancompu
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users at lists.kamailio.org
>>>>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.kamailio.org
>>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>
>>
>
More information about the Users
mailing list