Various Allstar info

File locations
/etc/asterisk       Main files
/usr/local/etc/allstar.env      Environment files
/var/lib/asterisk/sounds/rpt/nodenames     Allstar Sounds
/usr/local/sbin/supermon     Supermon


Install Midnight Commander on the ArchLinux node
pacman -S mc     then mc to start program

To find the MAC address from the command line
you can use the following command :
cat /sys/class/net/eth0/address    or you can type :
ifconfig eth0   You can swap eth0 for wlan0 if you have an active wireless connection.

W2YMM
long island ny
THESE ARE THE ACTUAL AVAILABLE COMMANDS THAT CAN BE IMPLEMENTED ON AN ALLSTAR NODE.

SOME BASIC COMMANDS ARE TO BE LEFT AT THE DEFAULT VALUES

BUT THERE ARE MANY COMMANDS THAT YOU CAN CUSTOMIZE
Be careful you don't duplicate any commands.  You'll need to figure out a dtmf command structure that works for you.
See HERE for more info about DTMF


* status cmds:
*
*  1 - Force ID (global)
*  2 - Give Time of Day (global)
*  3 - Give software Version (global)
*  4 - Give GPS location info
*  5 - Last (dtmf) user
*  11 - Force ID (local only)
*  12 - Give Time of Day (local only)            EXAMPLE 81=status,12     Give Time of Day (local only) *81 to execute
*
* cop (control operator) cmds:
*
*  1 - System warm boot
*  2 - System enable
*  3 - System disable
*  4 - Test Tone On/Off
*  5 - Dump System Variables on Console (debug)
*  6 - PTT (phone mode only)
*  7 - Time out timer enable
*  8 - Time out timer disable
*  9 - Autopatch enable
*  10 - Autopatch disable
*  11 - Link enable
*  12 - Link disable
*  13 - Query System State
*  14 - Change System State
*  15 - Scheduler Enable
*  16 - Scheduler Disable
*  17 - User functions (time, id, etc) enable
*  18 - User functions (time, id, etc) disable
*  19 - Select alternate hang timer
*  20 - Select standard hang timer
*  21 - Enable Parrot Mode                                      EXAMPLE  971=cop,21      ; enable Parrot Mode  *971 to execute
*  22 - Disable Parrot Mode
*  23 - Birdbath (Current Parrot Cleanup/Flush)
*  24 - Flush all telemetry
*  25 - Query last node un-keyed
*  26 - Query all nodes keyed/unkeyed
*  27 - Reset DAQ minimum on a pin
*  28 - Reset DAQ maximum on a pin
*  30 - Recall Memory Setting in Attached Xcvr
*  31 - Channel Selector for Parallel Programmed Xcvr
*  32 - Touchtone pad test: command + Digit string + # to playback all digits pressed
*  33 - Local Telemetry Output Enable
*  34 - Local Telemetry Output Disable
*  35 - Local Telemetry Output on Demand
*  36 - Foreign Link Local Output Path Enable
*  37 - Foreign Link Local Output Path Disable
*  38 - Foreign Link Local Output Path Follows Local Telemetry
*  39 - Foreign Link Local Output Path on Demand
*  42 - Echolink announce node # only
*  43 - Echolink announce node Callsign only
*  44 - Echolink announce node # & Callsign
*  45 - Link Activity timer enable
*  46 - Link Activity timer disable
*  47 - Reset "Link Config Changed" Flag
*  48 - Send Page Tone (Tone specs separated by parenthesis)
*  49 - Disable incoming connections (control state noice)
*  50 - Enable incoming connections (control state noicd)
*  51 - Enable sleep mode
*  52 - Disable sleep mode
*  53 - Wake up from sleep
*  54 - Go to sleep
*  55 - Parrot Once if parrot mode is disabled
*  56 - Rx CTCSS Enable
*  57 - Rx CTCSS Disable
*  58 - Tx CTCSS On Input only Enable
*  59 - Tx CTCSS On Input only Disable
*  60 - Send MDC-1200 Burst (cop,60,type,UnitID[,DestID,SubCode])
*     Type is 'I' for PttID, 'E' for Emergency, and 'C' for Call
*     (SelCall or Alert), or 'SX' for STS (ststus), where X is 0-F.
*     DestID and subcode are only specified for  the 'C' type message.
*     UnitID is the local systems UnitID. DestID is the MDC1200 ID of
*     the radio being called, and the subcodes are as follows:
*          Subcode '8205' is Voice Selective Call for Spectra ('Call')
*          Subcode '8015' is Voice Selective Call for Maxtrac ('SC') or
*             Astro-Saber('Call')
*          Subcode '810D' is Call Alert (like Maxtrac 'CA')
*  61 - Send Message to USB to control GPIO pins (cop,61,GPIO1=0[,GPIO4=1].....)
*  62 - Send Message to USB to control GPIO pins, quietly (cop,62,GPIO1=0[,GPIO4=1].....)
*  63 - Send pre-configred APRSTT notification (cop,63,CALL[,OVERLAYCHR])
*  64 - Send pre-configred APRSTT notification, quietly (cop,64,CALL[,OVERLAYCHR])
*  65 - Send POCSAG page (equipped channel types only)
*
* ilink cmds:
*
*  1 - Disconnect specified link                                             EXAMPLE   1=ilink,1    *1+node number to disconnect
*  2 - Connect specified link -- monitor only
*  3 - Connect specified link -- tranceive
*  4 - Enter command mode on specified link
*  5 - System status
*  6 - Disconnect all links
*  7 - Last Node to Key Up
*  8 - Connect specified link -- local monitor only
*  9 - Send Text Message (9,<destnodeno or 0 (for all)>,Message Text, etc.
*  10 - Disconnect all RANGER links (except permalinks)
*  11 - Disconnect a previously permanently connected link
*  12 - Permanently connect specified link -- monitor only
*  13 - Permanently connect specified link -- tranceive
*  15 - Full system status (all nodes)
*  16 - Reconnect links disconnected with "disconnect all links"
*  17 - MDC test (for diag purposes)
*  18 - Permanently Connect specified link -- local monitor only

*  200 thru 215 - (Send DTMF 0-9,*,#,A-D) (200=0, 201=1, 210=*, etc)
*
* remote cmds:
*
*  1 - Recall Memory MM  (*000-*099) (Gets memory from rpt.conf)
*  2 - Set VFO MMMMM*KKK*O   (Mhz digits, Khz digits, Offset)
*  3 - Set Rx PL Tone HHH*D*
*  4 - Set Tx PL Tone HHH*D* (Not currently implemented with DHE RBI-1)
*  5 - Link Status (long)
*  6 - Set operating mode M (FM, USB, LSB, AM, etc)
*  100 - RX PL off (Default)
*  101 - RX PL On
*  102 - TX PL Off (Default)
*  103 - TX PL On
*  104 - Low Power
*  105 - Med Power
*  106 - Hi Power
*  107 - Bump Down 20 Hz
*  108 - Bump Down 100 Hz
*  109 - Bump Down 500 Hz
*  110 - Bump Up 20 Hz
*  111 - Bump Up 100 Hz
*  112 - Bump Up 500 Hz
*  113 - Scan Down Slow
*  114 - Scan Down Medium
*  115 - Scan Down Fast
*  116 - Scan Up Slow
*  117 - Scan Up Medium
*  118 - Scan Up Fast
*  119 - Transmit allowing auto-tune
*  140 - Link Status (brief)
*  200 thru 215 - (Send DTMF 0-9,*,#,A-D) (200=0, 201=1, 210=*, etc)
*
* playback cmds:
*  specify the name of the file to be played globally (for example, 25=rpt/foo)
*
* localplay cmds:
* specify the name of the file to be played locally (for example, 25=rpt/foo)
*
* 'duplex' modes:  (defaults to duplex=2)
*
* 0 - Only remote links key Tx and no main repeat audio.
* 1 - Everything other then main Rx keys Tx, no main repeat audio.
* 2 - Normal mode
* 3 - Normal except no main repeat audio.
*4 - Normal except no main repeat audio during autopatch only



FUNCTIONS ON ONE OF MY NODES

my node
[functions28183]
1=ilink,1        DISCONNECT   
2=ilink,2        CONNECT MONITOR ONLY
3=ilink,3        CONNECT TRANSCEIVE
4=ilink,4        ENTER COMMAND ON SPECIFIC NODE
5=macro,1        MACRO

70=ilink,5      LINK STATUS
71=ilink,11    Disconnect a previously permanently connected link
72=ilink,12    LAST NODE TO KEY
73=ilink,13    FULL LINK STATUS
75=ilink,15    LINK CONNECT LOCAL MONITOR ONLY
76=ilink,6      DISCONNECT ALL LINKS  
77=ilink,16    Reconnect Links (that were disconnected by command)
78=ilink,18    Permanently Connect specified link -- local monitor only

80=status,11     Force ID (local only)
81=status,12     Give Time of Day (local only)

; Say 24 hour time - change to your node
82=cmd,/usr/local/sbin/say24time.pl 28183

*6  autopatch
*0=Autopatch down

; Node announcements
;920=localplay,/etc/asterisk/local/wa3dsp-announce
;989=cop,4        Test Tone On/Off
980=status,3    Give software Version (global)
99=cop,6 ; PTT on, # = release PTT (phone mode only)

; Example functions to call scripts
;A1=cmd,/usr/local/sbin//sayip.sh 28183        ; Say local IP to radio
;A3=cmd,/usr/local/sbin/saypublicip.sh 28183    ; Say Public IP to radio
;B1=cmd,/usr/local/sbin/halt.sh 28183    ; Halt (linux total shutdown)
;B3=cmd,/usr/local/sbin//reboot.sh 28183        ; Reboot the system
;B6=cmd,/usr/local/sbin/astres.sh        ; Restart Asterisk

;;;;;Pager Testing
891=cop,48,5,5,5,5,1,4,1,3 ; Send DTMF 5,5,5,5,1,4,1,3
892=cop,48,!2688.0/1000,!2856.5/3000  ;qc tone mfd common and sta 2
893=cop,48,!1100+1700/100,!0/60,!700+900/60,!0/60,!700+1100/60,!0/60,!700+900/60,!0/60,!1500+1700/60 ; Send MF tone sequence KP121ST
894=cop,48,!1800.0/1000,!1232.0/3000  ;qc tone pfd common and tone 1
895=cop,48,!2688.0/1000,!402.30/3000  ;qc tone mfd common and sta 1
896=cop,48,!2688.0/1000,!2932.6/3000  ;qc tone mfd common and chief
899=cop,48,!2688.0/1000,!1130.5/3000  ; Send two tone paging sequence Medford
897=cop,48,!2932.6/1000,!2250.3/3000  ;qc tone npfd common and general
898=cop,48,!2688.0/1000,!2932.6/3000,!2688.0/1000,!1130.5/3000,5,5,5,5,1,4,1,3  ;qc tone mfd common and chief

XXX=ilink,6                ; link disable    Change XXX to a numbers that suits your needs
XXX=ilink,16              ; link enable
XXX=cop,3                ; repeater transmit disable
XXX=cop,2                ; repeater transmit enable

971=cop,21                ; enable Parrot Mode
970=cop,22                ; disable Parrot Mode
972=cop,55                ; Parrot once if Parrot mode is disabled
973=cop,23                ; Parrot cleanup/flush

; Place command macros here

[macro28183]
;Macro number = command string (ea command separated by space) -end with HASH
;1=*81 *80#    ; play time and voice ID

50=*616319601051#   ;Call W2YMM Cellphone
51=*616316611771#   ;Call W2YMM home phone

1 = *327630# ; KI4SWB CONNECT CODE *51
2 = *127630# ; KI4SWB DISCONNECT CODE *52
3 = *341170# ; K5TRA HUB CONNECT CODE *53
4 = *141170# ; K5TRA HUB DISCONNECT CODE *54
6 = *327339# ; WB2JPQ Interlink System connect *56


Sound Fob Modification     Additional ways

Still haven't finished this project yet.....
How to utilize Echolink on your Server 1 node from Server 2

Echolink is on my Server 1 node 28183 that also has a Private node 1999.
From server 2 (41899) I want to be able to connect to server 1 (1999)
Then make an echolink call.

Connect via 41899 to 1999 for Echolink (Using a preconfigured Macro)
Dial *31999 to make the connection
*5 then macro number
[macro41899]
43 = *41999*33088953 ; connect to ab2m conference           *543
44 = *41999*13088953 ; disconnect from ab2m conference   *544
45 = *41999*33119705 ; connect to care_hub conference      *545
46 = *41999*13119705 ; disconnect to care_hub conference  *546
99 = *41999*33009999 ; connect echotest                          *599

Macro Example------>> 99 = *41999*33009999 ; connect echotest   *599
In this example *5 is the default Macro Prefix
then 99 is the macro command  *599 to execute the command
*4 is for Remote Command
1999 is the remote node you wish to execute the command on
*3 is a connect command
3009999 is an Echolink node number (Echotest)

You don't have to do it with a macro but I only needed to connect to
1 or 2 different nodes for a specific net.
You could dial all the numbers directly from your DTMF pad
but that's alot of numbers.
*41999*33009999

 
  MY NODES
28183-927.3125/R
29973-VHF Simplex
40822-UHF Simplex
41899-449.300/R
43937-LINY HUB
43943-Remote Base
45963-Radioless node
Allstar Weather Scripting Information

New or updated scripts -  (From the Email List)
(APRIL 2017)
saytime.pl, the script that says the time on the hour has been updated to optionally say the temperature and weather conditions for your area.
This depends on the new weather.sh script which it calls. You can call this script directly to view the conditions based on your zipcode or nearby
airport designator.

[root at 27225-HUB ~]# weather.sh 18954
69 / Partly Sunny
[root at 27225-HUB ~]# weather.sh phl
67 / Partly Sunny

To say time and weather the saytime.pl script should be called like this -

saytime.pl [zipcode|airport code] <node>

It would have these options - (27225=Node Number and 18954=Zip Code) Change to your area

saytime.pl 27225
saytime.pl 18954 27225
saytime.pl phl 27225
saytime.pl 18954 $NODE1

The first one given your node would just say the time, the second the timeand weather conditions/temperature for zipcode 18954,
the third the time and conditions/temperature for airport designator phl - Philadelphia International Airport,
and the fourth shows that your node can use the $NODE1 variable. Your primary node is assigned to that variable.

saytime.pl says the time in localplay - only to your local node or RF connected radio or repeater.

By default in the hamvoip code the primary node says the time on the hour. This is accomplished by a cron entry. The entry looks like this:

[root at WA3DSP-42291-UHF ~]# crontab -l
# 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 18954 $NODE1 > /dev/null)

To change your cron to say the weather conditions/temperature add either
your zipcode or local airport designator after saytime.pl as shown above
where zipcode 18954 is added. cron is edited using 'crontab -e' at the
Linux prompt.

The *81 time function can also be changed in rpt.conf if desired so a *81
would also say the weather conditions and temperature.

;81=status,12   ; Time of Day (local)      <<<< Current function shown commented
81=cmd,/usr/local/sbin/saytime.pl 18954 42291      <<<<<  New function, use your zip/airport and node number

This says the weather condition only if the actual Alison voice is available for that particular condition. Some conditions may not play or
may partially play. To turn off the condition part of the statement and just say the temperature change this line in the /usr/local/sbin/weather.sh script -

# Set this to use current WX condition. If "NO" then just temperature
process_condition="YES"

DO NOT depend on the reported weather condition for severe weather
alerts!!!! Use AutoSky or some other method. The condition and temperature
data comes from accuweather.

New wx script

This is a standalone script that graphically shows weather at the Linux
prompt. It has nothing to do with Allstar but is fun to see. It requires
your nearest city name.

wx philadelphia

Since this is an independent script I cannot attest to its accuracy or
where the data comes from.

There is also a Weather Script avaiable called AutoSky and WA3DSP has additional info here
 
Check that a node is registering with the system

In the 1st example I am checking to see the IP Address of 43937 and the 2nd is 28183

[[email protected] ~]# cat /var/lib/asterisk/rpt_extnodes |grep 43937
[email protected]:4564/43937,47.18.148.27

[[email protected] ~]# cat /var/lib/asterisk/rpt_extnodes |grep 28183
[email protected]:4569/28183,98.158.125.83


Simplex Repeater Utilizing the Parrot Function

I have a friend who wanted to make an on demand simplex repeater.
Figured we could utilize the Parrot feature of the Allstar node.
Here is what  I did.

Adding Simplex repeater function to your allstar node

add the following parrot lines to your function section in rpt.conf
971=cop,21                ; enable Parrot Mode
970=cop,22                ; disable Parrot Mode
972=cop,55                ; Parrot once if Parrot mode is disabled
973=cop,23                ; Parrot cleanup/flush

Create 2 audio files named simplex_on and simplex_off and place them
in /etc/asterisk/local.  They can be .gsm, .ulaw, etc. your preference.
I have a sample here if you need them

Add this line below the the parrot lines you just added.
981=localplay,/etc/asterisk/local/simplex_off ;simplex off message
982=localplay,/etc/asterisk/local/simplex_on  ;simplex on message

Add this to your marcro section
81 = *971 *982#    ;  Enable Simplex Repeater Mode and play message
82 = *970 *981#    ; Disable Simplex Repeater Node and play message

Now if you execute *581 your node will go into parrot mode and make the announcement that Simplex repeater mode is enabled.

*582 will turn off simplex parrot mode and will make that announcemet.


 
Arm-Allstar Version Info
Adding APRS to the Allstar Node

This is how I enabled APRS to work with my Allstar node.
You'll need to create a gps.conf file in /etc/asterisk/rpt.conf
Example of my file below.  Change the items in BOLD to your information

You will also need to comment out a line in /etc/asterisk/modules.conf
;noload=app_gps.so

; Configuration for app_gps
;
[general]

call = YOUR CALL-8   ; callsign (including SSID) for APRS purposes
password = XXXXX ; Password for APRS-IS server for above callsign
comment = AllStar Node XXXX ; Text to be displayed associated with this station
server = rotate.aprs2.net  ; APRS-IS server to report information to
port = 14580 ; port on server to send data
interval = 600 ; Beacon interval in seconds
icon = n  ; A CAR (default)   Icon yo be displayed
;comport = /dev/ttyS0  ; Serial port for GPS receiver (specify this only if using GPS receiver)
;baudrate = 4800  ; Baud rate for GPS receiver (specify this only if using GPS receiver)
;debug = y ; set this for debug output
freq=449.675  ; Display Frequency of station
tone=110.9    ; CTCSS tone of station (0.0 for none)
lat=40.705879   ; Fixed (default) latitude in decimal degrees
lon=-73.295885 ; Fixed (default) longitude in decimal degrees
elev=10.5    ; Elevation of Antenna in Meters (*NOT* HAAT)
power=4       ; Power level (see below)
height=1      ; Antenna Height in HAAT (see below)
gain=3        ; Antenna Gain (see below)
dir=0         ; Antenna Direction (see below)


Official doc's are available here http://docs.allstarlink.org/drupal/node/14
As well as the Special Digits conversion