[arm-allstar] Next problem modifying rpt.conf
Buddy Brannan
buddy at brannan.name
Sat Sep 7 18:19:49 EDT 2019
Well…that’s sort of how I do it, i.e. several rpt.conf files for different modes, with whatever changes plus the DTMF commands to call the bash scripts that link rpt.conf to whichever file is in use, followed by a line like
Asterisk -rx rpt reload
Which would reload rpt.conf, make all your changes, but not do a full on asterisk restart. It worked for me, anyway. If there’s a more elegant way to handle it, I’d like to see :)
Buddy Brannan, KB5ELV - Erie, PA
Email: buddy at brannan.name
Mobile: (814) 431-0962
> On Sep 7, 2019, at 3:38 PM, Kipton Moravec via ARM-allstar <arm-allstar at hamvoip.org> wrote:
>
> 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
>
>
> _______________________________________________
>
> 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 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list