[asterisk-bugs] [DAHDI-linux 0015018]: Hangups are ignored if the channel has not been answered

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 25 04:06:03 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15018 
====================================================================== 
Reported By:                cabal95
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   15018
Category:                   dahdi (the module)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-05-02 13:32 CDT
Last Modified:              2009-05-25 04:06 CDT
====================================================================== 
Summary:                    Hangups are ignored if the channel has not been
answered
Description: 
When a call comes in, if it has not been Answer()'d yet by Asterisk and the
call is hung up (i.e., I changed my mind, or I called wrong number, etc.),
Dahdi does not pass the hookswitch state to Asterisk to signal a hangup. 
In my dialplan I have a Wait(2) before I Answer() the call.  If the calling
party hangs up during this Wait(2) call before Answer() then the hangup is
never detected and eventually goes to voicemail as a re-order tone.

At or near line 6321 is this bit of code:
           case DAHDI_SIG_FXSKS:  /* FXS Kewlstart */
                  /* ignore a bit error if loop not closed and stable */
                if (chan->txstate != DAHDI_TXSTATE_OFFHOOK) break;

Is there any reason for this?  I commented this out and everything seems
to be fine and it actually detects those early hangups now.  It would seem
like this was put in to fix one bug and caused another.
====================================================================== 

---------------------------------------------------------------------- 
 (0105360) tzafrir (manager) - 2009-05-25 04:06
 https://issues.asterisk.org/view.php?id=15018#c105360 
---------------------------------------------------------------------- 
I'm not sure I follow you. I tried to reproduce this here (dahdi 2.2.0-rc2,
Astribanks, Asterisk 1.6.0.5) and could not reproduce it.

What versions of Asterisk and Zaptel do you use? What device do you use?

In which country are you? What PSTN prpvider are you connected to? How do
you expect the FXO adapter to detect a hangup on the remote side? (power
denial (KS)? polarity reversal?) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-25 04:06 tzafrir        Note Added: 0105360                          
======================================================================




More information about the asterisk-bugs mailing list