Hello,

Is it possible to use AVPs with the TEXTOPS subst_ functions in the re
part? 

For example, the following works, if I want to remove the prefix "sip."
from the domain.
subst_uri("/(.*)@(sip\.)?(.*)/[EMAIL PROTECTED]/i");

However if I put the prefix "sip." in AVP and try to use this in the re
part of the subst_uri argument, then it does not work.
avp_write("sip.", "s:tmp");
subst_uri("/(.*)@$avp(s:tmp)?(.*)/[EMAIL PROTECTED]/i");

thank you for any help

George

Disclaimer
The information in this e-mail and any attachments is confidential. It is 
intended solely for the attention and use of the named addressee(s). If you are 
not the intended recipient, or person responsible for delivering this 
information to the intended recipient, please notify the sender immediately. 
Unless you are the intended recipient or his/her representative you are not 
authorized to, and must not, read, copy, distribute, use or retain this message 
or any part of it. E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to