$Revision: 1.2 $
$Date: 2005/08/24 13:24:30 $

# Parameters

## `cpl_db` (string)

A SQL URL have to be given to the module for knowing where the database containing the table with CPL scripts is locates. If required a user name and password can be specified for allowing the module to connect to the database server.

This parameter is mandatory.

### Set `cpl_db` parameter

    ...
    modparam("cpl_c","cpl_db","mysql://user:passwd@host/database")
    ...

## `cpl_table` (string)

Indicates the name of the table that store the CPL scripts. This table must be locate into the database specified by "cpl_db" parameter. For more about the format of the CPL table please see `modules/cpl-c/init.mysql`.

This parameter is mandatory.

### Set `cpl_table` parameter

    ...
    modparam("cpl_c","cpl_table","cpltable")
    ...

## `cpl_dtd_file` (string)

Points to the DTD file describing the CPL grammar. The file name may include also the path to the file. This path can be absolute or relative (be careful the the path will be relative to the starting directory of SER).

This parameter is mandatory.

### Set `cpl_dtd_file` parameter

    ...
    modparam("cpl_c","cpl_dtd_file","/etc/ser/cpl-06.dtd")
    ...

## `log_dir` (string)

Points to a directory where should be created all the log file generated by the LOG CPL node. A log file per user will be created (on demand) having the name username.log.

If this parameter is absent, the logging will be disabled without generating error on execution.

### Set `log_dir` parameter

    ...
    modparam("cpl_c","log_dir","/var/log/ser/cpl")
    ...

## `proxy_recurse` (int)

Tells for how many time is allow to have recurse for PROXY CPL node If it has value 2, when doing proxy, only twice the proxy action will be re-triggered by a redirect response; the third time, the proxy execution will end by going on REDIRECTION branch. The recurse feature can be disable by setting this parameter to 0

Default value of this parameter is 0.

### Set `proxy_recurse` parameter

    ...
    modparam("cpl_c","proxy_recurse",2)
    ...

## `proxy_route` (int)

Before doing proxy (forward), a script route can be executed. All modifications made by that route will be reflected only for the current branch.

Default value of this parameter is 0 (none).

### Set `proxy_route` parameter

    ...
    modparam("cpl_c","proxy_route",1)
    ...

## `nat_flag` (int)

Sets the flag used for marking calls via NAT. Used by lookup tag when retrieving a contact behind a NAT (this flag will be set).

Default value of this parameter is 6.

### Set `nat_flag` parameter

    ...
    modparam("cpl_c","nat_flag",4)
    ...

## `lookup_domain` (int)

Tells if the lookup tag should use or not the domain part when doing user location search. Set it to a non zero value to force also domain matching.

Default value of this parameter is 0.

### Set `lookup_domain` parameter

    ...
    modparam("cpl_c","lookup_domain",1)
    ...