Hi There. I'm using subst_uri() to make some URI transformation and is working great:
subst_uri('/^sip:([0-9]+)@(.*)$/sip:011\1@\2/i');
Now I'm trying to insert an AVP value in the substitution but is not working:
avp_push("011","var"); subst_uri('/^sip:([0-9]+)@(.*)$/sip:$var\1@\2/i');
When I do this the replaced URI has the string $var instead of the value of it (011). Can I do something like this in subst_uri()? Looking at the Textops User's guide I can see that there is some kind of parameter association for subst_uri().
<<subst_uri().txt>> Regards. MaV.-