[arm-allstar] Connect and Disconnect - Tones only without voice announcement
Patrick Perdue
borrisinabox at gmail.com
Wed Oct 27 16:14:02 EDT 2021
Yep, that works. I just took the extremely lazy approach. I probably
shouldn't mention that I didn't test it, either. Oh, oops, I just did, I
guess.
On 10/27/2021 4:00 PM, "Kevin Davis via ARM-allstar" wrote:
> I just added this to my node as well Patrick; thanks!
>
> Only change I made was to avoid having essentially duplicate code in two
> scripts.
>
> I have conn_tones.sh as follows:
> =====
> #!/bin/bash
> if [ "$1" == "C" ]; then
> TONES="\!440/50,\!0/50,\!654/50,\!0/50,\!880/50"
> elif [ "$1" == "D" ]; then
> TONES="\!880/50,\!0/50,\!654/50,\!0/50,\!440/50"
> else
> exit 1
> fi
>
> asterisk -rx "rpt cmd $NODE1 cop 48 ${TONES}"
> =====
>
>
> and then in rpt.conf:
> connpgm = /usr/local/sbin/conn_tones.sh C
> discpgm = /usr/local/sbsin/conn_tones.sh D
>
>
>
>
> On Wed, Oct 27, 2021 at 12:10 PM "Dave Petrie via ARM-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
>> i forgot to include the pdf
>> here it is
>>
>>
>> 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
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: Connect Disconnect Notices.pdf
>> Type: application/pdf
>> Size: 116660 bytes
>> Desc: not available
>> URL: <
>> http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20211027/6448245a/attachment.pdf
>> _______________________________________________
>>
>> 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