[Home]

Summary:ASTERISK-16689: chan_dahdi does not detect polarity change when using AEX800P/wctdm24xxp
Reporter:Pablo Ruiz GarcĂ­a (pruiz)Labels:
Date Opened:2010-09-16 19:54:14Date Closed:2011-06-07 14:00:59
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_dahdi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:My POTS telco (Telefonica/Spain) uses polarity switch for answer and hangup signalling, and as such I've been using TDM4XXP cards with hanguponpolarityswitch/answeronpolarityswitch=yes for years without problem on asterisk 1.4.x..

However, a couple of weeka ago we bougth a new AEX800P with 6 FXO ports, and I've been unable to make it work as it seem to completely ignore polarity changes.

I've tried with different combinations of options at chan_dahdi, and with different wctdm24xxp module options w/o any success..

Also, setting debug and verbose to 99, and loading wctdm24xxp with debug=1, the only log relating to polarity which I from dmesg or asterisk full logs,  get during a call are:

chan_dahdi.c: Ignore possible polarity reversal on line seizure
chan_dahdi.c: Setting IDLE polarity due to ring. Old polarity was 0


Here is chan_dadi.conf:

[channels]
context=from-pstn
signalling=fxs_ks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=no
canpark=no
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=256
rxgain=5.0
txgain=5.0
relaxdtmf=yes
callgroup=1
pickupgroup=1
hardwaredtmf=yes
;mwimonitor=fsk
;waitfordialtone=15000
adsi=yes
sendcalleridafter=2
cidsignalling=bell
cidstart=ring
language=es
polarityevents=yes
answeronpolarityswitch=yes
hanguponpolarityswitch=yes
polarityswitchondelay=1
faxdetect=both
;faxdetect=no
;callprogress=no
;usedistinctiveringdetection=yes
tonezone=6      ; 6 == Spain

group=0
channel => 1-6

****** ADDITIONAL INFORMATION ******

wctdm24xxp's dmesg output:


dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.3.0.1
PCI: Enabling device 0000:05:08.0 (0110 -> 0113)
ACPI: PCI Interrupt 0000:05:08.0[A] -> GSI 18 (level, low) -> IRQ 177
wctdm24xxp 0000:05:08.0: VoiceDAA System: 05
wctdm24xxp 0000:05:08.0: voicedaa: card 1 new timeslot: 0
wctdm24xxp 0000:05:08.0: ISO-Cap is now up, line side: 03 rev 06
wctdm24xxp 0000:05:08.0: setting FXO tx gain for card=0 to 0
wctdm24xxp 0000:05:08.0: setting FXO rx gain for card=0 to 0
wctdm24xxp 0000:05:08.0: DEBUG fxotxgain:0.0 fxorxgain:0.0
wctdm24xxp 0000:05:08.0: Port 1: Installed -- AUTO FXO (SPAIN mode)
wctdm24xxp 0000:05:08.0: VoiceDAA System: 05
wctdm24xxp 0000:05:08.0: voicedaa: card 2 new timeslot: 1
wctdm24xxp 0000:05:08.0: ISO-Cap is now up, line side: 03 rev 06
wctdm24xxp 0000:05:08.0: setting FXO tx gain for card=1 to 0
wctdm24xxp 0000:05:08.0: setting FXO rx gain for card=1 to 0
wctdm24xxp 0000:05:08.0: DEBUG fxotxgain:0.0 fxorxgain:0.0
wctdm24xxp 0000:05:08.0: Port 2: Installed -- AUTO FXO (SPAIN mode)
wctdm24xxp 0000:05:08.0: VoiceDAA System: 05
wctdm24xxp 0000:05:08.0: voicedaa: card 3 new timeslot: 2
wctdm24xxp 0000:05:08.0: ISO-Cap is now up, line side: 03 rev 06
wctdm24xxp 0000:05:08.0: setting FXO tx gain for card=2 to 0
wctdm24xxp 0000:05:08.0: setting FXO rx gain for card=2 to 0
wctdm24xxp 0000:05:08.0: DEBUG fxotxgain:0.0 fxorxgain:0.0
wctdm24xxp 0000:05:08.0: Port 3: Installed -- AUTO FXO (SPAIN mode)
wctdm24xxp 0000:05:08.0: VoiceDAA System: 05
wctdm24xxp 0000:05:08.0: voicedaa: card 4 new timeslot: 3
wctdm24xxp 0000:05:08.0: ISO-Cap is now up, line side: 03 rev 06
wctdm24xxp 0000:05:08.0: setting FXO tx gain for card=3 to 0
wctdm24xxp 0000:05:08.0: setting FXO rx gain for card=3 to 0
wctdm24xxp 0000:05:08.0: DEBUG fxotxgain:0.0 fxorxgain:0.0
wctdm24xxp 0000:05:08.0: Port 4: Installed -- AUTO FXO (SPAIN mode)
wctdm24xxp 0000:05:08.0: ProSLIC on module 4, product 1, version 15
wctdm24xxp 0000:05:08.0: VoiceDAA System: 05
wctdm24xxp 0000:05:08.0: voicedaa: card 5 new timeslot: 4
wctdm24xxp 0000:05:08.0: ISO-Cap is now up, line side: 03 rev 06
wctdm24xxp 0000:05:08.0: setting FXO tx gain for card=4 to 0
wctdm24xxp 0000:05:08.0: setting FXO rx gain for card=4 to 0
wctdm24xxp 0000:05:08.0: DEBUG fxotxgain:0.0 fxorxgain:0.0

wctdm24xxp 0000:05:08.0: Port 5: Installed -- AUTO FXO (SPAIN mode)
wctdm24xxp 0000:05:08.0: ProSLIC on module 5, product 1, version 15
wctdm24xxp 0000:05:08.0: Trying port 6 with alternate chip select
wctdm24xxp 0000:05:08.0: VoiceDAA System: 05
wctdm24xxp 0000:05:08.0: voicedaa: card 6 new timeslot: 5
wctdm24xxp 0000:05:08.0: ISO-Cap is now up, line side: 03 rev 06
wctdm24xxp 0000:05:08.0: setting FXO tx gain for card=5 to 0
wctdm24xxp 0000:05:08.0: setting FXO rx gain for card=5 to 0
wctdm24xxp 0000:05:08.0: DEBUG fxotxgain:0.0 fxorxgain:0.0
wctdm24xxp 0000:05:08.0: Port 6: Installed -- AUTO FXO (SPAIN mode)
wctdm24xxp 0000:05:08.0: ProSLIC on module 6, product 1, version 15
wctdm24xxp 0000:05:08.0: Port 7: Not installed
wctdm24xxp 0000:05:08.0: ProSLIC on module 7, product 1, version 15
wctdm24xxp 0000:05:08.0: Port 8: Not installed
wctdm24xxp 0000:05:08.0: fixup_analog: x=0, y=0 modtype=2, s->chans[0]=ffff81012281a000
wctdm24xxp 0000:05:08.0: fixup_analog: x=1, y=1 modtype=2, s->chans[1]=ffff810121d79000
wctdm24xxp 0000:05:08.0: fixup_analog: x=2, y=2 modtype=2, s->chans[2]=ffff810121329000
wctdm24xxp 0000:05:08.0: fixup_analog: x=3, y=3 modtype=2, s->chans[3]=ffff8101221a9000
wctdm24xxp 0000:05:08.0: fixup_analog: x=4, y=4 modtype=2, s->chans[4]=ffff810120e1d000
wctdm24xxp 0000:05:08.0: fixup_analog: x=5, y=5 modtype=2, s->chans[5]=ffff81011dc33000
wctdm24xxp 0000:05:08.0: fixup_analog: x=6, y=6 modtype=0, s->chans[6]=ffff810120370000
wctdm24xxp 0000:05:08.0: fixup_analog: x=7, y=7 modtype=0, s->chans[7]=ffff810120970000
wctdm24xxp 0000:05:08.0: voicedaa: card 1 new timeslot: 0
wctdm24xxp 0000:05:08.0: voicedaa: card 2 new timeslot: 1
wctdm24xxp 0000:05:08.0: voicedaa: card 3 new timeslot: 2
wctdm24xxp 0000:05:08.0: voicedaa: card 4 new timeslot: 3
wctdm24xxp 0000:05:08.0: voicedaa: card 5 new timeslot: 4
wctdm24xxp 0000:05:08.0: voicedaa: card 6 new timeslot: 5
wctdm24xxp 0000:05:08.0: VPM100: Not Present
wctdm24xxp 0000:05:08.0: Found a Wildcard TDM: Wildcard AEX800 (0 digital modules, 6 analog modules)
DAHDI Dynamic Span support LOADED
dahdi: Registered tone zone 0 (United States / North America)
wctdm24xxp 0000:05:08.0: 4390269120 Polarity reversed (0 -> 1)
wctdm24xxp 0000:05:08.0: 4390269120 Polarity reversed (0 -> -1)
wctdm24xxp 0000:05:08.0: 4390269120 Polarity reversed (0 -> -1)
wctdm24xxp 0000:05:08.0: NO BATTERY on 1/1!
wctdm24xxp 0000:05:08.0: BATTERY on 1/2 (+)!
wctdm24xxp 0000:05:08.0: BATTERY on 1/3 (-)!
wctdm24xxp 0000:05:08.0: BATTERY on 1/4 (-)!
wctdm24xxp 0000:05:08.0: NO BATTERY on 1/5!
wctdm24xxp 0000:05:08.0: NO BATTERY on 1/6!
dahdi_echocan_mg2: Registered echo canceler 'MG2'
dahdi: Registered tone zone 6 (Spain)
...
Comments:By: Leif Madsen (lmadsen) 2010-09-21 12:27:09

I'm going to suspend and close this issue as this appears to be a hardware related issue. I'd suggest you contact Digium support where an issue will be opened in a fashion that will help resolve the issue quicker. If Digium supports redirects you back here, then please reopen this issue. Thanks!