mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Missing messagecount2 function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
14
app.c
14
app.c
@@ -196,6 +196,20 @@ int ast_app_messagecount(const char *mailbox, int *newmsgs, int *oldmsgs)
|
|||||||
return 0;
|
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)
|
int ast_dtmf_stream(struct ast_channel *chan, struct ast_channel *peer, const char *digits, int between)
|
||||||
{
|
{
|
||||||
const char *ptr;
|
const char *ptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user