<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hey All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I've been messing with this URI rewriting all day 
yesterday and today and I am still having some problems.&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am able to re-write the request URI okay, but I 
can't rewrite the To: and From:&nbsp;fields in&nbsp;the SIP packet.&nbsp; Is 
that possible, and if so, how do I do it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I've tried using the subst function in the textops 
module.&nbsp; It doesn't seem to be re-writing all fields though.&nbsp; It still 
seems to only affect the request URI and not the To: or From: fields.&nbsp; 
Maybe I am doing something wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have attached my latest ser.cfg file for your 
viewing pleasure.&nbsp; :)&nbsp; I am trying to keep all requests that are 
between our local registered&nbsp;locations stripped to area code and phone num, 
and all requests that are to be relayed to the PSTN gateway need to have a +1 
prefix added to them for e164 compatibility.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any help would be VERY much 
appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Darren Nay - <A 
href="mailto:dnay@libertyisp.com">dnay@libertyisp.com</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>