[OpenSIPS-Users] accept messages only from registered users

Noel R. Morais noelrocha at gmail.com
Tue Mar 17 19:29:30 CET 2009


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
>
>



More information about the Users mailing list