aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/scripts/safe_asterisk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts/safe_asterisk')
-rw-r--r--contrib/scripts/safe_asterisk4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk
index 941f464e1..5f4ab7c11 100644
--- a/contrib/scripts/safe_asterisk
+++ b/contrib/scripts/safe_asterisk
@@ -32,7 +32,7 @@ PRIORITY=0
# set to the system's maximum files open devided by two, if not set here.
# MAXFILES=32768
-function message() {
+message() {
echo "$1" >&2
if test "x$SYSLOG" != "x" ; then
logger -p "${SYSLOG}.warn" -t safe_asterisk[$$] "$1"
@@ -142,7 +142,7 @@ run_asterisk()
if test "x$TTY" != "x" ; then
cd /tmp
stty sane < /dev/${TTY}
- nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY}
+ nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
else
cd /tmp
nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS}