[App_rpt-users] phone portal issues

Loren Tedford lorentedford at gmail.com
Tue Jun 23 18:43:24 UTC 2015


Hey everyone I had a few people try to access my data center hubs with the
phone portal and they were unable to access it.. What all do i need to do
to fix this what config files affect the allstar phone portal.

root at hub:/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]
HOMENPA=200

[default]
exten => i,1,Hangup

[radio-secure]
exten => 41715,1,rpt,41715
exten => 41834,1,rpt,41834

[radio-secure-proxy]
exten => 41715,1,rpt,41715|X
exten => 41834,1,rpt,41834|X
exten => _0X.,1,Goto(allstar-sys|${EXTEN:1}|1)

[pstn-out]
exten=_NXXNXXXXXX,1,playback(ss-noservice)
exten=_NXXNXXXXXX,2,Congestion

[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)


root at hub:/etc/asterisk# cat iax.conf
; Inter-Asterisk eXchange driver definition
;
;

[general]
bindport=4569
bindaddr=0.0.0.0
disallow=all
allow=g726aal2

allow=ulaw

allow=gsm
allow=iLBC
allow=Speex 8k
allow=Speex 16k
jitterbuffer=yes

forcejitterbuffer=yes

dropcount=2

maxjitterbuffer=4000

maxjitterinterps=10

resyncthreshold=1000

maxexcessbuffer=80

minexcessbuffer=10

jittershrinkrate=1

tos=0x1E
autokill=yes

delayreject=yes

;iaxthreadcount=30

;iaxmaxthreadcount=150

register=NodeNumber:Password at register.allstarlink.org
register=NodeNumber:Password at register.allstarlink.org

[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
allow=gsm
allow=iLBC
allow=Speex 8k
allow=Speex 16k
transfer=no


[radio-proxy-out]
type=peer
host=
username=Node Number
secret=Password
auth=md5
disallow=all
allow=g726aal2
allow=gsm
allow=iLBC
allow=Speex 8k
allow=Speex 16k
transfer=no

[radio-proxy-out]
type=peer
host=
username=Nodenumber
secret=Password
auth=md5
disallow=all
allow=g726aal2
allow=gsm
allow=iLBC
allow=Speex 8k
allow=Speex 16k
transfer=no

; Incoming radio connections

[radio]
type=user
disallow=all
allow=g726aal2
allow=gsm
allow=iLBC
allow=Speex 8k
allow=Speex 16k
allow=ulaw
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=iLBC
allow=Speex 8k
allow=Speex 16k
allow=ulaw

[allstar-public]
type=user
context=allstar-public
auth=md5
secret=allstar
disallow=all
allow=ulaw
allow=gsm
allow=iLBC
allow=Speex 8k
allow=Speex 16k


Loren Tedford (KC9ZHV)
Email: lorentedford at gmail.com
Phone: ***-***-****
http://www.lorentedford.com
http://www.kc9zhv.com
http://hub.kc9zhv.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20150623/af348fe3/attachment.html>


More information about the App_rpt-users mailing list