<div>Hi all,</div>
<div>&nbsp;</div>
<div>I try to rewrite <a href="mailto:444111@aaa.com">444111@aaa.com</a>&nbsp;to <a href="mailto:111@bbb.com">111@bbb.com</a> with&nbsp;pdt module.&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>############# pdt table in DB ##################</div>
<div>mysql&gt; select * from pdt;<br>+----+----------------------+----------+--------------+<br>| id | sdomain&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| prefix&nbsp;&nbsp; | domain&nbsp;&nbsp;&nbsp; |<br>+----+----------------------+----------+--------------+<br>|&nbsp;&nbsp;1 |&nbsp;<a href="http://bbb.com">
bbb.com</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| 444&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://bbb.com">bbb.com</a>&nbsp; |<br>+----+----------------------+----------+--------------+</div>
<div>&nbsp;</div>
<div>############## parts of my openser.cfg ##################################3</div>
<div>loadmodule &quot;pdt.so&quot;<br>modparam(&quot;pdt&quot;, &quot;db_url&quot;, &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>modparam(&quot;pdt&quot;, &quot;db_table&quot;, &quot;pdt&quot;)<br>modparam(&quot;pdt&quot;, &quot;domain_column&quot;, &quot;sdomain&quot;)
<br>modparam(&quot;pdt&quot;, &quot;prefix_column&quot;, &quot;prefix&quot;)<br>modparam(&quot;pdt&quot;, &quot;prefix&quot;, &quot;&quot;)<br>modparam(&quot;pdt&quot;, &quot;hsize_2pow&quot;, 4)<br>modparam(&quot;pdt&quot;, &quot;sync_time&quot;, 300)
<br>modparam(&quot;pdt&quot;, &quot;clean_time&quot;, 600)</div>
<div>&nbsp;</div>
<div>route[0] {</div>
<div>........................(skip)</div>
<div>&nbsp;if (is_method(&quot;INVITE&quot;)) {<br>&nbsp;&nbsp;xlog(&quot;L_INFO&quot;, &quot;Prefix To Domain I - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n&quot;);<br>&nbsp;&nbsp;prefix2domain(&quot;0&quot;,&quot;0&quot;);<br>&nbsp;&nbsp;xlog(&quot;L_INFO&quot;, &quot;Prefix To Domain II - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n&quot;);
<br>&nbsp; };<br>........................(skip)</div>
<div>}</div>
<div>&nbsp;</div>
<div>#################### /var/log/message #######################################</div>
<div>&nbsp;</div>
<div>May 23 15:55:12 localhost openser[22172]: New request - M=INVITE RURI=<a href="mailto:sip:444111@aaa.com">sip:444111@aaa.com</a> F=<a href="mailto:sip:222@aaa.com">sip:222@aaa.com</a> T=<a href="mailto:sip:444111@aaa.com">
sip:444111@aaa.com</a> IP=60.244.xxx.xxx <a href="mailto:ID=88BEB1DB-B447-4DAF-A3D6-212DBA3EC628@10.6.1.185">ID=88BEB1DB-B447-4DAF-A3D6-212DBA3EC628@10.6.1.185</a> <br>May 23 15:55:12 localhost openser[22172]: Prefix To Domain I - M=INVITE RURI=
<a href="mailto:sip:444111@aaa.com">sip:444111@aaa.com</a> F=<a href="mailto:sip:222@aaa.com">sip:222@aaa.com</a> T=<a href="mailto:sip:444111@aaa.com">sip:444111@aaa.com</a> IP=60.244.xxx.xxx <a href="mailto:ID=88BEB1DB-B447-4DAF-A3D6-212DBA3EC628@10.6.1.185">
ID=88BEB1DB-B447-4DAF-A3D6-212DBA3EC628@10.6.1.185</a> <br>May 23 15:55:12 localhost openser[22172]: PDT:prefix2domain: no prefix found in [444111] <br>May 23 15:55:12 localhost openser[22172]: Prefix To Domain II - M=INVITE RURI=
<a href="mailto:sip:444111@aaa.com">sip:444111@aaa.com</a> F=<a href="mailto:sip:222@aaa.com">sip:222@aaa.com</a> T=<a href="mailto:sip:444111@aaa.com">sip:444111@aaa.com</a> IP=60.244.xxx.xxx <a href="mailto:ID=88BEB1DB-B447-4DAF-A3D6-212DBA3EC628@10.6.1.185">
ID=88BEB1DB-B447-4DAF-A3D6-212DBA3EC628@10.6.1.185</a> <br>-- <br><br>Best Regards<br>Charles </div>