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@fokus.fraunhofer.de]
Sent: Sunday, June 27, 2004 5:36 AM
To: Mark Wehberg
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Replacing URI
On Jun 25, 2004 at 10:26, Mark Wehberg <mark.wehberg(a)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@bar.com/i');
(where the last i means case insensitive)
Andrei