[asterisk-bugs] [DAHDI-linux 0014577]: [patch] FXO channels "hookstate" incorrect on startup

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Aug 8 13:19:16 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14577 
====================================================================== 
Reported By:                jkroon
Assigned To:                sruffell
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   14577
Category:                   dahdi (the module)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     confirmed
====================================================================== 
Date Submitted:             2009-03-01 16:16 CST
Last Modified:              2009-08-08 13:19 CDT
====================================================================== 
Summary:                    [patch] FXO channels "hookstate" incorrect on
startup
Description: 
Referencing bug 13786 (http://bugs.digium.com/view.php?id=13786) which
attempts to work around an underlying problem in userspace (chan_dahdi). 
The issue seems to be (as described by tzafrir):

It seems to expose a bug(?) in zaptel/dahdi where chan->rxhooksig is set
to RX_HOOKSIG_INITIAL at the end of chanconfig() which leaves the channel's
state there "uninitialized" and even if the channel driver knows better it
cannot override this decision. But I'm not sure what's the intended
behaviour, so I avoid a seperate bug report on that for now.

This is manifested in that I cannot make outbound calls on an FXO card
(Using FXSKS signalling) until I've received an incoming call resetting the
hookstate to offhook (A single ring is good enough), or alternatively,
disconnecting and reconnecting the telephone line.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0015429 After the system reboot calls do not go...
====================================================================== 

---------------------------------------------------------------------- 
 (0108808) jkroon (reporter) - 2009-08-08 13:19
 https://issues.asterisk.org/view.php?id=14577#c108808 
---------------------------------------------------------------------- 
This has again come up in the IRC channel.  tzafrir also explained to me in
irc at the time when I first found the issue that for FXO channels the
hookstate really makes no sense, we only really care whether the channel is
in alarm or not - which will depend on the battery state.

I also recall trying something down the lines of not setting the state
back to initial, which caused major breakage for me (I couln't make calls
at all, inbound, outbound, and re-plugging things didn't help either).  Not
sure about the battery state variant, haven't tested that.

Is there a specific reason why we can't use the patch to asterisk itself
(not to dahdi drivers?) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-08 13:19 jkroon         Note Added: 0108808                          
======================================================================




More information about the asterisk-bugs mailing list