[Kamailio-Users] problem with : arithmetic_operations

Daniel-Constantin Mierla miconda at gmail.com
Thu Mar 5 19:54:29 CET 2009


Hello,

to explain what happened...

You got a run time error and indeed the problems was trying to do 
arithmetic operations with non-integers.

An invalid operation (or syntax error in expressions) is detected at 
start time and kamailio (openser) won't start.

Cheers,
Daniel


On 03/05/2009 01:01 PM, BERGANZ François wrote:
>
> I found, my result from my db wasn’t an INTEGER !
>
> 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_operations
>
> 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.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Users mailing list