<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
You need a database for your code/domain pairs. File doc/pdt.sql tells
you how the database should look like. Please note that the prefix
associated with a domain is called code, to avoid confusions with the
prefix parameter of the module, which is a prefix that tells what RURIs
will be rewritten.&nbsp; RURI: &nbsp;&nbsp;
[&lt;prefix&gt;]&lt;code&gt;&lt;userid&gt;&lt;:password&gt;@&lt;mydomain.com&gt;
...<br>
<br>
Then you have to set the module parameters. The terminator parameter
specifies the digit that ends the code (to know when to stop searches )
and can be left unset, implicit is 0. Note that in the database the
code are stored without the ending digit, but in the RURI must appear
with ending digit. If you want that the RURI rewrite occurs when the
RURI starts with "0" you have to set the prefix parameter to "0".<br>
<br>
Example:<br>
<br>
modparam("pdt", "terminator", 0)<br>
modparam("pdt", "prefix", "0")<br>
<br>
One entry in the database: code=1, domain=otherdomain<br>
<br>
URI:010xxxxxx@mydomain<br>
<br>
New URI after applying prefix2domain is:&nbsp; xxxxxx@otherdomain<br>
<br>
<br>
Greetings,<br>
Ramona<br>
<br>
<br>
<br>
<br>
Shady wrote:<br>
<blockquote type="cite"
 cite="mid000a01c41500$d94cf860$0503aed5@BGCom.net">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2800.1400" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">I have several hardware SIP phones
connected to my SER. I want to call external<br>
URIs and that's whay, as I guess, I showd use the pdt module to handle
the<br>
prefixes and resolve them to domains. I want to set the SER for
example, when<br>
the called number is 01xxxxxx to rewrite the URI from <a
 href="mailto:01xxxxxx@mydomain">01xxxxxx@mydomain</a> to<br>
  <a href="mailto:xxxxxx@otherdomain">xxxxxx@otherdomain</a>. In the
pdt's documentation I can not find detailed<br>
instructions how to do that. Please help :)<br>
Thanks<br>
  </font></div>
  <pre wrap="">
<hr width="90%" size="4">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  </pre>
</blockquote>
</body>
</html>