mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-04 13:21:54 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@50754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
25
build_tools/make_sample_voicemail
Executable file
25
build_tools/make_sample_voicemail
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user