summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-03-11 20:54:32 +0000
committerRussell Bryant <russell@russellbryant.com>2008-03-11 20:54:32 +0000
commita29d862631302266db2f2ec986c9137389b9d3dc (patch)
tree61f6e72d5b9238ad817daabbd49be66f9cb2c3fd /apps
parent1c0bc928d13f1f177cc13ab7442965db4bdb593d (diff)
This patch adds support for extended help prompts in voicemail. These prompts
are in the 1.4.9 sounds release. (closes issue #11705) Reported by: jaroth Patches: helpprompts.patch uploaded by jaroth (license 50) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c28
1 files changed, 23 insertions, 5 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 9b89a6639..fd6d32bdd 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -6340,13 +6340,27 @@ static int vm_instructions_en(struct ast_channel *chan, struct vm_state *vms, in
while (!res) {
if (vms->starting) {
if (vms->lastmsg > -1) {
- res = ast_play_and_wait(chan, "vm-onefor");
+ if (skipadvanced)
+ res = ast_play_and_wait(chan, "vm-onefor-full");
+ else
+ res = ast_play_and_wait(chan, "vm-onefor");
if (!res)
res = vm_play_folder_name(chan, vms->vmbox);
}
- if (!res)
- res = ast_play_and_wait(chan, "vm-opts");
+ if (!res) {
+ if (skipadvanced)
+ res = ast_play_and_wait(chan, "vm-opts-full");
+ else
+ res = ast_play_and_wait(chan, "vm-opts");
+ }
} else {
+ /* Added for additional help */
+ if (skipadvanced) {
+ res = ast_play_and_wait(chan, "vm-onefor-full");
+ if (!res)
+ res = vm_play_folder_name(chan, vms->vmbox);
+ res = ast_play_and_wait(chan, "vm-opts-full");
+ }
if (vms->curmsg)
res = ast_play_and_wait(chan, "vm-prev");
if (!res && !skipadvanced)
@@ -6366,8 +6380,12 @@ static int vm_instructions_en(struct ast_channel *chan, struct vm_state *vms, in
res = ast_play_and_wait(chan, "vm-savemessage");
}
}
- if (!res)
- res = ast_play_and_wait(chan, "vm-helpexit");
+ if (!res) {
+ if (skipadvanced)
+ res = ast_play_and_wait(chan, "vm-helpexit-full");
+ else
+ res = ast_play_and_wait(chan, "vm-helpexit");
+ }
if (!res)
res = ast_waitfordigit(chan, 6000);
if (!res) {