With B8ZS, it transmits in the same way as AMI...John is correct in his description. The first 1 would be positive, and the next 1 in the bit stream would be put on to the line as a negative.
For example, if you were to have an oscilloscope to look at the voltage of a T1, you'd see the first 1 bit expressed as +3V, then it would drop back to 0V. If the next bit was a 0, it'd stay at 0V. When the next 1 bit came along, it would go to -3V. This is a method of transmission that eliminates what's known as DC bias.
A bipolar violation occurs when you have two bits of the same polarity in a row. So in the above example, you'd see +3V for the first 1 bit, then 0V for the 0 bit, and then +3V for the 2nd 1 bit. That would constitute a bipolar violation.
B8ZS was created to eliminate the problem of 1's density, which states that in your transmission you have to have at least one 1 bit for every 15 bits. The reason for this goes into clock recovery of the signal. The way that B8ZS works is like this. Say you have the following being transmitted:
1100000000000000000101
There is 17 consecutive 0's in that string. If it were AMI encoding, you'd see +3V, -3V, 0V 17 times in a row, then +3V, 0V, -3V. The 17 zero's is against 1's density and could potentially cause errors. B8ZS would take the same data string, take each group of 8 consecutive 0's and intentionally place bipolar violations on the 4th and 7th bit into the line that the receiver would recognize as being code for a string of zeros and not actual errors, thus not putting that many 0's on the line.
1100000000000000000101 would be transmitted as:
+3V, -3V, 0V, 0V, 0V, -3V, +3V, 0V, +3V, -3V, 0V, 0V, 0V, -3V, +3V, 0V, +3V, -3V, 0V, +3V, 0V, -3V
There are two groups of 8 consecutive 0's in the 17 0 bit string above, and a bipolar violation was intentionally placed on the 4th and 7th bit of each group so that it is expressed as 000VB0VB where V is a violation and B is a 1 bit that is not a violation.
May be easier to read like this (+ is positive, - is negative, 0 is no pulse, B is a 1 bit, V is a violation)
<font color='blue'>BB000VB0VB000VB0VB0B0B</font>
<font color='red'>+-000-+0+-000-+0+-0+0-</font>
1100000000000000000101
You will never see 2500 or even 176 consecutive physical 0's on a B8ZS encoded line (unless of course it's broken) because B8ZS will place a 1 bit on every 4th and 7th 0 in a string of 8 consecutive 0's. A 0 bit is an absence of a pulse. That setting on that card basically states that if it sees an absence of a pulse for 176 or 2500 (or whatever they set it for), then declare LOF because the line is dead. 2500 consecutive 0's with B8ZS if they were actually 0's being sent would still have the BPV pulses on the 4th and 7th frame, and the card would not put out LOF because they are
framed 0's.
So lets take this from the assumption that your card is accurately reporting what it's seeing. I know that's all likely quite confusing, but in short I'd understand where AT&T is coming from in saying to wait 2.5 seconds before putting out a LOF alarm to them, however I would ask them why 2500 consecutive
unframed 0's or even 176 consecutive
unframed 0's are occurring to give your card cause to put a LOF alarm out. To me it'd be an issue with either the smartjack or the cabling beyond the smartjack because if the smartjack were to receive unframed 0's like that it'd declare LOF and put all 1's towards your equipment. The only way I could see that problem coming up would be if something was going open on the backside of the smartjack on the transmit pair from the smartjack towards your card. AT&T likely is putting up resistance because I'm sure they've tested to the smartjack cleanly, but that doesn't
through the smartjack so if a contact or something was flakey in there it could cause problems and go open from time to time, just as a bad cable from there to your equipment could.
I'm assuming you've tried a different card from Digium and the same problem is occurring. Their card could be faulty too. If the cards have been changed out already, I'd change the cable between the smartjack and the Digium card, and have AT&T replace the smartjack as well.
What doesn't make sense is that it's during rain and thunderstorms, because normally those kinds of issues point to an outside facility issue. I can't really see that if the problem is manifesting as unframed 0's coming into your card unless it's just coincidental timing or you have cabling exposed to the elements.
It's really hard to say without being able to actually take a look and perform all the testing I'd want to.