1 | изначальная версия редактировать | |
/etc/freepbx.conf
conf['AMPDBUSER'] = 'asteriskuser'; $ampconf['AMPDBPASS'] = 'XXXX'; $ampconf['AMPDBHOST'] = 'localhost'; $ampconf['AMPDBNAME'] = 'asterisk'; $ampconf['AMPDBENGINE'] = 'mysql'; $ampconf['datasource'] = ''; //for sqlite3
require_once('/var/www/freepbx/admin/bootstrap.php');
/etc/asterisk/manager.conf
; ; AMI - Asterisk Manager interface ; ; FreePBX needs this to be enabled. Note that if you enable it on a different IP, you need ; to assure that this can't be reached from un-authorized hosts with the ACL settings (permit/deny). ; Also, remember to configure non-default port or IP-addresses in amportal.conf. ; ; The AMI connection is used both by the portal and the operator's panel in FreePBX. ; ; FreePBX assumes an AMI connection to localhost:5038 by default. ; [general] enabled = yes port = 5038 bindaddr = 0.0.0.0 displayconnects=no ;only effects 1.6+
[admin] secret = XXXX deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
#include manageradditional.conf #include managercustom.conf
2 | No.2 Revision редактировать |
/etc/freepbx.conf
conf['AMPDBUSER']
<?php
$amp_conf['AMPDBUSER']
= 'asteriskuser';
require_once('/var/www/freepbx/admin/bootstrap.php');
/etc/asterisk/manager.conf
;
; AMI - Asterisk Manager interface
;
; FreePBX needs this to be enabled. Note that if you enable it on a different IP, you need
; to assure that this can't be reached from un-authorized hosts with the ACL settings (permit/deny).
; Also, remember to configure non-default port or IP-addresses in amportal.conf.
;
; The AMI connection is used both by the portal and the operator's panel in FreePBX.
;
; FreePBX assumes an AMI connection to localhost:5038 by default.
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
displayconnects=no ;only effects #include manageradditional.conf #include managercustom.conf
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.