Daniel-Constantin Mierla writes:
> I added pv_evalx() function in pv module which evaluates twice a string
> containing variables. No time to test it, so any feedback is
> appreciated. It will be also good to stress test it and check if there
> is a memory leak for pkg, as the result for first eva
Daniel-Constantin Mierla writes:
> I added pv_evalx() function in pv module which evaluates twice a string
> containing variables. No time to test it, so any feedback is
> appreciated. It will be also good to stress test it and check if there
> is a memory leak for pkg, as the result for first eva
I added pv_evalx() function in pv module which evaluates twice a string
containing variables. No time to test it, so any feedback is
appreciated. It will be also good to stress test it and check if there
is a memory leak for pkg, as the result for first evaluation needs to be
parsed again for other
Daniel-Constantin Mierla writes:
> Dialplan can evaluate variables, is it a special case you need to return
> variables and then evaluate after dp_translate() again?
I made a test rule:
match_exp subst_exp repl_exp
^\#11\#$ (empty)$fu
and dp_translate(id) on sip:#11#@test.tutpro.com pr
On 02/04/16 10:09, Juha Heinanen wrote:
> Alex Balashov writes:
>
>> Yes, either by separating the PV elements, e.g.
>>
>> $var(x) = $fU + "abc";
> Alex,
>
> I cannot do that, because the string that contains pvs is result of
> a dp_translate call.
Dialplan can evaluate variables, is it a specia
Was the conclusion that it is not currently possible to evaluate a
string value of a pseudo variable that contains pseudo variables?
If so, I'll add feature request, since that kind of capability would
greatly increase dynamic nature of Kamailio configuration.
-- Juha
___
Alex Balashov writes:
> Yes, either by separating the PV elements, e.g.
>
> $var(x) = $fU + "abc";
Alex,
I cannot do that, because the string that contains pvs is result of
a dp_translate call.
> ... or with the newer $_s() PV created for this purpose:
>
> $var(x) = $_s($fUabc);
No luck with
Juha,
Yes, either by separating the PV elements, e.g.
$var(x) = $fU + "abc";
... or with the newer $_s() PV created for this purpose:
$var(x) = $_s($fUabc);
--
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States
Tel: +1-800-250