[asterisk-bugs] [Asterisk 0012892]: [patch] Fix comparison logic to determine urgent versus non-urgent.

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jun 19 10:23:07 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12892 
====================================================================== 
Reported By:                jaroth
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12892
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 122710 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-19-2008 08:59 CDT
Last Modified:              06-19-2008 10:23 CDT
====================================================================== 
Summary:                    [patch] Fix comparison logic to determine urgent
versus non-urgent.
Description: 
Messages in IMAP storage were not being marked or checked properly due to
strcmp comparisons.  This patch fixes the issue.
====================================================================== 

---------------------------------------------------------------------- 
 jaroth - 06-19-08 10:23  
---------------------------------------------------------------------- 
Hmmmm, the idea is that if the flag is not set, or if it is not set to
"Urgent", then set it to Urgent (toggle).  That is what this line does:

 if (ast_strlen_zero(flag) || (!ast_strlen_zero(flag) && strcmp(flag,
"Urgent"))) {

This check is done only when toggling between urgent/nonurgent by pressing
"4". 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-19-08 10:23  jaroth         Note Added: 0088917                          
======================================================================




More information about the asterisk-bugs mailing list