%docentities; ]>
Parameters
<varname>default_checks</varname> (integer) This parameter determines which of the checks from the sanity module are executed if no parameter was given to the sanity_check function call. By default all implemented checks are included in the execution of the sanity_check function. The integer value is the sum of the check numbers which should be executed by default. Default value is 999. This resolves to the following list of checks: ruri_sip_version (1), ruri_scheme (2), required_headers (4), cseq_method (32), cseq_value (64), cotent_length (128), expires_value (256), proxy_require (512). Set <varname>default_checks</varname> parameter ... modparam("sanity", "default_checks", 1) ...
<varname>uri_checks</varname> (integer) This parameter determines which URIs are going to be checked if the 'parse uri' will be executed. Default value is 7. This resolves to the following list of parsed URIs: Request RUI (1), From URI (2) and To URI (4). Set <varname>uri_checks</varname> parameter ... modparam("sanity", "uri_checks", 3) ...
<varname>proxy_require</varname> (string) This parameter set the list of supported extensions for this SIP-router. The value is expected as comma separated list of the extensions. This list is separated into single tokens. Each token from a proxy require header will be compare to the tokens from this list. Set <varname>proxy_require</varname> parameter ... modparam("sanity", "proxy_require", "foo, bar") ...
<varname>autodrop</varname> (integer) This parameter controls whether the module drops automatically or not the SIP message if the sanity checks fail. Default value is 1 (auto drop). If set to 0, sanity_check() function will return -1 (false) to configuration file, allowing to write log messages for example - be sure you exit execution of config without sending a SIP reply because it is sent by module itself. Set <varname>autodrop</varname> parameter ... modparam("sanity", "autodrop", 1) ...