[arm-allstar] Telemetry

Patrick Perdue borrisinabox at gmail.com
Fri Nov 10 13:09:17 EST 2023


I can think of a couple of less than ideal ways of accomplishing this.

Even with telemdefault=0 and it's equivalent COP command, you will still 
get those connect/disconnect messages if your duplex is anything greater 
than 0.

However, you could squish all telemetry in rpt.conf with telemenabled=0. 
Since there is no COP command for this, you could do something like the 
following:

Somewhere in your node's stanza, include a custom file, say something 
like this.

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

Create a new file

/etc/asterisk/custom/telem.conf

In this file, there is only one line.

telemenabled=0

When the file /etc/asterisk/custom/notelem.conf exists, *all* telemetry 
will be completely squished.

Note that you have just created a file called 
/etc/asterisk/custom/telem.conf, not /etc/asterisk/custom/notelem.conf. 
This is purposeful, since you normally want telemetry.

To squish telemetry around a command, it could look something like this. 
Note this is pretty sloppy, and maybe someone can suggest a better way 
this could be done.


---------

#!/bin/bash
# cheap and sloppy workaround to replace built-in telemetry with a 
custom file.
# play some file to your node first, replace $NODE1 with your node 
number if it isn't globally defined in allstar.env
asterisk -rx "rpt playback $NODE1 /var/lib/asterisk/sounds/rpt/some_file"
# you may wish to sleep for the length of the file in seconds to avoid 
possible weird things.
sleep 10
# squish telemetry before making or dropping a connection
mv /etc/asterisk/custom/telem.conf /etc/asterisk/custom/notelem.conf
asterisk -rx "rpt reload"
# make your connection or put other noisy commands here.
asterisk  -rx "rpt fun $NODE1 *3506315"
# unsquish telemetry
mv /etc/asterisk/custom/notelem.conf /etc/asterisk/custom/telem.conf
asterisk -rx "rpt reload"


---------


73

N2DYI


On 11/9/2023 7:29 PM, Billy Irwin via ARM-allstar wrote:

> Greetings,
>
> I have macros for linking several repeaters for nets. Currently when they link, it plays the repeater 1 is connected to the main repeater, then the next message repeater 2 is connected to main repeater etc.. I would rather it just play my own custom file.
>
> So, my question is can I turn telemetry on and off inside of a macro, then play my custom wav file then turn it right back on with another macro at the end of the net. There is times where I would like to use telemetry. I also remember something about if telemetry is disabled, you can't play any files across the local node or remote nodes either.
>
> Thanks and 73,
>
> Billy - K9OH
> _______________________________________________
>
> 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