Permanent Node Connection at Startup

Contents:
  1. Permanent Node Connection
  2. Prerequisite Configuration
  3. Add startup_macro to rpt.conf's node stanza
  4. Startup_macro=
  5. Cron Setup
  6. cron on archlinux (hamvoip)

[Top][Home]

Permanent Node Connection

The following information will make your connection to another AllStarLink node persistent (permanent). Permanent connects survive network outages and far end reboots. However they do not automatically reconnect when commanded to disconnect by either end.

Prerequisite Configuration

The following commands should already exist in ASL 2.0 rpt.conf file under your [functions] stanza: In other words a *813nnnnn touch tone command will permanent connect your node to the node number represented by nnnnn.

Add startup_macro to rpt.conf's node stanza

If you would like a permanent connect automatically when your node boots you need a startup_macro. For example, under your node stanza (i.e., [XXXXX] where XXXX = your node number), usually near the end your will find a commented blank startup_macro= line. Uncomment it (or add):



Note if you are using a ArchLinux/Hamvoip version including the SHARI distribution, then the Startup_macro is likley to be:


Reload/restart your system and it will auto connect to the node you specified above.

Source: https://wiki.allstarlink.org/wiki/Permanent_Node_Connection

[Top][Home]

Startup_macro=

The startup_macro= is executed once on system startup.
Each node can have one startup macro defined in its node stanza.

Sample:
startup_macro = *31000 *31001 *31002 ; Connect to 1000, 1001 and 1002 at startup
One string of one or multiple commands executed in order.

Note that this line of commands does NOT terminate with a # like a normal macro.
And you can call any number of regular macros with it.
Source: https://wiki.allstarlink.org/wiki/Rpt.conf Reference: https://communithy.allstarlink.org/t/permanent-persistent-connections-an-example/18634

[Top][Home]

Cron Setup

Note that crontab *must* be run as root in this case for asterisk to be successfully restarted



Tip: If the cut and paste does not work when using sudo, then try holding the shift key down while using the mouse functions.

[Top][Home]

cron on archlinux (hamvoip)

hamvoip Archlinux Cron Setup # login as root and run a bash shell with option 9 in the admin menu # If crontab is not available then install it



# Do not remove the following line # required for lsnodes and allmon 15 03 * * * cd /usr/local/sbin; ./astdb.php cron 00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19 /usr/bin/perl /usr/local/sbin/saytime.pl $NODE1 > /dev/null)

00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19 /usr/bin/perl /usr/local/sbin/saytime.pl $NODE1 > /dev/null)
nice set the process priority to run. -19 is low priority. This is telling archlinux to run the "saytime" at a low priority as it is not critical. Put a # in front of this line is you do no want the "saytime" to run.

[Top][Home]


Glenn Lyons VK4PK
glenn@LyonsComputer.com.au
Ver:gnl20221010 - pre published v0.9