[Users] Using AVPs in regular expressions

JF jfkavaka at gmail.com
Wed Mar 15 00:59:58 CET 2006


Hi,

Not possible yet, but there already a feature request in the tracker for this:

http://sourceforge.net/tracker/index.php?func=detail&aid=1443010&group_id=139143&atid=743023

JF

On 3/14/06, Papadopoulos Georgios <geop at altectelecoms.gr> wrote:
>
> 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\.)?(.*)/\1@\3/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)?(.*)/\1@\2/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
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list