[asterisk-bugs] [Asterisk 0018240]: VoicemailMain Exits Without Warning

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 2 09:23:47 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18240 
====================================================================== 
Reported By:                leobrown
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18240
Category:                   Applications/app_voicemail
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-11-02 06:46 CDT
Last Modified:              2010-11-02 09:23 CDT
====================================================================== 
Summary:                    VoicemailMain Exits Without Warning
Description: 
Hi

I've seen problems with VoicemailMain crashing in the past, from not being
able to lock paths, open audio files etc.

However, I have a VoiceMailMain which is opening a mailbox, but existing
after verifying a correct password.

The console trace is below, but because Asterisk is not crashing, I can
not provide a backtrace. Could you please give me some guidance on how to
further debug, as debug level 10 (shown below) only shows it
locking/unlocking paths and then exiting.

I have checked all permissions and even removed mailboxes and let Asterisk
create the paths itself. Voicemail() works fine, but VoicemailMain does
not. The relevant entry from voicemail.conf is also

Leo
====================================================================== 

---------------------------------------------------------------------- 
 (0128554) leobrown (reporter) - 2010-11-02 09:23
 https://issues.asterisk.org/view.php?id=18240#c128554 
---------------------------------------------------------------------- 
Hi

I have found that it's this code that is causing the return:

        /* Retrieve urgent, old and new message counts */
        ast_debug(1, "Before open_mailbox\n");
        res = open_mailbox(&vms, vmu, OLD_FOLDER); /* Count all messages,
even Urgent */
        if (res < 0){
                goto out;
        }

I.e. res < 0. That's returned from open_mailbox, here:

        /* for local storage, checks directory for messages up to maxmsg
limit */
        last_msg = last_message_index(vmu, vms->curdir);
        ast_unlock_path(vms->curdir);

        if (last_msg < 0) {
                return last_msg;
        }

Which of course, is from last_message_index, which is returning -1 because
there are no files in the Old/ directory - which seems to be the correct
operation.

So either I'm reading the source wrong, or this is intentionally dying
because there are no old messages due to some sort of strange bug uploaded
into 1.6.2 branch? :| 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-11-02 09:23 leobrown       Note Added: 0128554                          
======================================================================




More information about the asterisk-bugs mailing list