Skip to content

Instantly share code, notes, and snippets.

@gbirke
Created November 9, 2010 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbirke/669068 to your computer and use it in GitHub Desktop.
Save gbirke/669068 to your computer and use it in GitHub Desktop.
Copy call file template and put it in spool folder
#!/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