[asterisk-bugs] [Asterisk 0012276]: hanguponpolarityswitch ignored because I am not using answeronpolarityswitch

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Sep 7 21:03:34 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12276 
====================================================================== 
Reported By:                benbrown
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12276
Category:                   Channels/chan_zap
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-03-22 07:55 CDT
Last Modified:              2008-09-07 21:03 CDT
====================================================================== 
Summary:                    hanguponpolarityswitch ignored because I am not
using answeronpolarityswitch
Description: 
As you can see from the debug below I am using hanguponpolarityswitch but
not answeronpolarityswitch.

However, the hangup polarity detection is being ignored, I believe,
because p->polaritydelaytv is not being initialised and calculating the
large negative delay.

Perhaps line 4478 should read:

 if ((p->answeronpolarityswitch) && (ast_tvdiff_ms(ast_tvnow(),
p->polaritydelaytv) > p->polarityonanswerdelay)) {

====================================================================== 

---------------------------------------------------------------------- 
 (0092162) snuffy (manager) - 2008-09-07 21:03
 http://bugs.digium.com/view.php?id=12276#c92162 
---------------------------------------------------------------------- 
Closed on reporters request. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-07 21:03 snuffy         Note Added: 0092162                          
======================================================================




More information about the asterisk-bugs mailing list