Skip to content

Example: GeoIP

Lorenzo Mangani edited this page Mar 1, 2016 · 10 revisions

HOMER 5 GEO IP

splitter

GEO IP Mapping

HOMER 5 supports mapping of IPs to Geo Points using Kamailio's geoip module and provides a map widget to show call event distribution over a given timerange.

Installation

In order for the module to work, MaxMind database needs to be installed on the system:

  • Install MaxMind
    • For Debian OS:
 apt-get install geoip-database geoip-database-extra
- For any other OS:
mkdir /usr/share/GeoIP
cd /usr/share/GeoIP/
mv GeoIP.dat GeoIP.dat_orig
wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
  • Configure MaxMind path in sipcapture kamailio.cfg
modparam("geoip", "path", "/usr/share/GeoIP/GeoLiteCity.dat")
  • Enable GEO support in sipcapture kamailio.cfg
#!define WITH_HOMER_GEO

Test

Clone this wiki locally