Check request come from registered user

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Check request come from registered user

Giuseppe Roberti-3
Hi.

How can i check that a request come from a registered user ?

Regards.

--
Giuseppe Roberti
<[hidden email]>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Check request come from registered user

Alex Balashov
Giuseppe Roberti wrote:
> Hi.
>
> How can i check that a request come from a registered user ?
>
> Regards.
>

1. Save the existing RURI into a pseudovariable.

2. Rewrite the RURI to contain user's AOR@your_registration_domain.

3. Call lookup().

4. If lookup() unsuccessful, reject.

5. If lookup() successful, reset RURI to the value you saved in the
pseudovariable and forward on.

--
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Check request come from registered user

Brett Nemeroff
In reply to this post by Giuseppe Roberti-3
maybe check_from() in uri_db?


On Fri, Nov 14, 2008 at 3:38 PM, Giuseppe Roberti <[hidden email]> wrote:
Hi.

How can i check that a request come from a registered user ?

Regards.

--
Giuseppe Roberti
<[hidden email]>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Check request come from registered user

Alex Balashov
Or that.

Brett Nemeroff wrote:

> maybe check_from() in uri_db?
>
>
> On Fri, Nov 14, 2008 at 3:38 PM, Giuseppe Roberti <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi.
>
>     How can i check that a request come from a registered user ?
>
>     Regards.
>
>     --
>     Giuseppe Roberti
>     <[hidden email] <mailto:[hidden email]>>
>
>     _______________________________________________
>     Users mailing list
>     [hidden email] <mailto:[hidden email]>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Check request come from registered user

Kobi Eshun
In reply to this post by Giuseppe Roberti-3
If you need to check against the location database, you can set the  
'aor_avp' parameter prior to invoking registrar::is_registered():

        <http://kamailio.org/docs/modules/1.4.x/registrar.html#id2467728>

Cheers,
--
kobi


On Nov 14, 2008, at 1:38 PM, Giuseppe Roberti wrote:

> Hi.
>
> How can i check that a request come from a registered user ?
>
> Regards.
>
> --
> Giuseppe Roberti
> <[hidden email]>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Check request come from registered user

Bogdan-Andrei Iancu
Or a project sync'ed  link :
    http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id2510231

BTW, the name of the function is "registered()" :)

Regards,
Bogdan


Kobi Eshun wrote:

> If you need to check against the location database, you can set the  
> 'aor_avp' parameter prior to invoking registrar::is_registered():
>
> <http://kamailio.org/docs/modules/1.4.x/registrar.html#id2467728>
>
> Cheers,
> --
> kobi
>
>
> On Nov 14, 2008, at 1:38 PM, Giuseppe Roberti wrote:
>
>  
>> Hi.
>>
>> How can i check that a request come from a registered user ?
>>
>> Regards.
>>
>> --
>> Giuseppe Roberti
>> <[hidden email]>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>    
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users