[Freeswitch-users] Lua problem there are only two arguments evaluated

SamyGo govoiper at gmail.com
Tue Jul 31 14:08:05 MSD 2012


If you don't get an output on :
>
> msgtime=msg_${strftime(%**Y_%m_%d_%H_%M_%S)}_${mailbox}.**alaw


${strftime(%**Y_%m_%d_%H_%M_%S)}

I think the function strftime don't like the "_"
Captures all the fields of the strftime separately and then concatenate
into your required format formt he temporary variables.

i.e
year=${strftime(%**Y)}
month=${strftime(%**M)}
day=${strftime(%d)}
and then
string= ${year}_${month}_${day}


On Tue, Jul 31, 2012 at 2:37 PM, Thomas Hoellriegel <admin at blindi.net>wrote:

> Hi SamyGo
>
>  1st Argument:  $${dorf_mailbox_prefix}/${****mailbox_to}/greeting.alaw
>>
>> 2nd  Argument:  ${mailbox}
>> 3rd Argument: ${msgtime}
>>
>> Can you verify that the ${msgtime} is properly calculated and is not NULL
>> at the taime of execution of application=lua ?
>>
>
> I like to save a message in the timestamp format:
> for example:
> msg_2012_31_07_15_32_31.alaw
> I read the current date and time from:
> ${msgtime}
> But i have no output.
> What is wrong please?
>
> thanks.
>
> ---------------
> Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:
> http://www.blindi.net/callback
> homepage: http://www.blindi.net
> blinde-misc mailingliste für blinde. anmeldung unter:
> http://www.blindi.net/mailman/**listinfo/blinde-misc<http://www.blindi.net/mailman/listinfo/blinde-misc>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120731/96282ad1/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list