<div dir="ltr">Hi<div>Never mind it is working fine, the IP in question did not have an entry in the geoip db.<br>Regards<br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 1:00 PM, Ali Jawad <span dir="ltr"><<a href="mailto:ali.jawad@splendor.net" target="_blank">ali.jawad@splendor.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As a quick addon <div><br><div>I do use -- modparam("geoip", "path", "/usr/share/GeoIP/GeoLiteCity.dat")</div>
<div><br></div><div>directly downloaded from :</div><div><a href="http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz" target="_blank">http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz</a></div>
<div><br></div><div>Regards<div><div class="h5"><br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 12:50 PM, Ali Jawad <span dir="ltr"><<a href="mailto:ali.jawad@splendor.net" target="_blank">ali.jawad@splendor.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span>Hi</span><div><span>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 :</span></div>
<div><span><br></span></div><div>Config :</div><div><div>if(geoip_match("$si", "src"))</div></div><div> xlog("L_ERR","SIP message from: $gip(src=>cc) $gip(src=>regn) $gip(src=>regc)\n");</div>
<div><br></div><div>Log :</div><div>SIP message from : A2 <null> <null> </div><div><br></div><div>From the CSV file of geoipcity just for cross reference :</div><div><div>locId,country,region,city,postalCode,latitude,longitude,metroCode,areaCode</div>
</div><div><div>190132,"FR","A2","LĂ©zardrieux","",48.7851,-3.1059,,</div></div><div><br></div><div>As you can see above A2 is the region it is the 3rd column, src=>CC should show FR instead of A2.</div>
<div><br></div><div>Working on Kamailio 3.3.4. Is there anything I missed here ?</div><div><br>Regards</div><div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><font><font color="#888888"><b>Ali Jawad <br></b></font></font><div><div><font><font color="#888888"><b>Information Systems Manager<br>
<font size="1">CISSP - PMP - ITIL V3 - RHCE - VCP - C|EH - CCNA - MCSA</font><br>
</b></font></font></div><div><font><font color="#888888"><b>Splendor Telecom <span style>(</span><span style="background-color:rgb(51,51,255);color:rgb(51,102,255)"><a href="http://www.splendor.net/" target="_blank"><span style="background-color:rgb(255,255,255)"><font color="#3366ff">www.splendor.net</font></span></a></span><span style>)</span><br>
Beirut, Lebanon<br>Phone: +9611373725/ext 116<br>FAX: +9611375554<br><br></b></font></font><div><div></div></div></div></div></div>
</font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font><font color="#888888"><b>Ali Jawad <br></b></font></font><div><div><font><font color="#888888"><b>Information Systems Manager<br><font size="1">CISSP - PMP - ITIL V3 - RHCE - VCP - C|EH - CCNA - MCSA</font><br>
</b></font></font></div><div><font><font color="#888888"><b>Splendor Telecom <span style="background-color:rgb(255,255,255)">(</span><span style="background-color:rgb(51,51,255);color:rgb(51,102,255)"><a href="http://www.splendor.net/" target="_blank"><span style="background-color:rgb(255,255,255)"><font color="#3366ff">www.splendor.net</font></span></a></span><span style="background-color:rgb(255,255,255)">)</span><br>
Beirut, Lebanon<br>Phone: +9611373725/ext 116<br>FAX: +9611375554<br><br></b></font></font><div><div></div></div></div></div></div>
</div></div>