<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>
<div dir="ltr">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style><div dir="ltr">Kevin,<br><br>Here is a repeat of a message I sent to the list several months ago regarding changing of courtesy tones which shows the procedure you describe. This could be extended to change other parameters. We agree that there are many things that should be more like a commercial repeater controller and we have that on our list of things to do. For now this somewhat convoluted but workable method will have to be used.<br><br>---------------------------------------------------------------------------------------------------------------<br><div>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr"><font style="" face="Tahoma,sans-serif" color="#000000">OK, here is a reasonable way to do it that seems to work well. There is a little setup but it should not take too long. Follow these steps -<br><br>Put the attached script in /etc/asterisk/local<br><br>Make it executable<br><br>chmod 750 change_telemetry.sh<br><br>Backup your rpt.conf file<br><br>Make a new directory if it does not already exist in /etc/asterisk called custom<br><br>Edit the primary rpt.conf file and copy (cut and paste or whatever) the telemetry section in entirety.<br><br>Save the telemetry section you copied out of rpt.conf to /etc/asterisk/custom/telemetry.conf<br><br>Also copy it to /etc/asterisk/custom/telemetry1 and telemetry2 <br><br>This assumes you will have two telemetry changes. If you will have more copy to more telemetry files telemetry3, telemetry4, etc.<br><br>Go back to the rpt.conf file and either delete or comment (your choice) ALL lines in the telemetry section you just copied out. When you are done there should be no active telemetry section in rpt.conf<br><br>Go to the end of the rpt.conf file and change the last line to this -<br><br>#includeifexists custom/telemetry.conf<br><br>Go to the /etc/asterisk/custom directory and edit the files for the different telemetry settings you want. telemetry.conf and telemetry1 should not be edited - they will be the stock files. Edit telemetry2, 3, 4 etc. however many different tone groups you want to define. You can have as many as you want, just give them consecutive numbers and remember them by number.<br><br>Once the files are saved run the change_telemetry program. It is set at start to only accept two files - telemetry1 and 2 - change the MAX_FILE parameter in the script to the number of definitions you have (telemetryx files in the custom directory.) <br><br>You can run the script manually to see how it works. It does not effect Allstar operation. You can change at any time.<br><br>change_telemetry x - where x equals the file number<br><br>Once this is all working you can call the script either directly from a function, via the autopatch, cron, etc.<br><br>function section example....<br><br>811=cmd,/etc/asterisk/local/change_telemetry 1<br></font><font style="" face="Tahoma,sans-serif" color="#000000">812=cmd,/etc/asterisk/local/change_telemetry 2</font><br><font style="" face="Tahoma,sans-serif" color="#000000"><font style="" face="Tahoma,sans-serif" color="#000000">813=cmd,/etc/asterisk/local/change_telemetry 3<br>etc.<br><br>then DTMF <br><br>*811 - default telemetry<br>*812 - Telemetry values 2<br>etc.<br><br>What this does.<br><br> The telemetry section is removed from rpt.conf. rpt.conf is then setup to call telemetry.conf in the /etc/asterisk/custom directory. The change_telemetry.sh then copies different definition files to telemetry files to telemetry.conf based on a number. It then reloads rpt.conf and sends an audible message to the user.<br><br>Things to remember - <br><br>if you run setup again the rpt.conf file will be overwritten. You will have to delete the telemetry section and add the last line again.<br><br>Always leave at least one file - preferably telemetry1 - as the default stock values.<br><br>The mapping in rpt.conf should not need to be changed. For instance if unlinkct=ct2 and you wanted to change it you would change the ct2 definition in the telemetry section in one of the files.<br><br>The change_telemetry script announces the change locally on the primary node given in the environment variable NODE1. If you want it to speak on a different node you need to change the node in the voice lines in the change_telemetry script.<br><br>I hope this helps or at least gives you ideas of how to do it. Let me know how it works for you and if you have any questions I would be glad to answer them.<br><br></font></font><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br></div></div></div>
</div>
</div></body>
</html>