[asterisk-bugs] [DAHDI-linux 0015485]: FXO used status may not work.

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Jul 11 00:04:12 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15485 
====================================================================== 
Reported By:                hoowa
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   15485
Category:                   wctdm/NewFeature
Reproducibility:            sometimes
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-07-10 08:46 CDT
Last Modified:              2009-07-11 00:04 CDT
====================================================================== 
Summary:                    FXO used status may not work.
Description: 
system:
Centos 5.3
asterisk 1.4.25
dahdi-linux 2.2.0.1
dahdi-tools 2.2.0

hardware:
pci:0000:04:00.0     wctdm+       e159:0001 Wildcard TDM400P REV I

[root at testa53 ~]# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV I Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV I
location=PCI Bus 04 Slot 01
basechan=1
totchans=4
irq=66
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXS


FXO 1 installed PSTN line:
[root at testa53 ~]# cat /proc/dahdi/1
Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)

           1 WCTDM/4/0 FXSKS (In use) RED
           2 WCTDM/4/1 FXSKS (In use)
           3 WCTDM/4/2 FXSKS RED
           4 WCTDM/4/3 FXOKS

call in asterisk i can hear playback.


when move PSTN to port 2:
[root at testa53 ~]# cat /proc/dahdi/1
Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)

           1 WCTDM/4/0 FXSKS (In use) RED
           2 WCTDM/4/1 FXSKS (In use) RED
           3 WCTDM/4/2 FXSKS RED
           4 WCTDM/4/3 FXOKS

call in asterisk no answer. i think dahdi ignore that change port.

====================================================================== 

---------------------------------------------------------------------- 
 (0107613) hoowa (reporter) - 2009-07-11 00:04
 https://issues.asterisk.org/view.php?id=15485#c107613 
---------------------------------------------------------------------- 
when move PSTN to port 2:

testa53*CLI>
[Jul 11 20:56:15] WARNING[3312]: chan_dahdi.c:4092 handle_alarms: Detected
alarm on channel 1: Red Alarm
[Jul 11 20:56:18] NOTICE[3312]: chan_dahdi.c:7147 handle_init_event: Alarm
cleared on channel 2
testa53*CLI> dahdi show status
Description                              Alarms     IRQ        bpviol    
CRC4
Wildcard TDM400P REV I Board 5           OK         0          0         
0
testa53*CLI> dahdi show chan
channels  channel
testa53*CLI> dahdi show channel 1
Channel: 1I>
File Descriptor: 20
Span: 1
Extension:
Dialing: no
Context: from-trunk-dahdi
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 1
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 0 taps unless TDM bridged, currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook
testa53*CLI> dahdi show channel 2
Channel: 2I>
File Descriptor: 21
Span: 1
Extension:
Dialing: no
Context: from-trunk-dahdi
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 0
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1I>
Propagated Conference: -1
Real in conference: 0
DSP: no*CLI>
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 0 taps unless TDM bridged, currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Offhook
testa53*CLI>


move PSTN to port 1 again :
testa53*CLI>
[Jul 11 20:57:56] WARNING[3312]: chan_dahdi.c:4092 handle_alarms: Detected
alarm on channel 2: Red Alarm
testa53*CLI> dahdi show status
Description                              Alarms     IRQ        bpviol    
CRC4
Wildcard TDM400P REV I Board 5           OK         0          0         
0
testa53*CLI> dahdi show chann
channels  channel
testa53*CLI> dahdi show channel 1
Channel: 1I>
File Descriptor: 20
Span: 1
Extension:
Dialing: no
Context: from-trunk-dahdi
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 1
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 0 taps unless TDM bridged, currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook
testa53*CLI> dahdi show channel 2
Channel: 2I>
File Descriptor: 21
Span: 1
Extension:
Dialing: no
Context: from-trunk-dahdi
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 1
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 0 taps unless TDM bridged, currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook
testa53*CLI>


Now , you can see no "Alarm cleared on channel 1" display.
at this moment in command :

[root at testa53 ~]# cat /proc/dahdi/1
Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)

           1 WCTDM/4/0 FXSKS (In use) RED
           2 WCTDM/4/1 FXSKS (In use) RED
           3 WCTDM/4/2 FXSKS RED
           4 WCTDM/4/3 FXOKS
[root at testa53 ~]# /etc/init.d/asterisk stop
Shutting down asterisk:                                    [  OK  ]
[root at testa53 ~]# /etc/init.d/dahdi restart
Unloading DAHDI hardware modules: done
Loading DAHDI hardware modules:
  wct4xxp:                                                 [  OK  ]
  wcte12xp:                                                [  OK  ]
  wct1xxp:                                                 [  OK  ]
  wcte11xp:                                                [  OK  ]
  wctdm24xxp:                                              [  OK  ]
  wcfxo:                                                   [  OK  ]
  wctdm:                                                   [  OK  ]
  wcb4xxp:                                                 [  OK  ]
  wctc4xxp:                                                [  OK  ]
  xpp_usb:                                                 [  OK  ]

Running dahdi_cfg:                                         [  OK  ]
[root at testa53 ~]# /etc/init.d/asterisk start
Starting asterisk:                                         [  OK  ]
[root at testa53 ~]# cat /proc/dahdi/1
Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)

           1 WCTDM/4/0 FXSKS (In use)
           2 WCTDM/4/1 FXSKS (In use) RED
           3 WCTDM/4/2 FXSKS RED
           4 WCTDM/4/3 FXOKS
[root at testa53 ~]#


if i restart dahdi manual , FXO 1 will be clear alarm. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-11 00:04 hoowa          Note Added: 0107613                          
======================================================================




More information about the asterisk-bugs mailing list