Copyright © 2005 voice-system.ro
ALIAS_DB module can be used as an alternative for user aliases via usrloc. The main feature is that it does not store all addiacent data as for user location and always uses database for search (no memory caching).
Having no memory caching the speed of search can decrease but the provisioning is easier. With very fast databases like MySQL the speed penalty can be lowered. Also, the search can be performed on different tables in the same script.
The following modules must be loaded before this module:
database module (mysql, dbtext, ...).
The following libraries or applications must be installed before running OpenSER with this module loaded:
Default value is "DEFAULT_RODB_URL".
Name of the column storing username.
Default value is "username".
Name of the column storing user's domain.
Default value is "domain".
Name of the column storing alias username.
Default value is "alias_username".
Name of the column storing alias domain.
Default value is "alias_domain".
Specifies whether to use or not the domain from R-URI when searching for alias. If set to 0, the domain from R-URI is not used, if set to 1 the domain from R-URI is used.
Default value is "o".
Specifies the prefix to be stripped from the domain in R-URI before doing the search.
Default value is "NULL".
The function takes the R-URI and search to see whether it is an alias or not. If it is an alias for a local user, the R-URI is replaced with user's SIP uri.
The function returns TRUE if R-URI is alias and it was replaced by user's SIP uri.
Meaning of the parameters is as follows:
table_name - the name of the table where to search for alias.
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
The table structure used by alias_db module is defined by next SQL script (good for MySQL).
Example 1-9. alias_db sql script
... create table dbaliases ( alias_username varchar(64) not null default '', alias_domain varchar(128) not null default '', username varchar(64) not null default '', domain varchar(128) not null default '', unique key alias_key(alias_username, alias_domain) ); ...
The table "dbaliases" is create by default.
Take a look at http://openser.org/.
First at all check if your question was already answered on one of our mailing lists:
User Mailing List - http://openser.org/cgi-bin/mailman/listinfo/users
Developer Mailing List - http://openser.org/cgi-bin/mailman/listinfo/devel
If you want to keep the mail private, send it to
Please follow the guidelines provided at: http://sourceforge.net/tracker/?group_id=139143.