Hi there.<div>I tried to use mmgeoip.so with configuration from example</div><div>opensips 1.6.1</div><div><br></div><div>loadmodule "mmgeoip.so"</div><div><div>modparam("mmgeoip", "mmgeoip_city_db_path","/usr/share/GeoIP/GeoLiteCity.dat")</div>
<div>...</div><div><div>if(mmg_lookup("lon:lat",$si,$avp(lat_lon))) {</div><div> xlog("L_INFO","Source IP latitude:$(avp(lat_lon)[0])\n");</div><div> xlog("L_INFO","Source IP longitude:$(avp(lat_lon)[1])\n");</div>
<div>};</div></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; font-size: medium; "><br></span></font></div></div><div><div>ls -la /usr/share/GeoIP/GeoLiteCity.dat </div>
<div>-rw-r--r-- 1 root root 28543655 2010-01-25 11:15 /usr/share/GeoIP/GeoLiteCity.dat</div><div><br></div></div><div>I got some errors:</div><div><div>Jan 25 11:44:08 [10466] CRITICAL:core:yyerror: parse error in config file, line 300, column 26-43: syntax error</div>
<div>Jan 25 11:44:08 [10466] CRITICAL:core:yyerror: parse error in config file, line 300, column 43-44: bad arguments for command <mmg_lookup></div><div><br></div><div>What is wrong?</div><div><br></div></div><div><br>
-- <br>WBR, Leonid Nasedkin<br><br>
</div>