Version 0.1.9 from FTP
authorMark Spencer <markster@digium.com>
Wed, 20 Jun 2001 02:50:27 +0000 (02:50 +0000)
committerMark Spencer <markster@digium.com>
Wed, 20 Jun 2001 02:50:27 +0000 (02:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@336 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addmailbox [new file with mode: 0755]
contrib/scripts/addmailbox [new file with mode: 0755]

diff --git a/addmailbox b/addmailbox
new file mode 100755 (executable)
index 0000000..7419021
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+VMHOME=/var/spool/asterisk/vm
+SNDHOME=/var/lib/asterisk/sounds
+echo -n "Enter mailbox number: "
+read mailbox
+mkdir -p ${VMHOME}/${mailbox}
+mkdir -p ${VMHOME}/${mailbox}/INBOX
+cat ${SNDHOME}/vm-theperson.gsm > ${VMHOME}/${mailbox}/unavail.gsm
+cat ${SNDHOME}/vm-theperson.gsm > ${VMHOME}/${mailbox}/busy.gsm
+cat ${SNDHOME}/vm-extension.gsm > ${VMHOME}/${mailbox}/greet.gsm
+nums=`echo $mailbox | sed 's/./ \0/g'`
+for x in $nums; do
+       cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${mailbox}/unavail.gsm
+       cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${mailbox}/busy.gsm
+       cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${mailbox}/greet.gsm
+done
+
+cat ${SNDHOME}/vm-isunavail.gsm >> ${VMHOME}/${mailbox}/unavail.gsm
+cat ${SNDHOME}/vm-isonphone.gsm >> ${VMHOME}/${mailbox}/busy.gsm
+
diff --git a/contrib/scripts/addmailbox b/contrib/scripts/addmailbox
new file mode 100755 (executable)
index 0000000..7419021
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+VMHOME=/var/spool/asterisk/vm
+SNDHOME=/var/lib/asterisk/sounds
+echo -n "Enter mailbox number: "
+read mailbox
+mkdir -p ${VMHOME}/${mailbox}
+mkdir -p ${VMHOME}/${mailbox}/INBOX
+cat ${SNDHOME}/vm-theperson.gsm > ${VMHOME}/${mailbox}/unavail.gsm
+cat ${SNDHOME}/vm-theperson.gsm > ${VMHOME}/${mailbox}/busy.gsm
+cat ${SNDHOME}/vm-extension.gsm > ${VMHOME}/${mailbox}/greet.gsm
+nums=`echo $mailbox | sed 's/./ \0/g'`
+for x in $nums; do
+       cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${mailbox}/unavail.gsm
+       cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${mailbox}/busy.gsm
+       cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${mailbox}/greet.gsm
+done
+
+cat ${SNDHOME}/vm-isunavail.gsm >> ${VMHOME}/${mailbox}/unavail.gsm
+cat ${SNDHOME}/vm-isonphone.gsm >> ${VMHOME}/${mailbox}/busy.gsm
+