Skip to content

Commit fe93819

Browse files
committed
Add Samples
Add sample files to configs. Closes issues #312 and #316 Changes to be committed: new file: configs/samples/beagle.conf.sample new file: configs/samples/dnsmgr.conf.sample new file: configs/samples/echolink.conf.sample new file: configs/samples/extensions.conf.sample new file: configs/samples/gps.conf.sample new file: configs/samples/iax.conf.sample new file: configs/samples/logger.conf.sample new file: configs/samples/manager.conf.sample new file: configs/samples/modules.conf.sample new file: configs/samples/savenode.conf.sample new file: configs/samples/voter.conf.sample Changes not staged for commit: modified: configs/samples/beagle.conf.sample modified: configs/samples/echolink.conf.sample deleted: configs/samples/extensions.conf.sample deleted: configs/samples/logger.conf.sample deleted: configs/samples/manager.conf.sample deleted: configs/samples/modules.conf.sample deleted: configs/samples/savenode.conf.sample
1 parent 21b31b4 commit fe93819

11 files changed

+725
-0
lines changed

configs/samples/beagle.conf.sample

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
; If you are going to use this channel driver, you MUST enable it in modules.conf
2+
; enable it in modules.conf
3+
; change:
4+
; noload => chan_beagle.so ; Beagleboard Radio Interface Channel Driver
5+
; to:
6+
; load => chan_beagle.so ; Beagleboard Radio Interface Channel Driver
7+
8+
[general]
9+
10+
[1]
11+
carrierfrom = hwinvert
12+
ctcssfrom = hwinvert
13+
invertptt = 0
14+
duplex = 1
15+
rxondelay = 0
16+
eeprom = 0
17+
18+
[2]
19+
carrierfrom = hwinvert
20+
ctcssfrom = hwinvert
21+
invertptt = 0
22+
duplex = 1
23+
rxondelay = 0
24+
eeprom = 0
25+

configs/samples/dnsmgr.conf.sample

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[general]
2+
enable=yes ; enable creation of managed DNS lookups
3+
; default is 'no'
4+
refreshinterval=300 ; refresh managed DNS lookups every <n> seconds
5+
; default is 300 (5 minutes)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
; If you are going to use this channel driver, you MUST enable it in modules.conf
2+
; change:
3+
; noload => chan_echolink.so ; echolink Channel Driver
4+
; to:
5+
; load => chan_echolink ; echolink Channel Driver
6+
7+
[el0]
8+
call = INVALID ; Change this!
9+
pwd = INVALID ; Change this!
10+
name = YOUR NAME ; Change this!
11+
qth = INVALID ; Change this!
12+
email = INVALID ; Change this!
13+
node = 000000 ; Change this!
14+
; Data for EchoLink Status Page
15+
lat = 0.0 ; Latitude in decimal degrees
16+
lon = 0.0 ; Longitude in decimal degrees
17+
freq = 0.0 ; not mandatory Frequency in MHz
18+
tone = 0.0 ; not mandatory CTCSS Tone (0 for none)
19+
power = 0 ; 0=0W, 1=1W, 2=4W, 3=9W, 4=16W, 5=25W, 6=36W, 7=49W, 8=64W, 9=81W (Power in Watts)
20+
height = 0 ; 0=10 1=20 2=40 3=80 4=160 5=320 6=640 7=1280 8=2560 9=5120 (AMSL in Feet)
21+
gain = 0 ; Gain in db (0-9)
22+
dir = 0 ; 0=omni 1=45deg 2=90deg 3=135deg 4=180deg 5=225deg 6=270deg 7=315deg 8=360deg (Direction)
23+
24+
maxstns = 20 ; Max Stations
25+
26+
rtcptimeout = 10 ; Max number of missed heartbeats from EL
27+
recfile = /tmp/echolink_recorded.gsm ;
28+
astnode = 1999 ; Change this!
29+
context = radio-secure ; Default in code is echolink-in
30+
31+
; Max 4 servers
32+
server1 = nasouth.echolink.org
33+
server2 = naeast.echolink.org
34+
server3 = servers.echolink.org
35+
server4 = backup.echolink.org
36+
37+
; To deny w6xxx you would add the statement: deny = w6xxx
38+
; To prohibit computer-based connections you would write: permit = *-*
39+
; To allow access to only a select group of callsigns: permit = w6abc,w6def,...
40+
41+
; permit ; comma delimited list of callsign, type (-r)
42+
; deny
43+
44+
45+
; Remote text commands thru netcat:
46+
; o.conip <IPaddress> (request a connect)
47+
; o.dconip <IPaddress> (request a disconnect)
48+
; o.rec (turn on/off recording)
49+
50+
; ipaddr
51+
; port
52+
53+
#tryinclude custom/echolink.conf
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
[general]
2+
3+
static = yes ; These two lines prevent the command-line interface
4+
writeprotect = yes ; from overwriting the config file. Leave them here.
5+
6+
[globals]
7+
HOMENPA = 999 ; change this to your Area Code
8+
NODE = 1999 ; change this to your node number
9+
10+
[default]
11+
exten => i,1,Hangup
12+
13+
[radio-secure]
14+
;exten => ${NODE},1,rpt(${EXTEN})
15+
exten => _XXXX!,1,NoOp(Connect from node: ${CALLERID(num)})
16+
same => n,NoOp(Connect to: ${EXTEN})
17+
;same => n,NoOp(The IAXPEER is ${IAXPEER(CURRENTCHANNEL)})
18+
same => n,NoOp(The Channel IP is ${CHANNEL(peerip)})
19+
20+
;If channel IP eq localhost go to connect
21+
same => n,GotoIf($["${CHANNEL(peerip)}" = "127.0.0.1"]?connect)
22+
23+
;If allowlist/extension dosen't exist check the denylist
24+
same => n,GotoIf($[${DB_KEYCOUNT(allowlist/${EXTEN})} = 0]?denylist) ;goto denylist
25+
;If allowlist/extension/callerid exists go to connect
26+
same => n,GotoIf(${DB_EXISTS(allowlist/${EXTEN}/${CALLERID(num)})}?connect) ;goto connect
27+
same => n,NoOp(${EXTEN} not in allowlist, Hangup)
28+
same => n,Hangup
29+
30+
;If denylist/extension/callerID doesn't exist goto connect
31+
same => n(denylist),GotoIf(${DB_EXISTS(denylist/${EXTEN}/${CALLERID(num)})}?:connect) ;don't goto connect
32+
same => n,NoOp(${EXTEN} is in denylist, Hangup)
33+
same => n,Hangup
34+
35+
same => n(connect),rpt(${EXTEN})
36+
same => n,Hangup
37+
38+
[iaxrpt]
39+
; Entered from iaxrpt in iax.conf
40+
; Info: The X option passed to the Rpt application
41+
; disables the normal security checks.
42+
; Because incoming connections are validated in iax.conf,
43+
; and we don't know where the user will be coming from in advance,
44+
; the X option is required.
45+
exten => ${NODE},1,rpt(${EXTEN}|X) ; NODE is the Name field in iaxrpt
46+
47+
[iax-client] ; for IAX VoIP clients.
48+
exten => ${NODE},1,Ringing()
49+
same => n,Wait(10)
50+
same => n,Answer()
51+
same => n,Set(CALLSIGN=${CALLERID(name)})
52+
same => n,NoOp(Caller ID name is ${CALLSIGN})
53+
same => n,NoOp(Caller ID number is ${CALLERID(number)})
54+
same => n,GotoIf(${ISNULL(${CALLSIGN})}?hangit)
55+
same => n,Playback(rpt/connected-to&rpt/node)
56+
same => n,SayDigits(${NODE})
57+
same => n,rpt(${NODE}|P|${CALLSIGN}-P)
58+
same => n(hangit),NoOp(No Caller ID Name)
59+
same => n,Playback(connection-failed)
60+
same => n,Wait(1)
61+
same => n,Hangup
62+
63+
; Comment-out the following clause if you want Allstar Autopatch service
64+
[pstn-out]
65+
exten => _NXXNXXXXXX,1,playback(ss-noservice)
66+
same => n,Congestion
67+
68+
; Un-comment out the following clause if you want Allstar Autopatch service
69+
;[pstn-out]
70+
;exten => _NXXNXXXXXX,1,Dial(IAX2/allstar-autopatch/\${EXTEN})
71+
; same => n,Busy
72+
73+
[invalidnum]
74+
exten => s,1,Wait(3)
75+
same => n,Playback(ss-noservice)
76+
same => n,Wait(1)
77+
same => n,Hangup
78+
79+
[radio]
80+
exten => _X11,1,Goto(check_route,${EXTEN},1);
81+
exten => _NXXXXXX,1,Goto(check_route,1${HOMENPA}${EXTEN},1)
82+
exten => _1XXXXXXXXXX,1,Goto(check_route,${EXTEN},1)
83+
exten => _07XX,1,Goto(parkedcalls,${EXTEN:1},1)
84+
exten => 00,1,Goto(my-ip,s,1)
85+
86+
[check_route]
87+
exten => _X.,1,Noop(${EXTEN})
88+
; no 800
89+
exten => _1800NXXXXXX,2,Goto(invalidnum,s,1)
90+
exten => _1888NXXXXXX,2,Goto(invalidnum,s,1)
91+
exten => _1877NXXXXXX,2,Goto(invalidnum,s,1)
92+
exten => _1866NXXXXXX,2,Goto(invalidnum,s,1)
93+
exten => _1855NXXXXXX,2,Goto(invalidnum,s,1)
94+
; no X00 NPA
95+
exten => _1X00XXXXXXX,2,Goto(invalidnum,s,1)
96+
; no X11 NPA
97+
exten => _1X11XXXXXXX,2,Goto(invalidnum,s,1)
98+
; no X11
99+
exten => _X11,2,Goto(invalidnum,s,1)
100+
; no 555 Prefix in any NPA
101+
exten => _1NXX555XXXX,2,Goto(invalidnum,s,1)
102+
; no 976 Prefix in any NPA
103+
exten => _1NXX976XXXX,2,Goto(invalidnum,s,1)
104+
; no NPA=809
105+
exten => _1809XXXXXXX,2,Goto(invalidnum,s,1)
106+
; no NPA=900
107+
exten => _1900XXXXXXX,2,Goto(invalidnum,s,1)
108+
109+
; okay, route it
110+
exten => _1NXXXXXXXXX,2,Goto(pstn-out,${EXTEN:1},1)
111+
exten => _X.,2,Goto(invalidnum,s,1)
112+
113+
[my-ip]
114+
exten => s,1,Wait(1)
115+
same => n,SayAlpha(${CURL(http://myip.vg)})
116+
same => n,Hangup
117+
118+
[allstar-sys]
119+
exten => _1.,1,Rpt(${EXTEN:1}|Rrpt/node:NODE:rpt/in-call:digits/0:PARKED|120)
120+
exten => _1.,n,Hangup
121+
122+
exten => _2.,1,Ringing
123+
exten => _2.,n,Wait(3)
124+
exten => _2.,n,Answer
125+
exten => _2.,n,Playback(rpt/node)
126+
exten => _2.,n,Saydigits(${EXTEN:1})
127+
exten => _2.,n,Rpt(${EXTEN:1}|P|${CALLERID(name)}-P)
128+
exten => _2.,n,Hangup
129+
130+
exten => _3.,1,Ringing
131+
exten => _3.,n,Wait(3)
132+
exten => _3.,n,Answer
133+
exten => _3.,n,Playback(rpt/node)
134+
exten => _3.,n,Saydigits(${EXTEN:1})
135+
exten => _3.,n,Rpt(${EXTEN:1}|Pv|${CALLERID(name)}-P)
136+
exten => _3.,n,Hangup
137+
138+
exten => _4.,1,Ringing
139+
exten => _4.,n,Wait(3)
140+
exten => _4.,n,Answer
141+
exten => _4.,n,Playback(rpt/node)
142+
exten => _4.,n,Saydigits(${EXTEN:1})
143+
exten => _4.,n,Rpt(${EXTEN:1}|D|${CALLERID(name)}-P)
144+
exten => _4.,n,Hangup
145+
146+
exten => _5.,1,Ringing
147+
exten => _5.,n,Wait(3)
148+
exten => _5.,n,Answer
149+
exten => _5.,n,Playback(rpt/node)
150+
exten => _5.,n,Saydigits(${EXTEN:1})
151+
exten => _5.,n,Rpt(${EXTEN:1}|Dv|${CALLERID(name)}-P)
152+
exten => _5.,n,Hangup
153+
154+
[allstar-public]
155+
156+
exten => s,1,Ringing
157+
same => n,Set(RESP=${CURL(https://register.allstarlink.org/cgi-bin/authwebphone.pl?${CALLERID(name)})})
158+
same => n,Set(NODENUM=${CALLERID(number)})
159+
same => n,GotoIf($["${RESP:0:1}" = "?"]?hangit)
160+
same => n,GotoIf($["${RESP:0:1}" = ""]?hangit)
161+
same => n,GotoIf($["${RESP:0:5}" != "OHYES"]?hangit)
162+
same => n,Set(CALLSIGN=${RESP:5})
163+
;exten => s,n,GotoIf($[${DB_EXISTS(whitelist/${CALLSIGN})}]?:hangit) ; Not in whitelist
164+
same => n,Wait(3)
165+
same => n,Playback(rpt/node,noanswer)
166+
same => n,Saydigits(${NODENUM})
167+
same => n,Set(CALLERID(name)=${CALLSIGN})
168+
same => n,Set(CALLERID(num)=0)
169+
same => n,Rpt(${NODENUM}|X)
170+
same => n,Hangup
171+
same => n(hangit),Answer
172+
same => n,Wait(1)
173+
same => n,Hangup
174+
175+
#tryinclude custom/extensions.conf

configs/samples/gps.conf.sample

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
; Configuration for app_gps
2+
;
3+
[general]
4+
; See https://wiki.allstarlink.org/wiki/Gps.conf
5+
call = W1AW-1 ; callsign (including SSID) for APRS purposes
6+
password = 12345 ; Password for APRS-IS server for above callsign
7+
comment = AllStar Node 1999 ; Text to be displayed associated with this station
8+
server = rotate.aprs2.net ; APRS-IS server to report information to
9+
port = 14580 ; port on server to send data
10+
interval = 600 ; Beacon interval in seconds
11+
icon = r ; A CAR (default) Icon to be displayed for station on APRS display
12+
comport = /dev/ttyS0 ; Serial port for GPS receiver (specify this only if using GPS receiver)
13+
baudrate = 4800 ; Baud rate for GPS receiver (specify this only if using GPS receiver)
14+
debug = n ; set this for debug output
15+
freq = 145.000 ; Display Frequency of station
16+
tone = 100.0 ; CTCSS tone of station (0.0 for none)
17+
lat = 12.3456 ; Fixed (default) latitude in decimal degrees
18+
lon = -123.4567 ; Fixed (default) longitude in decimal degrees
19+
elev = 123.4 ; Elevation of Antenna in Meters (*NOT* HAAT)
20+
power = 1 ; Power level
21+
height = 2 ; Antenna Height in HAAT
22+
gain = 3 ; Antenna Gain
23+
dir = 0 ; Antenna Direction
24+
25+
; ehlert =
26+
; interval =
27+
; ttcomment =
28+
; ttlat =
29+
; ttlist =
30+
; ttlon =
31+
; ttoffset =
32+
; ttsplit =
33+
34+
#tryinclude custom/gps.conf
35+

0 commit comments

Comments
 (0)