<p>sungtae kim has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7440">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add new object for VoicemailUserEntry<br><br>Currently, when the app_voicemail sending VoicemailUserEntry AMI event, there's<br>no OldMessageCount info for default.<br>To check the OldMessageCount info, it required IMAP_STORAGE define, but this is<br>not correct.<br>Added OldMessageCount item as a default.<br><br>ASTERISK-27456<br><br>Change-Id: I5c71521c2d1daf8b7b161e31c34d28cca6aea4c7<br>---<br>M apps/app_voicemail.c<br>1 file changed, 4 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/40/7440/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c<br>index d0e1763..c080bfe 100644<br>--- a/apps/app_voicemail.c<br>+++ b/apps/app_voicemail.c<br>@@ -13347,11 +13347,8 @@<br> <br> AST_LIST_TRAVERSE(&users, vmu, list) {<br> char dirname[256];<br>-#ifdef IMAP_STORAGE<br> int new, old;<br>-<br> inboxcount(vmu->mailbox, &new, &old);<br>-#endif<br> <br> make_dir(dirname, sizeof(dirname), vmu->context, vmu->mailbox, "INBOX");<br> astman_append(s,<br>@@ -13383,8 +13380,8 @@<br> "MaxMessageCount: %d\r\n"<br> "MaxMessageLength: %d\r\n"<br> "NewMessageCount: %d\r\n"<br>-#ifdef IMAP_STORAGE<br> "OldMessageCount: %d\r\n"<br>+#ifdef IMAP_STORAGE<br> "IMAPUser: %s\r\n"<br> "IMAPServer: %s\r\n"<br> "IMAPPort: %s\r\n"<br>@@ -13417,14 +13414,14 @@<br> ast_test_flag(vmu, VM_OPERATOR) ? "Yes" : "No",<br> vmu->maxmsg,<br> vmu->maxsecs,<br>+ new,<br>+ old<br> #ifdef IMAP_STORAGE<br>- new, old,<br>+ ,<br> vmu->imapuser,<br> vmu->imapserver,<br> vmu->imapport,<br> vmu->imapflags<br>-#else<br>- count_messages(vmu, dirname)<br> #endif<br> );<br> ++num_users;<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7440">change 7440</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7440"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5c71521c2d1daf8b7b161e31c34d28cca6aea4c7 </div>
<div style="display:none"> Gerrit-Change-Number: 7440 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: sungtae kim <pchero21@gmail.com> </div>