[SR-Users] Operations With Variables $var- does it need to load a module

Omar omar at 321communications.com
Wed Jun 15 15:14:06 CEST 2011


BEFORE VAR A#################################################################===__IN FAILURE_ROUTE  :::======>  RURI=+1404345 

VAR A                #################################################################===__IN FAILURE_ROUTE  :::======>  rU = +1404345 VAR A = 8  VAR B = 0 
AFTER VAR B #################################################################===__IN FAILURE_ROUTE  :::======>  rU = +1404345 VAR A = 8  VAR B = 8 :: :: 



i changed the tU to rU, i have the same result, just to make a test.

is really interesting.

O

On Jun 15, 2011, at 8:24 AM, Daniel-Constantin Mierla wrote:

> 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