[arm-allstar] Next problem modifying rpt.conf

Kipton Moravec kip at kdream.com
Sat Sep 7 15:38:52 EDT 2019


On our repeater we have a couple of different modes.

97% of the time we are in normal mode.

However sometimes we go into an ARES Net/Skywarn Net mode when we have 
severe weather warnings.

The users are accustomed to hearing a Morse code "N". as a Courtesy tone 
when we have a Weather Net, as opposed to a simple beep normally.
If they listen, they know immediately if we are in a net or not.

So I built a new courtesy tone ct11=|iN

and tested it and it works.

Now the question is how to switch from ct4 to ct11?

Right now to keep it simple I want to just change unlinkedct=ct4 to 
unlinkedct=ct11.

One way would be to have a rpt.normal and a rpt.net copy of the rpt.conf 
file, and when I wanted to switch copy from one of them to rpt.conf and 
restart the asterisk server. I do not like that because now I have two 
configuratiuon files that are the same except for what is now 1 line. 
And I have to make sure whatever I have in the normal one gets 
propagated to the other one.  That is a problem waiting to happen.

At the end of the rpt.conf file I saw a line:
#includeifexists custom/rpt.conf

Eureka I thought. I can have a custom file for each mode in 
custom/rpt.conf and it only needs to have the settings that are different.

Since there was no custom folder, I created one, and made a rpt.conf 
file with one line.
unlinkedct=ct11

Saved everything and restarted Asterisk and it still had ct4 courtesy tone.
So I thought I forgot to comment out the one in asterisk/rpt.conf and 
instead of using the last variable it sees, it uses the first variable 
it sees. So I commented out ;unlinkedct=ct4. saved the file, and 
restarted asterisk, and now I have no courtesy tone.

I went back to the last line and made sure everything was spelled 
correctly. But I was not 100% sure where the program thought it was for 
custom/rpt.conf to work.

So I changed the last line in the rpt.conf file to explicitly use the 
whole file name where I put it.

#includeifexists /etc/asterisk/custom/rpt.conf

Saved it restarted Asterisk and still no courtesy tone.

I am pretty sure I am doing something stupid, because I am new to this.

But can someone please explain how this works and how I should do what I 
want?

Kip
AE5IB




More information about the ARM-allstar mailing list