Installing VoipMonitor on Trixbox and Elastix
Using Internet SIP trunking services with a VOIP phone system is incredibly cost effective. The only problem is the unreliability of the Internet. We’ve been expreimenting with several tools for monitoring phone call quality but VoipMonitor has been the most useful. Some of the most useful features are:
- Creates packet capture of each phone call. This is really useful because you get more manageable capture files, not one monster files containing all calls.
- It logs all calls to a MySQL database and calculates several important metrics like MOS. If you need an example of a bad quality call to send to your provider you can just sort the call table by MOS. Anything under 4.0 probably has some jitter or lag in the audio.
yum install subversion libmysql++-dev libvorbis-devel mysql-devel libpcap-devel php5-mysql php5-gd
wget http://www.tcpdump.org/release/libpcap-1.1.1.tar.gz tar xzf libpcap-1.1.1.tar.gz cd libpcap* ./configure make make install
wget http://tangentsoft.net/mysql++/releases/mysql++-3.0.9.tar.gz tar xzf mysql++-3.0.9.tar.gz cd mysql++-3.0.9 ./configure make install ldconfig cp /usr/local/lib/libmysqlpp.so.3 /usr/lib/
wget http://dl.nvthost.com/downloads/voipmonitor-3.0.1.tar.gz tar zxf voipmonitor-2.0.tar.gz cd ../voipmonitor-2.0 make make install cp /usr/local/lib/libpcap.* /usr/lib
mysql mysql> create database voipmonitor; mysql> exit
cat cdrtable.sql | mysql voipmonitor
Start up VoipMonitor. The u and p switches are for the MySQL username and password. Call VoipMonitor with no arguments to see a list of possible command line switches.
voipmonitor -i eth0 -SRG -h localhost -b voipmonitor -u root -p passw0rd