summaryrefslogtreecommitdiff
path: root/include/asterisk/app.h
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2006-05-18 18:28:52 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2006-05-18 18:28:52 +0000
commitf0b985853a593de212cd9b8b00ebed1d9e6d6f45 (patch)
tree24fe92e9b1451eb9e1055fae0c67cc2ad41e1552 /include/asterisk/app.h
parent75e3bafdfd2ce26598fb7f6631f48b6bdc6cecfa (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 'include/asterisk/app.h')
-rw-r--r--include/asterisk/app.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h
index 5a3745fe9..b6b3574c2 100644
--- a/include/asterisk/app.h
+++ b/include/asterisk/app.h
@@ -100,7 +100,8 @@ int ast_app_getdata(struct ast_channel *c, char *prompt, char *s, int maxlen, in
int ast_app_getdata_full(struct ast_channel *c, char *prompt, char *s, int maxlen, int timeout, int audiofd, int ctrlfd);
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));
void ast_uninstall_vm_functions(void);
@@ -110,6 +111,9 @@ int ast_app_has_voicemail(const char *mailbox, const char *folder);
/*! Determine number of new/old messages in a mailbox */
int ast_app_messagecount(const char *mailbox, int *newmsgs, int *oldmsgs);
+/*! Determine number of messages in a given mailbox and folder */
+int ast_app_messagecount2(const char *context, const char *mailbox, const char *folder);
+
/*! Safely spawn an external program while closing file descriptors
\note This replaces the \b system call in all Asterisk modules
*/