If you don&#39;t get an output on :<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.333333969116211px;background-color:rgb(255,255,255)">msgtime=msg_${strftime(%</span><u style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.333333969116211px;background-color:rgb(255,255,255)"></u><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.333333969116211px;background-color:rgb(255,255,255)">Y_%m_%d_%H_%M_%S)}_${mailbox}.</span><u style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.333333969116211px;background-color:rgb(255,255,255)"></u><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.333333969116211px;background-color:rgb(255,255,255)">alaw</span> </blockquote>
<div><br></div><div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">${strftime(%</span><u style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></u><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Y_%m_%d_%H_%M_%S)}</span>
</div><div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">I think the function strftime don&#39;t like the &quot;_&quot;</span></div>
<div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Captures all the fields of the strftime separately and then concatenate into your required format formt he temporary variables.</span></div>
<div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">i.e</span></div>
<div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">year=</span><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">${strftime(%</span><u style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></u><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Y)}</span></div>
<div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">month=</span><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">${strftime(%</span><u style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></u><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">M)}</span></div>
<div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">day=</span><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">${strftime(%d</span><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">)}</span></div>
<div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">and then</span></div><div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">string= ${year}_${month}_${day}</span></div>
<div><span style="font-size:13.333333969116211px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><br></span></div><div><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 2:37 PM, Thomas Hoellriegel <span dir="ltr">&lt;<a href="mailto:admin@blindi.net" target="_blank">admin@blindi.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi SamyGo<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1st Argument:  $${dorf_mailbox_prefix}/${**<u></u>mailbox_to}/greeting.alaw<div class="im"><br>
2nd  Argument:  ${mailbox}<br>
3rd Argument: ${msgtime}<br>
<br>
Can you verify that the ${msgtime} is properly calculated and is not NULL<br>
at the taime of execution of application=lua ?<br>
</div></blockquote>
<br>
I like to save a message in the timestamp format:<br>
for example:<br>
msg_2012_31_07_15_32_31.alaw<br>
I read the current date and time from:<br>
${msgtime}<br>
But i have no output.<br>
What is wrong please?<div class="HOEnZb"><div class="h5"><br>
thanks.<br>
<br>
---------------<br>
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:<br>
<a href="http://www.blindi.net/callback" target="_blank">http://www.blindi.net/callback</a><br>
homepage: <a href="http://www.blindi.net" target="_blank">http://www.blindi.net</a><br>
blinde-misc mailingliste für blinde. anmeldung unter:<br>
<a href="http://www.blindi.net/mailman/listinfo/blinde-misc" target="_blank">http://www.blindi.net/mailman/<u></u>listinfo/blinde-misc</a><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>