[OpenSIPS-Users] Using domain for group policy

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sun Dec 28 11:40:08 CET 2008

Hi Joan,

Such a function is not available, but you can achieve the same 
functionality in two other ways:

1) use avp_db_load() and usr_preferences table (see AVPOPS module - 

2) use avp_db_query() to run a raw query against whatever table (also 
see AVPOPS module).


Joan wrote:
> Good afternoon,
> I am currently using some groups to manage my users rights (mobile,
> landlines, etc ...)
> Since my setup is in multi-domain. environment, I would like to be
> able to set rights for a whole domain.
> Now I am using to allow/deny calls:
>     is_user_in("Credentials","mobile") ||
> is_user_in("Credentials","landlines") ...
> For exampel if I don't have a user specific policy I would like to
> check domain policies, something like:
>     is_domain_in ("Credentials","mobile")
> Is this planned to be implemented?
> It would just be a change in the function to look for empty username,
> while the rest wouldn't change.
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

More information about the Users mailing list