On Friday 27 April 2012, Jasmin Schnatterbeck wrote:
currently I am looking for an option to evaluate a
string with
pseudo-variables at script runtime.
For example when reading the following string (in script) from database
"from is $fu and to-uri-user is $(tu{uri.user}) and cl is $cl"
into a pseudo-variable $var(tmp)
I want kamailio to parse the _content_ of $var(tmp): replace the
"inside"-pvs with their values and perform transformations.
Is there a function exported to script, that could do that?
Hi Jasmin,
maybe this is what you're looking for (avp_printf):
http://kamailio.org/docs/modules/3.2.x/modules/avpops.html#id2496766
Viele Grüße/ best regards,
Henning Westerholt