[OpenSIPS-Users] accept messages only from registered users

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Mar 20 17:47:04 CET 2009


Hi,

It exists also in 1.4 
(http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407), 
but takes only the "location" param. For a custom AOR, use the aor_avp 
modparam 
(http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id228309).

Regards,
Bogdan

Romanov Vladimir wrote:
> Hi
> This function exist only in 1.5 and also not check all rules.
> For sample some user can make calls using another registered user 'from' address in INVITE
>
> -----------------
> Vladimir Romanov
> Scartel Star Lab
> CTO
> +7 (960) 239-0853
>
>
> -----Original Message-----
> From: Noel R. Morais [mailto:noelrocha at gmail.com] 
> Sent: Tuesday, March 17, 2009 10:33 PM
> To: Romanov Vladimir
> Cc: Users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] accept messages only from registered users
>
> So,
>
> Use the function "registered(domain [,AOR])". To check the from field
> use: registered("location","$fu")
>
> http://www.opensips.org/html/docs/modules/devel/registrar.html#id271315
>
> On Tue, Mar 17, 2009 at 3:41 PM, Romanov Vladimir <VRomanov at yota.ru> wrote:
>   
>> Hi Noel!
>> This function check message destination user (RURI). I want check source of message.
>> 1) From: field
>> 2) Contact: field
>> 3) Source IP and port
>> against records in location table
>>
>> -----------------
>> Vladimir Romanov
>> Scartel Star Lab
>> CTO
>> +7 (960) 239-0853
>>
>>
>> -----Original Message-----
>> From: Noel R. Morais [mailto:noelrocha at gmail.com]
>> Sent: Tuesday, March 17, 2009 9:30 PM
>> To: Romanov Vladimir
>> Cc: Users at lists.opensips.org
>> Subject: Re: [OpenSIPS-Users] accept messages only from registered users
>>
>> Hi Vladimir,
>>
>> use the function "lookup(domain)" from the Registrar module.  From the docs:
>>
>> "The functions extracts username from Request-URI and tries to find
>> all contacts for the username in usrloc. If there are no such
>> contacts, -1 will be returned. If there are such contacts, Request-URI
>> will be overwritten with the contact that has the highest q value and
>> optionally the rest will be appended to the message (depending on
>> append_branches parameter value)."
>>
>> Take a look at http://www.opensips.org/html/docs/modules/devel/registrar.html#id271214
>>
>> Noel
>>
>> 2009/3/17 Romanov Vladimir <VRomanov at yota.ru>:
>>     
>>> Hi All!
>>>
>>> How I can create configuration what accept messages only from registered
>>> users? How I can check what message (publish, subscribe, invite, message)
>>> from registered user?
>>>
>>> I don’t want to do proxy_authorize.
>>>
>>> -----------------
>>>
>>> Vladimir Romanov
>>>
>>> Scartel Star Lab
>>>
>>> CTO
>>>
>>> +7 (960) 239-0853
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>   




More information about the Users mailing list