PCAP spool directory
by default sniffer stores all data to /var/spool/voipmonitor which can be changed in voipmonitor.conf - spooldir = ...
北京赛车黑马人工计划version >= 8.0 implements new cleaning in voipmonitor.conf. cleaning procedure runs every hour and checks size or days according to following options. if you set maxpoolsize it will wipe out the oldest data every hour until the size is reached. maxpooldays keeps maximum number of data to set days. the same is for sip rtp and graph so you can keep sip pcaps longer than rtp pcaps. all following options can be activated at onc and all sizes are in mb
#set default maxpoolsize to 100 GB (102400 MB) maxpoolsize = 102400 maxpooldays = maxpoolsipsize = maxpoolsipdays = maxpoolrtpsize = maxpoolrtpdays = maxpoolgraphsize = maxpoolgraphdays = maxpoolaudiosize = maxpoolaudiodays =
北京赛车黑马人工计划each created file is indexed in /var/spool/voipmonitor/filesindex/ in hours interval and the file size is added to aggregation mysql table files. cleaning procedure iterates through index files and unlink files without need to scan directories.
if you accidentally remove /var/spool/voipmonitor/filesindex/ or files table in database, you need to reindex the spool directory otherwise the old not indexed files will be never deleted by the cleaning procedure. to initiate reindex send reindexfiles to manager interface
telnet localhost 5029 reindexfiles [enter]
Since version 7 the sniffer is partitioning tables by days which allows efficient cleaning of partitions. There is configuration option in voipmonitor.conf Sniffer_configuration#cleandatabase.
北京赛车黑马人工计划if you do not have partitions you cannot use this option and you need to create some script which will delete old data from cdr table. this method is very slow since the delete has to update giant index file if tables are not partitioned.