Hi all,
############# pdt table in DB ##################
mysql> select * from pdt;
+----+----------------------+----------+--------------+
| id | sdomain | prefix | domain |
+----+----------------------+----------+--------------+
| 1 |
bbb.com | 444 |
bbb.com |
+----+----------------------+----------+--------------+
############## parts of my openser.cfg ##################################3
loadmodule "pdt.so"
modparam("pdt", "db_url", "mysql://openser:openserrw@localhost/openser")
modparam("pdt", "db_table", "pdt")
modparam("pdt", "domain_column", "sdomain")
modparam("pdt", "prefix_column", "prefix")
modparam("pdt", "prefix", "")
modparam("pdt", "hsize_2pow", 4)
modparam("pdt", "sync_time", 300)
modparam("pdt", "clean_time", 600)
route[0] {
........................(skip)
if (is_method("INVITE")) {
xlog("L_INFO", "Prefix To Domain I - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
prefix2domain("0","0");
xlog("L_INFO", "Prefix To Domain II - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
};
........................(skip)
}
#################### /var/log/message #######################################