# Parameters

## `memory` (int)

Initialize for memory testing. Set it to 1 to prepare the memory testing.

Default: 0 (off).

### Set `memory` in the config file

    ...
    modparam("misctest", "memory", 1)
    ...

## `mem_check_content` (int)

When doing the tests, check also for the possibility of the memory being overwritten. When activated, the allocated memory will be filled with a special pattern, that will be checked on free.

Default: 0 (off).

It can be changed also at runtime, via the rpc interface.

### Set `mem_check_content` in the config file

    ...
    modparam("misctest", "mem_check_content", 1)
    ...

### Set `mem_check_content` at runtime via kamctl

    ...
    $ &kamctl; rpc cfg.seti misctest mem_check_content 1
    ...

## `message` (int)

Initialize and perform message testing.

Default: 0 (off).

### Set `message` in the config file

    ...
    modparam("misctest", "message", 1)
    ...

## `message_data` (str)

Set SIP message data for testing.

Default: NULL (not set).

### Set `message_data` in the config file

    ...
    modparam("misctest", "message_data", "...")
    ...

## `message_file` (str)

Set path to file from where to read SIP message data for testing.

Default: NULL (not set).

### Set `message_file` in the config file

    ...
    modparam("misctest", "message_file", "/tmp/sip-data.txt")
    ...

## `lock_threads_mode` (int)

Initialize (1) or not (0) the internal lock for pthreads testing.

Default: 0 (no initialization).

### Set `lock_threads_mode` in the config file

    ...
    modparam("misctest", "lock_threads_mode", 1)
    ...