[Serusers] Replacing URI
Andrei Pelinescu-Onciul
pelinescu-onciul at fokus.fraunhofer.de
Sun Jun 27 11:35:53 CEST 2004
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