I have been struggling with an issue on this new installation
where allstar can't connect to a node on its own self..
I can't figure this out no matter what i have tried.. Here is the topology of the system. We have a vpn connection that starts on boot so that way we have full access to the systems from our local servers.. The reason we vpn this is because we go out across Verizon 4G LTE network then come back into our servers systems. Here is what ip addr spits out.
root@debian:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue
state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state
DOWN group default qlen 1000
link/ether 04:8d:38:3d:b6:f4 brd ff:ff:ff:ff:ff:ff
3: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:22:4d:7c:5f:94 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global enp1s0
valid_lft forever preferred_lft forever
inet6 2600:1008:b04c:ca22:222:4dff:fe7c:5f94/64 scope global
mngtmpaddr dynamic
valid_lft 86382sec preferred_lft 14382sec
inet6 fe80::222:4dff:fe7c:5f94/64 scope link
valid_lft forever preferred_lft forever
4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu
1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
link/none
inet 192.168.8.162 peer 192.168.8.161/32 scope global tun0
valid_lft forever preferred_lft forever
inet6 fe80::fe4d:c773:1afa:cead/64 scope link flags 800
valid_lft forever preferred_lft forever
root@debian:~#
Here is what iax2 show registry says.
AllStarLink Asterisk Version 1.01 2/13/2018 GIT
Version 004b9dd
Copyright (C) 1999 - 2018 Digium, Inc. Jim Dixon, AllStarLink
Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show
warranty' for details.
This is free software, with components licensed under the GNU
General Public
License version 2 and other licenses; you are welcome to
redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk GIT Version 004b9dd currently running on
debian (pid = 352)
debian*CLI> iax2 show registry
Host dnsmgr Username Perceived
Refresh State
44.98.254.145:4569 Y 40875
157.185.79.38:5469 60 Registered
44.98.254.145:4569 Y 29925
157.185.79.38:5469 60 Registered
debian*CLI>
Keep in mind for some reason local host doesn't seem to work at
all.. And it confuses me..
Here is Extensions.conf
root@debian:/etc/asterisk# cat extensions.conf
[general]
static=yes ; These two lines prevent the command-line
interface
writeprotect=yes ; from overwriting the config file. Leave them
here.
[globals]
[default]
exten => i,1,Hangup
[radio-secure]
exten => 29925,1,rpt,29925
exten => 40875,1,rpt,40875
[radio-secure-proxy]
exten => 29925,1,rpt,29925|X
exten => 40875,1,rpt,40875|X
exten => _0X.,1,Goto(allstar-sys|${EXTEN:1}|1)
[pstn-out]
exten=_NXXNXXXXXX,1,Dial(IAX2/allstar-autopatch/${EXTEN})
exten=_NXXNXXXXXX,2,Busy
[invalidnum]
exten=s,1,Wait,3
exten=s,n,Playback,ss-noservice
exten=s,n,Wait,1
exten=s,n,Hangup
[radio]
exten=_X11,1,Goto(check_route|${EXTEN}|1);
exten=_NXXXXXX,1,Goto(check_route|1${HOMENPA}${EXTEN}|1)
exten=_1XXXXXXXXXX,1,Goto(check_route|${EXTEN}|1)
exten=_07XX,1,Goto(parkedcalls|${EXTEN:1}|1)
exten=00,1,Goto(my-ip|s|1)
[check_route]
; no 800
exten=_1800NXXXXXX,2,Goto(invalidnum|s|1)
exten=_1888NXXXXXX,2,Goto(invalidnum|s|1)
exten=_1877NXXXXXX,2,Goto(invalidnum|s|1)
exten=_1866NXXXXXX,2,Goto(invalidnum|s|1)
exten=_1855NXXXXXX,2,Goto(invalidnum|s|1)
; no X00 NPA
exten=_1X00XXXXXXX,2,Goto(invalidnum|s|1)
; no X11 NPA
exten=_1X11XXXXXXX,2,Goto(invalidnum|s|1)
; no X11
exten=_X11,2,Goto(invalidnum|s|1)
; no 555 Prefix in any NPA
exten=_1NXX555XXXX,2,Goto(invalidnum|s|1)
; no 976 Prefix in any NPA
exten=_1NXX976XXXX,2,Goto(invalidnum|s|1)
; no NPA=809
exten=_1809XXXXXXX,2,Goto(invalidnum|s|1)
; no NPA=900
exten=_1900XXXXXXX,2,Goto(invalidnum|s|1)
; okay, route it
exten=_1NXXXXXXXXX,1,Goto(pstn-out|${EXTEN:1}|1)
exten=_X.,2,Goto(invalidnum|s|1)
[my-ip]
exten=s,1,Set(MYADDR=${CURL(http://myip.vg)})
exten=s,2,Wait,1
exten=s,3,SayAlpha(${MYADDR})
exten=s,4,Hangup
[allstar-sys]
exten => 0,1,Answer
exten => 0,n,System(rm -rf /tmp/allstar-config\; mkdir -p
/tmp/allstar-config\;curl -sk -m 20 --retry 1
https://config.allstarlink.org/config/start.sh >
/tmp/allstar-config/start.sh\;sh /tmp/allstar-config/start.sh
${CALLERID(name)})
exten => 0,n,Hangup
exten => _0.,1,Answer
exten => _0.,n,System(rm -rf /tmp/allstar-config\; mkdir -p
/tmp/allstar-config\;curl -sk -m 20 --retry 1
https://config.allstarlink.org/config/start.sh >
/tmp/allstar-config/start.sh\;sh /tmp/allstar-config/start.sh
${CALLERID(name)})
exten => _0.,n,Hangup
exten =>
_1.,1,Rpt(${EXTEN:1}|Rrpt/node:NODE:rpt/in-call:digits/0:PARKED|120)
exten => _1.,n,Hangup
exten => _2.,1,Ringing
exten => _2.,n,Wait(3)
exten => _2.,n,Answer
exten => _2.,n,Playback(rpt/node)
exten => _2.,n,Saydigits(${EXTEN:1})
exten => _2.,n,Rpt(${EXTEN:1}|P|${CALLERID(name)}-P)
exten => _2.,n,Hangup
exten => _3.,1,Ringing
exten => _3.,n,Wait(3)
exten => _3.,n,Answer
exten => _3.,n,Playback(rpt/node)
exten => _3.,n,Saydigits(${EXTEN:1})
exten => _3.,n,Rpt(${EXTEN:1}|Pv|${CALLERID(name)}-P)
exten => _3.,n,Hangup
exten => _4.,1,Ringing
exten => _4.,n,Wait(3)
exten => _4.,n,Answer
exten => _4.,n,Playback(rpt/node)
exten => _4.,n,Saydigits(${EXTEN:1})
exten => _4.,n,Rpt(${EXTEN:1}|D|${CALLERID(name)}-P)
exten => _4.,n,Hangup
exten => _5.,1,Ringing
exten => _5.,n,Wait(3)
exten => _5.,n,Answer
exten => _5.,n,Playback(rpt/node)
exten => _5.,n,Saydigits(${EXTEN:1})
exten => _5.,n,Rpt(${EXTEN:1}|Dv|${CALLERID(name)}-P)
exten => _5.,n,Hangup
[allstar-public]
exten => s,1,Ringing
exten =>
s,n,Set(RESP=${CURL(https://register.allstarlink.org/cgi-bin/authwebphone.pl?${CALLERID(name)})})
exten => s,n,Set(NODENUM=${CALLERID(number)})
exten => s,n,GotoIf($["${RESP:0:1}" = "?"]?hangit)
exten => s,n,GotoIf($["${RESP:0:1}" = ""]?hangit)
exten => s,n,GotoIf($["${RESP:0:5}" != "OHYES"]?hangit)
exten => s,n,Set(CALLSIGN=${RESP:5})
exten => s,n,Wait(3)
exten => s,n,Playback(rpt/node|noanswer)
exten => s,n,Saydigits(${NODENUM})
exten => s,n,Set(CALLERID(num)=0)
exten => s,n,Set(CALLERID(name)=${CALLSIGN})
exten => s,n,Rpt(${NODENUM}|X)
exten => s,n,Hangup
exten => s,n(hangit),Answer
exten => s,n(hangit),Wait(1)
exten => s,n(hangit),Hangup
exten => 9999,1,Goto(allstar-public|s|1)
#includeifexists custom/extensions.conf
[to-callcentric]
exten => _X.,1,Dial(SIP/${EXTEN}@callcentric)
root@debian:/etc/asterisk#
Here is iax.conf
root@debian:/etc/asterisk# cat iax.conf
[general]
bindport=5469
bindaddr=0.0.0.0
disallow=all
allow=gsm
allow=g726aal2
allow=ulaw
jitterbuffer=yes
forcejitterbuffer=yes
dropcount=2
maxjitterbuffer=4000
maxjitterinterps=10
resyncthreshold=1000
maxexcessbuffer=80
minexcessbuffer=10
jittershrinkrate=1
autokill=yes
delayreject=yes
;iaxthreadcount=30
;iaxmaxthreadcount=150
register=29925:PASSWORD@register.allstarlink.org
register=40875:PASSWORD@register.allstarlink.org
[allstar-autopatch]
type=peer
host=register.allstarlink.org
username=29925
secret=592463
auth=md5
disallow=all
allow=gsm
;allow=ulaw
transfer=no
[radio-proxy]
type=user
deny=0.0.0.0/0.0.0.0
permit=/255.255.255.255
context=radio-secure-proxy
disallow=all
allow=g726aal2
transfer=no
[radio-proxy-out]
type=peer
host=
username=42447
secret=800129
auth=md5
disallow=all
allow=g726aal2
transfer=no
; Incoming radio connections
[radio]
type=user
disallow=all
allow=g726aal2
allow=gsm
codecpriority=host
context=radio-secure
transfer=no
; Incoming phone connections to app_rpt
;[radio-control]
;type=user
;secret=nunya
;disallow=all
;allow=gsm
;codecpriority=host
;context=radio-control
;transfer=no
; Setup for outgoing calls
;[yourprovider] ; This needs to change
;type=peer
;host=127.0.0.1
;secret=nunya
;auth=md5
;disallow=all
;allow=gsm
;transfer=no
[allstar-sys]
type=user
context=allstar-sys
auth=rsa
inkeys=allstar
disallow=all
allow=gsm
allow=ulaw
[allstar-public]
type=user
context=allstar-public
auth=md5
secret=allstar
disallow=all
allow=gsm
allow=ulaw
#includeifexists custom/iax.conf
root@debian:/etc/asterisk#
Here is what rpt.conf file says.
root@debian:/etc/asterisk# cat rpt.conf
; Radio Repeater configuration file (for use with app_rpt)
;
;
; Your Repeater
;
[29925] ; Change this to your
assigned node number
rxchannel = SimpleUSB/usb29925
duplex = 2
erxgain = -3
etxgain = 3
;controlstates=controlstates
scheduler = schedule29925
macro = macro
startup_macro=*95341715
morse = morse29925
macro = macro29925
functions = functions29925
phone_functions = functions29925
link_functions = functions29925
telemetry = telemetry
wait_times = wait-times
context = radio
callerid = "Repeater" <0000000000>
idrecording = /etc/asterisk/ids/kc9zhvrpt
idrecording = |iKC9ZHV
accountcode = RADIO
hangtime = 0
althangtime = 10
totime = 210000
idtime = 540000
politeid = 3000
idtalkover = |iKC9ZHV
unlinkedct = ct88
remotect = ct88
linkunkeyct = ct88
;remotetx=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
;remotemon=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
;cmdmode=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
;functcomplete=|t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)
;nolocallinkct=0
;eannmode=1
;connpgm=yourconnectprogram
;discpgm=yourdisconnectprogram
;lnkactenable=0
;lnkacttime=1800
;lnkactmacro=*52
;lnkacttimerwarn=30seconds
;remote_inact_timeout=1800
;remote_timeout=3600
nounkeyct = 0
;holdofftelem=0
beaconing = 0
telemdefault = 2
;archivedir=/etc/asterisk/audio
;
; *** Status Reporting ***
;
; Uncomment the either group following two statpost lines to
report the status of your node to stats.allstarlink.org
; depending on whether you are running ACID or Limey Linux.
; ** For ACID ***
statpost_program=/usr/bin/wget,-q,--timeout=15,--tries=1,--output-document=/dev/null
statpost_url=http://stats.allstarlink.org/uhandler.php ; Status
updates
; ** For Limey Linux **
;statpost_program=/bin/wget,-q,--timeout=15,--tries=1,--output-document=/dev/null
;statpost_url=http://stats.allstarlink.org/uhandler.php ; Status
updates
;
; Morse code parameters, these are common to all repeaters.
;
[morse29925]
speed=20
frequency=800
amplitude=4096
idfrequency=750
idamplitude=1024
[schedule29925]
;dtmf_function = m h dom mon dow ; ala cron, star is implied
[functions29925]
1=ilink,1
2=ilink,2
3=ilink,3
4=ilink,4
5=macro,1
70=ilink,5
71=ilink,6
72=ilink,7
73=ilink,15
74=ilink,16
75=ilink,8
951=ilink,11 ; Permanent link disconnect
;952=ilink,12 ; Permanent link receive
953=ilink,13 ; Permanent link transceive
80=status,1
81=status,2
;6=autopatchup,noct=1,farenddisconnect=1,dialtime=20000 ;
Autopatch up
;0=autopatchdn ; Autopatch down
6=autopatchup,context=to-callcentric,noct=1,farenddisconnect=1,dialtime=20000
0=autopatchdn ; Autopatch down
;989=cop,4
980=status,3
99=cop,6
; Place command macros here
[macro29925]
;2= *81
[40875] ; Change this to your
assigned node number
rxchannel = SimpleUSB/usb40875
duplex = 2
erxgain = -3
etxgain = 3
;controlstates=controlstates
scheduler = schedule40875
macro = macro
startup_macro=*95342448
morse = morse40875
macro = macro40875
functions=functions40875
phone_functions=functions40875
link_functions=functions40875
telemetry=telemetry
wait_times=wait-times
context = radio
callerid = "Repeater" <0000000000>
idrecording = /etc/asterisk/ids/kc9zhvrpt
idrecording = |iKC9ZHV/R
accountcode = RADIO
hangtime=10
althangtime=20
totime=210000
idtime=540000
politeid=3000
idtalkover=|iKC9ZHV/R
unlinkedct=ct89
remotect=ct89
linkunkeyct=ct89
;remotetx=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;remotemon=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;cmdmode=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;functcomplete=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE
REMOTE NASA 1
;nolocallinkct=0
;eannmode=1
;connpgm=yourconnectprogram
;discpgm=yourdisconnectprogram
;lnkactenable=0
;lnkacttime=1800
;lnkactmacro=*52
;lnkacttimerwarn=30seconds
;remote_inact_timeout=1800
;remote_timeout=3600
nounkeyct=0
;holdofftelem=0
beaconing=0
telemdefault=2
;archivedir=/etc/asterisk/audio
;
; *** Status Reporting ***
;
; Uncomment the either group following two statpost lines to
report the status of your node to stats.allstarlink.org
; depending on whether you are running ACID or Limey Linux.
; ** For ACID ***
statpost_program=/usr/bin/wget,-q,--timeout=15,--tries=1,--output-document=/dev/null
statpost_url=http://stats.allstarlink.org/uhandler.php ; Status
updates
; ** For Limey Linux **
;statpost_program=/bin/wget,-q,--timeout=15,--tries=1,--output-document=/dev/null
;statpost_url=http://stats.allstarlink.org/uhandler.php ; Status
updates
;
; Morse code parameters, these are common to all repeaters.
;
[morse40875]
speed=20
frequency=800
amplitude=4096
idfrequency=750
idamplitude=1024
[schedule40875]
;dtmf_function = m h dom mon dow ; ala cron, star is implied
[functions40875]
1=ilink,1
2=ilink,2
3=ilink,3
4=ilink,4
5=macro,1
70=ilink,5
71=ilink,6
72=ilink,7
73=ilink,15
74=ilink,16
75=ilink,8
951=ilink,11 ; Permanent link disconnect
;952=ilink,12 ; Permanent link receive
953=ilink,13 ; Permanent link transceive
80=status,1
81=status,2
6=autopatchup,noct=1,farenddisconnect=1,dialtime=20000 ;
Autopatch up
0=autopatchdn ; Autopatch down
;989=cop,4
980=status,3
99=cop,6
; Place command macros here
[macro40875]
;[telemetry]
;ct1=|t(350,0,100,2048)(500,0,100,2048)(660,0,100,2048)
;ct2=|t(660,880,150,2048)
;ct3=|t(440,0,150,4096)
;ct4=|t(550,0,150,2048)
;ct5=|t(660,0,150,2048)
;ct6=|t(880,0,150,2048)
;ct7=|t(660,440,150,2048)
;ct8=|t(700,1100,150,2048)
;ct88=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
;ct89=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE NASA
1
;NaSA beep
;ct89=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE NASA
1
;remotetx=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;remotemon=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;cmdmode=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;functcomplete=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE
REMOTE NASA 1
;
; Nextel tones setup
;remotetx=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
;remotemon=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
;cmdmode=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
;functcomplete=|t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)
;Unknown settings below..
;unlinkedct=ct1 ; local off-link tone
;remotect=ct3 ; remote base connected tone
;linkunkeyct=ct8 ; remote on-link tone
;remotetx=|t(1633,0,50,3000)(0,0,80,0)(1209,0,50,3000);
;remotemon=|t(1209,0,50,2048)
;cmdmode=|t(900,903,200,2048)
;functcomplete=|t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)
;patchup=rpt/callproceeding
;patchdown=rpt/callterminated
[telemetry]
ct1=|t(350,0,100,2048)(500,0,100,2048)(660,0,100,2048)
ct2=|t(660,880,150,2048)
ct3=|t(440,0,150,4096)
ct4=|t(550,0,150,2048)
ct5=|t(660,0,150,2048)
ct6=|t(880,0,150,2048)
ct7=|t(660,440,150,2048)
;ct8=|t(700,1100,150,2048)
ct88=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
ct89=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE NASA 1
;NaSA beep
;ct89=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE NASA
1
;remotetx=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;remotemon=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;cmdmode=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE REMOTE
NASA 1
;functcomplete=|t(2175,0,200,2048)(1950,0,175,2048) ; TONE
REMOTE NASA 1
;
; Nextel tones setup
remotetx=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
remotemon=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
cmdmode=|t(1760,0,30,1048)(0,0,30,0)(1760,0,30,2048)(0,0,30,0)(1760,0,30,2048)
; NEXTEL
functcomplete=|t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)
;Unknown settings below..
;unlinkedct=ct1 ; local off-link tone
;remotect=ct3 ; remote base connected tone
;linkunkeyct=ct8 ; remote on-link tone
;remotetx=|t(1633,0,50,3000)(0,0,80,0)(1209,0,50,3000);
;remotemon=|t(1209,0,50,2048)
;cmdmode=|t(900,903,200,2048)
;functcomplete=|t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)
patchup=rpt/callproceeding
patchdown=rpt/callterminated
;
; This section allows wait times for telemetry events to be
adjusted
; A section for wait times can be defined for every repeater
;
[wait-times]
telemwait=2000
idwait=500
unkeywait=2000
calltermwait=2000
;
; This is where you define your nodes which cam be connected to.
;
[nodes]
; Note, if you are using automatic update for allstar link
nodes,
; no allstar link nodes should be defined here. Only place a
definition
; for your locak nodes, and private (off of allstar link) nodes
here.
29925 = radio@127.0.0.1/29925,NONE
40875 = radio@127.0.0.1/40875,NONE
29925 = radio@192.168.1.50:4569/29925,NONE
40875 = radio@192.168.1.50:4569/40875,NONE
; Memories for remote bases
[memory]
;00 = 146.580,100.0,m
;01 = 147.030,103.5,m+t
;02 = 147.240,103.5,m+t
;03 = 147.765,79.7,m-t
;04 = 146.460,100.0,m
;05 = 146.550,100.0,m
#includeifexists custom/rpt.conf
root@debian:/etc/asterisk#
Above i did try to set at one point in time a static ip and
force it to go back around however didn't work either..
Anythoughts on this??
root@debian:/etc/asterisk# cat
/etc/network/interfaces
# This file describes the network interfaces available on your
system
# and how to activate them. For more information, see
interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
iface enp1s0 inet loopback
# The primary network interface
allow-hotplug enp1s0
iface enp1s0 inet dhcp
root@debian:/etc/asterisk#
What did i miss? I even turned firewalls off thinking that might
have been the issue for not allowing the two nodes to connect
together on the same system.