Support FXS module Polarity Reversal on remote party Answer and Hangup
authorAlec L Davis <sivad.a@paradise.net.nz>
Thu, 22 Jul 2010 23:14:50 +0000 (23:14 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Thu, 22 Jul 2010 23:14:50 +0000 (23:14 +0000)
commit85bfe38f2f7a22e7ff300efbe48a1b658896866c
tree46a9b237320ec45b34bbc4c57965d79679fb8688
parentab0b255455bcd8ccd78de24d61be8b1b1cf2f44d
Support FXS module Polarity Reversal on remote party Answer and Hangup

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.

Now using answeronpolarityswitch and hanguponpolarityswitch keywords that
previously were used only for FXO ports, now applies like functionality for
an FXS port, but from the connected equipment's point of view.

(closes issue #17318)
Reported by: armeniki
Patches:
      fxs_linepolarity.diff5.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

Review: https://reviewboard.asterisk.org/r/797/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c
channels/sig_analog.c
channels/sig_analog.h
configs/chan_dahdi.conf.sample