[arm-allstar] Useful functions
Doug Crompton
wa3dsp at gmail.com
Mon Jan 30 00:01:47 EST 2017
This is not new to V1.5 and is documented in the howto's but for newbies or
anyone not aware of it there are several defined functions in the
/etc/asterisk/rpt.conf file that you should know about. They are:
;A1=cmd,/usr/local/sbin/sayip.sh 1998 ; Say local IP to radio
;A3=cmd,/usr/local/sbin/saypublicip.sh 1998 ; Say Public IP to radio
;B1=cmd,/usr/local/sbin/halt.sh 1998 ; Halt the system (linux
total shutdown)
;B3=cmd,/usr/local/sbin/reboot.sh 1998 ; Reboot the system
;B6=cmd,/usr/local/sbin/astres.sh ; Restart Asterisk
These functions, if active, allow you to do some useful things via radio
DTMF and are especially important on a portable or remote node where you
only have radio access. As shown above by default they have a semicolon
before each line and are commented out. Remove the semicolon for the lines
you want to be active. Also as shown they use *A1,*A2,*B1,*B3, and *B6 as
the assigned DTMF sequences. You can change this to whatever you desire as
long as it is not being used by anything else. Using letter DTMF characters
would make it less likely they would be accidentally entered. You can make
the sequence longer like - *A123, etc. Most all radios have A,B,C,D keys -
on Baofeng radios it is the menu(A), up(B), down(C), exit(D) keys.
Be careful with the halt function. It requires a power cycle and if it is
located at a remote location you could shut your system down until you can
get there and power cycle it!
This also give you useful information on how you can setup DTMF sequences
to run your own scripts or commands via DTMF. Of course these commands can
also be entered in command mode via the Asterisk client, iaxrpt, lsnodes,
allmon, etc.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
More information about the arm-allstar
mailing list