Here's a link to a ZIP file containing a script to play audio files.
It consults a "library" file to see what files are available. Then picks one randomly (OK PSEUDO randomly).
Then checks to see if the channel is busy. If it is, the script doesn't play. If it's idle it plays the file.
Also some basic logging, and some support for a weather alert script that I wrote.
The ZIP contains the script, and all the current supporting files in use on my repeater.
Sorry, no README for now.........
From: "Geoff" <ars.w5omr@gmail.com>
To: "app_rpt mailing list" <app_rpt-users@ohnosec.org>
Sent: Wednesday, October 9, 2013 10:00:39 AM
Subject: [App_rpt-users] playing audio files
Does asterisk support a playlist?
I want to play random announcements out on the repeater, and those
linked, at various times of the day.
These files do not have to play in any order (and, they'd get old and
predictable, anyway). The easiest way, I think, would be a playlist,
then set a crontab for the command.
Is there a way to implement such a command as:
$> asterisk -rx "rpt playback [node] path/to/filename.pl"
??
How would you do something like this?
-Geoff/W5OMR
_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users