[arm-allstar] Connect and Disconnect - Tones only without voice announcement
Dave Petrie
wa2kjc at gmail.com
Wed Oct 27 14:56:54 EDT 2021
I just finished installing Patrick's suggestion and I am totally impressed.
I wrote a doc to help those like me that are not linux guru's and are
comfortable with windows.
I will place it here as well as attach a pdf, let me know if this was too
much typing for the forum.
Dave wa2kjc
This sounds really great, Thank You N2DYI Patrick Perdue for sharing this
with us, I made this
document to help some Windows users that, like me, aren't Linux GURU's, I
am so glad I joined this forum.
Now I can turn off telemetry during nets and not miss out on the
conversations because of the connect
and disconnect messages. WA2KJC Dave Petrie
Open winSCP and connect to your raspberry.
change to /usr/local/sbin
in the right hand window, right mouse, and choose new file,
in the pop up window type in, connpgm.sh and click ok,
a new bigger window opens, copy and past the
script below without the ***connpgm.sh***
close the window and click on save.
Now repeat this process for the discpgm.sh
When both files have been created log into your raspberry
using putty, menu 9, cd /usr/local/sbin
and enter these two commands.
chmod +x connpgm.sh
chmod +x discpgm.sh
Here are the scripts for reference:
***connpgm.sh***
#!/bin/bash
# play a tone on connect
asterisk -rx "rpt cmd 5086 cop 48
\!440/50,\!0/50,\!654/50,\!0/50,\!880/50"
***discpgm.sh*** same as above, with the tone sequence reversed
#!/bin/bash
# play a tone on disconnect
asterisk -rx "rpt cmd 5086 cop 48
\!880/50,\!0/50,\!654/50,\!0/50,\!440/50"
Now move over to /etc/asterisk with winSCP
and edit rpt.conf, and look for lines:
;connpgm=yourconnectprogram ; Program or script to run at connection
;discpgm=yourdisconnectprogram ; Program or script to run at disconnection
remove the ; in front connpgm= and replace yourconnectprogram with
/usr/local/sbin/connpgm.sh as below.
connpgm=/usr/local/sbin/connpgm.sh
remove the ; in front discpgm= and replace yourdisconnectprogram with
/usr/local/sbin/discpgm.sh as below.
discpgm=/usr/local/sbin/discpgm.sh
do this for all the nodes you want to have this happen in your rpt.conf and
save and reboot.
The End wa2kjc
On Wed, Oct 27, 2021 at 1:44 PM "Patrick Perdue via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> If you truly don't care who connected or disconnected, and just want
> some indication that it happened, there are a couple of ways to do this.
>
> You can use an event in your events stanza for the node... Too early in
> the morning (in the afternoon) for me to come up with that syntax, but
> maybe someone else can.
>
> You can also script something for the "connpgm" and "discpgm" lines in
> your node's stanza in rpt.conf, or add things to any existing script you
> may have, such as the logger for supermon if you have that set up.
>
> Here is an example of that, using cop to generate tones that will only
> be heard on your local node radio. It will not pass to directly
> connected IAX clients, such as IaxRPT or phones, like normal telemetry.
> In this example, I used three rising tones for a connect, three falling
> tones for a disconnect.
>
> ***connpgm.sh***
>
> #!/bin/bash
> # play a tone on connect
> asterisk -rx "rpt cmd 508420 cop 48
> \!440/50,\!0/50,\!654/50,\!0/50,\!880/50"
>
>
> ***discpgm.sh*** same as above, with the tone sequence reversed
> #!/bin/bash
> # play a tone on disconnect
> asterisk -rx "rpt cmd 508420 cop 48
> \!880/50,\!0/50,\!654/50,\!0/50,\!440/50"
>
> Make these executable, then reference them in rpt.conf as discpgm and
> connpgm lines (commented out in default distributions), or add the
> relevant line to an existing script. Replace 508420 with your node
> number, or use the $NODE1 (or higher if exists) variable as defined in
> /usr/local/etc/allstar.env in place of your node number on the command
> line. NOTE; another argument could be added such that this script is
> properly routed to each node even if it is reverenced by multiple nodes
> on the same system. I just didn't think about that until now.
>
> This will work with telemdefault=0, and really should only be used in
> this configuration. Otherwise, you'll get excessive noise.
>
> I'm aware this is very dirty, and there are better ways to do this. It's
> probably better to use an event instead of going through bash.
>
>
> On 10/27/2021 10:49 AM, "Travis French via ARM-allstar" wrote:
> > Good Morning Dave,
> >
> > I think you nailed it with that last section “another tone or cw when
> additional nodes connect and disconnect” without having to key and listen
> for the unkey tone. I am looking to hear the connect and disconnect in
> real-time without hearing the detail of the connect or disconnect.
> >
> > Thank you in advance,
> >
> > Travis – K2PCB
> >
> >
> > From: Dave Petrie <wa2kjc at gmail.com>
> > Sent: Wednesday, October 27, 2021 8:57 AM
> > To: Travis French <tfrench at pcb.com>
> > Cc: ARM Allstar <arm-allstar at hamvoip.org>
> > Subject: Re: [arm-allstar] Connect and Disconnect - Tones only without
> voice announcement
> >
> >
> > External Email Notice: This email originated from outside the PCB /
> Temposonics organization.
> >
> >
> >
> > Hi Travis, I think I got it, just to be sure, there is already a way to
> have a tone or cw when no other node or connection is connected to your
> node, and a different tone or cw character when another node is connected,
> that node can be distant or on the same raspberry, it's a node connected.
> So that's the first two choices or I should say
> > status. Then there is the courtesy tone that is sent when a local
> connect to the node unkeys, normally the repeater receiver or remote or
> link radio stops receiving signal, that's a tone or cw and then there is a
> tone or cw for when the connected node unkeys. So you know when at least
> one other node is connected or no one is connected and you know who just
> unkeyed, local access or remote linked access.
> > I have the "do da loop" melody or tone as you might call it when no
> other nodes are connected, I have three nodes, Allstar 40039, my repeater
> 5086, my remote base 5000.
> > I have the rpt.conf set for 5086 to connect to 40039 on boot up. So when
> i unkey with my HT i get a cw k and when someone from the allstar linking
> via 40039 or echolink which is also on 40039 node, unkey's I hear a cw L.
> > I think you would like to have in addition to what I just described,
> another tone or cw when additional nodes connect and disconnect. If the
> distant node connects in Monitor mode to your node you won't get any
> indication by sound, but if you are watching your supermon screen you will
> see the connect and disconnect. You mentioned email alerts, which is
> something I haven't tried yet.
> > Did I get it right so far? Or would you like the lines in rpt.conf to
> make the changes I just described.
> > Dave
> >
> > On Wed, Oct 27, 2021 at 7:54 AM Travis French <tfrench at pcb.com<mailto:
> tfrench at pcb.com>> wrote:
> > Good Morning Dave,
> >
> > I was thinking of that as well to just disable telemetry on the fly but
> was really hoping for something more permanent and streamlined.
> >
> > I was envisioning the following:
> >
> > Any Connect = a very specific high tone or sequence or maybe a morse
> code "C"
> > Any Disconnect = a very specific low tone or sequence or maybe a morse
> code "D"
> >
> > I was thinking one of these options were already built in.
> >
> > The other idea I had, as I do something like this on one of my other
> nodes, was to turn telemetry off, intercept the connect and disconnect
> logging scripts, and insert a command before logging to make the
> appropriate tone announcement. This specific script sends an email so it
> has nothing to do with telemetry. I am just wondering if turning off
> telemetry would block this announcement. I think this way could be doable
> and would need to be validated but didn't want to go that route if there
> was a more simple option.
> >
> > Still playing.
> >
> > Thank you in advance,
> >
> > Travis - K2PCB
> >
> >
> >
> >
> > -----Original Message-----
> > From: ARM-allstar <arm-allstar-bounces at hamvoip.org<mailto:
> arm-allstar-bounces at hamvoip.org>> On Behalf Of "Dave Petrie via
> ARM-allstar"
> > Sent: Tuesday, October 26, 2021 9:47 PM
> > To: ARM Allstar <arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org
> >>
> > Cc: Dave Petrie <wa2kjc at gmail.com<mailto:wa2kjc at gmail.com>>
> > Subject: Re: [arm-allstar] Connect and Disconnect - Tones only without
> voice announcement
> >
> >
> >
> > External Email Notice: This email originated from outside the PCB /
> Temposonics organization.
> >
> >
> >
> >
> > Hi Travis, I am not sure what you mean by tones, courteous unkey tones ?
> I use cw k when someone on my node unkeys and cw L when someone on a
> connected link unkeys. I use dtmf to turn telemetry on and off. During nets
> that I listen to the telemetry gets in the way.
> > in /etc/asterisk rpt.conf i assigned 984 and 986 to cop commands, but
> you can use whatever is available to you.
> >
> > [functions<your node>]
> >
> > 984=cop,33 ;telemetry enable ;turn on voice announcements
> 986=cop,34;telemetry disable ;tunr off voice announcements
> >
> > So I send *984 to turn on voice and *986 to turn it off.
> >
> > Hope that helps.
> > Dave
> >
> > On Tue, Oct 26, 2021 at 7:10 PM "Travis French via ARM-allstar" <
> arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org>> wrote:
> >
> >> Good Morning,
> >>
> >> I am sure I am staring right at it but for the life of me, I am not
> >> finding the option to reduce the connect and disconnect announcements
> >> to tones only. I believe I have seen this before but can't seem to
> >> remember where this option resides. I would prefer not to disable
> >> external telemetry all together let alone reduce it to 1 minute. I am
> >> just looking to drop the voice portion of the connect and disconnect
> >> messages and only hear the tones.
> >>
> >> This is an option, correct?
> >>
> >> Thank you in advance,
> >>
> >> Travis - K2PCB
> >> _______________________________________________
> >>
> >> ARM-allstar mailing list
> >> ARM-allstar at hamvoip.org<mailto: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
> >>
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org<mailto: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
> > _______________________________________________
> >
> > 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
> _______________________________________________
>
> 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