diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-05-18 18:28:52 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-05-18 18:28:52 +0000 |
commit | f0b985853a593de212cd9b8b00ebed1d9e6d6f45 (patch) | |
tree | 24fe92e9b1451eb9e1055fae0c67cc2ad41e1552 /app.c | |
parent | 75e3bafdfd2ce26598fb7f6631f48b6bdc6cecfa (diff) |
Bug 7167 - Fix VMCOUNT if using USE_ODBC_STORAGE (different fix for trunk than for 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'app.c')
-rw-r--r-- | app.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -146,18 +146,22 @@ int ast_app_getdata_full(struct ast_channel *c, char *prompt, char *s, int maxle static int (*ast_has_voicemail_func)(const char *mailbox, const char *folder) = NULL; static int (*ast_messagecount_func)(const char *mailbox, int *newmsgs, int *oldmsgs) = NULL; +static int (*ast_messagecount2_func)(const char *context, const char *mailbox, const char *folder) = NULL; void ast_install_vm_functions(int (*has_voicemail_func)(const char *mailbox, const char *folder), - int (*messagecount_func)(const char *mailbox, int *newmsgs, int *oldmsgs)) + int (*messagecount_func)(const char *mailbox, int *newmsgs, int *oldmsgs), + int (*messagecount2_func)(const char *context, const char *mailbox, const char *folder)) { ast_has_voicemail_func = has_voicemail_func; ast_messagecount_func = messagecount_func; + ast_messagecount2_func = messagecount2_func; } void ast_uninstall_vm_functions(void) { ast_has_voicemail_func = NULL; ast_messagecount_func = NULL; + ast_messagecount2_func = NULL; } int ast_app_has_voicemail(const char *mailbox, const char *folder) |