<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText76155 dir=ltr>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>Hi, I have found this, looks like it could work, I will probably test it only with the partner having this specific requirement for now.</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>subst('/^To:.*&lt;sip:[^@]*@[a-zA-Z0-9.]+.*&gt;(.*)$/To: "$rU" &lt;sip:$rU@$rd&gt;\1/');</FONT></DIV></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> users-bounces@lists.opensips.org on behalf of Julien Chavanton<BR><B>Sent:</B> Mon 11/01/2010 5:08 PM<BR><B>To:</B> users@lists.opensips.org<BR><B>Subject:</B> [OpenSIPS-Users] To header : modification when using Dynamic Routing<BR></FONT><BR></DIV>
<DIV dir=ltr>
<DIV><FONT face=Verdana color=#000000 size=2>Hi, when using Dynamic Routing, I would like to modify the SIP "To header" field to be like the target URI.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>I know the SIP RFC state that a SIP proxy should not alter the "To header" field, but this is not a problem in this case.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>The "To header" field contains prefix that have no meaning for the destination, we want to modify it to look like a normal ITU internationnal dialing plan.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>What is the recommend way of doing it ?</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>TEXTOPS </FONT></DIV></DIV></BODY></HTML>