[Serusers] AVP on subst_uri()

Miguel Angel Villar mavilla at redvoiss.net
Thu Jun 23 19:37:37 CEST 2005


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.-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: subst_uri().txt
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050623/975d6d2c/attachment.txt>


More information about the sr-users mailing list