[svn-commits] branch group/asterisk-imap r37879 -
/team/group/asterisk-imap/apps/
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Tue Jul 18 09:19:09 MST 2006
Author: mogorman
Date: Tue Jul 18 11:19:08 2006
New Revision: 37879
URL: http://svn.digium.com/view/asterisk?rev=37879&view=rev
Log:
no imap stream, no way to count messages.
Modified:
team/group/asterisk-imap/apps/app_voicemail.c
Modified: team/group/asterisk-imap/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/group/asterisk-imap/apps/app_voicemail.c?rev=37879&r1=37878&r2=37879&view=diff
==============================================================================
--- team/group/asterisk-imap/apps/app_voicemail.c (original)
+++ team/group/asterisk-imap/apps/app_voicemail.c Tue Jul 18 11:19:08 2006
@@ -2912,7 +2912,11 @@
oldmsgs = vms->oldmessages;
} else {
ast_log(LOG_DEBUG, "About to call messagecount.\n");
- messagecount(ext, &newmsgs, &oldmsgs);
+ res = messagecount(ext, &newmsgs, &oldmsgs);
+ if(res < 0) {
+ ast_log(LOG_NOTICE,"Can not leave voicemail, unable to count messages\n");
+ return -1;
+ }
}
/* here is a big difference! We add one to it later */
msgnum = newmsgs + oldmsgs;
More information about the svn-commits
mailing list