I just did this last night using subst. Can you show us what you used? Chances are your regex is off..<div><br><br><div class="gmail_quote">On Tue, Nov 11, 2008 at 11:51 AM, Robert R <span dir="ltr">&lt;<a href="mailto:rob1485@gmail.com">rob1485@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br><br>What module/function in opensip can be used to modify TO field in the SIP message header?<br><br>I&#39;ve tried both &quot;replace&quot; and &quot;subst&quot; from TEXTOPS module. Both functions create a new TO field. They don&#39;t overwrite the existing field.<br>

<br>Regards,<br><font color="#888888">RR<br>
</font><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>