<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 12pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>    I answer myself. It was very easy, you just had to use "transformations".</p>
<p><span>$dlg_var(start)=$(TS{s.ftime,%Y-%m-%d %H:%M:%S});</span></p>
<div><br />
<div style="border-bottom: 1px solid #ff6700; margin-bottom: 5px; padding-bottom: 3px; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #525252;">Saludos,</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><img src="cid:afc1f762675ddfad88ea53f97142ac5e@voxcore.cl" alt="" width="258" height="123" /></td>
<td style="padding-top: 5px;" valign="top"><span style="color: #525252; font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <span style="color: #ff6700; font-size: 12pt;"> <strong>Alvaro Araos Méndez</strong> </span> <br /> Director de Tecnología en <span style="color: #ff6700;"><strong>FonoIP</strong></span><br /><br /> +56 2 2947 9000<br /><a style="color: #0456a1;" href="mailto:alvaro@fonoip.com">alvaro@fonoip.com</a><strong style="color: #ff6700;"> | </strong><a style="color: #0456a1;" href="http://www.fonoip.com">www.fonoip.com</a> <br /> Moisés Chacón 46, El Monte, RM </span></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<p>El 28-07-2018 18:45, Alvaro Araos escribió:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Hi,</p>
<p>  If i call to $timef multiple times, always returns the same time string (CACHED), how i get formatted current time??</p>
<p>Example:</p>
<p>$dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S)   // RETURNS "2018-07-28 18:44:35"</p>
<p>.. some seconds later</p>
<div><span>$dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S)   // RETURNS THE SAME DATE STRING "2018-07-28 18:44:35"</span></div>
<div><br />
<div style="border-bottom: 1px solid #ff6700; margin-bottom: 5px; padding-bottom: 3px; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #525252;">Saludos,</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><img src="cid:15330519805b60844c92838846460934@voxcore.cl" alt="" width="258" height="123" /></td>
<td style="padding-top: 5px;" valign="top"><span style="color: #525252; font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <span style="color: #ff6700; font-size: 12pt;"> <strong>Alvaro Araos Méndez</strong> </span> <br /> Director de Tecnología en <span style="color: #ff6700;"><strong>FonoIP</strong></span><br /><br /> +56 2 2947 9000<br /><a style="color: #0456a1;" href="mailto:alvaro@fonoip.com">alvaro@fonoip.com</a><strong style="color: #ff6700;"> | </strong><a style="color: #0456a1;" href="http://www.fonoip.com">www.fonoip.com</a> <br /> Moisés Chacón 46, El Monte, RM </span></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> Kamailio (SER) - Users Mailing List<br /><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br /><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></div>
</blockquote>
</body></html>