Hello,

try with:

$var(x) = "33";

subst_hf("P-Asserted-Identity", "/(.*\")0(.*)(.*\")/\1$var(x)\2\3/", "a");

Also, open an issue on the tracker to investigate it properly and eventually come up with proper solution for it.

Cheers,
Daniel

On 27/04/15 16:01, Igor Potjevlesch wrote:

Hello,

 

I can't figure out how to handle this case:

subst_hf("P-Asserted-Identity", "/(.*\")0(.*)(.*\")/\133\2\3/", "a");

 

I'd like to substitute with \1 followed with 33 but it looks like the substitution tries to be done with \133. The capture group \133 doesn't exist.

 

I tried with the following syntax: /${1}33 but ${1} is interpreted as a string.

 

Someone can help me? Thank you.

Regards,

 

Igor.



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com