[asterisk-bugs] [Asterisk 0017318]: [patch] FXS Polarity Reversal on Hangup or Answer

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 11 02:11:54 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17318 
====================================================================== 
Reported By:                armeniki
Assigned To:                alecdavis
====================================================================== 
Project:                    Asterisk
Issue ID:                   17318
Category:                   NewFeature
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           I did not set the version :( 
JIRA:                        
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/797/ 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-11 06:12 CDT
Last Modified:              2010-08-11 02:11 CDT
====================================================================== 
Summary:                    [patch] FXS Polarity Reversal on Hangup or Answer
Description: 
FXS lines normally connect to a telephone.  However, when FXS lines are
routed to an external PBX or Key System to act as "external" or "CO" lines,
it is extremely difficult, if not impossible for the external PBX to know
when the call has been disconnected without receiving a polarity reversal
on the line.

DAHDI/Asterisk should have a feature to allow a setting someplace, perhaps
in chan_dahdi.conf, to allow a FXS channel to provide a polarity reversal
on channel hangup.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017724 [patch] Race condition in handling writ...
====================================================================== 

---------------------------------------------------------------------- 
 (0125795) alecdavis (manager) - 2010-08-11 02:11
 https://issues.asterisk.org/view.php?id=17318#c125795 
---------------------------------------------------------------------- 
debug output with bug17318_debug_output.diff.txt patch applied.

asterix:/var/log/asterisk# tail -f full | grep pol
[Aug 11 19:10:41] DEBUG[23766] sig_analog.c: Ignore possible polarity
reversal on line seizure
[Aug 11 19:10:45] DEBUG[23766] sig_analog.c: Answering on polarity switch!
channel 36
[Aug 11 19:10:45] DEBUG[23766] sig_analog.c: Polarity Reversal event
occured - DEBUG 2: channel 36, state 6, pol= 1, aonp= 1, honp= 1, pdelay=
600, tv= 0
[Aug 11 19:10:45] DEBUG[23766] sig_analog.c: analog_answer chan=35 pol(a=1
h=1)
[Aug 11 19:10:45] DEBUG[23766] chan_dahdi.c: my_answer_polarityswitch:
Reversed
[Aug 11 19:11:09] DEBUG[23766] sig_analog.c: HangingUp on polarity switch!
channel 36
[Aug 11 19:11:09] DEBUG[23766] sig_analog.c: Polarity Reversal event
occured - DEBUG 2: channel 36, state 6, pol= 0, aonp= 1, honp= 1, pdelay=
600, tv= 24776
[Aug 11 19:11:09] DEBUG[23766] sig_analog.c: analog_hangup chan=36 pol(a=1
h=1)
[Aug 11 19:11:09] DEBUG[23766] sig_analog.c: analog_hangup chan=35 pol(a=1
h=1)
[Aug 11 19:11:09] DEBUG[23766] chan_dahdi.c: my_hangup_polarityswitch:
Normal
[Aug 11 19:11:16] DEBUG[23645] chan_dahdi.c: my_start_polarityswitch:
Normal 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-11 02:11 alecdavis      Note Added: 0125795                          
======================================================================




More information about the asterisk-bugs mailing list