Now that the contexts lock is a read/write lock, it should not be locked here
[asterisk-bristuff.git] / build_tools / make_sample_voicemail
blob485a01d37f054a0838d83ea5562a13499f4145bb
1 #!/bin/sh -e
3 for lang in / /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
9 mkdir -p ${2}/voicemail/default/1234${lang}
11 : > ${2}/voicemail/default/1234${lang}unavail.${format}
13 for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail
15 cat ${1}/sounds${lang}${file}.${format} >> ${2}/voicemail/default/1234${lang}unavail.${format}
16 done
18 : > ${2}/voicemail/default/1234${lang}busy.${format}
20 for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone
22 cat ${1}/sounds${lang}${file}.${format} >> ${2}/voicemail/default/1234${lang}busy.${format}
23 done
24 done
25 done