diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-18 18:28:52 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-18 18:28:52 +0000 |
commit | 3ebfed7cf679f2a4984787b69c71f7071ba7b5b7 (patch) | |
tree | 24fe92e9b1451eb9e1055fae0c67cc2ad41e1552 /app.c | |
parent | 33a6f646b6ed61f51550f0e605e7c6b45c25b698 (diff) |
Bug 7167 - Fix VMCOUNT if using USE_ODBC_STORAGE (different fix for trunk than for 1.2)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28300 f38db490-d61c-443f-a65b-d21fe96a405b
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) |