Elena-Ramona
Modroiu
Voice-System

    		    ramona@voice-system.ro

2003
FhG FOKUS
$Revision: 1.3 $
$Date: 2005/08/24 22:26:19 $

# PDT module

## Overview

This module translates a numerical prefix into a domain and updates accordingly the request URI.

The module looks up at the Request-URI part of a message and if the user part begins with an established prefix it will update the URI. Updating the uri consists of: remove the prefix from the user part of the uri and keep the rest as the user part of the new uri. The host and port are changed with the domain matched for the leading prefix.

<prefix><userid><:password>@<mydomain.com> ...

and the result will be:

<userid><:password>@<domain[:port]>...

### prefix-domain translation

    prefix=123
    domain[123]=alpha.org

    sip:12391001@mydomain.com  => sip:91001@alpha.org

The prefix could be prefixed by other digits. These digits will not be used to look up the domain (the classic example, 00 used for international calls, then follows the country prefix). For more information on this, see 'prefix' parameter.

- A sample config file and the MySQL script to create the database needed by PDT are located in './doc/'.

- Sample shell scripts to manage prefix-domain pairs are also located in './doc/' (pdt_fifo_add.sh, pdt_fifo_delete.sh, pdt_fifo_list.sh).

## Dependencies

### SER Modules

The following modules must be loaded before this module:

- A SER database module (e.g., mysql, dbtext).