ensure that message envelopes are retrieved from ODBC storage when advanced options...
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 14 Oct 2005 00:08:24 +0000 (00:08 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 14 Oct 2005 00:08:24 +0000 (00:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6783 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 4621cd5..8f19fbb 100755 (executable)
@@ -6332,7 +6332,9 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s
 
        make_file(vms->fn2, sizeof(vms->fn2), vms->curdir, vms->curmsg);
        snprintf(filename,sizeof(filename), "%s.txt", vms->fn2);
 
        make_file(vms->fn2, sizeof(vms->fn2), vms->curdir, vms->curmsg);
        snprintf(filename,sizeof(filename), "%s.txt", vms->fn2);
+       RETRIEVE(vms->curdir, vms->curmsg);
        msg_cfg = ast_config_load(filename);
        msg_cfg = ast_config_load(filename);
+       DISPOSE(vms->curdir, vms->curmsg);
        if (!msg_cfg) {
                ast_log(LOG_WARNING, "No message attribute file?!! (%s)\n", filename);
                return 0;
        if (!msg_cfg) {
                ast_log(LOG_WARNING, "No message attribute file?!! (%s)\n", filename);
                return 0;