I am somewhat new to allstar and Linux so sorry for the basic questions. I wrote a script that works but at the end if it, the repeater hangs until you key up one extra time.
Basically after the script runs you have to wait about a second and then kurchunk the repeater.
I am sure it something to do with me rebooting the server and the repeaters PTT line being inverted, now how to fix it?
the script is called from a touch tone macro and replaces the rotating tail messages with skywarn message and a SW tone to tell users there is a net going on.
Figure out which statement is causing the hang by commenting out each statement one at a time. I’d start with the last asterisk -rx and work up the script until the culprit is uncovered.
One other thing to try is rather than doing asterisk -rx "reload rpt", restart asterisk with astres.sh.
I would recommend separating some of your commands inside of /etc/asterisk/rpt.conf, especially for repeatable items which you might want to call individually later on.
First, let’s say you have ct01 defined as a courtesy tone (and use ctNN as your pattern, where NN is any two digit placeholder), which you’d like to call:
The sed statements are a little more insular with regular expressions; only un-commented instances are replaced, not all of them in a global fashion, provided you have comments in your file.
I’m doing much of the same thing you’re attempting to do with success thus far.