For enabling DB operations, you must specify a DB URL pointing to the database containing the table(s) containing the AVPs. If required, a user name and password can be set for allowing the module to connect to the database server.
This parameter is optional, its default value being NULL.
Indicates the name of the default table that store the AVPS. This table must be locate into the database specified by "avp_url" parameter.
This parameter is required only if avp_url was set. Note that the default value is NULL, so , if you want to use it, you must explicitly set it.
Contains a multiple definition of aliases for AVP names.
Syntax:
avp_aliases = alias_definition(';'alias_definition)*
This parameter is optional.
If the domain part of the URI should be used for identifying an AVP in DB operations.
Default value is “0 (no)”.
Name of column containing the uuid (unique user id).
Default value is “uuid”.
Name of column containing the username.
Default value is “username”.
Name of column containing the domain name.
Default value is “domain”.
Name of column containing the attribute name (AVP name).
Default value is “attribute”.
Name of column containing the AVP value.
Default value is “value”.
Name of column containing the AVP type.
Default value is “type”.
Definition of a DB scheme. Scheme syntax is:
db_scheme = name':'element[';'element]*
element =
'uuid_col='string
'username_col='string
'domain_col='string
'value_col='string
'value_type='('integer'|'string')
'table='string
Default value is “NULL (none)”.
If some elements of a DB scheme are missing, the default values at module level will be used for columns and table names. For "value_type", default is “string”.
Example 11. Set db_scheme parameter
... modparam("avpops","db_scheme", "scheme1:uuid_col=uid;value_col=job;value_type=string;table=emp") - from table "emp", using "uid" column as uuid, get as string value the "job" column modparam("avpops","db_scheme", "scheme2:username_col=user;domain_col=domain;value_col=email;table=users") - from table "users", using "user" column as username and "domain" as domain column, get as string value the "email" column ...