[asterisk-users] Discover connected Zap lines

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri May 2 03:16:56 CDT 2008


On Fri, May 02, 2008 at 09:06:01AM +0200, Vinz486 wrote:
> 2008/4/30 Tzafrir Cohen <tzafrir.cohen at xorcom.com>:
> > On Wed, Apr 30, 2008 at 09:07:48PM +0200, Vinz486 wrote:
> 
> >  So a quick look at /proc/zaptel/1 will show you that the channel is RED
> >  (yes, there are also channel alarms for that in latest Zaptel versions).
> >
> 
> Bad news:
> 
> I have 1 line plugged on port 3 (ports are 3 and 4) and no trick tell me that:
> 
> -------------------------------------------------------------------------------------------------------
> dev:/tvp/var# cat /proc/zaptel/1
> Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1" (MASTER)
> 
>            1 WCTDM/0/0
>            2 WCTDM/0/1
>            3 WCTDM/0/2 FXSKS (In use)
>            4 WCTDM/0/3 FXSKS (In use)

This is with the lines plugged?

What do you see here with the lines unplugged?

> --------------------------------------------------------------------------------------------------------
> 
> >From Asterisk command line:
> 
> --------------------------------------------------------------------------------------------------------
> dev*CLI> zap show status
> Description                              Alarms     IRQ        bpviol
>    CRC4
> Wildcard TDM400P REV I Board 1           OK         0          0
>    0
> 
> dev*CLI> zap show channels
>     Chan       Extension  Context       Language   MOH Interpret
>  pseudo            analog          it         default
>           3            analog          it         default
>           4            analog          it         default
> dev*CLI>
> ---------------------------------------------------------------------------------------------------------
> 
> 
> But when I unplug from 3 and plug on 4 the CLI alert me:
> 
> ---------------------------------------------------------------------------------------------------------
> [May  2 08:51:00] WARNING[5119]: chan_zap.c:6685 handle_init_event:
> Detected alarm on channel 3: No Alarm
> [May  2 08:51:03] NOTICE[5119]: chan_zap.c:6678 handle_init_event:
> Alarm cleared on channel 4
> ---------------------------------------------------------------------------------------------------------

This means that you should be able to see it in the InAlarm: field in
'zap show channel 3'

> 
> It's "crazy" for me that there is no way to get programmatically (i
> mean via CLI or a PHP script) those WARNING and NOTICE messages...

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list