[arm-allstar] Persistent connection

Doug Crompton wa3dsp at gmail.com
Tue Aug 1 09:46:15 EST 2017


Tom,

 When you say persistent you mean permanent, *73<node> ??  I do that here
for many nodes but I use a script. The code in rpt.conf looks like this -

startup_macro = *A900           ; Macro to run at startup (optional)

This is placed in my primary nodes stanza

Then this in functions -

A900=cmd,/etc/asterisk/local/reconnect_local

reconnect_local is a script that has the nodes to connect to at boot. This
has always worked fine for me. I like to keep things in scripts rather than
internal to Allstar. If it is a timing problem at boot you could always put
a sleep statement in the script to delay until things are more stable.
However I have never had to do that. I do put 1 second delays between
connects just to be safe but I doubt it is necessary. Here is a portion on
my script. Nodes changed but you get the point.
l
#! /bin/bash

# Echolink
/usr/bin/asterisk -rx "rpt fun 40000 *7340001"
sleep 1
,,,,, next command etc....



*73 Doug*

*WA3DSP*

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







On Tue, Aug 1, 2017 at 2:17 AM, "Tom Hayward via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> I have a node that is configured to create a persistent connection to a hub
> on startup. However, when it boots it doesn't connect. If I log into ssh
> and restart asterisk, the startup macro works fine and it connects to the
> hub. Something is different at boot time. This is a problem because the
> link does not automatically reestablish after a power loss. How can I
> correct this?
>
> Tom KD7LXL
> _______________________________________________
>
> 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