Created
November 9, 2010 13:29
-
-
Save gbirke/669068 to your computer and use it in GitHub Desktop.
Copy call file template and put it in spool folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copy Asterisk call file template and put it into the default Asterisk call file directory | |
# Doing just a "cp" may not work in some instances, hence this script | |
if [ -x "$1" ]; then | |
echo "Usage: $0 callfile_name" | |
exit | |
fi | |
if [ ! -f "$1" ]; then | |
echo "File $1 not found" | |
exit | |
fi | |
TMP=`mktemp asterisk_callfile.XXXXXX` | |
cp $1 $TMP | |
mv $TMP /var/spool/asterisk/outgoing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment