[aadk-commits] dbailey: uClinux/trunk r501 - /uClinux/trunk/uClinux-dist/vendors/Digium/S800...
SVN commits to the AADK repository
aadk-commits at lists.digium.com
Mon Jul 2 13:37:04 CDT 2007
Author: dbailey
Date: Mon Jul 2 13:37:03 2007
New Revision: 501
URL: http://svn.digium.com/view/aadk?view=rev&rev=501
Log:
Added gsm and a-law sounds to the script
Created cf-version.txt file that contains version information about the CF card.
Modified:
uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/create_sounds
Modified: uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/create_sounds
URL: http://svn.digium.com/view/aadk/uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/create_sounds?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/create_sounds (original)
+++ uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/create_sounds Mon Jul 2 13:37:03 2007
@@ -1,8 +1,9 @@
-#!/bin/sh
-SOUNDS_CORE_VERSION=1.4.6
-SOUNDS_EXTRA_VERSION=1.4.5
+#!/bin/sh
+PROGRAM_VERSION=
+SOUNDS_CORE_VERSION=1.4.7
+SOUNDS_EXTRA_VERSION=1.4.6
SOUNDS_LANGUAGE=en
-SOUNDS_FORMAT=ulaw
+SOUND_FORMATS="ulaw alaw gsm"
if mount | grep -q var/lib/asterisk/sounds; then
echo "Filesystem already mounted on /var/lib/asterisk/sounds!"
exit 1
@@ -14,11 +15,24 @@
cd /var/lib/asterisk/sounds || exit 1
mkdir voicemail
mkdir meetme
-wget ftp://ftp.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-${SOUNDS_LANGUAGE}-${SOUNDS_FORMAT}-${SOUNDS_CORE_VERSION}.tar.gz -O - | gzip -dc | tar xvf -
-wget ftp://ftp.digium.com/pub/telephony/sounds/releases/asterisk-extra-sounds-${SOUNDS_LANGUAGE}-${SOUNDS_FORMAT}-${SOUNDS_EXTRA_VERSION}.tar.gz -O - | gzip -dc | tar xvf -
+for formats in $SOUND_FORMATS; do
+ wget ftp://ftp.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-${SOUNDS_LANGUAGE}-${formats}-${SOUNDS_CORE_VERSION}.tar.gz -O - | gzip -dc | tar xvf -
+ wget ftp://ftp.digium.com/pub/telephony/sounds/releases/asterisk-extra-sounds-${SOUNDS_LANGUAGE}-${formats}-${SOUNDS_EXTRA_VERSION}.tar.gz -O - | gzip -dc | tar xvf -
+done
+
mkdir moh
cd moh
-wget ftp://ftp.digium.com/pub/telephony/sounds/asterisk-moh-freeplay-${SOUNDS_FORMAT}.tar.gz -O - | gzip -dc | tar xvf -
+for formats in $SOUND_FORMATS; do
+ wget ftp://ftp.digium.com/pub/telephony/sounds/asterisk-moh-freeplay-${formats}.tar.gz -O - | gzip -dc | tar xvf -
+done
+
+# Use 2 echoes to prevent the following six lines from being modified during make
+echo -n "PROGRAM_VERSION" >/var/lib/asterisk/sounds/cf-version.txt
+echo "=${PROGRAM_VERSION}" >>/var/lib/asterisk/sounds/cf-version.txt
+echo -n "SOUNDS_CORE_VERSION" >>/var/lib/asterisk/sounds/cf-version.txt
+echo "=${SOUNDS_CORE_VERSION}" >>/var/lib/asterisk/sounds/cf-version.txt
+echo -n "SOUNDS_EXTRA_VERSION" >>/var/lib/asterisk/sounds/cf-version.txt
+echo "=${SOUNDS_EXTRA_VERSION}" >>/var/lib/asterisk/sounds/cf-version.txt
sync; sync; sync
More information about the aadk-commits
mailing list