<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <pre><font face="Courier New, Courier, monospace">Hi All,

opensips 2.3

opensips.cfg
#### SipTrace Module
loadmodule "siptrace.so"
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "trace_id", "[tid]uri=mysql://opensips:opensipsrw@localhost/opensips;table=sip_trace;")

MariaDB [opensips]> DESCRIBE sip_trace;
+-------------+------------------+------+-----+---------------------+----------------+
| Field       | Type             | Null | Key | Default             | Extra          |
+-------------+------------------+------+-----+---------------------+----------------+
| id          | int(10) unsigned | NO   | PRI | NULL                | auto_increment |
| time_stamp  | datetime         | NO   | MUL | 1900-01-01 00:00:01 |                |
| callid      | char(255)        | NO   | MUL |                     |                |
| trace_attrs | char(128)        | YES  | MUL | NULL                |                |
| msg         | text             | NO   |     | NULL                |                |
| method      | char(32)         | NO   |     |                     |                |
| status      | char(128)        | YES  |     | NULL                |                |
| from_proto  | char(5)          | NO   |     | NULL                |                |
| from_ip     | char(50)         | NO   | MUL |                     |                |
| from_port   | int(5) unsigned  | NO   |     | NULL                |                |
| to_proto    | char(5)          | NO   |     | NULL                |                |
| to_ip       | char(50)         | NO   |     |                     |                |
| to_port     | int(5) unsigned  | NO   |     | NULL                |                |
| fromtag     | char(64)         | NO   |     |                     |                |
| direction   | char(4)          | NO   |     |                     |                |
+-------------+------------------+------+-----+---------------------+----------------+
15 rows in set (0.00 sec)

# opensipsctl start
INFO: Starting OpenSIPS :
ERROR: PID file /var/run/opensips/opensips.pid does not exist -- OpenSIPS start failed

Degug:
/local/sbin/opensips[2061]: ERROR:siptrace:mod_init: failed to get an id for "sip" tracing!
/sbin/opensips[2061]: ERROR:core:init_mod: failed to initialize module siptrace
/sbin/opensips[2061]: ERROR:core:main: error while initializing modules
/sbin/opensips[2061]: INFO:core:cleanup: cleanup
/local/sbin/opensips[2061]: NOTICE:core:main: Exiting....

Regards,
Victor Bogatyryev


</font></pre>
  </body>
</html>