[sr-dev] evaluating expression stored in a variable

Juha Heinanen jh at tutpro.com
Wed Oct 27 13:20:14 CEST 2010


i think i asked this once before, but i'm not sure what the conclusion
was:

it is somehow currently possible to evaluate an runtime an expression
stored in variable, for example,

$var(exp) = ";param=$avp(value)";
append_hf("P-Foo: " + $var(uri) + eval($var(exp)) + "\r\n");

in practice, the expression to be evaluated could come from database,
htable, etc., which would in my opinion greatly enhance flexibility of
sr.

if that cannot be done in sr 3.1, would it be difficult to implement it
for the next version?

-- juha



More information about the sr-dev mailing list