Asterisk e FreePBX no Ubuntu has already packaged Asterisk and FreePBX for Debian, and they are helping with Debian packages that don't violate Debian's packaging rules. Once they're in the Debian repos, we'll have them in the Universe or Multiverse, but for now we can get the ones that Xorcom hosts that are in violation of Debian's rules.
add the repository
$ sudo nano /etc/apt/sources.list
add the lines
deb etch main
deb-src etch main
$ sudo aptitude update
Install the FreePBX dummy package. There are a few to choose from. Options are freepbx-apache-mysql, freepbx-apache2-mysql, freepbx-apache2-mysql-php5, freepbx-mathopd-mysql, freepbx-mathopd-sqlite. I'm running Feisty Beta, so I chose the php5 package. !!Any one of these packages is required before freepbx-admin is installed!!
$ sudo aptitude install freepbx-apache2-mysql-php5
Install Freepbx-admin
$ sudo aptitude install freepbx-admin
Edit the asterisk config file. Set "RUNASTERISK=yes"
$ sudo nano /etc/default/asterisk
Start Asterisk and Restart Apache2
$ sudo /etc/init.d/asterisk start
$ sudo /etc/init.d/apache2 restart
You can now log into FreePBX to administer and configure Asterisk. Access [WWW] http://localhost/freepbx Log in using User: Admin, Password: Admin
If you get an error about mysql database not configured,[WWW] setup the mysql database
If you get an error "Cannot connect to Asterisk Manager with admin," you may have to create/edit the Asterisk Manager's admin user:
$ sudo nano /etc/amportal.conf
This is the conf file for freepbx. Find and set (you should use different values for security)
# AMPMGRUSER: the user to access the Asterisk manager interface

# AMPMGRPASS: the password for AMPMGRUSER
Set the same with Asterisk Manager:
$ sudo nano /etc/asterisk/manager.conf 
Note the Username is in [], so for AMPMGRUSER=admin we set [admin].
secret = secret
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config
displayconnects= yes
NOTE: THIS MAY NOT BE SECURED. PLEASE SECURE THIS BEFORE PUTTING YOUR BOX ON THE INTERNET. It would probably be wise to ask on the mailing list, setup iptables, or something. I'm not sure what security settings are defaults in these packages/how they differ from first install method in this wiki.
Share this article :

Postar um comentário

Navegando pela Net - All Rights Reserved
Proudly powered by Blogger