← Volver al índice de módulos

domain

Domain module implements checks that based on domain table determine if a domain is “local”. A “local” domain is one that the proxy is responsible for.
🔀 Enrutamiento y Proxy SIP Kamailio 6.1 18 parámetros 8 funciones

Descripción general

Domain module implements checks that based on domain table determine if a domain is “local”. A “local” domain is one that the proxy is responsible for. SIP URIs of local users must have hostpart that is equal to one of these domains. Domain module reads the contents of domain and domain_attrs tables into cache memory when the module is loaded. Any changes in domain or domain_attrs tables must thus be followed by “domain.reload” rpc command in order to reflect them in module behavior. 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.

Documentación oficial: https://www.kamailio.org/docs/modules/stable/modules/domain.html
Código fuente: https://github.com/kamailio/kamailio/tree/master/src/modules/domain

Parámetros de configuración

ParámetroTipoDescripción
db_url string 3.2. domain_table (string) 3.3. domain_attrs_table (string) 3.4. did_col (string) 3.5. domain_col (string) 3.6. name_col (string) 3.7. type_col (string) 3.8. value_col (string) 3.9. register_myself (i
domain_table string 3.3. domain_attrs_table (string) 3.4. did_col (string) 3.5. domain_col (string) 3.6. name_col (string) 3.7. type_col (string) 3.8. value_col (string) 3.9. register_myself (integer)
domain_attrs_table string 3.4. did_col (string) 3.5. domain_col (string) 3.6. name_col (string) 3.7. type_col (string) 3.8. value_col (string) 3.9. register_myself (integer)
did_col string 3.5. domain_col (string) 3.6. name_col (string) 3.7. type_col (string) 3.8. value_col (string) 3.9. register_myself (integer)
domain_col string 3.6. name_col (string) 3.7. type_col (string) 3.8. value_col (string) 3.9. register_myself (integer)
name_col string 3.7. type_col (string) 3.8. value_col (string) 3.9. register_myself (integer)
type_col string 3.8. value_col (string) 3.9. register_myself (integer)
value_col string 3.9. register_myself (integer)
register_myself integer 3.1. db_url (string)
db_url string This is URL of the database to be used.
domain_table string Name of table containing names of local domains that the proxy is responsible for.
domain_attrs_table string Name of table containing attributes of local domains.
did_col string Name of column containing domain id (did) of domain in domain and domain_attrs tables. In domain table, a did column value may be NULL, which means that it has same value as domain column.
domain_col string Name of column containing domain name in domain table.
name_col string Name of column containing attribute name in domain_attrs table.
type_col string Name of column containing attribute type in domain_attrs table. Type value 0 is integer and type value 2 is string.
value_col string Name of column containing attribute value in domain_attrs table.
register_myself integer Register the list of domains to match 'myself' check: 0 means no myself registration, 1 means enable myself registration.

Funciones exportadas

is_from_local()

4.2. is_uri_host_local() 4.3. is_domain_local(domain) 4.4. lookup_domain(domain [, prefix])

is_uri_host_local()

4.3. is_domain_local(domain) 4.4. lookup_domain(domain [, prefix])

is_domain_local(domain)

4.4. lookup_domain(domain [, prefix])

lookup_domain(domain [, prefix])

4.1. is_from_local()

is_from_local()

Checks based on domain table if host part of From header uri is one of the local domains that the proxy is responsible for

is_uri_host_local()

If called from route or failure route block, checks based on domain table if host part of Request-URI is one of the local domains that the proxy is responsible for. If called from branch route, the test is made on host part of URI of first branch, wh

is_domain_local(domain)

This function checks if the domain contained in the parameter is local. The parameter can be a static string or contain pseudo-variables.

lookup_domain(domain [, prefix])

This function checks if domain given in domain argument is local and, if so, adds attributes associated with domain's id (did) to AVPs. If prefix argument (string) is given, names of attributes are prefixes by it. In addition to attributes given in d

Autores y contribuidores

Juha Heinanen <jh@tutpro.com>

Copyright © 2002-2012 Juha Heinanen

Módulos relacionados

acc acc_diameter acc_json acc_radius alias_db app_jsdt carrierroute cfgt