gpt4 book ai didi

asterisk - 有没有办法在安装时指定 Asterisk 目录或从源代码中指定男性 Asterisk ?

转载 作者:行者123 更新时间:2023-12-02 03:54:51 28 4
gpt4 key购买 nike

我的 asterisk 安装(1.8.12.0,mac osx 10.8.2)有这些默认目录:

* Directories
-------------
Configuration file:
Configuration directory: /usr/local/etc/asterisk
Module directory: /Library/Application Support/Asterisk/Modules/modules
Spool directory: /var/spool/asterisk
Log directory: /Library/Logs/Asterisk
Run/Sockets directory: /Library/Application Support/Asterisk/Run
PID file: /Library/Application Support/Asterisk/Run/asterisk.pid
VarLib directory: /Library/Application Support/Asterisk
Data directory: /Library/Application Support/Asterisk
ASTDB: /Library/Application Support/Asterisk/astdb
IAX2 Keys directory: /Library/Application Support/Asterisk/keys
AGI Scripts directory: /Library/Application Support/Asterisk/agi-bin

但 asterisk.conf 中的目录部分是模板:

[directories](!)
astetcdir => /usr/local/etc/asterisk
astmoddir => /Library/Application Support/Asterisk/Modules/modules
astvarlibdir => /Library/Application Support/Asterisk
astdbdir => /Library/Application Support/Asterisk
astkeydir => /Library/Application Support/Asterisk
astdatadir => /Library/Application Support/Asterisk
astagidir => /Library/Application Support/Asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /Library/Application Support/Asterisk/Run
astlogdir => /Library/Logs/Asterisk

目标:设置目录默认值,因为它在 Debian/Ubuntu 安装上:

* Directories
-------------
Configuration file:
Configuration directory: /etc/asterisk
Module directory: /usr/lib/asterisk/modules
Spool directory: /var/spool/asterisk
Log directory: /var/log/asterisk
Run/Sockets directory: /var/run/asterisk
PID file: /var/run/asterisk/asterisk.pid
VarLib directory: /var/lib/asterisk
Data directory: /var/lib/asterisk
ASTDB: /var/lib/asterisk/astdb
IAX2 Keys directory: /var/lib/asterisk/keys
AGI Scripts directory: /var/lib/asterisk/agi-bin

asterisk.conf 中的目录:

[directories]
astetcdir=>/etc/asterisk
astmoddir=>/usr/lib/asterisk/modules
astvarlibdir=>/var/lib/asterisk
astdbdir=>/var/lib/asterisk
astkeydir=>/var/lib/asterisk
astdatadir=>/var/lib/asterisk
astagidir=>/var/lib/asterisk/agi-bin
astspooldir=>/var/spool/asterisk
astrundir=>/var/run/asterisk
astlogdir=>/var/log/asterisk

如何在安装/配置步骤中设置目录设置?

还有一件事:我在/usr/local/lib/pkgconfig/中找到了名为 asterisk.pc 的文件:

install_prefix=
version_number=999999
etcdir=/usr/local/etc/asterisk
libdir=/Library/Application Support/Asterisk/Modules
varlibdir=/Library/Application Support/Asterisk
varrundir=/Library/Application Support/Asterisk/Run
spooldir=/var/spool/asterisk
logdir=/Library/Logs/Asterisk
confpath=/usr/local/etc/asterisk/asterisk.conf
moddir=/Library/Application Support/Asterisk/Modules/modules
agidir=/Library/Application Support/Asterisk/agi-bin

Name: asterisk
Description: Open Source PBX and telephony toolkit
Version: SVN-branch-1.8-r375325
Libs:
Cflags: -I/usr/include/libxml2-g3 -D__Darwin__

这是什么?此文件是在安装或配置后创建的吗?

最佳答案

回答我的问题:使定义。目录你需要用参数配置 Asterisk :--prefix=/--exec_prefix=/usr

(参见参数映射https://docs.google.com/spreadsheet/ccc?key=0ArO2cmv04QLpdHR0UVZaNzJMR2tKNTFJdjlnSkc2RFE)

关于asterisk - 有没有办法在安装时指定 Asterisk 目录或从源代码中指定男性 Asterisk ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13099392/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com