<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2>Does anyone know the regular expression to replace the 
callerID name?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2>&nbsp;&nbsp;&nbsp; from="Jane Doe" 
&lt;sip:4445556666@10.0.1.1&gt;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2>-&gt;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><SPAN 
class=849303320-10062006><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp; from="John Doe" 
&lt;sip:4445556666@10.0.1.1&gt;</FONT></SPAN></DIV>
<DIV dir=ltr align=left>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2>Obviously using an AVP with the 
subst-function.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2>( </FONT><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>subst('/^(From|f):(.*)sip:............); <SPAN 
class=849303320-10062006>)</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006></SPAN><SPAN 
class=849303320-10062006><FONT face=Arial color=#0000ff 
size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=849303320-10062006><FONT face=Arial 
color=#0000ff size=2>Bjorn</FONT></SPAN></DIV></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> serusers-bounces@lists.iptel.org 
[mailto:serusers-bounces@lists.iptel.org] <B>On Behalf Of 
</B>sip<BR><B>Sent:</B> Saturday, June 10, 2006 4:32 PM<BR><B>To:</B> Andy 
Thomas; serusers@lists.iptel.org<BR><B>Cc:</B> 
serusers-bounces@lists.iptel.org<BR><B>Subject:</B> Re: [Serusers] rewriting the 
>From URI<BR></FONT><BR></DIV>
<DIV></DIV><FONT size=2>You still wouldn't really want to rewrite the from 
URI.... there's no need to. Just rewrite the RURI on its way out to the PSTN. 
<BR><BR>N. <BR><B><BR><BR><BR>On Sat, 10 Jun 2006 17:10:34 +0100, Andy Thomas 
wrote</B> <BR>&gt; <FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: arial">Does anyone know how to rewrite the 
From: URI for an incoming call?<O:P /></SPAN></FONT> <BR>&gt; <FONT face=Arial 
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: arial">All the rewrite 
functions are for outgoing URI&#8217;s &#8211; i.e. local users, but I want to rewrite a URI 
that is incoming from the PSTN to one of those users.<O:P /></SPAN></FONT> 
<BR>&gt; <FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: arial"><O:P>&nbsp;</O:P></SPAN></FONT> 
<BR>&gt; <FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: arial">This is so I can add a prefix to it, 
so that if you dial a missed call, the prefix is automatically there so it will 
go out to the PSTN<O:P /></SPAN></FONT> <BR>&gt; <FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: arial"><O:P>&nbsp;</O:P></SPAN></FONT> 
<BR>&gt; <FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: arial"><O:P>&nbsp;</O:P></SPAN></FONT> 
<BR><BR><BR></FONT></BODY></HTML>