Skip to content

Example: GeoIP

Essodjolo KAHANAM edited this page May 15, 2019 · 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/
wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
mv GeoLiteCity.dat.gz GeoIPCity.dat.gz
gunzip GeoIPCity.dat.gz
  • Configure MaxMind path in sipcapture kamailio.cfg
modparam("geoip", "path", "/usr/share/GeoIP/GeoIPCity.dat")
  • Enable GEO support in sipcapture kamailio.cfg
#!define WITH_HOMER_GEO
  • Disable ONLY_FULL_GROUP_BY in sql_mode in MySQL (5.7+) Edit your my.cnf with the following parameter:
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

Test

Clone this wiki locally