Perfect. This is exactly what I needed. Thanks!
Darren Nay
----- Original Message -----
From: "Andrei Pelinescu-Onciul" <pelinescu-onciul(a)fokus.fraunhofer.de>
To: "Darren Nay" <dnay(a)libertyisp.com>
Cc: <serusers(a)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(a)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