[arm-allstar] Disconnecting all links & "rpt fun" command

Travis French tfrench at pcb.com
Tue Feb 12 18:02:04 EST 2019


Good Afternoon Doug,

That is perfect! I can absolute work with that.

Thank again,

Travis E. French - K2PCB

-----Original Message-----
From: ARM-allstar <arm-allstar-bounces at hamvoip.org> On Behalf Of "Doug Crompton via ARM-allstar"
Sent: Tuesday, February 12, 2019 5:35 PM
To: ARM Allstar <arm-allstar at hamvoip.org>
Cc: Doug Crompton <wa3dsp at gmail.com>
Subject: Re: [arm-allstar] Disconnecting all links & "rpt fun" command

Travis,

Assuming you know the nodes you want to always keep connected the easiest way to do this would be to create a script and execute it with DTMF.
Quick example -

Script --  /etc/asterisk/local/disconnect-all-except.sh
Make sure you make it executable - chmod 750 disconnect-all-except.sh

#!/bin/bash
node="yyyyy"   # set to your node number
asterisk -rx "rpt fun $node *76"  # dump everyone sleep 2
asterisk -rx "rpt fun $node *73xxxxx"    # set to first reconnect
asterisk -rx "rpt fun $node *73xxxxx"    # set to second reconnect
# more if needed
# END Script

In functions stanza of rpt.conf

D1=cmd,/etc/asterisk/local/disconnect-all-except.sh

The D1 is the DTMF - set to whatever you want that is available - not used by other functions.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*


On Tue, Feb 12, 2019 at 5:23 PM "Travis French via ARM-allstar" < arm-allstar at hamvoip.org> wrote:

> Good Afternoon Brian,
>
> I have made progress with stacking rpt fun commands. I was 
> unsuccessful before but have since discovered that it is as simple as 
> chaining the commands with no space in between. Almost too easy. Nice!
>
> I am still curious about excluding links during a disconnect all command.
> I would like to send a command from my mobile node to my home node to 
> disconnect all but not kick me off at the same time. In the meantime, 
> I suppose I can follow the disconnect all with separate reconnects.
>
> Thank you in advance,
>
> Travis E. French K2PCB
>
>
>
> From: Bryan St Clair <bryan at k6cbr.us>
> Sent: Monday, February 11, 2019 10:13 AM
> To: ARM Allstar <arm-allstar at hamvoip.org>
> Cc: Travis French <tfrench at pcb.com>
> Subject: Re: [arm-allstar] Disconnecting all links & "rpt fun" command
>
> You could make a custom script to disconnect all nodes, then reconnect 
> your 2.
>
> Not the cleanest way I am sure but very easy to create and maintain 
> for most.
>
> On Sun, Feb 10, 2019 at 12:05 PM "Travis French via ARM-allstar" < 
> arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org>> wrote:
> Good Afternoon,
>
> I have a couple of hopefully simple questions if could impose upon the 
> group.
>
>
> 1. Is there way to initiate a disconnect all links command with 
> exceptions? Basically, I am curious if there is a way to disconnect 
> all nodes except two of my own that my be connected. I could not find 
> any exception options or switches in the ilink documentation I was 
> reading through.
>
>
> 2. Can you stack/combine commands when using the following command line:
> asterisk -rx "rpt fun <node you want to connect>*3<node you want to 
> connect
> to>"  ?
> For example: disconnecting all current connections (*76) followed by 
> connecting to the new node to all in one command line.
>
>
> Thank you in advance,
>
> Travis E. French 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 web page - http://hamvoip.org
>
>
> --
> Bryan
> K6CBR
> bryan at k6cbr.us<mailto:bryan at k6cbr.us>
> Allstar Base: 43918, 43991
> Allstar Hubs: 43919, 47036, 47061(Testing) 
> _______________________________________________
>
> 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 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 web page - http://hamvoip.org


More information about the ARM-allstar mailing list