Hello,

the geoip module is using the old database format (API) that is not supporting ipv6, there is a new module in the work that uses the new geoip database format/API.

I already got some code and I asked the developer to make a github pull request. It should show up soon.

Cheers,
Daniel

On 27/01/15 10:18, Jöran Vinzens wrote:
Hi All,

i'm trying to get GEO IP Location for an IPv6 Setup.
We downloaded the GeoLiteCityv6.dat from maxmind and referred to it in modparams of geoip.

If i now place a call from an V6 User and do something like:

if(geoip_match("$si", "src")) {
                xlog("L_NOTICE", "Call comes from IP '$si' ($gip(src=>cc)) CID=$ci F=$fU URI=$ru\n");
                append_hf("X-GeoIP: $gip(src=>cc)\r\n");
}

it will not match for any reason

if i xlog the src IP it look like: "Src IP = 2A01:abc:321:123:0:0:0:2" so it should match to the GEO IP Database.

In CSV version of geo IP database there is an entry for my IP Address.

Since the Module is not that verbose, i cannot tell whether the entry exists or not. Just the result in my "if" is False.

Has anybody experience with GEOIP and IPv6?

thanks

Best regards,
Jöran


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda