From 81b68f546b237eba127a92bd852f8e5d0a76bb11 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 28 Sep 2018 22:43:40 +0200 Subject: [PATCH] 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 --- debian/patches/series | 1 + debian/patches/sipwise_fix_chan_usage.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 debian/patches/sipwise_fix_chan_usage.patch diff --git a/debian/patches/series b/debian/patches/series index 984ab54..8767cb0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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 diff --git a/debian/patches/sipwise_fix_chan_usage.patch b/debian/patches/sipwise_fix_chan_usage.patch new file mode 100644 index 0000000..51e9681 --- /dev/null +++ b/debian/patches/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++) {