Hi
Never mind it is working fine, the IP in question did not have an entry in
the geoip db.
Regards
On Thu, Mar 21, 2013 at 1:00 PM, Ali Jawad <ali.jawad(a)splendor.net> wrote:
As a quick addon
I do use -- modparam("geoip", "path",
"/usr/share/GeoIP/GeoLiteCity.dat")
directly downloaded from :
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
Regards
On Thu, Mar 21, 2013 at 12:50 PM, Ali Jawad <ali.jawad(a)splendor.net>wrote;wrote:
Hi
I did setup geoIP module and got the latest geoipcity free dat file and
csv file and did setup all parameters in kamailio, when doing a test the
instead of showing the country name the code is showing the region name,
while region name is empty "I only need the country name", see :
Config :
if(geoip_match("$si", "src"))
xlog("L_ERR","SIP message from: $gip(src=>cc)
$gip(src=>regn)
$gip(src=>regc)\n");
Log :
SIP message from : A2 <null> <null>
From the CSV file of geoipcity just for cross reference :
locId,country,region,city,postalCode,latitude,longitude,metroCode,areaCode
190132,"FR","A2","Lézardrieux","",48.7851,-3.1059,,
As you can see above A2 is the region it is the 3rd column, src=>CC
should show FR instead of A2.
Working on Kamailio 3.3.4. Is there anything I missed here ?
Regards
--
*Ali Jawad
*
*Information Systems Manager
CISSP - PMP - ITIL V3 - RHCE - VCP - C|EH - CCNA - MCSA
*
*Splendor Telecom (
www.splendor.net)
Beirut, Lebanon
Phone: +9611373725/ext 116
FAX: +9611375554
*
--
*Ali Jawad
*
*Information Systems Manager
CISSP - PMP - ITIL V3 - RHCE - VCP - C|EH - CCNA - MCSA
*
*Splendor Telecom (