Informational message, not an error.
[asterisk/asterisk.git] / build_tools / make_sample_voicemail
1 #!/bin/sh -e
2
3 for lang in /en/ /fr/ /es/
4   do
5   for format in ulaw alaw wav gsm g729 g722
6     do
7     [ ! -f ${1}/sounds${lang}vm-isunavail.${format} ] && continue
8
9     mkdir -p ${2}/voicemail/default/1234${lang}
10     
11     : > ${2}/voicemail/default/1234${lang}unavail.${format}
12     
13     for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail
14       do
15       cat ${1}/sounds${lang}${file}.${format} >> ${2}/voicemail/default/1234${lang}unavail.${format}
16     done
17
18     : > ${2}/voicemail/default/1234${lang}busy.${format}
19     
20     for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone
21       do
22       cat ${1}/sounds${lang}${file}.${format} >> ${2}/voicemail/default/1234${lang}busy.${format}
23     done
24   done
25 done