diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-13 16:45:37 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-13 16:45:37 +0000 |
commit | 04e194f3f5e2834427712f114667715ed241503d (patch) | |
tree | f51d0927c6b8b6fa03800ed5fc9b20a248c4f6ad /build_tools | |
parent | 83cb29b27e47a3268364518338856d8efeebc2d0 (diff) |
when building the sample greetings for maibox 1234@default during 'make samples', build a greeting for each language and file format the user selected to install with menuselect (reported by Brian Capouch on asterisk-dev)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@50754 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/make_sample_voicemail | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/build_tools/make_sample_voicemail b/build_tools/make_sample_voicemail new file mode 100755 index 000000000..485a01d37 --- /dev/null +++ b/build_tools/make_sample_voicemail @@ -0,0 +1,25 @@ +#!/bin/sh -e + +for lang in / /fr/ /es/ + do + for format in ulaw alaw wav gsm g729 g722 + do + [ ! -f ${1}/sounds${lang}vm-isunavail.${format} ] && continue + + mkdir -p ${2}/voicemail/default/1234${lang} + + : > ${2}/voicemail/default/1234${lang}unavail.${format} + + for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail + do + cat ${1}/sounds${lang}${file}.${format} >> ${2}/voicemail/default/1234${lang}unavail.${format} + done + + : > ${2}/voicemail/default/1234${lang}busy.${format} + + for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone + do + cat ${1}/sounds${lang}${file}.${format} >> ${2}/voicemail/default/1234${lang}busy.${format} + done + done +done |