[Serusers] Redirect Server.
Andrei Pelinescu-Onciul
pelinescu-onciul at fokus.fraunhofer.de
Wed Jan 7 20:42:54 CET 2004
On Jan 07, 2004 at 22:50, Shirley Toh <shirleytoh at jpcomputers.com.sg> wrote:
> Hi,
>
> Can anyone help? I want to get from the URI the user value and insert into
> the <rewrite("sip:user at domain")> command in the ser.cfg. Please
> help...Thanks.
If you want to rewrite only the domain or domain and port and keep the
user, then use rewritehostport("host:port") or rewritehost("host").
You could also use subst_uri from the textops module to run a reg.exp.
substition on the uri (e.g.: /sip:([^@]+)@.*/sip:test_\1 at domain/).
Andrei
More information about the sr-users
mailing list