[arm-allstar] Command Line Commend to Connect to Another Node

Doug Crompton wa3dsp at gmail.com
Wed Jun 20 11:51:11 EST 2018


Sean,

The best way to do that is to use a startup macro. In rpt.conf in the node
stanza you are connecting from. In this example lets say it is node 40000 -
This would connect permanent at boot node 40000 to node 40001. If
connection is lost or node 40000 reboots it will re-establish. I use this
method on several nodes and it works well. It works best if both ends have
dns node lookup. If either end is using the flat file - rpt_extnodes the
initial connection a cold boot will take awhile. With dns lookup it is
almost immediate.

startup_macro_delay=10 ; this delays the macro in seconds at boot.
startup_macro = *52

In the rpt.conf macro stanza -

[macro27225]
;Macro number = command string (ea command separated by space) -end with
HASH
1=*81 *80#    ; play time and voice ID
2=*7340001#  ; connect node 40000 to node 40001



*73 Doug*

*WA3DSP*

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

On Wed, Jun 20, 2018 at 12:31 PM, "Sean McCarthy via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Would this be the best way to have a node X permanently connect to node Y?
> If not, what would you recommend?
>
> I want to set up my offsite repeater (node X above) to connect to my local
> "hub" (node Y above) on boot and reconnect whenever it fails...
>
> Thanks
>
>
> On Wed, Jun 20, 2018 at 10:31 AM "Jack Koehler 2 via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
> > Doug,
> > What is the difference in functionality between using non-permanent and
> > permanent connect functions?
> > Thanks.
> > Jack
> >
> >
> > -----Original Message-----
> > From: arm-allstar [mailto:arm-allstar-bounces at hamvoip.org] On Behalf Of
> > "Doug Crompton via arm-allstar"
> > Sent: Wednesday, June 20, 2018 9:46 AM
> > To: ARM Allstar
> > Cc: Doug Crompton
> > Subject: Re: [arm-allstar] Command Line Commend to Connect to Another
> Node
> >
> > Yes, but you need to create a script - here is an example. You can change
> > it how you like. It uses permanent connects but you could remove the 7
> and
> > have it non-permanent if desired. Also you need to use the entire path to
> > call it unless you put it in /usr/local/sbin.
> >
> > connect.sh 40000 40001
> > disconnect.sh 40000 40001
> >
> >
> > #/bin/bash
> > # /etc/asterisk/local/connect.sh
> > # call with  'connect.sh source_node destination_node
> >
> > /usr/bin/asterisk -rx "rpt fun $1 *73$2"
> > #end script
> >
> > #/bin/bash
> > # /etc/asterisk/local/disconnect.sh
> > # call with  'disconnect.sh source_node destination_node
> >
> > /usr/bin/asterisk -rx "rpt fun $1 *71$2"
> > # end script
> >
> >
> > *73 Doug*
> >
> > *WA3DSP*
> >
> > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
> >
> >
> >
> >
> > On Wed, Jun 20, 2018 at 9:29 AM, "ssedgwick via arm-allstar" <
> > arm-allstar at hamvoip.org> wrote:
> >
> > > Is there a command I can issue in Putty to connect an Allstar node I am
> > > logged into to another Allstar node?
> > >
> > > For example: connect Allstar node 28xxx to Allstar node 45xxx
> > >
> > > I would like to be able to also disconnect the two nodes using command
> > > line.
> > >
> > > Seems I just saw this the other day, but can’t fine it.
> > >
> > > Thanks,
> > > 73
> > > Steve_WB8GRS
> > > _______________________________________________
> > >
> > > 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
> >
> > _______________________________________________
> >
> > 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