Asterisk
  1. Asterisk
  2. ASTERISK-2798

[patch] - Code to allow reverse polarity to indicate a hangup on the channel

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Core/General
    • Labels:
      None
    • Mantis ID:
      2847
    • Regression:
      No

      Description

      This patch adds code the chan_zap.c file, to allow it to pick up the Polarity Reversal events and process them to indicate the remote end has disconnected.

      The code is controlled by two new options in the zapata.conf file, and by default, it is disabled.

                • ADDITIONAL INFORMATION ******

      One of my PSTN lines uses a Polarity Reversal to indicate that the remote end has disconnected. A TDM400P FXO module reports the Event to chan_zap.c, where it is prompty ignored.

      The line also does a Polarity Reversal as the line goes off hook, so this code stores the time of the off hook event and when the polarity reversal event triggers, the timestamps are compared. If the duration is greater than the (configurable) allowed period, the signal is assumed to be a remote end disconnect and the channel is then hungup.

        Activity

        Hide
        egnarf added a comment -

        This patch has been running on my system for almost a week now without any problems.
        Could someone else try it and report success/failure?

        Markster, give it another week or so and if nothing comes up I think it should be tried out in HEAD.

        Show
        egnarf added a comment - This patch has been running on my system for almost a week now without any problems. Could someone else try it and report success/failure? Markster, give it another week or so and if nothing comes up I think it should be tried out in HEAD.
        Hide
        egnarf added a comment -

        Markster,
        There are no problems reported so far.
        I've been running it for a little over 2 weeks without problems.
        I think it is ready for head now.

        Disclaimer is on file.

        Show
        egnarf added a comment - Markster, There are no problems reported so far. I've been running it for a little over 2 weeks without problems. I think it is ready for head now. Disclaimer is on file.
        Hide
        Mark Spencer added a comment -

        New part merged in CVS, thanks!

        Show
        Mark Spencer added a comment - New part merged in CVS, thanks!
        Hide
        Digium Subversion added a comment -

        Repository: asterisk
        Revision: 4275

        U trunk/channels/chan_zap.c
        U trunk/configs/zapata.conf.sample

        ------------------------------------------------------------------------
        r4275 | markster | 2008-01-15 15:14:06 -0600 (Tue, 15 Jan 2008) | 2 lines

        Merge polarity reversal hangup patch (bug ASTERISK-2798)

        ------------------------------------------------------------------------

        http://svn.digium.com/view/asterisk?view=rev&revision=4275

        Show
        Digium Subversion added a comment - Repository: asterisk Revision: 4275 U trunk/channels/chan_zap.c U trunk/configs/zapata.conf.sample ------------------------------------------------------------------------ r4275 | markster | 2008-01-15 15:14:06 -0600 (Tue, 15 Jan 2008) | 2 lines Merge polarity reversal hangup patch (bug ASTERISK-2798 ) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4275
        Hide
        Digium Subversion added a comment -

        Repository: asterisk
        Revision: 4985

        U trunk/channels/chan_agent.c
        U trunk/channels/chan_zap.c
        U trunk/configs/zapata.conf.sample

        ------------------------------------------------------------------------
        r4985 | markster | 2008-01-15 15:24:43 -0600 (Tue, 15 Jan 2008) | 2 lines

        quicky agent formatting fix, merge polarity/answer patch (bug ASTERISK-2798)

        ------------------------------------------------------------------------

        http://svn.digium.com/view/asterisk?view=rev&revision=4985

        Show
        Digium Subversion added a comment - Repository: asterisk Revision: 4985 U trunk/channels/chan_agent.c U trunk/channels/chan_zap.c U trunk/configs/zapata.conf.sample ------------------------------------------------------------------------ r4985 | markster | 2008-01-15 15:24:43 -0600 (Tue, 15 Jan 2008) | 2 lines quicky agent formatting fix, merge polarity/answer patch (bug ASTERISK-2798 ) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4985

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development