make_sample_voicemail 752 B

12345678910111213141516171819202122232425
  1. #!/bin/sh -e
  2. for lang in /en/ /fr/ /es/
  3. do
  4. for format in ulaw alaw wav gsm g729 g722
  5. do
  6. [ ! -f "${1}/sounds${lang}vm-isunavail.${format}" ] && continue
  7. mkdir -p "${2}/voicemail/default/1234${lang}"
  8. : > "${2}/voicemail/default/1234${lang}unavail.${format}"
  9. for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail
  10. do
  11. cat "${1}/sounds${lang}${file}.${format}" >> "${2}/voicemail/default/1234${lang}unavail.${format}"
  12. done
  13. : > "${2}/voicemail/default/1234${lang}busy.${format}"
  14. for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone
  15. do
  16. cat "${1}/sounds${lang}${file}.${format}" >> "${2}/voicemail/default/1234${lang}busy.${format}"
  17. done
  18. done
  19. done