dect
/
asterisk
Archived
13
0
Fork 0

Missing messagecount2 function

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28629 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2006-05-19 15:44:33 +00:00
parent 6d5a30c4f8
commit d0a510064b
1 changed files with 14 additions and 0 deletions

14
app.c
View File

@ -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;