#
# $Id$
#
# simple quick-start config script for pdt
#

 # ----------- global configuration parameters ------------------------

 debug=9          # debug level (cmd line: -dddddddddd)
 fork=no
 log_stderror=yes# (cmd line: -E)
 check_via=no    # (cmd. line: -v)
 dns=no           # (cmd. line: -r)
 rev_dns=no      # (cmd. line: -R)
 port=5060
 children=4

 listen=127.0.0.1

 # ------------------ module loading ----------------------------------

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

 # -- usrloc params --

 #modparam("usrloc", "db_mode",   0)

 # Uncomment this if you want to use SQL database
 # for persistent storage and comment the previous line
 #modparam("usrloc", "db_mode", 2)

 # -- auth params --
 # Uncomment if you are using auth module
 #
 #modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
 #modparam("auth", "calculate_ha1", yes)
 #
 # 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://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

request_route {

	xlog("I: r-uri: <$ru> from-uri:<$fu>\n");
	prefix2domain();
	xlog("II: r-uri: <$ru> from-uri:<$fu>\n");


}


