[Serusers] Replacing URI
Mark Wehberg
mark.wehberg at clearviewcatv.net
Mon Jun 28 03:38:01 CEST 2004
Andrei,
Thanks for your response.
I tried to use subst_uri and the function was not found even though I
loaded text tops. Which version of SER was this introduced in?
-Mark
-----Original Message-----
From: Andrei Pelinescu-Onciul
[mailto:pelinescu-onciul at fokus.fraunhofer.de]
Sent: Sunday, June 27, 2004 5:36 AM
To: Mark Wehberg
Cc: serusers at lists.iptel.org
Subject: Re: [Serusers] Replacing URI
On Jun 25, 2004 at 10:26, Mark Wehberg <mark.wehberg at clearviewcatv.net>
wrote:
> Hello Everyone,
>
>
>
> I am trying to change the URI within the ser.cfg using the replace
> command. Has anyone done this before? What I need to do is strip
some
> of the info after the "@" and forward the message back out. So, I
can't
> necessarily use the rewritehostport (or rewritehost, rewriteport)
> commands. Ay help would be greatly appreciated..
replace does not work on uris (it will ignore the first line).
To change the uri use subst_uri (textops modules).
Example:
subst_uri('/(.*)@foo.bar/\1_foo at bar.com/i');
(where the last i means case insensitive)
Andrei
More information about the sr-users
mailing list