[asterisk-bugs] [Zaptel 0008290]: [patch] zap hookstate is never set offhook if wctdm module is loaded with an active fxo line

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 13:48:15 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=8290 
====================================================================== 
Reported By:                tmarkov
Assigned To:                kpfleming
====================================================================== 
Project:                    Zaptel
Issue ID:                   8290
Category:                   wctdm
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Zaptel Version:              1.2.10 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        Yes 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             11-03-2006 17:28 CST
Last Modified:              06-07-2008 13:48 CDT
====================================================================== 
Summary:                    [patch] zap hookstate is never set offhook if wctdm
module is loaded with an active fxo line
Description: 
If #define ZAP_CHECK_HOOKSTATE is uncommented in chan_zap.c, then the
hookstate stays onhook if the wctdm module is loaded with an active line. 
Removing line and reinserting will cause the hookstate to initialize
properly.  The problem appears to be that wc->mod[card].fxo.battery never
gets initialized to 0, so in wctdm_voicedaa_check_hook() the test "if
(!wc->mod[card].fxo.battery && !wc->mod[card].fxo.battdebounce)" is never
entered, and the hookstate remains onhook upon module startup.  Only a
cycling of line voltage will correct the problem.  I have attached a patch
which initializes the battery variable and fixes the problem for me.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 13:48  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 3718

U   branches/1.4/wctdm.c
U   branches/1.4/wctdm24xxp/base.c
U   branches/1.4/zaptel-base.c

------------------------------------------------------------------------
r3718 | kpfleming | 2008-06-07 13:48:13 -0500 (Sat, 07 Jun 2008) | 9 lines

Report battery loss on FXO ports of analog cards as a 'red alarm' on the
respective channel.

(closes issue http://bugs.digium.com/view.php?id=8290)
Reported by: tmarkov
Patches:
      8290-alarm-total_1_4_rev3705 uploaded by meneault
Tested by: flefoll


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

http://svn.digium.com/view/dahdi?view=rev&revision=3718 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 13:48  svnbot         Note Added: 0088367                          
======================================================================




More information about the asterisk-bugs mailing list