|
@@ -23,7 +23,7 @@ Daniel-Constantin Mierla
|
|
|
|
|
|
Table of Contents
|
|
Table of Contents
|
|
|
|
|
|
- 1. Admin Guide
|
|
|
|
|
|
+ 1. SIPtrace Admin Guide
|
|
|
|
|
|
1. Overview
|
|
1. Overview
|
|
2. Dependencies
|
|
2. Dependencies
|
|
@@ -58,8 +58,12 @@ Daniel-Constantin Mierla
|
|
|
|
|
|
5.1. sip_trace
|
|
5.1. sip_trace
|
|
|
|
|
|
- 6. Database setup
|
|
|
|
- 7. Known issues
|
|
|
|
|
|
+ 6. RPC Commands
|
|
|
|
+
|
|
|
|
+ 6.1. siptrace.status param
|
|
|
|
+
|
|
|
|
+ 7. Database setup
|
|
|
|
+ 8. Known issues
|
|
|
|
|
|
List of Examples
|
|
List of Examples
|
|
|
|
|
|
@@ -81,7 +85,7 @@ Daniel-Constantin Mierla
|
|
1.16. Set trace_delayed parameter
|
|
1.16. Set trace_delayed parameter
|
|
1.17. sip_trace() usage
|
|
1.17. sip_trace() usage
|
|
|
|
|
|
-Chapter 1. Admin Guide
|
|
|
|
|
|
+Chapter 1. SIPtrace Admin Guide
|
|
|
|
|
|
Table of Contents
|
|
Table of Contents
|
|
|
|
|
|
@@ -118,25 +122,29 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
5.1. sip_trace
|
|
5.1. sip_trace
|
|
|
|
|
|
- 6. Database setup
|
|
|
|
- 7. Known issues
|
|
|
|
|
|
+ 6. RPC Commands
|
|
|
|
+
|
|
|
|
+ 6.1. siptrace.status param
|
|
|
|
+
|
|
|
|
+ 7. Database setup
|
|
|
|
+ 8. Known issues
|
|
|
|
|
|
1. Overview
|
|
1. Overview
|
|
|
|
|
|
- Offer a possibility to store incoming/outgoing SIP messages in database
|
|
|
|
- and/or duplicate to the capturing server (homer encapsulation protocol
|
|
|
|
- or plain sip mode)
|
|
|
|
|
|
+ Offer a possibility to store incoming and outgoing SIP messages in a
|
|
|
|
+ database and/or duplicate to the capturing server (using the Homer
|
|
|
|
+ encapsulation protocol or plain SIP mode)
|
|
|
|
|
|
There are two ways of storing information.
|
|
There are two ways of storing information.
|
|
* by calling explicitely the sip_trace() method in Kamailio
|
|
* by calling explicitely the sip_trace() method in Kamailio
|
|
configuration file. In this case the original message is processed.
|
|
configuration file. In this case the original message is processed.
|
|
* by setting the flag equal with the value of 'trace_flag' (e.g.,
|
|
* by setting the flag equal with the value of 'trace_flag' (e.g.,
|
|
- setflag(__trace_flag__)) parameter of the module. In this case,
|
|
|
|
- the\ message sent forward is processed. The logging mechanism is
|
|
|
|
- based on TM/SL callbacks, so only messages processed with TM/SL are
|
|
|
|
|
|
+ setflag(__trace_flag__)) parameter of the module. In this case, the
|
|
|
|
+ message sent forward is processed. The logging mechanism is based
|
|
|
|
+ on TM/SL callbacks, so only messages processed with TM/SL are
|
|
logged.
|
|
logged.
|
|
|
|
|
|
- The tracing can be turned on/off using fifo commad.
|
|
|
|
|
|
+ The tracing can be turned on/off using Kamailio mi or RPC commands.
|
|
|
|
|
|
kamctl fifo sip_trace on
|
|
kamctl fifo sip_trace on
|
|
|
|
|
|
@@ -150,7 +158,7 @@ Chapter 1. Admin Guide
|
|
2.1. Kamailio Modules
|
|
2.1. Kamailio Modules
|
|
|
|
|
|
The following modules must be loaded before this module:
|
|
The following modules must be loaded before this module:
|
|
- * database module - mysql, postrgress, dbtext, unixodbc...
|
|
|
|
|
|
+ * database module - Mysql, Postgres, dbtext, unixODBC...
|
|
* tm and sl modules - optional, only if you want to trace messages
|
|
* tm and sl modules - optional, only if you want to trace messages
|
|
forwarded by these modules.
|
|
forwarded by these modules.
|
|
|
|
|
|
@@ -400,7 +408,7 @@ modparam("siptrace", "trace_delayed", 1)
|
|
|
|
|
|
4.1. sip_trace()
|
|
4.1. sip_trace()
|
|
|
|
|
|
-4.1. sip_trace()
|
|
|
|
|
|
+4.1. sip_trace()
|
|
|
|
|
|
Store current processed SIP message in database. It is stored in the
|
|
Store current processed SIP message in database. It is stored in the
|
|
form prior applying chages made to it.
|
|
form prior applying chages made to it.
|
|
@@ -417,7 +425,7 @@ sip_trace();
|
|
|
|
|
|
5.1. sip_trace
|
|
5.1. sip_trace
|
|
|
|
|
|
-5.1. sip_trace
|
|
|
|
|
|
+5.1. sip_trace
|
|
|
|
|
|
Name: sip_trace
|
|
Name: sip_trace
|
|
|
|
|
|
@@ -434,7 +442,22 @@ sip_trace();
|
|
trace_mode
|
|
trace_mode
|
|
_empty_line_
|
|
_empty_line_
|
|
|
|
|
|
-6. Database setup
|
|
|
|
|
|
+6. RPC Commands
|
|
|
|
+
|
|
|
|
+ 6.1. siptrace.status param
|
|
|
|
+
|
|
|
|
+6.1. siptrace.status param
|
|
|
|
+
|
|
|
|
+ Name: siptrace.status
|
|
|
|
+
|
|
|
|
+ Parameters:
|
|
|
|
+ * on or off: turns on/off SIP message tracing.. Possible values are:
|
|
|
|
+ + on
|
|
|
|
+ + off
|
|
|
|
+ * "check" does not change siptrace status, just reports the current
|
|
|
|
+ status.
|
|
|
|
+
|
|
|
|
+7. Database setup
|
|
|
|
|
|
Before running Kamailio with siptrace, you have to setup the database
|
|
Before running Kamailio with siptrace, you have to setup the database
|
|
tables where the module will store the data. For that, if the table
|
|
tables where the module will store the data. For that, if the table
|
|
@@ -444,7 +467,7 @@ sip_trace();
|
|
You can also find the complete database documentation on the project
|
|
You can also find the complete database documentation on the project
|
|
webpage, http://www.kamailio.org/docs/db-tables/kamailio-db-devel.html.
|
|
webpage, http://www.kamailio.org/docs/db-tables/kamailio-db-devel.html.
|
|
|
|
|
|
-7. Known issues
|
|
|
|
|
|
+8. Known issues
|
|
|
|
|
|
Stateless forwarded messages (forward()) are not logged if you set the
|
|
Stateless forwarded messages (forward()) are not logged if you set the
|
|
flag, use sip_trace().
|
|
flag, use sip_trace().
|