|
@@ -14,7 +14,7 @@ Henning Westerholt
|
|
Copyright © 2009 1&1 Internet AG
|
|
Copyright © 2009 1&1 Internet AG
|
|
Revision History
|
|
Revision History
|
|
Revision $Revision: 4863 $ $Date: 2008-09-05 13:11:33 +0200 (Fri, 05
|
|
Revision $Revision: 4863 $ $Date: 2008-09-05 13:11:33 +0200 (Fri, 05
|
|
- Sep 2008) $
|
|
|
|
|
|
+ Sep 2008) $
|
|
__________________________________________________________________
|
|
__________________________________________________________________
|
|
|
|
|
|
Table of Contents
|
|
Table of Contents
|
|
@@ -78,6 +78,12 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
1. Overview
|
|
1. Overview
|
|
|
|
|
|
|
|
+ This is a module for fast number portability handling. The client is
|
|
|
|
+ this module and the server exists in the /utils/pdbt directory. The PDB
|
|
|
|
+ module and server supports load-balancing and aggressive timeouts.i
|
|
|
|
+ Normally it does not need more than a few ms to query the remote server
|
|
|
|
+ and return the reply to the configuration script.
|
|
|
|
+
|
|
The pdb module allows Kamailio to send queries to a list of servers and
|
|
The pdb module allows Kamailio to send queries to a list of servers and
|
|
store the answer in an AVP. The idea is to ask all servers in parallel
|
|
store the answer in an AVP. The idea is to ask all servers in parallel
|
|
and use the first answer, that comes back. A timeout for the query can
|
|
and use the first answer, that comes back. A timeout for the query can
|
|
@@ -99,7 +105,7 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
The following libraries or applications must be installed before
|
|
The following libraries or applications must be installed before
|
|
running Kamailio with this module loaded:
|
|
running Kamailio with this module loaded:
|
|
- * none
|
|
|
|
|
|
+ * The PDB server
|
|
|
|
|
|
3. Exported Parameters
|
|
3. Exported Parameters
|
|
|
|
|
|
@@ -132,7 +138,7 @@ modparam("pdb", "server", "localhost:10001,host.name:10001,192.168.1.7:10002")
|
|
|
|
|
|
4.1. pdb_query (string query, string dstavp)
|
|
4.1. pdb_query (string query, string dstavp)
|
|
|
|
|
|
-4.1. pdb_query (string query, string dstavp)
|
|
|
|
|
|
+4.1. pdb_query (string query, string dstavp)
|
|
|
|
|
|
Sends the query string to all configured servers and stores the answer
|
|
Sends the query string to all configured servers and stores the answer
|
|
in dstavp. If it takes more than the configured timeout, false is
|
|
in dstavp. If it takes more than the configured timeout, false is
|
|
@@ -156,7 +162,7 @@ cr_route("$avp(i:82)", "$rd", "$rU", "$rU", "call_id");
|
|
5.2. pdb_activate
|
|
5.2. pdb_activate
|
|
5.3. pdb_deactivate
|
|
5.3. pdb_deactivate
|
|
|
|
|
|
-5.1. pdb_status
|
|
|
|
|
|
+5.1. pdb_status
|
|
|
|
|
|
Prints the status of the module. This can either be "active" or
|
|
Prints the status of the module. This can either be "active" or
|
|
"deactivated".
|
|
"deactivated".
|
|
@@ -166,7 +172,7 @@ cr_route("$avp(i:82)", "$rd", "$rU", "$rU", "call_id");
|
|
kamctl fifo pdb_status
|
|
kamctl fifo pdb_status
|
|
...
|
|
...
|
|
|
|
|
|
-5.2. pdb_activate
|
|
|
|
|
|
+5.2. pdb_activate
|
|
|
|
|
|
Activates the module. This is the default after loading the module.
|
|
Activates the module. This is the default after loading the module.
|
|
|
|
|
|
@@ -175,7 +181,7 @@ kamctl fifo pdb_status
|
|
kamctl fifo pdb_activate
|
|
kamctl fifo pdb_activate
|
|
...
|
|
...
|
|
|
|
|
|
-5.3. pdb_deactivate
|
|
|
|
|
|
+5.3. pdb_deactivate
|
|
|
|
|
|
Deactivates the module. No more queries are performed until it is
|
|
Deactivates the module. No more queries are performed until it is
|
|
activated again. As long as the module is deactivated, the pdb_query
|
|
activated again. As long as the module is deactivated, the pdb_query
|