<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    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.<br>
    <br>
    I already got some code and I asked the developer to make a github
    pull request. It should show up soon.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 27/01/15 10:18, Jöran Vinzens wrote:<br>
    </div>
    <blockquote
cite="mid:CAC3=B=ux7EOOBYPhaRb1M-nARFf5H0nhWhFi1NfJGUswcboaCQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi All,
        <div><br>
        </div>
        <div>i'm trying to get GEO IP Location for an IPv6 Setup.</div>
        <div>We downloaded the GeoLiteCityv6.dat from maxmind and
          referred to it in modparams of geoip.</div>
        <div><br>
        </div>
        <div>If i now place a call from an V6 User and do something
          like:</div>
        <div><br>
        </div>
        <div>
          <div>if(geoip_match("$si", "src")) {</div>
          <div>                xlog("L_NOTICE", "Call comes from IP
            '$si' ($gip(src=>cc)) CID=$ci F=$fU URI=$ru\n");</div>
          <div>                append_hf("X-GeoIP:
            $gip(src=>cc)\r\n");</div>
          <div>}</div>
          <div><br>
          </div>
          <div>it will not match for any reason</div>
          <div><br>
          </div>
          <div>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.</div>
          <div><br>
          </div>
          <div>In CSV version of geo IP database there is an entry for
            my IP Address.</div>
          <div><br>
          </div>
          <div>Since the Module is not that verbose, i cannot tell
            whether the entry exists or not. Just the result in my "if"
            is False.</div>
          <div><br>
          </div>
          <div>Has anybody experience with GEOIP and IPv6?</div>
          <div><br>
          </div>
          <div>thanks</div>
          <div><br>
          </div>
          <div>Best regards,</div>
          <div>Jöran</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>