Summary:ASTERISK-01725: [request] Support battery polarity reversal
Reporter:dannym (dannym)Labels:
Date Opened:2004-05-29 14:41:52Date Closed:2004-09-25 02:11:26
Versions:Frequency of
Description:some fxo lines send battery polarity reversal to indicate the remote party has answered. Important feature that exists today in most fxo gateways (cisco, quintum).
This will enable proper billing for gateway functionlity
Comments:By: Mark Spencer (markster) 2004-06-01 16:13:12

How does polarity reversal work?  Does it reverse back?  How long does it take, etc.

By: dannym (dannym) 2004-06-01 16:52:54

check this document
it details the Analog signalling for battery reversal

By: mochouinard (mochouinard) 2004-06-02 00:28:48

I would love something like that.  Maybe hangup could be well detected(Mainly off a Nortel Meridian 1 System (X100P currenlt dont detect hangup, I havent try TDM400), and maybe would fix my problem of bug 1750 that I had at home with TDM400 FXO)

By: brc007 (brc007) 2004-06-02 04:21:54

Summary of http://www.cisco.com/en/US/tech/tk652/tk653/technologies_tech_note09186a00800ae2d1.shtml#topic6

On far-end answer battery polarity is reversed. Polarity remains reversed until far-end disconnect at which point the polarity is switched back to normal.

By: Mark Spencer (markster) 2004-06-02 12:04:24

That's for answer supervision.

By: dannym (dannym) 2004-06-02 15:32:28

Actually it can signal both answer and hangup supervision.
What can be done:
1- The driver wcfxs.o signals ZAP_BATREV, whenever a reversal is detected on the line.
2- zap_channel.c will react to the event depending on the state of the call.
  a- The channel is in DIALING state, in this case the event will signal an
  b- The channel is in UP (call is CONNECTED), in this case the event will
  signal an hangup

By: Mark Spencer (markster) 2004-06-21 15:05:42

Can someone find me on IRC that has a line which does polarity reversal so I can experiment with it?

By: twisted (twisted) 2004-07-08 09:16:00

Any update?  Did anyone get ahold of markster on irc?

By: egnarf (egnarf) 2004-07-08 09:54:48

I'm working with Mark to get this done.

By: twisted (twisted) 2004-08-04 23:50:03

I believe this was merged into cvs on 08/03/04 for wcfxs.c.

If this is not the correct resolution, please reopen this bug.