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});
Saludos,
ALVARO ARAOS MÉNDEZ
Director de Tecnología en FONOIP
+56 2 2947 9000
alvaro(a)fonoip.com |
www.fonoip.com [1]
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(a)fonoip.com |
www.fonoip.com [1]
Moisés Chacón 46, El Monte, RM
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users [2]
Links:
------
[1]
http://www.fonoip.com
[2]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users