FreePBX 問與答
錯誤:
file_put_contents(/var/log/asterisk/freepbx_security.log): failed to open stream: Permission denied
解決:
#> fwconsole chown
錯誤:No Conference Room App
解決:
檢查 Asterisk 模組
# asterisk -rx "module show like app_confbridge" Module Description Use Count Status Support Level app_confbridge.so Conference Bridge Application 0 Not Running core 1 modules loaded
安裝 FreePBX 模組
NOTE: 要安裝 Conference 必須依序先裝 Sound Languages -> Recordings -> Conferences
#> fwconsole ma download soundlang #> fwconsole ma install soundlang #> fwconsole reload #> fwconsole ma download recordings #> fwconsole ma install recordings #> fwconsole reload #> fwconsole ma download conferences #> fwconsole ma install conferences #> fwconsole reload #> fwconsole chown #> fwconsole restart
確認 Asterisk 模組的狀態是 Running
# asterisk -rx "module show like app_confbridge"
.htaccess files are disable on this webserver. Please enable them
This is a critical issue and should be resolved urgently
解決:
for Debian)
編輯 /etc/apache2/sites-available/default
<Directory /var/www/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All <== 改這行 Order allow,deny allow from all </Directory>
重啟 Apache
A: 由於 extensions.conf & extensions_additional.conf 檔案無法手動變更其內容,當需要客製某部份的 dialplan 內容時,可以將它寫入 extensions_override_freepbx.conf,只要 [context name] 相同就會覆蓋原有的 context,不過必須注意,新內容的行數必須大於原有的內容,否則不會被覆蓋。
A:
Fetching FreePBX settings with gen_amp_conf.php..
PHP Fatal error: Call to undefined function posix_getpwuid() in /var/lib/asterisk/bin/gen_amp_conf.php on line 3
A:
A:在 2.10 版本不能使用傳統的修改檔案方式,而是必須用 UI 來完成。
Admin UI > Advanced Settings
A:將 sip_notify.conf 更名為 sip_notify.conf.orig,然後在 FreePBX 作一次 Apply Configuration Changes。
A:編輯 /etc/php5/apache2/php.ini
; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off
重啟 apache2