
Prefix 2 Domain Tool (pdt)
------------------------------------


Description 
---------------

This tool provisions (add, delete, edit) the prefix-to-domain mappings used by the PDT module 
(translates a local domain into a foreign domain based on a numerical prefix).

You can find  the pdt module documentation here : 
(http://www.opensips.org/html/docs/modules/1.5.x/pdt.html)


Configuration
-------------------



* Database layer configuration file : 

opensips-cp/config/tools/pdt/db.inc.php

Mysql connection data is set through this file.

Attributes  set in this file : 

+database host 
+database port
+database username 
+database password
+database name

* Local configuration file :  

opensips-cp/config/tools/pdt/local.inc.php

Attributes set in this file:

+ database table names 
+ the $talk_to_this_assoc_id variable - must point to the type of machines which are OpenSIPS servers (to 
trigger the MI command $talk_to_this_assoc_id = 1 ; ).



Usage and Features
--------------------------


You can list, add, edit and delete mappings between prefixes and domains. 
The commands update the database and the cache of the SIP Servers automatically. 
There is no explicit reload mechanism.
