<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">HI Brian<br><br>[root@localhost opensipsdb]# ls -ld /tmp/opensipsdb/<br>drwxr-xr-x 2 root root 4096 Dec 11 14:56 /tmp/opensipsdb/<br>[root@localhost opensipsdb]# ls -ld /tmp/opensipsdb/sip_trace<br>-rw-r--r-- 1 root root 168 Dec 11 14:56 /tmp/opensipsdb/sip_trace<br>[root@localhost opensipsdb]# ps axu | grep opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2014&nbsp; 0.0&nbsp; 1.1&nbsp; 38072&nbsp; 2928 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2016&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 824 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2017&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 796 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2018&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 796 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2019&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 796 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2020&nbsp; 0.0&nbsp; 0.6&nbsp; 38072&nbsp; 1712 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2021&nbsp; 0.0&nbsp; 0.6&nbsp; 38072&nbsp; 1696 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2022&nbsp; 0.0&nbsp; 0.6&nbsp; 38072&nbsp; 1724
 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2023&nbsp; 0.0&nbsp; 0.6&nbsp; 38072&nbsp; 1588 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2024&nbsp; 0.0&nbsp; 0.2&nbsp; 38072&nbsp;&nbsp; 632 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2025&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 948 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2026&nbsp; 0.0&nbsp; 0.3&nbsp; 38076&nbsp;&nbsp; 824 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2027&nbsp;
 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 892 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; R&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2028&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 892 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2029&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 892 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2030&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 892 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2031&nbsp; 0.0&nbsp; 0.3&nbsp; 38072&nbsp;&nbsp; 880 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 14:56&nbsp;&nbsp; 0:00
 /usr/local/sbin/opensips<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2044&nbsp; 0.0&nbsp; 0.2&nbsp;&nbsp; 3904&nbsp;&nbsp; 672 pts/0&nbsp;&nbsp;&nbsp; R+&nbsp;&nbsp; 15:00&nbsp;&nbsp; 0:00 grep opensips<br><br>let me describe my steps:<br>step1 : create file sip_trace then insert with 1 line :<br>id(int,auto) time_stamp(int) callid(string) traced_user(string) msg(string) method(string) status(string) fromip(string) toip(string) fromtag(string) direction(string)<br><br>step 2 : start opensips with sip_trace enable : /etc/init.d/opensips start <br><br>step 3 : use xlite softphone(2000)&nbsp; + eyebeam(8000) register and register successfull<br><br>step 4 : make call from 2000 to 8000 then connected fine then hangup<br><br>step5 : check the /tmp/opensipsdb/sip_trace : cat /tmp/opensipsdb/sip_trace and result<br>[root@localhost opensipsdb]# cat /tmp/opensipsdb/sip_trace<br>id(int,auto) time_stamp(int) callid(string) traced_user(string) msg(string) method(string)
 status(string) fromip(string) toip(string) fromtag(string) direction(string)<br><br>step 6: wait about 3 mins<br><br>step 7: check the sip_trace file : <br>[root@localhost opensipsdb]# cat /tmp/opensipsdb/sip_trace<br>
id(int,auto) time_stamp(int) callid(string) traced_user(string)
msg(string) method(string) status(string) fromip(string) toip(string)
fromtag(string) direction(string)<br>
<br><br>step 8 : stop opensips : /etc/init.d/opensips stop<br><br>step 9: check the sip_trace file : at this time all logs are now in the /tmp/opensipsdb/sip_trace<br>[root@localhost opensipsdb]# cat /tmp/opensipsdb/sip_trace<br>id(int,auto) time_stamp(int) callid(string) traced_user(string) msg(string) method(string) status(string) fromip(string) toip(string) fromtag(string) direction(string)<br>39:1260518390:MGRjYzNhYzQ0YTc2YTU0MWQyYzI4MTEyY2Q5NjcwYjI.::SIP/2.0 200 OK\r\nVia\: SIP/2.0/UDP 192.168.237.1\:5592;received=192.168.237.1;branch=z9hG4bK-d8754z-5d41606f451fca7c-1---d8754z-;rport=5592\r\nContact\: &lt;sip\:8000@192.168.237.1\:19032&gt;\r\nTo\: &lt;sip\:8000@192.168.237.131&gt;;tag=5378ee52\r\nFrom\: "2000"&lt;sip\:2000@192.168.237.131&gt;;tag=aa323d0e\r\nCall-ID\: MGRjYzNhYzQ0YTc2YTU0MWQyYzI4MTEyY2Q5NjcwYjI.\r\nCSeq\: 2 BYE\r\nUser-Agent\: eyeBeam release 1004p stamp 31962\r\nContent-Length\:
 0\r\n\r\n:BYE:200:udp\:192.168.237.131\:5060:udp\:192.168.237.1\:5592:aa323d0e:out<br><br>step 10 : start opensips again : /etc/initd/opensips start - start successfull without problem<br><br>step 11 : register 2000 + 8000 again <br><br>step 12: get error from debug :<br>Dec 11 15:03:49 localhost /usr/local/sbin/opensips[2120]: ERROR:db_text:dbt_insert: table does not exist!<br>Dec 11 15:03:49 localhost /usr/local/sbin/opensips[2120]: ERROR:siptrace:sip_trace: error storing trace<br><br><br>what happen in your lab, Brian<br>does the log of sip_trace write down to /tmp/opensipsdb/sip_trace file right away or you need to wait some times<br><br><br>Thank you<br>Ha<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div class="plainMail">Are you saying that when no /tmp/opensipsdb/sip_trace exists, and<br>you start opensips fresh, then no error appears in the log and the<br>sip_trace file is created
 normally?<br><br>And are you saying that when a /tmp/opensipsdb/sip_trace exists,<br>and you start opensips fresh, then a error appears in the log and<br>the sip_trace file is not written to with new transactions? Please<br>show the errors in the log file if this is the case.<br><br>Also, please tell us the results of:<br><br>&nbsp; [root@localhost ~]# ls -ld /tmp/opensipsdb<br>&nbsp; [root@localhost ~]# ls -ld /tmp/opensipsdb/sip_trace<br>&nbsp; [root@localhost ~]# ps aux | grep opensips<br><br>...in order to determine if you have a permissions problem easily<br>solved in the opensips.cfg.<br><br>Regards,<br>Brian<br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></blockquote></td></tr></table><br>