[SR-Users] Operations With Variables $var- does it need to load a module
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jun 15 14:24:10 CEST 2011
Hello,
On 6/13/11 7:05 AM, Omar wrote:
> In Kamailio 1.4.3
>
> I have the following scenario:
>
> $var(a) = 0
> $var(b) = 0
> $var(a) = $(tU{s.len});
> $var(b) = $var(a) - 5;
>
> xlog(" $var(b)");
>
> the result $var(b) is always the same as $var(a)
>
> should i check if some specific module is loaded?
> the debugs does not show any error, and $var(a) and $var(b) are unique.
>
> Variables are working, but not the operations with the variables.
there is no module needed to be loaded for that version.
Can you add xlog() lines to print the values of variables for each step,
including the $tU s.len transformation.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda
More information about the sr-users
mailing list