12.07.2015 Views

Admin Guide - Mizu Voip

Admin Guide - Mizu Voip

Admin Guide - Mizu Voip

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.109. How to obtain geolocation and advanced call quality statistics1. Import GeoInfo database with MManage -> Tools menu -> Server setup -> Setup GeoIP database (GeoIP.exe)At least the countries must be imported2. If you need geoinfo data from previous days, then run the “createcdrinfo” command from the server console with a “number of days” parameter.This will take 5-10 minutes (don’t run on high server load)3. Make sure that the database has a table called tb_cdrinfo and the “cdrinfo” global config option is set to 1,2 or 3.4. Once this tables and configurations are set, the server will populate the tb_cdrinfo table automatically and after some time you can run queries likebelow:Quality statistics:SELECTb.marker,count(b.id) as 'CDRC (count)',sum(b.realduration)/60 as 'SL (min)',sum(SIGN(b.realduration))*100/count(b.id) as 'ASR (%)',avg(case when b.realduration > 0 then b.realduration else null end) as 'ACD (sec)' ,AVG((i.srvlosspercent + i.clientlosspercent + i.totallosspercent)/3) as 'packetloss (%)',avg(casewhen realduration > 5 and realduration < 35 and (i.srvsent > 400 or i.srvrec > 400) and((i.srvsent >= 0 and i.srvsent < i.srvrec/10) or(i.srvrec >= 0 and i.srvrec < i.srvsent/10) ori.srvlosspercent > 50 or i.clientlosspercent > 50 or i.totallosspercent > 50 or(i.srvlost > i.srvsent/2))then 0when realduration > 5 and realduration < 55 and (i.srvsent > 400 or i.srvrec > 400) and((i.srvsent >= 0 and i.srvsent < i.srvrec/4) or(i.srvrec >= 0 and i.srvrec < i.srvsent/4) ori.srvlosspercent > 20 or i.clientlosspercent > 20 or i.totallosspercent > 20 or(i.srvlost > i.srvsent/4))then 2when realduration > 40 and i.srvsent > 2000 and i.srvrec > 2000 and((i.srvsent > i.srvrec/4) and(i.srvrec > i.srvsent/4) and

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!