you can pass the call control to a Lua or Javascript script, and then calculate the file number and execute the playback. The easiest is to take the current time in seconds, take a modulo by the total number of your WAV files, and then play the corresponding file. Should be a quite trivial exercise for anyone having basic programming skills :)
________________________________ From: BookBag <asaad2@gmail.com> To: freeswitch-users@lists.freeswitch.org Sent: Monday, July 2, 2012 5:22 PM Subject: [Freeswitch-users] Playback of multiple wavs in a round-robin scenario
Hello all, I have been searching day and night for a way on how to do this. I have a customer who would like like random ads stored as wav's to be played once an incoming call comes in. For example, this customer has 5 ads each one in its own wav file. If an incoming call comes in, one of those wav's gets played. When a second call comes in, another wav gets selected and gets played. Anybody can help point me in the right direction.
Thank you.