[asterisk-commits] trunk r28629 - /trunk/app.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri May 19 08:44:34 MST 2006


Author: tilghman
Date: Fri May 19 10:44:33 2006
New Revision: 28629

URL: http://svn.digium.com/view/asterisk?rev=28629&view=rev
Log:
Missing messagecount2 function

Modified:
    trunk/app.c

Modified: trunk/app.c
URL: http://svn.digium.com/view/asterisk/trunk/app.c?rev=28629&r1=28628&r2=28629&view=diff
==============================================================================
--- trunk/app.c (original)
+++ trunk/app.c Fri May 19 10:44:33 2006
@@ -191,6 +191,20 @@
 	if (!warned && (option_verbose > 2)) {
 		warned++;
 		ast_verbose(VERBOSE_PREFIX_3 "Message count requested for mailbox %s but voicemail not loaded.\n", mailbox);
+	}
+
+	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;



More information about the asterisk-commits mailing list