Adtran SBC with Twilio Elastic SIP Trunk
ADTRANNV6310 SIP to PRI with Twilio Elastic SIP Trunk
The basic steps to getting
the ADTRAN work with Twilio Elastic SIP
Trunk. Tested with NV6310. TA908e
!
interface t1 0/1
tdm-group 1 timeslots 1-24 speed 64
no shutdown
!
!
interface pri 1
description PRI
isdn name-delivery setup
connect t1 0/1 tdm-group 1
role network b-channel-restarts enable
no shutdown
!
!
isdn-group 1
connect pri 1
!
isdn-number-template 0 prefix "" plan 1 type 2 NXX-NXX-XXXX
!
!
!
ip sip
ip sip udp 5060
no ip sip tcp
!
!
voice international-prefix abbreviated
!
voice feature-mode network
voice forward-mode network
!
!
voice dial-plan 1 local NXX-NXX-XXXX
!
!
voice codec-list g.729
default
codec g729
codec g711ulaw
!
!
voice trunk T02 type isdn
description "PRI to PBX"
resource-selection circular descending
connect isdn-group 1
no early-cut-through
modem-passthrough
rtp delay-mode adaptive
codec-group g.729
!
voice trunk T01 type sip
description "Twilio SIP"
match ani "$" substitute " +18005551212 " name "Twilio callerid"
sip-server primary twilio.pstn.twilio.com
authentication username "twilio_userid" password "Twilio_password"
max-number-calls 23
!
!
voice grouped-trunk "PRI"
trunk T02
accept NXX-NXX-XXXX cost 0
accept 1-NXX-NXX-XXXX cost 0
accept 1-800-NXX-XXXX cost 0
accept 1-888-NXX-XXXX cost 0
accept 1-877-NXX-XXXX cost 0
accept 1-866-NXX-XXXX cost 0
accept 1-855-NXX-XXXX cost 0
reject NXX-976-XXXX
reject 1-900-NXX-XXXX
reject 1-976-NXX-XXXX
!
!
voice grouped-trunk "SIP"
trunk T01
accept NXX-NXX-XXXX cost 0
accept 1-NXX-NXX-XXXX cost 0
accept 1-800-NXX-XXXX cost 0
accept 1-888-NXX-XXXX cost 0
accept 1-877-NXX-XXXX cost 0
accept 1-866-NXX-XXXX cost 0
accept 1-855-NXX-XXXX cost 0
accept 011-$ cost 0
reject NXX-976-XXXX
reject 1-900-NXX-XXXX
reject 1-976-NXX-XXXX
!
!
line con 0
login
password password
!
line telnet 0 4
login
password password
no shutdown
line ssh 0 4
login local-userlist
no shutdown
!
!
ntp source ethernet 0/2
ntp master
ntp peer us.pool.ntp.org normal-sync version 3 prefer
!
!
end
Hello, I have been following your posting regarding several twilio projects. I am looking to to SIP to PRI with twilio elastic trunks and a adtran Netvanta 6240. Did the above end up being a viable solution?
ReplyDeleteYes, I have Adtran 908 2nd gen and NV6310 Twilio SIP to PRI in production.
ReplyDeleteWow great to know! Was the configuration tweaked from this one? How did you resolve the issue of the multiple incoming sip requests from all the twilio domains?
ReplyDeleteThis is set up with the E. 164 dialing? My endgoal is to integrate to a Panasonic TDE PRI interface.
ReplyDeleteSorry, I don't understand "multiple incoming sip requests" Twilio send SIP traffic to the Session Border Controller IP directly.
ReplyDeleteThis one for E.164 dialing.
"voice international-prefix abbreviated"