[Serusers] Rewriting URI's

Darren Nay dnay at libertyisp.com
Tue Feb 10 18:17:24 CET 2004


Perfect.   This is exactly what I needed.  Thanks!

Darren Nay

----- Original Message ----- 
From: "Andrei Pelinescu-Onciul" <pelinescu-onciul at fokus.fraunhofer.de>
To: "Darren Nay" <dnay at libertyisp.com>
Cc: <serusers at lists.iptel.org>
Sent: Tuesday, February 10, 2004 11:45 AM
Subject: Re: [Serusers] Rewriting URI's


> On Feb 10, 2004 at 10:58, Darren Nay <dnay at libertyisp.com> wrote:
> > Hey Guys,
> >
> > Can anyone give me a quick answer on this?
> >
> > I need to rewrite the incoming and outgoing URI's in SER.
> >
> > For example.  On incoming destination URI's, I need to be able to strip
all 1's off of the first of the destination phone number.  How would I do
this?
>
>  If you need to strip all the 1s (e.g. 111123 -> 23) try subst_uri
>  (from the texstops module).
>
> E.g.:
>    subst_uri('/^sip:1+(.*)$/sip:\1/i');
>
> See textops README for more details.
>
>
> Andrei
>
>





More information about the sr-users mailing list