Skip to content

Instantly share code, notes, and snippets.

@bwann
Last active May 10, 2026 05:30
Show Gist options
  • Select an option

  • Save bwann/f77603d9096b45b7dc7c80b7f8e2859a to your computer and use it in GitHub Desktop.

Select an option

Save bwann/f77603d9096b45b7dc7c80b7f8e2859a to your computer and use it in GitHub Desktop.
Adtran Total Access 908e config + SIP + voip.ms
!
! https://binaryfury.wann.net/2026/05/adtran-total-access-908e-with-voip-ms-and-inbound-did/
!
! - Connected to LAN via gigether port
! - Registers SIP account 123456_adtran1 with voip.ms
! - Modem connected to FXS1 port
! - G.711 u-law codec, low RTP latency for modem
!
! On the voip.ms side I am using device type "Asterisk, IP PBX, Gateway or VoIP Switch" which
! will require static NAT/PAT translations
!
! public IP addr:5098 -> 192.168.x.x:5098
!
hostname "ata06.wann.net"
enable password level 2 secretsquirrel
!
clock timezone -8
!
ip subnet-zero
ip classless
ip default-gateway 192.168.130.1
ip routing
ipv6 unicast-routing
!
!
event-history on
logging forwarding on
logging forwarding priority-level info
logging forwarding receiver-ip 192.168.130.10
no logging email
!
service password-encryption
!
! for myself with admin level
username "bwann" privilege 7 password encrypted "hashhashhashhahash"
! for Oxidized
username "wn_backup" password encrypted "hashhashhashhahshash"
!
banner motd .
.
!
banner exec .
.
!
banner login .
.
!
no ip firewall alg msn
no ip firewall alg mszone
no ip firewall alg h323
!
no dot11ap access-point-control
!
!
interface eth 0/1
no ip address
shutdown
!
!
interface eth 0/2
no ip address
shutdown
!
!
interface gigabit-eth 0/1
ip address 192.168.130.65 255.255.255.0
ipv6
ipv6 address autoconfig default
ipv6 nd ra suppress
media-gateway ip primary
no shutdown
!
interface t1 0/1
description Adtran Atlas 550 Network1
tdm-group 1 timeslots 1-24 speed 64
no shutdown
!
interface t1 0/2
shutdown
!
interface t1 0/3
shutdown
!
interface t1 0/4
shutdown
!
!
interface pri 1
isdn switch-type dms
isdn name-delivery setup
connect t1 0/1 tdm-group 1
no shutdown
!
!
interface fxs 0/1
no shutdown
!
interface fxs 0/2
no shutdown
!
interface fxs 0/3
no shutdown
!
interface fxs 0/4
no shutdown
!
interface fxs 0/5
no shutdown
!
interface fxs 0/6
no shutdown
!
interface fxs 0/7
no shutdown
!
interface fxs 0/8
no shutdown
!
!
interface fxo 0/0
no shutdown
!
!
isdn-group 1
connect pri 1
!
no tftp server
no tftp server overwrite
http server
no http secure-server
no snmp agent
! Enable ftp server if you want to copy .biz image off of unit for backup
no ip ftp server
no ip scp server
no ip sntp server
!
!
! Changed from port 5060 to 5098 to play nice with other ATAs on network
! Web UI changes may clobber this
!
sip
sip udp 5098
no sip tcp
!
voice feature-mode network
voice quality-stats history max-streams 2000
voice flashhook mode transparent
voice forward-mode network
!
voice dial-plan 1 local NXX-XXXX
!
! Always use G7.11 u-law to support modem connectivity
!
voice codec-list TRUNK
codec g711ulaw
!
!
voice trunk T01 type sip
description "SIP trunk to voip.ms"
! Enable this to send calls to a device off the Atlas 550 which only likes 7-digits
! match dnis "5104701899" substitute "5552000"
sip-server primary sanjose1.voip.ms
registrar primary sanjose1.voip.ms
registrar expire-time 600
no registrar require-expires
! This should resolve to your public IP address
domain "home.dyn.wann.net"
sip-keep-alive info 30
register 362557_adtran1
codec-list TRUNK both
authentication username "123456_adtran1" password encrypted "3b287a877c71asdfasffs4df7f2ae3884sdasdsf3df163da6ee5d4f0cfd445dd4a1ef3ea9b0a"
!
voice trunk T02 type isdn
resource-selection circular descending
connect isdn-group 1
no early-cut-through
modem-passthrough
rtp delay-mode adaptive
codec-list TRUNK
!
!
voice grouped-trunk SIP-UPSTREAM
trunk T01
accept $ cost 0 ! <<< I think this means "any inbound number recieved on other trunks send to the SIP provider
accept 13412214808 cost 0
accept 3412214808 cost 0
accept 2214808 cost 0
!
!
voice grouped-trunk PRI
trunk T02
accept 5104701899 cost 0
accept 5552000 cost 0
accept $ cost 0 ! <<< likewise if a call comes in from SIP provider, this "default" routes all numbers to the PRI
!
!
!
! Route incoming DID 5104701899 to FXS 0/1 port:
!
voice user 9001
connect fxs 0/1
! docs say this is for voicemail PIN, can't remove it
password encrypted "1410d98cc24448d33d13"
! Calls to this DID get routed out this FXS port
did "5104701899"
! Calls to the internal extension associated with this sub-account get routed out this FXS port too
sip-identity 123456_adtran1 T01
! default setting, not related to voip.ms, can't remove it
sip-authentication password encrypted "3632c4555bae3c3asdfasdfsfdecec5e91b7ef"
no nls
! These three are important for modem operation
no echo-cancellation
rtp frame-packetization 10
rtp delay-mode fixed
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
line con 0
no login
!
line telnet 0 4
login
no shutdown
line ssh 0 4
login local-userlist
no shutdown
!
!
ntp server 192.168.130.10
ntp server 192.168.130.12
ntp server 2001:470:1f05:2c9::10
!
!
!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment