From f0b985853a593de212cd9b8b00ebed1d9e6d6f45 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 18 May 2006 18:28:52 +0000 Subject: 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 --- app.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app.c') diff --git a/app.c b/app.c index dcd4d6dc7..ba408797a 100644 --- a/app.c +++ b/app.c @@ -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) -- cgit v1.2.3