I have predictive dialer which does not support SIP directly so I thought to use TA908e in this way:
Dialer(ESF/B8ZS) <-> TA908e(ESF/B8ZS) ==> Works fine but I am not able to fetch Caller ID from Dialer to TA908e. Fair enough, we used "incoming caller id override" setting on TA908e and this worked for us till date. However, now we want to send custom caller id numbers so the above settings on TA908e will not help. So I though I should try ISDN signalling at both the end and when do so the call hits the TA908e but fails saying "UNAVAILABLE CHANNELS" or "ISDN CAUSE 34".
I have t1 0/3 connected to Dialer and have configured SIP for outbound calling.
How can this be achieved?
This is the debug:
15:29:44 ISDN.L2_MSG PRI 2 Sent = 02 01 01 11
15:29:44 ISDN.L2_MSG PRI 2 Recd = 02 01 01 19
15:29:54 ISDN.L2_MSG PRI 2 Sent = 02 01 01 11
15:29:54 ISDN.L2_MSG PRI 2 Recd = 02 01 01 19
15:29:58 ISDN.L2_MSG PRI 2 Recd = 00 01 10 18 08 02 00 05 05 04 03 80 90 A2 18 03
15:29:58 ISDN.L2_MSG PRI 2 A9 83 81 70 0B A1 36 30 36 33 38 38 33 31 39 33
15:29:58 ISDN.L2_FMT PRI 2 =====================================================
15:29:58 ISDN.L2_FMT PRI 2 Recd = Sapi:00 C/R:R Tei:00
15:29:58 ISDN.L2_FMT PRI 2 Ctl:INFO Ns:8 Nr:12
15:29:58 ISDN.L2_FMT PRI 2 Prot:08 CRL:2 CRV:0005
15:29:58 ISDN.L2_FMT PRI 2 M - 05 SETUP
15:29:58 ISDN.L2_FMT PRI 2 IE - 04 BEARER CAPABILITY Len=3
15:29:58 ISDN.L2_FMT PRI 2 80 Xfer Cap.:SPEECH
15:29:58 ISDN.L2_FMT PRI 2 90 Xfer Rate:64k
15:29:58 ISDN.L2_FMT PRI 2 A2 Layer 1:u-Law
15:29:58 ISDN.L2_FMT PRI 2 IE - 18 CHANNEL ID Len=3
15:29:58 ISDN.L2_FMT PRI 2 A9 Primary Rate
15:29:58 ISDN.L2_FMT PRI 2 Intfc ID:IMPLICIT
15:29:58 ISDN.L2_FMT PRI 2 Pref/Excl:EXCLUSIVE
15:29:58 ISDN.L2_FMT PRI 2 D-Chan Indicated:NO
15:29:58 ISDN.L2_FMT PRI 2 Chan. Sel:FOLLOWS
15:29:58 ISDN.L2_FMT PRI 2 83 Numb/Map:NUMBER
15:29:58 ISDN.L2_FMT PRI 2 81 Channel:1
15:29:58 ISDN.L2_FMT PRI 2 IE - 70 CALLED PARTY # Len=11
15:29:58 ISDN.L2_FMT PRI 2 A1 Numb. Type:NATIONAL
15:29:58 ISDN.L2_FMT PRI 2 Numb. Plan:E.164
15:29:58 ISDN.L2_FMT PRI 2 Ph.# 6XXXXXXXXX
15:29:58 ISDN.L2_MSG PRI 2 Sent = 00 01 01 12
15:29:58 ISDN.CC_MSG PRI 2 CC>>Host: 02 0005 SETUP_IND
15:29:58 ISDN.CC_IE PRI 2 ie: 00 04 0A 80 80 80 90 00 00 00 00 00 82
15:29:58 ISDN.CC_IE PRI 2 ie: 00 18 0B 81 81 80 81 00 00 80 03 00 00 01
15:29:58 ISDN.CC_IE PRI 2 ie: 00 70 0C 82 81 36 30 36 33 38 38 33 31 39 33
15:29:58 ISDN.EP PRI 2 Incoming call :'6XXXXXXXXX' from ''.
15:29:58 ISDN.CC_MSG PRI 2 Host>>CC: 00 0005 CALL_PROCEEDING_REQ
15:29:58 ISDN.CC_IE PRI 2 ie: 00 18 0B 81 81 80 81 80 00 80 03 00 00 01
15:29:58 ISDN.EP PRI 2 Calling name available : .
15:29:58.426 ISDN.RES_MGR Reserving an inbound channel.
15:29:58.426 ISDN.RES_MGR Searching for matching ISDN Group.
15:29:58.426 ISDN.GROUP 0 ISDN Group 0: Interface 'pri 2' is not connected.
15:29:58.426 ISDN.GROUP 1 ISDN Group 1: Interface 'pri 2' is not connected.
15:29:58.427 ISDN.RES_MGR ISDN Group 0 is best match.
15:29:58.427 ISDN.RES_MGR Could not get an ISDN channel.
15:29:58 ISDN.EP PRI 2 Call to 6XXXXXXXXX, endpoint could not reserve inbound channel.
15:29:58 ISDN.CC_MSG PRI 2 Host>>CC: 00 0005 DISC_REQ
15:29:58 ISDN.CC_IE PRI 2 ie: 00 08 04 00 82 00 A2
15:29:58 ISDN.L2_MSG PRI 2 Sent = 02 01 18 12 08 02 80 05 02 18 03 A9 83 81
15:29:58 ISDN.L2_FMT PRI 2 =====================================================
15:29:58 ISDN.L2_FMT PRI 2 Sent = Sapi:00 C/R:C Tei:00
15:29:58 ISDN.L2_FMT PRI 2 Ctl:INFO Ns:12 Nr:9
15:29:58 ISDN.L2_FMT PRI 2 Prot:08 CRL:2 CRV:8005
15:29:58 ISDN.L2_FMT PRI 2 M - 02 CALL_PROC
15:29:58 ISDN.L2_FMT PRI 2 IE - 18 CHANNEL ID Len=3
15:29:58 ISDN.L2_FMT PRI 2 A9 Primary Rate
15:29:58 ISDN.L2_FMT PRI 2 Intfc ID:IMPLICIT
15:29:58 ISDN.L2_FMT PRI 2 Pref/Excl:EXCLUSIVE
15:29:58 ISDN.L2_FMT PRI 2 D-Chan Indicated:NO
15:29:58 ISDN.L2_FMT PRI 2 Chan. Sel:FOLLOWS
15:29:58 ISDN.L2_FMT PRI 2 83 Numb/Map:NUMBER
15:29:58 ISDN.L2_FMT PRI 2 81 Channel:1
15:29:58 ISDN.L2_MSG PRI 2 Sent = 02 01 1A 12 08 02 80 05 45 08 02 82 A2
15:29:58 ISDN.L2_FMT PRI 2 =====================================================
15:29:58 ISDN.L2_FMT PRI 2 Sent = Sapi:00 C/R:C Tei:00
15:29:58 ISDN.L2_FMT PRI 2 Ctl:INFO Ns:13 Nr:9
15:29:58 ISDN.L2_FMT PRI 2 Prot:08 CRL:2 CRV:8005
15:29:58 ISDN.L2_FMT PRI 2 M - 45 DISCONNECT
15:29:58 ISDN.L2_FMT PRI 2 IE - 08 CAUSE Len=2
15:29:58 ISDN.L2_FMT PRI 2 82 Location:LN
15:29:58 ISDN.L2_FMT PRI 2 A2 Cause:34 (NO_CIRCUIT_AVAILABLE)2013.07.07 15:29:58 ISDN.EP PRI 2 Incoming call not completed - use debug isdn for more info: NO_CIRCUIT_AVAILABLE : Loc=LN
15:29:58 ISDN.L2_MSG PRI 2 Recd = 02 01 01 1A
15:29:58 ISDN.L2_MSG PRI 2 Recd = 02 01 01 1C
15:30:02 ISDN.L2_MSG PRI 2 Sent = 02 01 1C 12 08 02 80 05 4D
15:30:02 ISDN.L2_FMT PRI 2 =====================================================
15:30:02 ISDN.L2_FMT PRI 2 Sent = Sapi:00 C/R:C Tei:00
15:30:02 ISDN.L2_FMT PRI 2 Ctl:INFO Ns:14 Nr:9
15:30:02 ISDN.L2_FMT PRI 2 Prot:08 CRL:2 CRV:8005
15:30:02 ISDN.L2_FMT PRI 2 M - 4D RELEASE
15:30:02 ISDN.L2_MSG PRI 2 Recd = 02 01 01 1E
15:30:02 ISDN.L2_MSG PRI 2 Recd = 00 01 12 1E 08 02 00 05 5A
15:30:02 ISDN.L2_FMT PRI 2 =====================================================
15:30:02 ISDN.L2_FMT PRI 2 Recd = Sapi:00 C/R:R Tei:00
15:30:02 ISDN.L2_FMT PRI 2 Ctl:INFO Ns:9 Nr:15
15:30:02 ISDN.L2_FMT PRI 2 Prot:08 CRL:2 CRV:0005
15:30:02 ISDN.L2_FMT PRI 2 M - 5A RELEASE_CMP
15:30:02 ISDN.L2_MSG PRI 2 Sent = 00 01 01 14
15:30:02 ISDN.CC_MSG PRI 2 CC>>Host: 02 0005 CLEAR_CONF
This is the config on TA908e:
interface eth 0/1
description WAN
ip address x.x.x.x x.x.x.x
media-gateway ip primary
no awcp
no shutdown
!
!
interface eth 0/2
no ip address
shutdown
!
!
!
!
interface t1 0/1
shutdown
!
interface t1 0/2
shutdown
!
interface t1 0/3
tdm-group 1 timeslots 1-24 speed 64
no shutdown
!
interface t1 0/4
description PRI4
framing d4
tdm-group 1 timeslots 1-24 speed 64
no shutdown
!
!
interface pri 1
connect t1 0/4 tdm-group 1
role user
no shutdown
!
interface pri 2
description pri 2
isdn name-delivery proceeding
connect t1 0/3 tdm-group 1
role network b-channel-restarts disable
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
!
!
!
!
timing-source t1 0/4
!
!
!
!
!
!
!
ip route 0.0.0.0 0.0.0.0 x.x.x.x
!
no ip tftp server
no ip tftp server overwrite
ip http server
ip http secure-server
no ip snmp agent
no ip ftp server
no ip scp server
no ip sntp server
!
!
!
!
!
!
ip sip
ip sip udp 5060
no ip sip tcp
!
!
!
voice feature-mode network
voice transfer-mode local
voice forward-mode local
!
!
!
!
!
!
!
voice dial-plan 1 extensions $
!
!
!
!
!
voice ani-list TEST1
ani $
!
!
voice trunk T01 type isdn
description "Provider PRI"
resource-selection circular descending
connect isdn-group 1
modem-passthrough
rtp delay-mode adaptive
prefer trunk-routing
!
voice trunk T11 type sip
description "PBX"
sip-server primary x.x.x.x
grammar from host local
transfer-mode network
!
!
voice grouped-trunk PROVIDER
trunk T01
accept X$ cost 0
permit list TEST1
!deny all other trunks
!deny all other ani
!
!
voice grouped-trunk PBX
trunk T11
accept X$ cost 0
permit list TEST1
!deny all other trunks
!deny all other ani
!
!
!
!
!
!
!
!
!
!
!
!
!
ip sip proxy
!
ip sip proxy domain "x.x.x.x"
!
ip sip proxy allowed-servers x.x.x.x
!
ip sip proxy dial-string source to
!
!
ip sip proxy failover dial-string source to
ip sip proxy failover trust-domain
!
!
!
!
!
ip rtp symmetric-filter
!
!
!
line con 0
no login
!
line telnet 0 4
login
password
no shutdown
line ssh 0 4
login local-userlist
no shutdown
!
!
!
!
!
end
TA908e#
OK, the PRI side looks OK. I saw a T1 error message pop across when you captured debugs so check your clocking. Generally you'll want the Adtran on internal and the PBX to recover from line. If the PBX has another clock source or if it's internal and you can't change it, then set the TA900 with "timing-source T1 0/3".
The unit isn't even trying to send anything out the SIP trunk. I don't see any nameservers in your configuration, nor do I see a default route. Is the provider's SIP server even reachable? Configure nameservers to those provided by your ISP, and add a route to 0.0.0.0 0.0.0.0 pointing to the other side of your connection to the ISP. Make sure that the SIP server is reachable, then re-test.
I don't think you need SABR, which is likely causing at least part of the problem. Does your application require incoming calls from PSTN to the PRI with the dialer or is it completely outbound? Also, you've created a second PRI to go to the dialer, but much of the configuration is still SIP. This is a PRI-to-PRI setup, not SIP to the PBX, right? If so, you'll need some other tweaks.
Here's how I would modify the configuration:
!
voice grouped-trunk PROVIDER
trunk T01
accept X$ cost 0
no permit list TEST1
!
!
voice grouped-trunk PBX
trunk T11
accept 312-555-23XX cost 0 ! (Populate with your incoming ANI)
no permit list TEST1
!
! You're also missing the second ISDN group to the PBX trunk.
!
isdn-group 1
connect pri 1
!
!
isdn-group 2
connect pri 2
!
! PBX is now ISDN, not SIP.
!
voice trunk T11 type isdn
description "PBX"
connect isdn-group 2
!
!
!
interface t1 0/4
description PRI4
framing esf ! (D4 framing for PRI probably isn't what you want.)
tdm-group 1 timeslots 1-24 speed 64
no shutdown
!
I think I messed up so I reflashed and restarted. Here is what I am trying to achieve.
[Outbound Dialer configured for ISDN PRI] ==> TA908e (t1 0/3) ==> SIP Provider
For setup I will need to create two trunks as follows:
1. T01 for SIP Provider to route calls out to the customer
2. T02 for t1 0/3 with ISDN PRI to accept calls from my Dialer
Here my current config
---------------------------------
!
! ADTRAN, Inc. OS version R12.3.3.E
! Boot ROM version 14.05.00.SA
! Platform: Total Access 908e (2nd Gen), part number XXXXXXXX
! Serial number XXXXXXXX
!
!
hostname "XXXXXXXX"
enable password XXXXXXXX
!
!
!
ip subnet-zero
ip classless
ip default-gateway XXXXXXXX
ip routing
ipv6 unicast-routing
!
!
domain-proxy
!
!
no auto-config
!
event-history on
no logging forwarding
no logging email
!
no service password-encryption
!
username "admin" password "XXXXXXXX"
!
banner motd #
Important
The ethernet 0/1 interface is enabled with an address of 10.10.10.1
Telnet/SSH access is also enabled.
#
!
!
no ip firewall alg msn
no ip firewall alg mszone
no ip firewall alg h323
!
!
!
!
!
!
!
!
no dot11ap access-point-control
!
!
!
!
!
!
!
ip dhcp pool "Private"
network 10.10.10.0 255.255.255.0
netbios-node-type h-node
default-router 10.10.10.1
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface eth 0/1
ip address X.X.X.X X.X.X.X
no shutdown
!
!
interface eth 0/2
no ip address
shutdown
!
!
!
!
interface t1 0/1
shutdown
!
interface t1 0/2
shutdown
!
interface t1 0/3
tdm-group 1 timeslots 1-24 speed 64
no shutdown
!
interface t1 0/4
shutdown
!
!
interface pri 1
connect t1 0/3 tdm-group 1
no shutdown
!
!
interface fxs 0/1
no shutdown
!
interface fxs 0/2
no shutdown
!
interface fxs 0/3
no shutdown
!
1970.01.01 12:19:50 T1.t1 0/3 CSS 15 min threshold exceededinterface 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
http secure-server
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 codec-list g711
codec g711ulaw
codec g711alaw
codec g729
!
!
!
voice trunk T01 type sip
description "SIP"
sip-server primary X.X.X.X
authentication username "XXXXXXXX" password "XXXXXXXX"
!
voice trunk T02 type isdn
description "ISDN"
resource-selection circular descending
connect isdn-group 1
rtp delay-mode adaptive
!
!
voice grouped-trunk SIP
trunk T01
accept $ cost 0
!
!
voice grouped-trunk ISDN
trunk T02
accept $ cost 0
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
line con 0
no login
!
line telnet 0 4
login
password password
no shutdown
line ssh 0 4
login local-userlist
no shutdown
!
---------------------------------
Here is the SHOW INT t1 0/3 and SHOW INT PRI 1 output:
t1 0/3 is UP
Receiver has no alarms
T1 coding is B8ZS, framing is ESF
FDL type is ANSI
Line build-out is 0dB
No remote loopbacks, No network loopbacks
Acceptance of remote loopback requests enabled
Tx Alarm Enable: rai
Last clearing of counters 01:05:46
loss of frame : 0
loss of signal : 0
AIS alarm : 0
Remote alarm : 0
DS0 Status: 123456789012345678901234
XXXXXXXXXXXXXXXXXXXXXXXX
Status Legend: '-' = DS0 is not allocated
'X' = DS0 is allocated (nailed)
Signaling Bit Status: 123456789012345678901234
RxA: 010010000100100101000000
RxB: 100011011101110011110101
TxA: 011010011010100100000110
TxB: 000001001001101100110111
123456789012345678901234
Line Status: -- No Alarms --
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
Current Performance Statistics:
2 Errored Seconds, 0 Bursty Errored Seconds
0 Severely Errored Seconds, 0 Severely Errored Frame Seconds
0 Unavailable Seconds, 0 Path Code Violations
0 Line Code Violations, 2 Controlled Slip Seconds
0 Line Errored Seconds, 0 Degraded Minutes
TDM group 1, line protocol is not set
Encapsulation is not set
pri 1 is UP
Switch protocol: National ISDN 2
Signaling role: network (NT) b-channel-restarts disabled
b-channel-restarts: disabled
Calling-party override: disabled
Calling-party presentation: allowed
Calling-party screening: auto
Calling-party number: (no number configured)
Digits transferred all
Name-delivery: disabled
Progress indicator #8 in alerting message: enabled
Progress indicator #2 in connect message: disabled
Progress indicator #1 in setup message: disabled
Progress indicator #3 in setup message: disabled
Progress indicator location: public
resource-selection: circular descending
TBCT: disabled
area code:
Transmission of redirecting numbers is enabled
Redirecting numbers: sent as received
Connected interface: t1 0/3 tdm-group 1
Channel status 123456789012345678901234
.......................D
Legend: - = Unallocated . = Inactive
A = Active B channel B = Backup D channel
D = Active D channel M = Maintenance
R = Restart
Last clearing of "show interface" counters: never
416 packets input, 1798 bytes, 0 no buffer
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame
0 abort, 0 discards, 0 overruns
416 packets output, 1760 bytes, 0 underruns
-----------------------------------
Here is the debug trace when I dialed a call from my Dialer. Filters - debug sip stack messages, isdn l2-formatted, voice summary:
12:33:09.627 ISDN.L2_FMT PRI 1 ==============================================
12:33:09.627 ISDN.L2_FMT PRI 1 R Sapi:00 C/R:R Tei:00 INFO Ns:2 Nr:3 P:0
12:33:09.627 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:0002
12:33:09.627 ISDN.L2_FMT PRI 1 M - 05 SETUP
12:33:09.628 ISDN.L2_FMT PRI 1 IE - 04 BEARER CAPABILITY Len=3
12:33:09.628 ISDN.L2_FMT PRI 1 80 Xfer Cap.:SPEECH
12:33:09.628 ISDN.L2_FMT PRI 1 90 Xfer Rate:64k
12:33:09.628 ISDN.L2_FMT PRI 1 A2 Layer 1:G.711 U-Law
12:33:09.628 ISDN.L2_FMT PRI 1 IE - 18 CHANNEL ID Len=3
12:33:09.628 ISDN.L2_FMT PRI 1 A9 Primary Rate
12:33:09.628 ISDN.L2_FMT PRI 1 Intfc ID:IMPLICIT
12:33:09.629 ISDN.L2_FMT PRI 1 Pref/Excl:EXCLUSIVE
12:33:09.629 ISDN.L2_FMT PRI 1 D-Chan Indicated:NO
12:33:09.629 ISDN.L2_FMT PRI 1 Chan. Sel:FOLLOWS
12:33:09.629 ISDN.L2_FMT PRI 1 83 Numb/Map:NUMBER
12:33:09.629 ISDN.L2_FMT PRI 1 81 Channel:1
12:33:09.629 ISDN.L2_FMT PRI 1 IE - 70 CALLED PARTY # Len=11
12:33:09.629 ISDN.L2_FMT PRI 1 A1 Numb. Type:NATIONAL
12:33:09.629 ISDN.L2_FMT PRI 1 Numb. Plan:E.164
12:33:09.629 ISDN.L2_FMT PRI 1 Ph.# XXXXXXXXX
12:33:09.630 ISDN.L2_FMT PRI 1 ==============================================
12:33:09.630 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:3 Nr:3 P:0
12:33:09.630 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8002
12:33:09.631 ISDN.L2_FMT PRI 1 M - 02 CALL_PROC
12:33:09.631 ISDN.L2_FMT PRI 1 IE - 18 CHANNEL ID Len=3
12:33:09.631 ISDN.L2_FMT PRI 1 A9 Primary Rate
12:33:09.631 ISDN.L2_FMT PRI 1 Intfc ID:IMPLICIT
12:33:09.631 ISDN.L2_FMT PRI 1 Pref/Excl:EXCLUSIVE
12:33:09.631 ISDN.L2_FMT PRI 1 D-Chan Indicated:NO
12:33:09.631 ISDN.L2_FMT PRI 1 Chan. Sel:FOLLOWS
12:33:09.631 ISDN.L2_FMT PRI 1 83 Numb/Map:NUMBER
12:33:09.631 ISDN.L2_FMT PRI 1 81 Channel:1
12:33:09.636 VOICE.SUMMARY T02 is calling T01 (XXXXXXXXX).
12:33:09.637 VOICE.SUMMARY Call from T02 to T01 (XXXXXXXXX) ended by T01: temporary failure
12:33:09.638 ISDN.L2_FMT PRI 1 ==============================================
12:33:09.638 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:4 Nr:3 P:0
12:33:09.638 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8002
12:33:09.638 ISDN.L2_FMT PRI 1 M - 45 DISCONNECT
12:33:09.638 ISDN.L2_FMT PRI 1 IE - 08 CAUSE Len=2
12:33:09.638 ISDN.L2_FMT PRI 1 82 Location:LN
12:33:09.638 ISDN.L2_FMT PRI 1 A9 Cause:41 (TEMPORARY_FAILURE)
12:33:13.797 ISDN.L2_FMT PRI 1 ==============================================
12:33:13.797 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:5 Nr:3 P:0
12:33:13.797 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8002
12:33:13.798 ISDN.L2_FMT PRI 1 M - 4D RELEASE
12:33:13.807 ISDN.L2_FMT PRI 1 ==============================================
12:33:13.807 ISDN.L2_FMT PRI 1 R Sapi:00 C/R:R Tei:00 INFO Ns:3 Nr:6 P:0
12:33:13.807 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:0002
12:33:13.807 ISDN.L2_FMT PRI 1 M - 5A RELEASE_CMP
12:35:17.739 ISDN.L2_FMT PRI 1 ==============================================
12:35:17.739 ISDN.L2_FMT PRI 1 R Sapi:00 C/R:R Tei:00 INFO Ns:4 Nr:6 P:0
12:35:17.739 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:0003
12:35:17.739 ISDN.L2_FMT PRI 1 M - 05 SETUP
12:35:17.740 ISDN.L2_FMT PRI 1 IE - 04 BEARER CAPABILITY Len=3
12:35:17.740 ISDN.L2_FMT PRI 1 80 Xfer Cap.:SPEECH
12:35:17.740 ISDN.L2_FMT PRI 1 90 Xfer Rate:64k
12:35:17.740 ISDN.L2_FMT PRI 1 A2 Layer 1:G.711 U-Law
12:35:17.740 ISDN.L2_FMT PRI 1 IE - 18 CHANNEL ID Len=3
12:35:17.740 ISDN.L2_FMT PRI 1 A9 Primary Rate
12:35:17.740 ISDN.L2_FMT PRI 1 Intfc ID:IMPLICIT
12:35:17.740 ISDN.L2_FMT PRI 1 Pref/Excl:EXCLUSIVE
12:35:17.740 ISDN.L2_FMT PRI 1 D-Chan Indicated:NO
12:35:17.741 ISDN.L2_FMT PRI 1 Chan. Sel:FOLLOWS
12:35:17.741 ISDN.L2_FMT PRI 1 83 Numb/Map:NUMBER
12:35:17.741 ISDN.L2_FMT PRI 1 81 Channel:1
12:35:17.741 ISDN.L2_FMT PRI 1 IE - 70 CALLED PARTY # Len=12
12:35:17.741 ISDN.L2_FMT PRI 1 A1 Numb. Type:NATIONAL
12:35:17.741 ISDN.L2_FMT PRI 1 Numb. Plan:E.164
12:35:17.741 ISDN.L2_FMT PRI 1 Ph.# 1XXXXXXXXX
12:35:17.742 ISDN.L2_FMT PRI 1 ==============================================
12:35:17.742 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:6 Nr:5 P:0
12:35:17.742 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8003
12:35:17.742 ISDN.L2_FMT PRI 1 M - 02 CALL_PROC
12:35:17.743 ISDN.L2_FMT PRI 1 IE - 18 CHANNEL ID Len=3
12:35:17.743 ISDN.L2_FMT PRI 1 A9 Primary Rate
12:35:17.743 ISDN.L2_FMT PRI 1 Intfc ID:IMPLICIT
12:35:17.743 ISDN.L2_FMT PRI 1 Pref/Excl:EXCLUSIVE
12:35:17.743 ISDN.L2_FMT PRI 1 D-Chan Indicated:NO
12:35:17.743 ISDN.L2_FMT PRI 1 Chan. Sel:FOLLOWS
12:35:17.743 ISDN.L2_FMT PRI 1 83 Numb/Map:NUMBER
12:35:17.743 ISDN.L2_FMT PRI 1 81 Channel:1
12:35:17.748 VOICE.SUMMARY T02 is calling T01 (1XXXXXXXXX).
12:35:17.749 VOICE.SUMMARY Call from T02 to T01 (1XXXXXXXXX) ended by T01: temporary failure
12:35:17.750 ISDN.L2_FMT PRI 1 ==============================================
12:35:17.750 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:7 Nr:5 P:0
12:35:17.750 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8003
12:35:17.750 ISDN.L2_FMT PRI 1 M - 45 DISCONNECT
12:35:17.750 ISDN.L2_FMT PRI 1 IE - 08 CAUSE Len=2
12:35:17.750 ISDN.L2_FMT PRI 1 82 Location:LN
12:35:17.750 ISDN.L2_FMT PRI 1 A9 Cause:41 (TEMPORARY_FAILURE)
12:35:21.899 ISDN.L2_FMT PRI 1 ==============================================
12:35:21.899 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:8 Nr:5 P:0
12:35:21.899 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8003
12:35:21.900 ISDN.L2_FMT PRI 1 M - 4D RELEASE
12:35:21.910 ISDN.L2_FMT PRI 1 ==============================================
12:35:21.910 ISDN.L2_FMT PRI 1 R Sapi:00 C/R:R Tei:00 INFO Ns:5 Nr:9 P:0
12:35:21.910 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:0003
12:35:21.910 ISDN.L2_FMT PRI 1 M - 5A RELEASE_CMP
12:43:00.490 ISDN.L2_FMT PRI 1 ==============================================
12:43:00.490 ISDN.L2_FMT PRI 1 R Sapi:00 C/R:R Tei:00 INFO Ns:6 Nr:9 P:0
12:43:00.490 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:0004
12:43:00.490 ISDN.L2_FMT PRI 1 M - 05 SETUP
12:43:00.490 ISDN.L2_FMT PRI 1 IE - 04 BEARER CAPABILITY Len=3
12:43:00.490 ISDN.L2_FMT PRI 1 80 Xfer Cap.:SPEECH
12:43:00.490 ISDN.L2_FMT PRI 1 90 Xfer Rate:64k
12:43:00.490 ISDN.L2_FMT PRI 1 A2 Layer 1:G.711 U-Law
12:43:00.490 ISDN.L2_FMT PRI 1 IE - 18 CHANNEL ID Len=3
12:43:00.491 ISDN.L2_FMT PRI 1 A9 Primary Rate
12:43:00.491 ISDN.L2_FMT PRI 1 Intfc ID:IMPLICIT
12:43:00.491 ISDN.L2_FMT PRI 1 Pref/Excl:EXCLUSIVE
12:43:00.491 ISDN.L2_FMT PRI 1 D-Chan Indicated:NO
12:43:00.491 ISDN.L2_FMT PRI 1 Chan. Sel:FOLLOWS
12:43:00.491 ISDN.L2_FMT PRI 1 83 Numb/Map:NUMBER
12:43:00.491 ISDN.L2_FMT PRI 1 81 Channel:1
12:43:00.491 ISDN.L2_FMT PRI 1 IE - 70 CALLED PARTY # Len=12
12:43:00.492 ISDN.L2_FMT PRI 1 A1 Numb. Type:NATIONAL
12:43:00.492 ISDN.L2_FMT PRI 1 Numb. Plan:E.164
12:43:00.492 ISDN.L2_FMT PRI 1 Ph.# 1XXXXXXXXX
12:43:00.493 ISDN.L2_FMT PRI 1 ==============================================
12:43:00.493 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:9 Nr:7 P:0
12:43:00.493 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8004
12:43:00.493 ISDN.L2_FMT PRI 1 M - 02 CALL_PROC
12:43:00.493 ISDN.L2_FMT PRI 1 IE - 18 CHANNEL ID Len=3
12:43:00.493 ISDN.L2_FMT PRI 1 A9 Primary Rate
12:43:00.493 ISDN.L2_FMT PRI 1 Intfc ID:IMPLICIT
12:43:00.494 ISDN.L2_FMT PRI 1 Pref/Excl:EXCLUSIVE
12:43:00.494 ISDN.L2_FMT PRI 1 D-Chan Indicated:NO
12:43:00.494 ISDN.L2_FMT PRI 1 Chan. Sel:FOLLOWS
12:43:00.494 ISDN.L2_FMT PRI 1 83 Numb/Map:NUMBER
12:43:00.494 ISDN.L2_FMT PRI 1 81 Channel:1
12:43:00.498 VOICE.SUMMARY T02 is calling T01 (1XXXXXXXXX).
12:43:00.500 VOICE.SUMMARY Call from T02 to T01 (1XXXXXXXXX) ended by T01: temporary failure
12:43:00.500 ISDN.L2_FMT PRI 1 ==============================================
12:43:00.501 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:10 Nr:7 P:0
12:43:00.501 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8004
12:43:00.501 ISDN.L2_FMT PRI 1 M - 45 DISCONNECT
12:43:00.501 ISDN.L2_FMT PRI 1 IE - 08 CAUSE Len=2
12:43:00.501 ISDN.L2_FMT PRI 1 82 Location:LN
12:43:00.501 ISDN.L2_FMT PRI 1 A9 Cause:41 (TEMPORARY_FAILURE)
12:43:04.657 ISDN.L2_FMT PRI 1 ==============================================
12:43:04.657 ISDN.L2_FMT PRI 1 T Sapi:00 C/R:C Tei:00 INFO Ns:11 Nr:7 P:0
12:43:04.657 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:8004
12:43:04.658 ISDN.L2_FMT PRI 1 M - 4D RELEASE
12:43:04.667 ISDN.L2_FMT PRI 1 ==============================================
12:43:04.667 ISDN.L2_FMT PRI 1 R Sapi:00 C/R:R Tei:00 INFO Ns:7 Nr:12 P:0
12:43:04.667 ISDN.L2_FMT PRI 1 Prot:08 CRL:2 CRV:0004
12:43:04.668 ISDN.L2_FMT PRI 1 M - 5A RELEASE_CMP
OK, the PRI side looks OK. I saw a T1 error message pop across when you captured debugs so check your clocking. Generally you'll want the Adtran on internal and the PBX to recover from line. If the PBX has another clock source or if it's internal and you can't change it, then set the TA900 with "timing-source T1 0/3".
The unit isn't even trying to send anything out the SIP trunk. I don't see any nameservers in your configuration, nor do I see a default route. Is the provider's SIP server even reachable? Configure nameservers to those provided by your ISP, and add a route to 0.0.0.0 0.0.0.0 pointing to the other side of your connection to the ISP. Make sure that the SIP server is reachable, then re-test.