PRI line becoming inactive

We currently have a Digium TE220 and a Digium AEX2400 in our asterisk box. The TE220 is configured with one PRI line from XO and a E&M Wink line provided by ELI.

The problem is the XO PRI line. It seems just about every Monday morning (it has happened on a Friday morning once as well) that the line just becomes ‘inactive’. It’s not totally inactive, outbound calls work fine, it’s just that our 1800 number stops working.

When it is in this state, a call to the 1800 number has a male voice saying something along the lines of ‘the subscriber you are trying to reach is currently not in service’.

At this point simply unplugging the cable from the Digium card and plugging it back in re-initializes the line and it works fine afterward, at least until the next time.

The question is this. Is this due to XO or because of a configuration problem? We only switched over to PRI on this line from E&M Wink a few months ago and have been having this problem since. It is almost as if when the line is dormant for 10+ hours, it just becomes inactive. That’s just a wild guess of course.

The errors I am getting in dmesg is;

timing source auto card 0! wct2xxp: Clearing yellow alarm on span 2 wct2xxp: Setting yellow alarm on span 2

That’s truncated, usually there are at least two or more of the ‘timing source auto card 0!’ lines.

This is driving me (and my employer) nuts. Not sure if I should blame XO or if I should blame my configuration.

Dahdi version: 2.2.0.2
Asterisk version: 1.4.26.2
Running PBX In a Flash 1.3

/etc/dahdi/system.conf

[code]# This file is parsed by the Dahdi Configurator, dahdi_cfg

Span 1: TE2/0/1 “T2XXP (PCI) Card 0 Span 1” (MASTER) B8ZS/ESF ClockSource

span=1,1,0,esf,b8zs

termtype: te

#bchan=1-23
#dchan=24
e&m=1-24
echocanceller=mg2,1-24

Span 2: TE2/0/2 “T2XXP (PCI) Card 0 Span 2”

span=2,2,0,esf,b8zs

termtype: te

bchan=25-47
dchan=48
echocanceller=mg2,25-47

Span 3: WCTDM/0 “Wildcard AEX2400 Board 1”

fxoks=49
echocanceller=mg2,49
fxoks=50
echocanceller=mg2,50
fxoks=51
echocanceller=mg2,51
fxoks=52
#echocanceller=mg2,52
fxoks=53
#echocanceller=mg2,53
fxoks=54
echocanceller=mg2,54
fxoks=55
#echocanceller=mg2,55
fxoks=56
#echocanceller=mg2,56
fxoks=57
echocanceller=mg2,57
fxoks=58
echocanceller=mg2,58
fxoks=59
echocanceller=mg2,59
fxoks=60
echocanceller=mg2,60
fxoks=61
echocanceller=mg2,61
fxoks=62
echocanceller=mg2,62
fxoks=63
echocanceller=mg2,63
fxoks=64
echocanceller=mg2,64
fxsks=65
echocanceller=mg2,65
fxsks=66
echocanceller=mg2,66
fxsks=67
echocanceller=mg2,67
fxsks=68
echocanceller=mg2,68

channel 69, WCTDM/0/20, no module.

channel 70, WCTDM/0/21, no module.

channel 71, WCTDM/0/22, no module.

channel 72, WCTDM/0/23, no module.

Global data

loadzone = us
defaultzone = us[/code]

/etc/asterisk/chan_dahdi.conf

[code];autogenerated by /usr/local/sbin/config-zaptel do not hand edit
;Zaptel Channels Configurations (zapata.conf)
;
;For detailed zapata options, view /etc/asterisk/zapata.conf.orig

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1

immediate=no

;Digium card, span 1.
context=from-pstn
group=0
signalling=em_w
channel => 1-24

;Digium card, span 2.
;context=from-pstn
;group=1
;signalling=em_w
;channel => 25-48

;Digium card, span 2.
context=from-pstn
group=1
switchtype=>national
signalling=pri_cpe
channel => 25-47

;Digium Analog card
context=from-internal
group=2
echocancel=yes
signalling = fxo_ks
channel => 49

context=from-internal
group=2
echocancel=yes
signalling = fxo_ks
channel => 50

context=from-internal
group=2
echocancel=yes
signalling = fxo_ks
channel => 51

context=from-internal
group=2
echocancel=no
signalling = fxo_ks
channel => 52

context=from-internal
group=2
echocancel=no
signalling = fxo_ks
channel => 53

context=from-internal
group=2
echocancel=yes
signalling = fxo_ks
channel => 54

context=from-internal
group=2
echocancel=no
signalling = fxo_ks
channel => 55

context=from-internal
group=2
echocancel=no
signalling = fxo_ks
channel => 56

context=from-internal
group=2
echocancel=yes
signalling = fxo_ks
channel => 57-64

context=from-doorbell
group=3
echocancel=yes
signalling = fxs_ks
channel => 65

context=from-doorbell-rear
group=3
echocancel=yes
signalling = fxs_ks
channel => 66

context=from-internal
group=3
echocancel=yes
signalling = fxs_ks
channel => 67-68

#include zapata_additional.conf
;#include zapata-channels.conf[/code]

Thanks for any input!