[asterisk-bugs] [Asterisk 0015934]: [patch] app_voicemail.so doesn't refresh information from database on reload

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 22 15:12:38 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15934 
====================================================================== 
Reported By:                viniciusfontes
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15934
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.26.2 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-09-22 13:38 CDT
Last Modified:              2009-09-22 15:12 CDT
====================================================================== 
Summary:                    [patch] app_voicemail.so doesn't refresh information
from database on reload
Description: 
I have Asterisk 1.4.26.2 with voicemail configured on the realtime engine.
When I change the imapuser field on the database, app_voicemail seems to
use some kind of cache, because it doesn't store the voicemail in the newly
set mailbox, not even after triggering "module reload app_voicemail.so" on
the CLI. The only way it can read the new value is by unloading and loading
the module again, as in:

*CLI> module unload app_voicemail.so
*CLI> module load app_voicemail.so
====================================================================== 

---------------------------------------------------------------------- 
 (0111217) viniciusfontes (reporter) - 2009-09-22 15:12
 https://issues.asterisk.org/view.php?id=15934#c111217 
---------------------------------------------------------------------- 
Had a few warnings when patching and compiling:

patching file apps/app_voicemail.c
Hunk https://issues.asterisk.org/view.php?id=5 succeeded at 737 (offset 1 line).
Hunk https://issues.asterisk.org/view.php?id=6 succeeded at 790 (offset 1 line).
Hunk https://issues.asterisk.org/view.php?id=7 succeeded at 1072 (offset 1
line).
Hunk https://issues.asterisk.org/view.php?id=8 succeeded at 1562 (offset 1
line).
Hunk https://issues.asterisk.org/view.php?id=9 succeeded at 1933 (offset 1
line).
Hunk https://issues.asterisk.org/view.php?id=10 succeeded at 1958 (offset 1
line).
Hunk https://issues.asterisk.org/view.php?id=11 succeeded at 2003 (offset 1
line).
Hunk https://issues.asterisk.org/view.php?id=12 succeeded at 8479 (offset -5
lines).


make[1]: Entrando no diretório `/usr/src/asterisk-1.4.26.2/apps'
   [CC] app_voicemail.c -> app_voicemail.o
In file included from /usr/src/imap-2007e/c-client/osdep.h:63,
                 from /usr/src/imap-2007e/c-client/c-client.h:42,
                 from app_voicemail.c:82:
/usr/src/imap-2007e/c-client/env_unix.h:71: warning: function declaration
isn’t a prototype


When I change the value on the field imapuser, app_voicemail still sends
to the old value. The difference is that now "module reload
app_voicemail.so" works. After that app_voicemail reads the new value and
the email is sent to the right mailbox.

Is that correct behaviour? I was expecting not being necessary to reload
the module, since the voicemail boxes are defined on a MySQL database. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-22 15:12 viniciusfontes Note Added: 0111217                          
======================================================================




More information about the asterisk-bugs mailing list