[Serusers] rewriting the From URI

Bjorn Asmul bjorn at atlasvoice.com
Sat Jun 10 22:47:02 CEST 2006


Does anyone know the regular expression to replace the callerID name?
 
    from="Jane Doe" <sip:4445556666 at 10.0.1.1>
->
    from="John Doe" <sip:4445556666 at 10.0.1.1>
 
Obviously using an AVP with the subst-function.
( subst('/^(From|f):(.*)sip:............); )
 
Thanks,
Bjorn

________________________________

From: serusers-bounces at lists.iptel.org
[mailto:serusers-bounces at lists.iptel.org] On Behalf Of sip
Sent: Saturday, June 10, 2006 4:32 PM
To: Andy Thomas; serusers at lists.iptel.org
Cc: serusers-bounces at lists.iptel.org
Subject: Re: [Serusers] rewriting the From URI


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. 

N. 



On Sat, 10 Jun 2006 17:10:34 +0100, Andy Thomas wrote 
> Does anyone know how to rewrite the From: URI for an incoming call? 
> All the rewrite functions are for outgoing URI's - i.e. local users,
but I want to rewrite a URI that is incoming from the PSTN to one of
those users. 
>   
> 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 
>   
>   



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060610/2b722bb9/attachment.htm>


More information about the sr-users mailing list