summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2006-05-19 15:44:33 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2006-05-19 15:44:33 +0000
commit4af14f6c99d25a0adac0d61a3aa97fede3034256 (patch)
treed13d421762f6db20a453260be4a74bea2bc82082 /app.c
parent154774e033d765ed39e4620f63b32326e0261d15 (diff)
Missing messagecount2 function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'app.c')
-rw-r--r--app.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/app.c b/app.c
index ba408797a..03e0fe2b3 100644
--- a/app.c
+++ b/app.c
@@ -196,6 +196,20 @@ int ast_app_messagecount(const char *mailbox, int *newmsgs, int *oldmsgs)
return 0;
}
+int ast_app_messagecount2(const char *context, const char *mailbox, const char *folder)
+{
+ static int warned = 0;
+ if (ast_messagecount2_func)
+ return ast_messagecount2_func(context, mailbox, folder);
+
+ if (!warned && (option_verbose > 2)) {
+ warned++;
+ ast_verbose(VERBOSE_PREFIX_3 "Message count requested for mailbox %s@%s/%s but voicemail not loaded.\n", mailbox, context, folder);
+ }
+
+ return 0;
+}
+
int ast_dtmf_stream(struct ast_channel *chan, struct ast_channel *peer, const char *digits, int between)
{
const char *ptr;