Published on iptel.org (http://www.iptel.org)

domain

By greger
Created 2006-11-26 09:21

Standard

Domain module implements checks that based on domain table determine if a host part of an URIi [1] is "local" or not. A "local" domain is one that the proxy is responsible for.

Domain module operates in caching or non-caching mode depending on value of module parameter db_mode. In caching mode domain module reads the contents of domain table into cache memory when the module is loaded. After that domain table is re-read only when module is given domain_reload fifo command. Any changes in domain table must thus be followed by domain_reload command in order to reflect them in module behavior. In non-caching mode domain module always queries domain table in the database.


Juha Heinanen


jh@song.fi [2]>

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

i [3] is "local" or not. A "local" domain is one that the proxy is responsible for.

Domain module operates in caching or non-caching mode depending on value of module parameter db_mode. In caching mode domain module reads the contents of domain table into cache memory when the module is loaded. After that domain table is re-read only when module is given domain_reload fifo command. Any changes in domain table must thus be followed by domain_reload command in order to reflect them in module behavior. In non-caching mode domain module always queries domain table in the database.

Caching is implemented using a hash table. The size of the hash table is given by HASH_SIZE constant defined in domain_mod.h. Its "factory default" value is 128.

i [4]"

i [5] is one of the local domains that the proxy is responsible for

Example 6. is_uri_host_local_local usage

...
if (is_uri_host_local()) {
    ...
};
...

1.6. FIFO Interface

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

1.6.1. domain_reload

Causes domain module to re-read the contents of domain table into cache memory.

1.6.2. domain_dump

Causes domain module to dump hash indexes and domain names in its cache memory.