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 <[email protected]>:
> 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
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>

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

Reply via email to