CronJob 用于重置星号队列 + FreePBX

CronJob 用于重置星号队列 + FreePBX

我在使用这个脚本时遇到了问题...它似乎不起作用。注意:它可以正常发送电子邮件。

#!/bin/bash

#Reset the queue every morning at 5:00AM PST
#v 1.1 changed email

#Email alert that queue has been reset
#

asterisk -rx 'queue reset stats'
SUBJECT="XXXXX"
EMAIL="[email protected]"
EMAILMESSAGE="Queue has been reset"
echo "$EMAILMESSAGE" | /bin/mail -s "$SUBJECT" "$EMAIL"

相关内容