From 698bbc657fc26e15269812869ac616f69c15b91f Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 13 Feb 2019 19:05:31 +0100 Subject: [PATCH] TT#50013 fix message envelope playback * envelope playback was disabled in the options, now reenabled back. * fix an issue when DTMF delay causing entering a suboption "advanced_options" straight away, e.g.: pressing '3' from the message playback entered "advanced_options" + immediately started with the menu item '3'. Now the options for "advanced options" are played correctly. Change-Id: I8aa6f5fc9a022cf86218c8be3a6b3645a3f352e3 --- debian/patches/series | 1 + .../sipwise_vm_fix_envelope_play.patch | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 debian/patches/sipwise_vm_fix_envelope_play.patch diff --git a/debian/patches/series b/debian/patches/series index 19b6fab..cdf07c9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -20,3 +20,4 @@ sipwise_vm_ast_load_realtime_use_uuid.patch sipwise_vm_fix_odbc_retreive_file.patch sipwise_fix_chan_usage.patch sipwise_vm_store_message_add_diag_info.patch +sipwise_vm_fix_envelope_play.patch diff --git a/debian/patches/sipwise_vm_fix_envelope_play.patch b/debian/patches/sipwise_vm_fix_envelope_play.patch new file mode 100644 index 0000000..886ee57 --- /dev/null +++ b/debian/patches/sipwise_vm_fix_envelope_play.patch @@ -0,0 +1,31 @@ +Index: asterisk-voicemail/apps/app_voicemail.c +=================================================================== +--- asterisk-voicemail.orig/apps/app_voicemail.c ++++ asterisk-voicemail/apps/app_voicemail.c +@@ -12186,8 +12186,10 @@ static int vm_execmain(struct ast_channe + } + cmd = 't'; + break; ++ */ + case '3': // Envelope + if (vms.lastmsg > -1 && !vms.starting) { ++ ast_safe_sleep(chan,500); + cmd = advanced_options(chan, vmu, &vms, vms.curmsg, 3, record_gain); + if (cmd == ERROR_LOCK_PATH) { + res = cmd; +@@ -12198,6 +12200,7 @@ static int vm_execmain(struct ast_channe + } + cmd = 't'; + break; ++ /* + case '4': // Dialout + if (!ast_strlen_zero(vmu->dialout)) { + cmd = dialout(chan, vmu, NULL, vmu->dialout); +@@ -12230,6 +12233,7 @@ static int vm_execmain(struct ast_channe + break; + + default: ++ ast_safe_sleep(chan,500); + cmd = 0; + /* + if (!vms.starting) {