Summary:ASTERISK-01085: wct4xxp does not set alarm if channels are not open
Reporter:jshugart (jshugart)Labels:
Date Opened:2004-02-24 00:40:13.000-0600Date Closed:2004-09-25 02:51:29
Versions:Frequency of
Description:I have set the "yellow" flag in zaptel.conf to alarm if the channels are not open, but the card never sends an alarm to the remote end if asterisk is not running.
Comments:By: zoa (zoa) 2004-02-25 06:05:23.000-0600

cat /proc/zaptel/1 shows yellow ?

Could you give acces to your 2 servers (for kram) if necessary ?

By: jshugart (jshugart) 2004-02-25 11:09:05.000-0600

Here is the top of the output of the cat:
Span 1: TE4/1/1 "TE410P (PCI) Card 1 Span 1" B8ZS/ESF NOTOPEN

Shouldn't my PBX on the other end of this T1 be seeing an alarm since the span is not open?

As for access, it may be possible for limited periods.  These are production servers, so I would need to stop using one while people accessed it.

By: zoa (zoa) 2004-02-25 11:25:38.000-0600

that is not yellow, that is not open ?

hmmz, now i get it, you want the other end also to see it when asterisk is not running... i don't know if this is a bug.

By: jshugart (jshugart) 2004-02-25 11:49:18.000-0600

It might not be a bug, but the tor2 driver does send an alarm when asterisk is not running.  I have two other servers running T400P cards and they return alarms when asterisk dies.  This helps a bunch for routing because my PBX will fail over to working trunks when it sees the primaries in alarm.  As it stands now the PBX keeps trying to send calls but asterisk is not running to answer them.  I was looking in the wct4xxp driver code and there is commented out code that looks like it should turn on the alarm, but the comment states the card automatically does this.  In the tor2 driver this code is enabled.  I tried fixing this code but these registers don't appear to control alarming.  If you have a description of what all the registers do, I would be happy to work out the code.

Line 1219 of wct4xxp.c
   if (alarms && (!wc->spans[span].alarms)) {
#if 0
       printk("Going into yellow alarm\n");
#if 0
       /* The quadfalc automatically generates yellow alarm */
       if (wc->spantype[span] == TYPE_E1)
           __t4_framer_out(wc, span, 0x21, 0x7f);
           __t4_framer_out(wc, span, 0x35, 0x11);

By: zoa (zoa) 2004-02-25 12:17:20.000-0600

that indeed doesnt look like a bug but a very welcome feature.

By: jshugart (jshugart) 2004-03-17 17:58:39.000-0600

I have just reworked my system that has an older T400P.  I installed the latest CVS code.  When I setup things as above the PBX sees that asterisk is not running.  So the code for tor2 driver does something different that the wct4xxp driver when the channels are not open.  Wouldn't this be a bug in one of the drivers?  Hopefully the wct4xxp because I like the way the tor2 driver triggers the alarm.

By: James Golovich (jamesgolovich) 2004-04-10 03:26:14

Ok this should be fixed in recent zaptel CVS.  Works good on my test gear, but I wouldn't mind having some more people test it out.
I'm going to close this out, please reopen if there are still problems