FXS port route traffic to PRI and not to SIP Trunk
mtghr Aug 5, 2019 8:39 AMhi
i have an adtran 904e
i have a sip trunk connected to the WAN port
and PBX system to the T1 0/4 port
and FSX lines
i set up an FSX port and incoming calls works fine outgoing is routing to the the local PRI port to the local PBX and not to the SIP trunk
below is my config file
!
!
! ADTRAN, Inc. OS version R13.2.0.E
! Boot ROM version 14.05.00.SA
! Platform: Total Access 908e (2nd Gen), part number 4242908L1
! Serial number CFG0957834
!
!
hostname "TA908e"
enable password xxxxxxxxxxxx
!
!
clock timezone -5-Eastern-Time
!
ip subnet-zero
ip classless
ip default-gateway 47.23.xx.xxx
ip routing
ipv6 unicast-routing
!
!
name-server 8.8.8.8 192.168.2.249
!
!
no auto-config
!
event-history on
no logging forwarding
no logging email
!
no service password-encryption
!
username "abc" password "xxxxxxxxxxxxxxxxxx"
username "abc" password "xxxxxxxxxxxxxxxxxxxxxxx"
!
!
ip firewall
ip firewall stealth
no ip firewall alg msn
no ip firewall alg mszone
no ip firewall alg h323
!
!
!
!
!
!
!
!
no dot11ap access-point-control
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface eth 0/1
ip address 192.168.2.60 255.255.255.0
no awcp
no shutdown
media-gateway ip primary
!
!
interface eth 0/2
description WAN
ip address 47.23.xx.xxx 255.255.255.248
ip mtu 1500
no awcp
no shutdown
media-gateway ip primary
!
!
!
!
interface t1 0/1
description PRI to PBX 2
tdm-group 2 timeslots 1-24 speed 64
no shutdown
!
interface t1 0/2
no shutdown
!
interface t1 0/3
no shutdown
!
interface t1 0/4
tdm-group 1 timeslots 1-24 speed 64
no shutdown
!
!
interface pri 1
description pri 1
isdn name-delivery setup
connect t1 0/4 tdm-group 1
digits-transferred 4
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
!
!
!
!
!
!
!
ip access-list extended Admin
remark Admin Access
permit tcp any any eq ssh log
permit tcp any any eq https
!
ip access-list extended SIP
remark SIP Service Provider
permit udp host 107.xx.xx.xxx any eq 5060
permit udp host 165.xx.xx.xxx any eq 5060
!
ip access-list extended T
!
!
!
!
ip policy-class Public
allow list Admin self
allow list SIP self
!
!
!
no tftp server
no tftp server overwrite
http server
http secure-server 445
no snmp agent
no ip ftp server
no ip scp server
no ip sntp server
!
!
!
!
!
!
!
!
sip
sip udp 5060
no sip tcp
!
!
!
voice feature-mode network
voice forward-mode network
!
!
!
!
!
!
!
!
voice dial-plan 1 local NXX-XXX-XXXX
voice dial-plan 2 long-distance 1-NXX-XXX-XXXX
voice dial-plan 3 toll-free MXXX
!
!
!
!
!
!
voice trunk T01 type sip
match dnis "NXX-NXX-XXXX" substitute "1NXX-NXX-XXXX" name "Add 1 to local number"
sip-server primary sip.xxxxxx.cloud
domain "sip.xxxxxx.cloud"
dial-string source to
grammar from user international
!
voice trunk T02 type isdn
resource-selection circular descending
connect isdn-group 1
no early-cut-through
t38
rtp delay-mode adaptive
!
!
voice grouped-trunk PRI
trunk T02
accept $ cost 0
!
!
voice grouped-trunk SIP
trunk T01
accept $ cost 0
!
!
voice user 00001
connect fxs 0/1
no cos
password "1234"
did "716705xxxx"
sip-identity 00001 T01 register auth-name "00001" password "1234"
!
!
!
voice user 00002
connect fxs 0/2
no cos
password "1234"
!
!
!
voice user 00003
connect fxs 0/3
no cos
password "1234"
!
!
!
voice user 00004
connect fxs 0/4
no cos
password "1234"
!
!
!
voice user 00005
connect fxs 0/5
no cos
password "1234"
!
!
!
voice user 00006
connect fxs 0/6
no cos
password "1234"
!
!
!
voice user 00007
connect fxs 0/7
no cos
password "1234"
!
!
!
voice user 00008
connect fxs 0/8
no cos
password "1234"
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
line con 0
login
!
line telnet 0 4
login
no shutdown
line ssh 0 4
login local-userlist
no shutdown
!
!
!
!
!
end
TA908e#
Message was edited by: Patrick Crawford edited the DID phone number under the "voice user" to make it more anonymous.