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
Just create a script as the 'playlist' where it calls individual playback commands for the files one at a time, then use cron to run the script when you want. Brett KQ9N On Wed, Oct 9, 2013 at 9:00 AM, Geoff <ars.w5omr@gmail.com> wrote:
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
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. http://w3sba250.dyndns.org/YorkStar/playid_10_09_2013.zip Sorry, no README for now......... ----- Original Message ----- 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
participants (3)
-
Brett Friermood -
Geoff -
Robert A. Poff WB3AWJ