Script to disable connection announcements

i am trying to build a script so that i can disable the node connection and disconnection announcements during our weekly net, however, it doesn't work. the script runs fine but the node doesn't stop making the announcements, any ideas?

/usr/sbin/asterisk -rx "rpt cmd 62225 cop 34 xxx"
/usr/sbin/asterisk -rx "rpt cmd 62225 cop 37 xxx"

I haven't had too much success with the cop 34 & 37 commands either.

I am assuming you are talking about the general announcements made when there is any connect/disconnect of remote nodes on the hub you are currently connected to. Or it maybe that other nodes are connected to you for the weekly net.

In either case, you should be able to switch off these annoucements by changing a couple of settings in the rpt.conf file.

telemdefault = 0

telemdynamic = yes

Now it may not be convenient to have to edit the rpt.conf file before/after the net so this can be scripted. Note: In the example below, I am testing with a dummy file called rpt1.conf. Suggest you take a copy of your rpt.conf as rpt1.conf. Test that the script makes the edits as expected. When happy, modify the script and replace the rpt1 with rpt. Then test for real at your own risk.Plus have a backup of the rpt.conf and the entire SD card as well.

#!/bin/bash

cd /etc/asterisk

sed -i "s/telemdefault = 1/telemdefault = 0/g" /etc/asterisk/rpt1.conf;
sed -i "s/telemdynamic = 1/telemdynamic = yes/g" /etc/asterisk/rpt1.conf;

cd /usr/local/sbin

sudo /usr/sbin/asterisk -rx "core reload"

The core reload happens very quickly and appears to retain current connections.

P.S. I have noticed recently that one of my nodes has started to announce every connection. Then matters are made worse on large hubs such as HubNet especially when they are bridged to other large hubs such as FreeStar. P.S. The bridge station is often connected in monitor only mode but the telemetry connect/disconnect traffic is flowing to all connected nodes.