Skip to content

Commit

Permalink
geoip: updated the documentation with contc
Browse files Browse the repository at this point in the history
- added remark about geoip2 module for using the new GeoIP API
  • Loading branch information
miconda committed Mar 12, 2015
1 parent 4d1e4e8 commit 7a1fb3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions modules/geoip/README
Expand Up @@ -68,7 +68,9 @@ Chapter 1. Admin Guide
1. Overview

This module allows real-time queries against the Max Mind GeoIP
database to be performed from the config script.
database to be performed from the config script. It uses the old
version of API, still very common on OS distributions. For using the
new version of GeoIP API, see geoip2 module.

The Max Mind GeoIP database is a map of IP network address assignments
to geographical locales that can be useful -- though approximate -- in
Expand Down Expand Up @@ -160,6 +162,7 @@ if(geoip_match("$si", "src"))
+ regc - region
+ regn - region name
+ metro - metro code
+ contc - continent code

Exported pseudo-variables are documented at
http://www.kamailio.org/dokuwiki/.
http://www.kamailio.org/wiki/.
7 changes: 6 additions & 1 deletion modules/geoip/doc/geoip_admin.xml
Expand Up @@ -18,7 +18,9 @@
<title>Overview</title>
<para>
This module allows real-time queries against the Max Mind GeoIP
database to be performed from the config script.
database to be performed from the config script. It uses the old
version of API, still very common on OS distributions. For using
the new version of GeoIP API, see geoip2 module.
</para>
<para>
The Max Mind GeoIP database is a map of IP network address assignments
Expand Down Expand Up @@ -182,6 +184,9 @@ if(geoip_match("$si", "src"))
<listitem><para>
<emphasis>metro</emphasis> - metro code
</para></listitem>
<listitem><para>
<emphasis>contc</emphasis> - continent code
</para></listitem>
</itemizedlist>
</listitem>
</itemizedlist>
Expand Down

0 comments on commit 7a1fb3a

Please sign in to comment.