I’m new to Asterisk and learning about it’s capabilities. I’m trying to get my head around my current challenge within my project.
I’d like callers to be able to flip through sound files, saved in a particular folder. I’d like to program it so if they press a particular number, it flips to the next file in that folder. Files are going to be added by other callers. As a result, the folder is going to be constantly growing. Files are all saved with a time stamp. Ideally the playback control would not be randomly selecting another file.
Can Asterisk query a folder for how many files are in it? Then should I load those files into an array? That sounds like a possible performance cost for the caller.
It’d be great if ControlPlayBack() had another option to move to the next file in the folder. Is this possible?
Can Asterisk handle some thing like this? Can anyone shed some lights on some possible routes?
Thanks for your time! I really appreciate it and any insights!