[Freeswitch-users] question: lua how can i create a postcastlist?

Michael Collins msc at freeswitch.org
Wed Jul 4 01:48:02 MSD 2012


You'll have a challenge here because natively Lua has no directory
commands. I have never tried reading in the results of a system call into a
Lua table, but it might be possible. I'd ask on #Lua or check Lua docs to
see if such a thing is even possible. Once you have the files in a table
then you could do the next/prev/first/last/repeat thing.

-MC

On Tue, Jul 3, 2012 at 8:58 AM, Thomas Hoellriegel <admin at blindi.net> wrote:

> Hi guys,
> I have many potcast mp3 files in a directory:
> /home/postcast
> the files beginning with:
> postcast_year_mon_day_hour_**minutes_.mp3
> I like to create a  playlist in lua:
> 1. read all files, and make a messagecount.
> 2. generate a menu to use from phone:
>
> press 1 for the next postcast.
> 2, To repeate the postcast
> 3. to go to the prev potcast
> 4 for the fist potcast
> 5 for the last potcast
> 6 to hear the date an time for these.
>
> I like to sort, firt in first out.
>
> I don.t find a command in lua:
> to read the filelist,
> to generate a filecount.
> and to generate a navigation keys:
> forward, backward, repeate and say the time and date of the current file.
>
> Can your help please?
>
> nice thanks to all.
>
>
>
>
> ---------------
> 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/20120703/fe825d51/attachment.html 


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