[Kamailio-Users] problem with : arithmetic_operations

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


I forgot :

Kamailio return :

 

ERROR:core:eval_elem: invalid numeric operands

ERROR:core:do_assign: no value in right expression

ERROR:core:do_assign: error at line: 188

 

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

 

 

 

Cordialement,

BERGANZ François

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

 

De : users-bounces at lists.kamailio.org
[mailto:users-bounces at lists.kamailio.org] De la part de BERGANZ François
Envoyé : jeudi 5 mars 2009 11:26
À : users at lists.kamailio.org
Objet : [Kamailio-Users] problem with : arithmetic_operations

 

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/7a60606e/attachment.htm 


More information about the Users mailing list