[arm-allstar] Net Announcements

Patrick Perdue borrisinabox at gmail.com
Sun Mar 3 12:29:56 EST 2024


Hello James:

You could add something like this to your crontab to simply play a file 
every Sunday at the bottom of the hour between 6:30 and 7:30 PM.

Type

crontab -e

from bash to open your crontab in nano, then add this to the bottom.

30 07-19 * * 6 /usr/bin/asterisk -rx "rpt localplay xxxxx 
/etc/asterisk/local/net_announcement"

where xxxxx is your node number, and 
/etc/asterisk/local/net_announcement refers to the file to be played 
(without the file extension). If a file name 
/etc/asterisk/local/net_announcement.ul exists, then it will play that 
file when you specify /etc/asterisk/local/net_announcement as an 
argument to rpt playback or rpt localplay. However, if both 
/etc/asterisk/local/net_announcement.ul and 
/etc/asterisk/local/net_announcement.gsm exist, it will prefer the 
inferior gsm.
When done, press ctrl+o to save, then ctrl+x to exit.
rpt localplay will only play the file across your local node. If you 
want to play the announcement to all connected nodes, substitute 
localplay for playback.
In order to make this work, duplex must be set to something other than 
0. If you are doing this on a node with no connected USB device, I.E. a 
headless hub, you will also need to add the line
telemenabled=255
in /etc/asterisk/rpt.conf under your node's stanza. There is no need to 
do this if a sound fob is connected.

I have a physical, visceral reaction to GSM artifacts, so I don't use 
.gsm files in Asterisk. Fortunately, Asterisk can also play ulaw files, 
and HamVoIP comes with a file converter, which can be accessed by 
running convert_audio.sh from bash. This will allow you to convert wave 
to gsm or ul (I recommend ul every time over GSM).
convert_audio.sh /path/to/original/wave/file /path/to/ul/file

then choose use for ulaw at the prompt.

You will probably want to delete your original wave file if it exists in 
the same directory once converted using convert_audio.sh so as not to 
confuse Asterisk.

On my system, I use a more complicated net announcement setup that plays 
at a random point between 15 and 30 after the hour, pulling a random 
file from a directory of announcements so it isn't just the same old 
thing every time, at exactly the same time.


73
N2DYI

On 3/3/2024 11:00 AM, James Duram via ARM-allstar wrote:
> Is it possible to have the node make a verbal announcement each week on Sunday between the hours of 6:30am till 7:30 pm, running at the bottom of the hour (30)?
>
> If anyone has this setup could you share it.
>
> Thnx,
>
> Jim, K8COP
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org


More information about the ARM-allstar mailing list