You don’t need an audio file to announce the time as app_has a command for it. You can run it at the Asterisk CLI:
Scripting is one of the main reasons to have a Linux based repeater controller. I’m not sure what level your Linux knowledge is so pardon me if I start at too basic of a level. Scripting is a big subject but lets see if we can get you started. First google cron. Cron runs Linux programs or scripts based on a set of time rules. This cron entry calls a script once every 3 hours between 6am and 9pm.
00 6-21/3 * * * /root/bin/time.sh
The command crontab -e is how you add a cron entry. By default crontab uses the vi editor. Vi has a steep learning curve but you might as well learn it if you want to become a for real Linux guy. <esc>:wq and <esc>:q! are two vi commands you’ll want to learn right away. Google vi.
Then you will need to create a script with one of the Linux editors. Newbies generally use the nano editor but it you have got this far you already have a bit of vi under your belt so keep up the good work. The script looks like this:
#! /bin/bash
/usr/sbin/asterisk -rx "rpt cmd <yournode> status 12 0"
After you create the script you need to mark it as executable. Again google is your friend, google chmod:
chmod +x /root/bin/time.sh
Having said all that, you don’t have to use scripting to do a time announcement. You can do it with the app_rpt scheduler. But I’ve not used it so I’ll leave it up to others to jump in here and explain the scheduler. There are comments in rpt.conf that may be sufficient.
BTW, when changing subjects best practice is to start a new thread. Tailgating leads to forever threads with no relation to the subject line.
Thank you Geoff for the help, that makes sense.
Does anybody know how to have an hourly announcement with an audio file? I have heard of scripts or something, but I don't know how to script for it, where can I get started with scripting in ACID?
73
_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.