<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">&lt;<a href="mailto:ali.jawad@splendor.net" target="_blank">ali.jawad@splendor.net</a>&gt;</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(&quot;geoip&quot;, &quot;path&quot;, &quot;/usr/share/GeoIP/GeoLiteCity.dat&quot;)</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">&lt;<a href="mailto:ali.jawad@splendor.net" target="_blank">ali.jawad@splendor.net</a>&gt;</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 &quot;I only need the country name&quot;, see :</span></div>



<div><span><br></span></div><div>Config :</div><div><div>if(geoip_match(&quot;$si&quot;, &quot;src&quot;))</div></div><div>        xlog(&quot;L_ERR&quot;,&quot;SIP message from: $gip(src=&gt;cc)   $gip(src=&gt;regn)   $gip(src=&gt;regc)\n&quot;);</div>



<div><br></div><div>Log :</div><div>SIP message from : A2  &lt;null&gt;  &lt;null&gt;  </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,&quot;FR&quot;,&quot;A2&quot;,&quot;Lézardrieux&quot;,&quot;&quot;,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=&gt;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>