4,723
回編集
差分
→UID/GIDの調整
==UID/GIDの調整==
ユーザ名、グループ名をAsteriskで動作させるには以下の調整が必要です。<br>
*/etc/init.d/asterisk スクリプトに以下を追加します。
if ! [ -d /etc/asterisk ] ; then
echo "ERROR: /etc/asterisk directory not found"
chown -R asterisk:asterisk /rw/var/run/asterisk
fi ---ここまで
ユーザ名、グループ名の設定は普通に、このスクリプト内のコメントを外します。
# Uncomment the following and set them to the user/groups that you
# want to run Asterisk as. NOTE: this requires substantial work to
# be sure that Asterisk's environment has permission to write the
# files required for its operation, including logs, its comm
# socket, the asterisk database, etc.
AST_USER="asterisk"
AST_GROUP="asterisk"
*/etc/asterisk/asterisk.conf を修正します。
[directories]
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk <--ここ
astlogdir => /var/log/asterisk
[options]
languageprefix=