Hi Bogdan, as you mentioned "\u" is a marker for current RURI but, are
there markers for the To, From and Contact headers?
Regards,
Dioris
-----Mensaje original-----
De: users-bounces(a)openser.org [mailto:users-bounces@openser.org] En
nombre de Bogdan-Andrei Iancu
Enviado el: 28 de Junio de 2006 1:25 p.m.
Para: Leonid Fainshtein
CC: users(a)openser.org
Asunto: Re: [Users] Using subst() of Textops module
Hi Leonid,
that wasn't a mistake - "t" si short format to "To".
"\u" is a marker
for current RURI - is not a pseudo variable, it's something strictly
related to subst ops. Unfortunately this is not highly documented.
regards,
bogdan
Leonid Fainshtein wrote:
Hi,
In the textops module doc
(
http://openser.org/docs/modules/1.0.x/textops.html#AEN124) there is an
example that demonstrates how to replace URI in the header "To" with
the
message URI:
# replace the uri in to: with the message uri (just an example) if (
subst('/^To:(.*)sip:[^@]*@[a-zA-Z0-9.]+(.*)$/t:\1\u\2/ig') ) {};
After I've fixed a small mistake (instead of /t: I put /To:) it worked.
But I don't understand how does it work. It looks like "u" is
substituted by URI from R-URI but I didn't find such core variable.
Could somebody explain me?
Thank you in advance,
Leonid Fainshtein
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users