diff --git a/src/modules/pdt/doc/pdt.cfg b/src/modules/pdt/doc/pdt.cfg
index 1b2fcb66c79..13ae1f5ec5f 100644
--- a/src/modules/pdt/doc/pdt.cfg
+++ b/src/modules/pdt/doc/pdt.cfg
@@ -19,34 +19,25 @@
# ------------------ module loading ----------------------------------
- # Uncomment this if you want to use SQL database
- loadmodule "modules/mysql/mysql.so"
-
- loadmodule "modules/sl/sl.so"
- loadmodule "modules/tm/tm.so"
- loadmodule "modules/rr/rr.so"
- loadmodule "modules/maxfwd/maxfwd.so"
- loadmodule "modules/usrloc/usrloc.so"
- loadmodule "modules/registrar/registrar.so"
- loadmodule "modules/pdt/pdt.so"
- loadmodule "modules/xlog/xlog.so"
- loadmodule "modules/mi_fifo/mi_fifo.so"
-
- # Uncomment this if you want digest authentication
- # mysql.so must be loaded !
- #loadmodule "/usr/lib/ser/modules/auth.so"
+ loadmodule "db_mysql.so"
+
+ loadmodule "sl.so"
+ loadmodule "tm.so"
+ loadmodule "rr.so"
+ loadmodule "maxfwd.so"
+ loadmodule "usrloc.so"
+ loadmodule "registrar.so"
+ loadmodule "pdt.so"
+ loadmodule "xlog.so"
+ loadmodule "jsonrpcs.so"
# ----------------- setting module-specific parameters ---------------
- # -- mi_fifo params --
-
- modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
-
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
- # Uncomment this if you want to use SQL database
+ # Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
#modparam("usrloc", "db_mode", 2)
@@ -56,26 +47,25 @@
#modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
#modparam("auth", "calculate_ha1", yes)
#
- # If you set "calculate_ha1" parameter to yes (which true in this config),
+ # If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
#modparam("auth", "password_column", "password")
- modparam("pdt", "db_url", "mysql://ramona@localhost/pdt")
+ modparam("pdt", "db_url", "mysql://kamailio:xyz@localhost/pdt")
modparam("pdt", "db_table", "pd_multidomain")
modparam("pdt", "prefix", "2")
modparam("pdt", "hsize_2pow", 2)
-
+
# ------------------------- request routing logic -------------------
# main routing logic
-route{
-
+request_route {
xlog("I: r-uri: <$ru> from-uri:<$fu>\n");
- prefix2domain();
- xlog("II: r-uri: <$ru> from-uri:<$fu>\n");
+ prefix2domain();
+ xlog("II: r-uri: <$ru> from-uri:<$fu>\n");
}
diff --git a/src/modules/pdt/doc/pdt_admin.xml b/src/modules/pdt/doc/pdt_admin.xml
index 5f5ed8eba2f..e504d392910 100644
--- a/src/modules/pdt/doc/pdt_admin.xml
+++ b/src/modules/pdt/doc/pdt_admin.xml
@@ -46,9 +46,9 @@ entry in database:
domain[123]=alpha.org
domain[124]=beta.org
domain[125]=gamma.org
-
+
The RURI will be updated in the following way"
-sip:12391001@mydomain.com => sip:91001@alpha.org
+sip:12391001@mydomain.com => sip:91001@alpha.org
@@ -63,14 +63,14 @@ sip:12391001@mydomain.com => sip:91001@alpha.org
A sample config file is located in './doc/'.
-
+
MySQL script to create the database needed by
PDT is located in '../../scripts/mysql/pdt-create.sql'
- The database is loaded by &kamailio; only at start up time and
+ The database is loaded by &kamailio; only at start up time and
only cache is used to lookup domains. Check the MI Functions for
adding/deleting prefix-domain pairs or reloading from database
at runtime.
@@ -304,7 +304,7 @@ modparam("pdt", "check_domain", 0)
-
+
Functions
@@ -335,18 +335,18 @@ modparam("pdt", "check_domain", 0)
the prefix from user part. The possible values are:
-
+
0: the prefix is removed along with the leading prefix.
-
-
- 1: only the leading prefix is removed.
-
+
+
+ 1: only the leading prefix is removed.
+
2: the user part of the URI is not changed.
-
+
$PV : any PV holding one of the above values.
-
+
The multidomain_mode
parameter specifies the kind of multidomain
@@ -355,11 +355,11 @@ modparam("pdt", "check_domain", 0)
0 : Translation of &uri; regardless of source domain.
-
+
1 : Translation of &uri; using as source domain the domain
in From-URI.
-
+
2 : Translation of &uri; using as source domain the domain
in From-URI. In case there is no entry for the required sdomain,
@@ -367,8 +367,8 @@ modparam("pdt", "check_domain", 0)
$PV : any PV holding one of the above values.
-
-
+
+
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
@@ -388,8 +388,8 @@ prefix2domain("$var(a)", "2");
prefix2domain(rewrite_mode)
- The same as prefix2domain(rewrite_mode, "0"), that is without
- multidomain support, translation of &uri; being done regardless of
+ The same as prefix2domain(rewrite_mode, "0"), that is without
+ multidomain support, translation of &uri; being done regardless of
the source domain.
@@ -398,7 +398,7 @@ prefix2domain("2");
...
-
+
prefix2domain()
@@ -410,7 +410,7 @@ prefix2domain();
...
-
+
pd_translate(sdomain, rewrite_mode)
@@ -438,7 +438,7 @@ prefix2domain();
0: the prefix is removed along with the leading prefix.
- 1: only the leading prefix is removed.
+ 1: only the leading prefix is removed.
2: the user part of the URI is not changed.
@@ -548,13 +548,5 @@ pd_translate("*", "$var(a)");
-
-
- Installation and Running
-
- Example shell scripts for MI FIFO commands are placed in './doc/'
- (pdt_fifo_add.sh, pdt_fifo_delete.sh, pdt_fifo_list.sh).
-
-