[OpenSIPS-Users] Credential protection.
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Dec 9 10:19:12 CET 2009
Hi Thiago,
During the second registration ? so you want the second registration to
be denied ? or ??
Regards,
Bogda
Thiago Rondon wrote:
> Hi Bogdan,
>
> It'll be nice if generate a message, like:
>
> sl_send_reply("488", "Someone connect with this account in another
> instance");
>
> for the "softclient" understand the error.
>
> Thanks!
> -Thiago Rondon
>
> Bogdan-Andrei Iancu escreveu:
>
>> Hi Thiago,
>>
>> you can configure opensips to simply use only the last registered
>> contact (to skip the previous one).
>>
>> In 1.6 , do :
>> modparam("usrloc", "desc_time_order", 1)
>> and
>> lookup("location","b");
>> see
>> (http://www.opensips.org/html/docs/modules/devel/registrar.html#id271025)
>>
>> Regards,
>> Bogdan
>>
>> Thiago Rondon wrote:
>>
>>
>>> Bogdan,
>>>
>>> I developer one softphone (with IM, presence server, file transfer, voip
>>> and etc) that my customer need this behaviour, we are using OpenSIPS
>>> with XCAP as server.
>>>
>>> Yes, my problem is that (parallel registrations for a single account)...
>>> I make a perl script to do that, but it's not good enought.
>>>
>>> Thanks Bogdan!
>>> -Thiago Rondon
>>>
>>>
>>> Bogdan-Andrei Iancu escreveu:
>>>
>>>
>>>
>>>> Hi Thiago,
>>>>
>>>> why do you want to achieve such behaviour? more or less it is against
>>>> SIP idea, where you have parallel registrations for a single account.
>>>>
>>>> I'm just curios of the reasons, to see if it really pays of to work out
>>>> a solution for it :)
>>>>
>>>> Regards,
>>>> Bogdan
>>>>
>>>> Thiago Rondon wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> I try to do this in my registrar with opensips:
>>>>>
>>>>> 1 - db_check_auth()
>>>>>
>>>>> Check credential for the user.
>>>>>
>>>>> 2 - check_if_user_is_logged()
>>>>>
>>>>> Check if there are same credential logged with the same username.
>>>>>
>>>>> 3 - kill_user_currently_logged()
>>>>>
>>>>> Kill the username (send a terminted session message) currently logged.
>>>>>
>>>>> 4 - Login OK.
>>>>>
>>>>> Do the login.
>>>>>
>>>>> So, I doesn't allow simultaneos login, but when the same user logged in,
>>>>> I need to logout the previews logged session of user.
>>>>>
>>>>> Suggestions ?
>>>>>
>>>>> Thanks in advanced!
>>>>> -Thiago Rondon
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>>
>>
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list