Summary: | DAHLIN-00125: wctdm does not clear RED alarm on FXO ports | ||
Reporter: | sun bing (hoowa) | Labels: | |
Date Opened: | 2009-07-10 08:46:50 | Date Closed: | 2009-10-26 09:41:06 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | wctdm |
Versions: | 2.2.0.1 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ( 0) cmd.txt | |
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@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@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@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. | ||
Comments: | By: Tzafrir Cohen (tzafrir) 2009-07-10 10:53:38 I don't follow. Only two of the four ports are configured in Asterisk (or maybe the ports sare misconfigured in Asterisk)? I also note that in the second case both ports are RED, which means both report that they are not connected to the PSTN. By: sun bing (hoowa) 2009-07-10 23:48:01 [root@testa53 ~]# cat /etc/dahdi/system.conf # analog fxsks=1-3 fxoks=4 loadzone=us defaultzone=us # endof By: sun bing (hoowa) 2009-07-10 23:56:57 [root@testa53 ~]# cat /etc/asterisk/chan_dahdi.conf [trunkgroups] ; [channels] language=cn ;context=from-trunk-dahdi ; ; ; common used ; echocancel=no echocancelwhenbridged=no echotraining=undefined rxgain=0.0 txgain=0.0 usecallerid=yes ; bell v23 v23_jp dtmf smdi cidsignalling=bell ; ring polarity cidstart=ring hidecallerid=no ; ; ; for fxs ; signalling=fxo_ks adsi=yes immediate=no transfertobusy=yes callwaiting=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes context=from-exten-dahdi ; #include chan_dahdi_fxs.conf ; ; ; for fxo ; signalling=fxs_ks usedistinctiveringdetection=no distinctiveringaftercid=no busydetect=yes busycount=5 busypattern= callprogress=no pulsedial=no ; both incoming outgoing no faxdetect=both answeronpolarityswitch=no hanguponpolarityswitch=no context=from-trunk-dahdi ; #include chan_dahdi_fxo.conf ; ; ; for digital ; signalling=pri_cpe switchtype=euroisdn nsf=none pridialplan=national prilocaldialplan=national resetinterval=100000000 overlapdial=no ;inbanddisconnect=yes ; priindication = outofband ; priexclusive = yes ; pritimer => t200,1000 facilityenable = yes restrictcid=no ;usecallingpres=yes context=from-trunk-dahdi ; #include chan_dahdi_digital.conf [root@testa53 ~]# cat /etc/asterisk/chan_dahdi_fxo.conf group=0 accountcode=0 channel=1 group=1 accountcode=1 channel=2 By: sun bing (hoowa) 2009-07-10 23:57:47 FXO 1 installed PSTN line: testa53*CLI> dahdi show channels Chan Extension Context Language MOH Interpret 1 from-trunk-dahd cn default 2 from-trunk-dahd cn default testa53*CLI> dahdi show status Description Alarms IRQ bpviol CRC4 Wildcard TDM400P REV I Board 5 OK 0 0 0 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: 0 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 Usage: dahdi show channel <chan num> Detailed information about a given channel 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 By: sun bing (hoowa) 2009-07-11 00:04:11 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@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@testa53 ~]# /etc/init.d/asterisk stop Shutting down asterisk: [ OK ] [root@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@testa53 ~]# /etc/init.d/asterisk start Starting asterisk: [ OK ] [root@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@testa53 ~]# if i restart dahdi manual , FXO 1 will be clear alarm. By: Leif Madsen (lmadsen) 2009-09-21 10:46:53 Per Qwell on IRC: "I'd say have him upgrade, and if it still happens, it shouldn't be too difficult to reproduce" If you can upgrade to the latest drivers, that'd be a big help in determining if this is an issue that has already been fixed or not. Thanks! By: Jason Parker (jparker) 2009-09-21 10:49:22 To clarify: Please test the latest versions of both DAHDI and Asterisk. By: Leif Madsen (lmadsen) 2009-10-26 09:41:06 Closed due to lack of feedback. |