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
changes/01/27201/1
Kirill Solomko 7 years ago
parent 49b88721ca
commit 698bbc657f

@ -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

@ -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) {
Loading…
Cancel
Save