Ok, now I understand. So the answer is, that you can't do that with script variables (http://www.kamailio.net/dokuwiki/doku.php/pseudovariables:1.4.x#script_varia...) there it says:
Note: A script variable persists over the OpenSER process in which it was initialized, so be sure of giving it a new value before reading it or you'll get the value asigned in any other previous message processed by the same OpenSER process (pid).
----- Mensaje original ----- De: Ricardo Martinez rmartinez@redvoiss.net Fecha: Jueves, Noviembre 13, 2008 2:07 pm Asunto: Re: [Kamailio-Users] Problems with counter $var(i)
Hi David. Yes, that exactly what i want, set the variable to 0 in the main route,so every call that arrive it start the process again... The problem is that in the failure_route the variable keeps the value..and is not resetting to 0
Ricardo.-
-----Mensaje original----- De: ingdavidcespedes@cable.net.co [ingdavidcespedes@cable.net.co]
Enviado el: jueves, 13 de noviembre de 2008 16:15 Para: Ricardo Martinez CC: users@lists.kamailio.org Asunto: Re: [Kamailio-Users] Problems with counter $var(i)
Hi
In which place of your main route are you writing var(i)=0. Maybe that'sthe problem, each time you enter in the main route you are setting the i variable to 0.
David Cespedes
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users