Configure Linksys SPA3102 trunk for Asterisk 1.8.13.1 on Syn

I am trying to set up an Asterisk server on a Synology disk station using a Linksys SPA3102 voice gateway as the trunk to my analog phone line. I have scoured the net for tutorials and how-to’s and have followed the following tutorials (among others) with no luck.

skelleton.net/2012/08/02/linksys-spa-3102/
poormanstech.blogspot.com/2007/1 … -3102.html
lists.digium.com/pipermail/aster … 01313.html
freepbx.org/support/document … 00-freepbx

Asterisk states “Unrecognized trunk” on the System Status page and I get a dial tone but busy signal after dialing.

sip.conf…

[general]
context=default
allowoverlap=no
subscribecontext=default
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
allowexternaldomains=yes
allowguest=yes
allowsubscribe=yes
allowtransfer=yes
alwaysauthreject=no
autodomain=no
callevents=no
checkmwi=10
compactheaders=no
defaultexpiry=120
dumphistory=no
externrefresh=10
g726nonstandard=no
jbenable=no
jbforce=no
jblog=no
maxcallbitrate=384
maxexpiry=3600
minexpiry=60
mohinterpret=default
notifyringing=yes
pedantic=no
progressinband=never
promiscredir=no
realm=asterisk
recordhistory=yes
registerattempts=0
registertimeout=20
relaxdtmf=no
sendrpid=no
sipdebug=no
t1min=100
t38pt_udptl=no
tos_audio=none
tos_sip=none
tos_video=none
trustrpid=no
useragent=Asterisk PBX
usereqphone=no
videosupport=no
disallow=all
allow=ulaw,alaw,gsm,ilbc,h264,speex,g726,adpcm,lpc10,g729,g723,h263,h263p

[authentication]

[line1]
type=friend
host=dynamic
context=internal
username=line1
secret=mypassword
nat=yes
canreinvite=no
dtmfmode=rfc2833
qualify=yes
disallow=all
allow=ulaw

[pstn]
type=friend
host=dynamic
defaultip=192.168.1.226
context=pstn
username=pstn-trunk
secret=mypassword
nat=yes
canreinvite=no
dtmfmode=rfc2833
qualify=yes
insecure=port,invite
disallow=all
allow=ulaw

users.conf…

[6001]
fullname=pstn
registersip=no
host=dynamic
callgroup=1
mailbox=6001
call-limit=100
type=peer
username=pstn-trunk
transfer=yes
callcounter=yes
context=DLPN_Setup
cid_number=6001
hasvoicemail=yes
vmsecret=1234
email=
threewaycalling=no
hasdirectory=no
callwaiting=no
hasmanager=yes
managerread=system,call,log,verbose,command,agent,user,config,originate
managerwrite=system,call,log,verbose,command,agent,user,config,originate
hasagent=yes
hassip=yes
hasiax=no
secret=mypassword
nat=no
canreinvite=no
dtmfmode=rfc2833
insecure=port,invite
pickupgroup=2
macaddress=000E08C328D8
autoprov=yes
label=6001
linenumber=1
LINEKEYS=1
port=5061
requirecalltoken=yes
disallow=all
allow=ulaw,gsm

[trunk_1]

host=dynamic
port=5061
type=friend
qualify=yes
username=pstn-trunk
secret=mypassword
trunkname=1-pstn
context=from-trunk
hasexten=no
hasiax=no
hassip=yes
registeriax=no
registersip=no
canreinvite=no
trunkstyle=customvoip
insecure=port,invite
dtmfmode=rfc2833
incominglimit=1
nat=never
disallow=all
allow=ulaw

Not sure if I’m having Asterisk problems, Synology problems, Linksys problems, or what. So many components in the setup make the issue a challenge. Mainly I need the SPA3102 just operational as a PSTN trunk so I can reach the outside world. The rest of the Asterisk config I can probably figure out easily enough.

Is Synology supporting Asterisk on it’s products? How do you configure Asterisk - via CLI (modifying .conf files) or via WebGUI?