[Kamailio-Users] problem with : arithmetic_operations

BERGANZ François francois at acropolistelecom.net
Thu Mar 5 11:25:39 CET 2009


Hello,

I need to do arithmetic operations.

I could do some test with having looks at :
http://kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#arithmetic_operati
ons

 

Simple opérations like $var(a)=1+1 works.

But, when we have :

 

            $var(n)=0;

            while ($var(j)<$dbr(nb_max=>rows)){

              $var(n) = $var(n) + $dbr(nb_max=>[0,$var(j)]);

             xlog("L_NOTICE", "log5 $var(n) + $dbr(nb_max=>[0,$var(j)])
\n"); ##à give us “log5  0+10

 

where is the problem?

Thank you

 

 

Cordialement,

BERGANZ François

 

P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20090305/78047c9f/attachment.htm 


More information about the Users mailing list