[asterisk-commits] kpfleming: branch 1.4 r50754 - in /branches/1.4: ./ build_tools/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Jan 13 09:45:38 MST 2007


Author: kpfleming
Date: Sat Jan 13 10:45:37 2007
New Revision: 50754

URL: http://svn.digium.com/view/asterisk?view=rev&rev=50754
Log:
when building the sample greetings for maibox 1234 at 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)

Added:
    branches/1.4/build_tools/make_sample_voicemail   (with props)
Modified:
    branches/1.4/Makefile

Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/asterisk/branches/1.4/Makefile?view=diff&rev=50754&r1=50753&r2=50754
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Sat Jan 13 10:45:37 2007
@@ -527,27 +527,20 @@
 		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 )

Added: branches/1.4/build_tools/make_sample_voicemail
URL: http://svn.digium.com/view/asterisk/branches/1.4/build_tools/make_sample_voicemail?view=auto&rev=50754
==============================================================================
--- branches/1.4/build_tools/make_sample_voicemail (added)
+++ branches/1.4/build_tools/make_sample_voicemail Sat Jan 13 10:45:37 2007
@@ -1,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

Propchange: branches/1.4/build_tools/make_sample_voicemail
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: branches/1.4/build_tools/make_sample_voicemail
------------------------------------------------------------------------------
    svn:executable = *

Propchange: branches/1.4/build_tools/make_sample_voicemail
------------------------------------------------------------------------------
    svn:keywords = Author Id Date Revision

Propchange: branches/1.4/build_tools/make_sample_voicemail
------------------------------------------------------------------------------
    svn:mime-type = text/plain



More information about the asterisk-commits mailing list