TT#44156 Build fix: execute STORE only for IMAP_STORAGE

New patch debian/patches/sipwise_fix_chan_usage.patch on top of
sipwise_vm_uuid_mailbox.patch, to address build failure on
Debian/buster.

chan is defined only for IMAP_STORAGE inside
AST_TEST_DEFINE(test_voicemail_msgcount), so accordingly invoke STORE()
also iff IMAP_STORAGE is defined.

Change-Id: Ie7e255f1c977934cb6351d0a1010826f23965778
changes/07/23907/3
Michael Prokop 7 years ago
parent 145928855f
commit 81b68f546b

@ -18,3 +18,4 @@ sipwise_vm_add_callid.patch
sipwise_vm_find_user_by_alias_prio_uuid.patch
sipwise_vm_ast_load_realtime_use_uuid.patch
sipwise_vm_fix_odbc_retreive_file.patch
sipwise_fix_chan_usage.patch

@ -0,0 +1,12 @@
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -15051,7 +15051,9 @@
break;
}
open_mailbox(&vms, vmu, folder2mbox[i]);
+ #ifdef IMAP_STORAGE
STORE(tmp[i].dir, testmailbox, testcontext, 0, chan, vmu, "gsm", 600, &vms, strcmp(folders[i], "Urgent") ? "" : "Urgent", NULL);
+ #endif
/* hasvm-old, hasvm-urgent, hasvm-new, ic-old, ic-urgent, ic-new, ic2-old, ic2-urgent, ic2-new, mc-old, mc-urgent, mc-new */
for (j = 0; j < 3; j++) {
Loading…
Cancel
Save