[Kamailio-Users] Problems with counter $var(i)
ingdavidcespedes at cable.net.co
ingdavidcespedes at cable.net.co
Fri Nov 14 01:04:08 CET 2008
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_variables) 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 at 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 at cable.net.co [ingdavidcespedes at cable.net.co]
>
> Enviado el: jueves, 13 de noviembre de 2008 16:15
> Para: Ricardo Martinez
> CC: users at 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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list