Playback multiple (unknown count) gsm w/keypress between ech

Hello,

I must first say this board has been of huge help to me and thank you to everyone who posts questions and answers.

I have struggled with doing the following and any suggestions would be a huge help:

I currently record messages with the Record command and timestap each message by doing a “System(/bin/mv /var/lib/asterisk/sounds/mymessage.gsm /var/lib/asterisk/sounds/local/${TIMESTAMP}.gsm).” Is there anyway I can playback the message, press a key to hear the next message untill all messages have been played?

I know in bash scripting I can do a “for i in /var/lib/asterisk/sounds/” and this would allow me to see each file in the directory and then do something with it. Is there something like this within the asterisk config I can do. Example would be

for i in /var/lib/asterisk/sounds/
Playback(i)
end

Thanks!

-Jason

There might be more elegant solutions. But you could at least transform your script into AGI. (Make sure you have * after the last /, though.)