diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-13 16:47:01 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-13 16:47:01 +0000 |
commit | 57bb1b3784d76ef35e72acc9fde1aded221cb3a4 (patch) | |
tree | 6bf02c6d708b34aeeae34bfcf9cb7e5467e4dfe7 | |
parent | 8a4c69c6245d7c0491f98b379ebb8416bdbd52c8 (diff) |
Merged revisions 50754 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r50754 | kpfleming | 2007-01-13 10:45:37 -0600 (Sat, 13 Jan 2007) | 2 lines
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/trunk@50755 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | Makefile | 13 | ||||
-rwxr-xr-x | build_tools/make_sample_voicemail | 25 |
2 files changed, 28 insertions, 10 deletions
@@ -534,27 +534,20 @@ samples: adsi echo "astrundir => $(ASTVARRUNDIR)" ; \ echo "astlogdir => $(ASTLOGDIR)" ; \ echo "" ; \ + echo ";[options]" ; \ + echo ";internal_timing = yes" ; \ echo "; Changing the following lines may compromise your security." ; \ echo ";[files]" ; \ echo ";astctlpermissions = 0660" ; \ echo ";astctlowner = root" ; \ echo ";astctlgroup = apache" ; \ echo ";astctl = asterisk.ctl" ; \ - echo ";[options]" ; \ - echo ";internal_timing = yes" ; \ ) > $(DESTDIR)$(ASTCONFPATH) ; \ else \ echo "Skipping asterisk.conf creation"; \ fi mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX - :> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm - for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail; do \ - cat $(DESTDIR)$(ASTDATADIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm ; \ - done - :> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm - for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone; do \ - cat $(DESTDIR)$(ASTDATADIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm ; \ - done + build_tools/make_sample_voicemail $(DESTDIR)/$(ASTDATADIR) $(DESTDIR)/$(ASTSPOOLDIR) webvmail: @[ -d $(DESTDIR)$(HTTP_DOCSDIR)/ ] || ( printf "http docs directory not found.\nUpdate assignment of variable HTTP_DOCSDIR in Makefile!\n" && exit 1 ) diff --git a/build_tools/make_sample_voicemail b/build_tools/make_sample_voicemail new file mode 100755 index 000000000..272cf379a --- /dev/null +++ b/build_tools/make_sample_voicemail @@ -0,0 +1,25 @@ +#!/bin/sh -e + +for lang in /en/ /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 |