voipmonitor / sniffer

VoIPmonitor sniffer sources
227 stars 105 forks source link

Spooldir and cachedir not working anymore #36

Closed Esya closed 7 years ago

Esya commented 7 years ago

Hi,

Tried this on 17.1, and I think it appeared somewhere after 15.0. This is a major bug. Below is our configuration, pay attention to spooldir and cachedir :

[general]
interface = eth0
sipport = 5060
sipport = 5080
ringbuffer = 20
vmbuffer = 50
jitterbuffer_f1 = yes
jitterbuffer_f2 = yes
jitterbuffer_adapt = yes
rtp-firstleg = no
deduplicate = no
sip-register = no
sip-register-active-nologbin = yes
nocdr = yes
savesize = 9961472
savesip = yes
savertp = yes
pcapsplit = no
spooldiroldschema = yes
savertcp = yes
savegraph = no
mos_g729 = no
matchheader = [Redacted]
custom_headers = [Redacted]
domainport = yes
spooldir = /tmp/spooldir
cachedir = /tmp/cachedir
promisc = yes
sqlcallend = no
sqldriver = mysql
mysqlhost = 127.0.0.1
mysqldb = voipmonitor
mysqltable = cdr
mysqlusername = root
mysqlpassword = [Redacted]
tar = no

We end up with the following files in spooldir (the path is "doubled" /tmp/spooldir/tmp/spooldir)

# find /tmp/spooldir
/tmp/spooldir
/tmp/spooldir/2016-08-25
/tmp/spooldir/tmp
/tmp/spooldir/tmp/spooldir
/tmp/spooldir/tmp/spooldir/2016-08-25
/tmp/spooldir/tmp/spooldir/2016-08-25/41142754-e5a8-1234-8094-842b2b021718.pcap
/tmp/spooldir/tmp/spooldir/2016-08-25/422e9ec8-e5a8-1234-80a2-0026b959a530.pcap
/tmp/spooldir/filesindex
/tmp/spooldir/filesindex/audiosize
/tmp/spooldir/filesindex/rtpsize
/tmp/spooldir/filesindex/sipsize
/tmp/spooldir/filesindex/graphsize
/tmp/spooldir/rrd
/tmp/spooldir/rrd/2db-heap.rrd
/tmp/spooldir/rrd/2db-SQL.rrd
/tmp/spooldir/rrd/2db-drop.rrd
/tmp/spooldir/rrd/2db-callscounter.rrd
/tmp/spooldir/rrd/db-LA.rrd
/tmp/spooldir/rrd/2db-tCPU.rrd
/tmp/spooldir/rrd/2db-PS.rrd
/tmp/spooldir/rrd/2db-tacCPU.rrd
/tmp/spooldir/rrd/db-memusage.rrd
/tmp/spooldir/rrd/2db-speedmbs.rrd

And in cachedir it's even worse, as it becomes a mix of the two (/tmp/cachedir/tmp/spooldir ?)

# find /tmp/cachedir/
/tmp/cachedir/
/tmp/cachedir/tmp
/tmp/cachedir/tmp/spooldir
/tmp/cachedir/tmp/spooldir/2016-08-25
/tmp/cachedir/tmp/spooldir/2016-08-25/422e9ec8-e5a8-1234-80a2-0026b959a530.pcap
/tmp/cachedir/tmp/spooldir/2016-08-25/3f44c3db-e5a8-1234-d988-ecf4bbd16a10.pcap
/tmp/cachedir/tmp/spooldir/2016-08-25/2fb15085-e5a8-1234-c6b7-842b2b6d8199.pcap

I do not see anything in the changelog that was supposed to alter the behavior of these two options, any idea?

Esya commented 7 years ago

In the meantime we've downgraded to v15 and it works again

voipmonitor commented 7 years ago

I have created internal bug report and will update you once we fix it. Thank you for the report.

voipmonitor commented 7 years ago

can you please tell me why you are using cachedir?

voipmonitor commented 7 years ago

hi, this is now fixed in the latest develop git branch (it will be merged to master soon)