|
@@ -10,7 +10,7 @@ Victor Seva
|
|
|
|
|
|
<[email protected]>
|
|
<[email protected]>
|
|
|
|
|
|
- Copyright © 2015 Victor Seva (sipwise.com)
|
|
|
|
|
|
+ Copyright © 2015 Victor Seva (sipwise.com)
|
|
__________________________________________________________________
|
|
__________________________________________________________________
|
|
|
|
|
|
Table of Contents
|
|
Table of Contents
|
|
@@ -29,6 +29,8 @@ Victor Seva
|
|
3.2. mask (int)
|
|
3.2. mask (int)
|
|
3.3. callid_prefix (string)
|
|
3.3. callid_prefix (string)
|
|
|
|
|
|
|
|
+ 4. Usage
|
|
|
|
+
|
|
List of Examples
|
|
List of Examples
|
|
|
|
|
|
1.1. Set cfgtrace parameter
|
|
1.1. Set cfgtrace parameter
|
|
@@ -51,14 +53,16 @@ Chapter 1. Admin Guide
|
|
3.2. mask (int)
|
|
3.2. mask (int)
|
|
3.3. callid_prefix (string)
|
|
3.3. callid_prefix (string)
|
|
|
|
|
|
|
|
+ 4. Usage
|
|
|
|
+
|
|
1. Overview
|
|
1. Overview
|
|
|
|
|
|
This module provides a report of the way Kamailio SIP Server Platform
|
|
This module provides a report of the way Kamailio SIP Server Platform
|
|
configuration has been executed as part of a unit test for different
|
|
configuration has been executed as part of a unit test for different
|
|
SIP scenarios.
|
|
SIP scenarios.
|
|
|
|
|
|
- In order to identify defferent scenarios a prefix string should be used
|
|
|
|
- at Call-ID header.
|
|
|
|
|
|
+ In order to identify different scenarios a prefix string should be used
|
|
|
|
+ inside the Call-ID header.
|
|
|
|
|
|
2. Dependencies
|
|
2. Dependencies
|
|
|
|
|
|
@@ -84,10 +88,10 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
3.1. basedir (string)
|
|
3.1. basedir (string)
|
|
|
|
|
|
- Control where the config reports should be stored. The dir must exists
|
|
|
|
- and Kamailio SIP Server Platform must have perms to write on it.
|
|
|
|
|
|
+ Control where the config reports should be stored. The dir must exist
|
|
|
|
+ and Kamailio SIP Server Platform must have permissions to write on it.
|
|
|
|
|
|
- Default value is "/tmp".
|
|
|
|
|
|
+ Default value is “/tmp�.
|
|
|
|
|
|
Example 1.1. Set cfgtrace parameter
|
|
Example 1.1. Set cfgtrace parameter
|
|
...
|
|
...
|
|
@@ -104,7 +108,7 @@ modparam("cfgt", "basedir", "/var/run/kamailio/cfgtest")
|
|
* 16 - dump DP_OTHER vars
|
|
* 16 - dump DP_OTHER vars
|
|
* 32 - dump ALL vars
|
|
* 32 - dump ALL vars
|
|
|
|
|
|
- Default value is "32" (ALL).
|
|
|
|
|
|
+ Default value is “32� (ALL).
|
|
|
|
|
|
Example 1.2. Set mask parameter
|
|
Example 1.2. Set mask parameter
|
|
...
|
|
...
|
|
@@ -114,13 +118,42 @@ modparam("cfgt", "mask", 12)
|
|
|
|
|
|
3.3. callid_prefix (string)
|
|
3.3. callid_prefix (string)
|
|
|
|
|
|
- Prefix used to indentify test scenario messages. Last char of the
|
|
|
|
- string will be used as delimiter.
|
|
|
|
|
|
+ Prefix used to identify test scenario messages. Last char of the string
|
|
|
|
+ will be used as delimiter for the scenario ID. With parameter set to
|
|
|
|
+ “NGCP%� and Call-ID “NGCP%123%456� the scenario identified will be
|
|
|
|
+ “123�.
|
|
|
|
|
|
- Default value is "NGCP%" (using "%" as delimiter).
|
|
|
|
|
|
+ Default value is “NGCP%� (using “%� as delimiter).
|
|
|
|
|
|
Example 1.3. Set callid_prefix parameter
|
|
Example 1.3. Set callid_prefix parameter
|
|
...
|
|
...
|
|
# using '%' as delimiter
|
|
# using '%' as delimiter
|
|
modparam("cfgt", "callid_prefix", "TEST-ID%")
|
|
modparam("cfgt", "callid_prefix", "TEST-ID%")
|
|
...
|
|
...
|
|
|
|
+
|
|
|
|
+4. Usage
|
|
|
|
+
|
|
|
|
+ This module is used by the debugger module, so it must be loaded first.
|
|
|
|
+ To enable the generation of the reports, the debugger module must be
|
|
|
|
+ configured by setting the cfgtest parameter to "1".
|
|
|
|
+
|
|
|
|
+ Example of configuration:
|
|
|
|
+...
|
|
|
|
+#!ifdef WITH_DEBUG
|
|
|
|
+loadmodule "cfgt.so"
|
|
|
|
+loadmodule "debugger.so"
|
|
|
|
+#!endif
|
|
|
|
+...
|
|
|
|
+#!ifdef WITH_DEBUG
|
|
|
|
+# ----- cfgt params -----
|
|
|
|
+modparam("cfgt", "basedir", "/tmp/kamailio/cfgtest")
|
|
|
|
+modparam("cfgt", "callid_prefix", "TRACE-ID%")
|
|
|
|
+modparam("cfgt", "mask", 32)
|
|
|
|
+
|
|
|
|
+# ----- debugger params -----
|
|
|
|
+modparam("debugger", "cfgtrace", 1)
|
|
|
|
+modparam("debugger", "log_level_name", "exec")
|
|
|
|
+
|
|
|
|
+modparam("debugger", "cfgtest", 1)
|
|
|
|
+#!endif
|
|
|
|
+...
|