Uri_db Module

Jan Janak

FhG FOKUS
Revision History
Revision $Revision: 1.3 $$Date: 2005/08/24 22:26:20 $

Overview

Various checks related to SIP URI.

Dependencies

The following modules must be loaded before this module:

  • A SER database module.

Parameters

Revision History
Revision $Revision: 1.3 $$Date: 2005/08/24 22:26:20 $

db_url (string)

URL of the database to be used.

Default value is "mysql://serro:47serro11@localhost/ser".

Example 1. Set db_url parameter

...
modparam("module", "db_url", "mysql://username:password@localhost/ser")
...
	    

uri_table (string)

Table containing list of allowed URIs for each user.

Default value is "uri".

Example 2. Set uri_table parameter

...
modparam("module", "uri_table", "uri")
...
	    

uri_user_column (string)

Column holding usernames in the URI table.

Default value is "username".

Example 3. Set uri_user_column parameter

...
modparam("module", "uri_user_column", "username")
...
	    

uri_domain_column (string)

Column holding domain in the URI table.

Default value is "domain".

Example 4. Set uri_domain_column parameter

...
modparam("module", "uri_domain_column", "domain")
...
	    

uri_uriuser_column (string)

Column holding URI username in the URI table.

Default value is "uri_user".

Example 5. Set uri_uriuser_column parameter

...
modparam("module", "uri_uriuser_column", "uri_user")
...
	    

subscriber_table (string)

Name of the subscriber table.

Default value is "subscriber".

Example 6. Set subscriber_table parameter

...
modparam("module", "subscriber_table", "subscriber")
...
	    

subscriber_user_column (string)

Column holding username in subscriber table.

Default value is "username".

Example 7. Set subscriber_user_column parameter

...
modparam("module", "subscriber_user_column", "username")
...
	    

subscriber_domain_column (string)

Column holding domains in the subscriber table.

Default value is "domain".

Example 8. Set subscriber_domain_column parameter

...
modparam("module", "subscriber_domain_column", "domain")
...
	    

Functions

Revision History
Revision $Revision: 1.2 $$Date: 2005/08/24 13:24:35 $

check_to()

Check To username against URI table or digest credentials.

Example 9. check_to usage

...
if (check_to()) {
    ...
};
...
	    

check_from()

Check From username against URI table or digest credentials.

Example 10. check_from usage

...
if (check_from()) {
    ...
};
...
	    

does_uri_exist()

Check if username in the request URI belongs to an existing user.

Example 11. does_uri_exist usage

...
if (does_uri_exist()) {
    ...
};
...