Random announcement playback

We have several payphones and other antique phones throughout our facility as props. I’d like to wire up an ATA to some of them that will auto dial an announcement file when they go off hook. How could I get these to play through an assortment of files so that each time it connects it would play back a random message or set of messages. I thought about maybe pointing them to a ring group in a hunt mode and make the members announcements? is there a better way?

I’d write a custom context that pulled the messages from a variable you maintain in the Asterisk DB, Get the number, add 1, save the number, and playback “funnyMessage_X_” where _X_ is the number of the announcement.


1 Like

Also set your ATA to immediate, or whatever it’s “batphone” setting is.