Explorar o código

geoip: updated the documentation with contc

- added remark about geoip2 module for using the new GeoIP API
Daniel-Constantin Mierla %!s(int64=10) %!d(string=hai) anos
pai
achega
7a1fb3aec9
Modificáronse 2 ficheiros con 11 adicións e 3 borrados
  1. 5 2
      modules/geoip/README
  2. 6 1
      modules/geoip/doc/geoip_admin.xml

+ 5 - 2
modules/geoip/README

@@ -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
@@ -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/.

+ 6 - 1
modules/geoip/doc/geoip_admin.xml

@@ -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 
@@ -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>