[arm-allstar] Immediate disconnect

icameron at winshop.com.au icameron at winshop.com.au
Sun Jun 18 23:23:40 EDT 2023


Hi Michael,

Thanks for offering to take a look at the conf file for me. I now suspect the problem is actually 
that I haven't set up DVSwitch properly, I'll have to spend some time and effort attempting to 
understanding the whole ecosystem a little better. 

All the conf files were configured automatically with the initial setup script, all I have changed 
in the extensions.conf file is the last playback number in the [phone-iaxrpt] stanza from 
8 to 9 which I imagine is inconsequential. I'd be curious to know if you can connect to my 
node, if you can then this might isolate the problem to my DVS mobile setup.

Also just noticed that perhaps I should have commented out all references to 1999?

Thanks for your help, regards,

Ian


; WARNING - THIS FILE WAS AUTOMATICALLY CONFIGURED FROM A
; TEMPLATE FILE IN   /usr/local/etc/asterisk_tpl   BY THE
; NODE-CONFIG.SH SCRIPT.
;
; EACH TIME THIS SCRIPT IS RUN, THIS FILE WILL BE OVERWRITTEN.
; IF YOU CHANGE ANYTHING IN THIS FILE AND RUN THE NODE-CONFIG.SH
; SCRIPT, IT WILL BE LOST.
;
; IF YOU INTEND TO USE THE NODE-CONFIG.SH SCRIPT,  THEN YOU SHOULD
; MAKE MODIFICATIONS TO THE ACTUAL TEMPLATE FILES LOCATED IN
; /usr/local/etc/asterisk_tpl directory.
;
; Shown for two nodes, second node commented out.
; change ALL 59251 and 1999 (if second node used) to
; your local node numbers

; Updated 1/2019 to include additional features
; Before attempting to add features ensure they
; are not already installed

[general]

static=yes       ; These two lines prevent the command-line 
interface
writeprotect=yes ; from overwriting the config file. Leave them 
here.

[globals]
HOMENPA=215

[default]
exten => i,1,Hangup

[radio-secure]
exten => 59251,1,rpt,59251
exten => 1999,1,rpt,1999

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

; IAXRPT Windows

[radio-iaxrpt]
exten=59251,1,Rpt,59251|X
exten=1999,1,Rpt,1999|X

; The following stanza is to be used for Android/Iphone
; connections. Please configure the node number for the
; node on this server you want to connect to.
; The callerID name is configured and returned from
; your phone. It is typically your call.

[phone-iaxrpt]    ;;; Stanza is the context from iax.conf
exten => 59251,1,Answer
exten => 59251,n,Playback,rpt/node
exten => 59251,n,Playback,digits/1
exten => 59251,n,Playback,digits/9
exten => 59251,n,Playback,digits/9
exten => 59251,n,Playback,digits/9
exten => 59251,n,Set(CALLERID(num)=0)
exten => 59251,n,Rpt,1998|P|${CALLERID(name)} ;;; The "CallerID" 
from IAXRpt

; To make this have a static callerID name if your phone 
; app does not support callerID change the last line to this 
; and specify the name (usually CALL) in place of static-name.

;exten => 59251,n,Rpt,1998|P|"static-name" 

; Autopatch example lines. Must be configured and
; SIP or IAX phone connections configured to work.

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

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

; End autopatch example

; Following stanza required for web transceiver access

[allstar-public]

exten => s,1,Ringing
exten => 
s,n,Set(RESP=${CURL(https://register.allstarlink.org/cgi-bin/authwe
bphone.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)

; end web transceiver stanza

; Following stanza required for phone access

[allstar-sys]

exten => _x.,1,Ringing
exten => _x.,n,Wait(3)
exten => _x.,n,Answer
exten => _x.,n,Playback(rpt/node)
exten => _x.,n,Saydigits(${EXTEN:1})
exten => _x.,n,Rpt(${EXTEN:1}|P|${CALLERID(name)}-P)
exten => _x.,n,Hangup

; end phone access stanza

; The blacklist and whitelist stanzas below are used to allow or 
ban nodes
; from connecting. Only one can be selected at a time as defined in 
the
; [radio] stanza of iax.conf
;
; The best way to allow or ban nodes from the database is to
; use the Supermon application or the node-ban-allow.sh script.
;
; No changes need to be made to these stanzas. See comments in 
iax.conf.

[blacklist]
exten => _XXXX!,1,NoOp(${CALLERID(num)})
exten => 
_XXXX!,n,GotoIf($[${DB_EXISTS(blacklist/${CALLERID(num)})}]?blocked
)
exten => _XXXX!,n,Goto(radio-secure,${EXTEN},1)
exten => _XXXX!,n(blocked),Hangup

[whitelist]
exten => _XXXX!,1,NoOp(${CALLERID(num)})
exten => _XXXX!,n,NoOp(${IAXPEER(CURRENTCHANNEL)})
exten => _XXXX!,n,GotoIf($["${IAXPEER(CURRENTCHANNEL)}" = 
"127.0.0.1"]?radio-secure,${EXTEN},1)  ;permit local IPs
exten => 
_XXXX!,n,GotoIf($[${DB_EXISTS(whitelist/${CALLERID(num)})}]?radio-s
ecure,${EXTEN},1)
exten => _XXXX!,n,Hangup

; Stanza to get node number and pass to saydns.sh script in 
rpt.conf
[saydns]
exten => _xxx.,1,System(/usr/local/sbin/saydns.sh ${EXTEN})
exten => _xxx.,n,Hangup()

; Example connection to another Asterisk server
; and passing an extension

; [pbx_server]
;exten => _1NXXNXXXXXX,1,Dial(IAX2/pbx/${EXTEN})
;exten => _NXXNXXXXXX,1,Dial(IAX2/pbx/${EXTEN})
;exten => _NXX,1,Dial(IAX2/pbx/${EXTEN})
;exten => _NX,1,Dial(IAX2/pbx/${EXTEN})

#includeifexists custom/extensions.conf



On 17 Jun 2023 at 19:45, Michael Webb via ARM-allstar wrote:

> You can post your extensiona.conf file here and I can take a look at
> it.
> 
> On Sat, Jun 17, 2023, 7:44 PM Ian via ARM-allstar
> <arm-allstar at hamvoip.org> wrote:
> 
> >
> > Hi Michael,
> >
> > Thanks for replying. You're right, the audio is coming from the
> > [phone-iaxrpt] stanza, it plays 1998 (now fixed) while everything
> > else is 1999, although I can't figure out why it disconnects. There
> > is obviously something fundamentally wrong with my configuration.
> >
> > I think I'll take a break and restart from scratch some time later
> > after doing a bit more research. It's much more complex than I
> > expected.
> >
> > Regards,
> >
> > Ian
> >
> >
> > On 17 Jun 2023 at 7:23, Michael Webb via ARM-allstar wrote:
> >
> > > Check extensions.conf and make sure all the node numbers are
> > > correct throughout each line.  I've seen some start off as one
> > > number and then throw a different digit in there.  Such as 1998
> > > then 1999 or the other way around.
> > >
> > > On Sat, Jun 17, 2023, 7:04 AM Ian via ARM-allstar
> > > <arm-allstar at hamvoip.org> wrote:
> > >
> > > > I've just set up hamvoip on a RPi 3B, but have yet to connect it
> > > > to a radio.
> > > >
> > > > When trying to connect to my (external) node using DVSwitch
> > > > mobile, it announces an internal node (1998) then immediately
> > > > disconnects. Any ideas?
> > > >
> > > > I have to admit I'm not a linux guy, and it's taken me a day of
> > > > hair pulling frustration to get this far, so be gentle. Thanks!
> > > > _______________________________________________
> > > >
> > > > ARM-allstar mailing list
> > > > ARM-allstar at hamvoip.org
> > > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > > >
> > > > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> > > >
> > > _______________________________________________
> > >
> > > ARM-allstar mailing list
> > > ARM-allstar at hamvoip.org
> > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > >
> > > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >
> >
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >
> _______________________________________________
> 
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> 
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org




More information about the ARM-allstar mailing list