Hi,
I answer myself. It was very easy, you just had to use "transformations".
$dlg_var(start)=$(TS{s.ftime,%Y-%m-%d %H:%M:%S});
Alvaro Araos Méndez Director de Tecnología en FonoIP +56 2 2947 9000 alvaro@fonoip.com | www.fonoip.com Moisés Chacón 46, El Monte, RM |
El 28-07-2018 18:45, Alvaro Araos escribió:
Hi,
If i call to $timef multiple times, always returns the same time string (CACHED), how i get formatted current time??
Example:
$dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S) // RETURNS "2018-07-28 18:44:35"
.. some seconds later
$dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S) // RETURNS THE SAME DATE STRING "2018-07-28 18:44:35"
Saludos,
Alvaro Araos Méndez
Director de Tecnología en FonoIP
+56 2 2947 9000
alvaro@fonoip.com | www.fonoip.com
Moisés Chacón 46, El Monte, RM
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users