Monday, June 23, 2008

Asterisk Web Frontend - VoiceOne on Ubuntu 8.04

----------------------------------------
Pre-requisites

# Install VoiceOne with it's Documentation #####
$ sudo apt-get install apache2 apache2-doc

# Start Apache (it's probably already started) #####
$ sudo /etc/init.d/apache2 start



# Testar o Apache #####

Type on Mozilla Firefox: http://127.0.0.1/
It should read: It works!

Nota: The web page with the message It works!" is on the
/var/www directorie, wich is apache's root directorie,
this is were we are going to install voiceone.



# Install MySQL #####

$ sudo apt-get install mysql-server mysql-client
Type MySQL the following password: voiceone, in the textbox
that will be presented to you in the bash shell.



# Install the needed packages #####


$ sudo apt-get update
$ sudo apt-get install sox madplay php5-cgi php-pear asterisk-mysql

$ sudo apt-get install php5 php5-cli php5-common php5-dev
$ sudo apt-get install libapache2-mod-php5
$ sudo apt-get install php5-mhash php5-mysql php5-odbc


Check that asterisk starts correctly by /etc/init.d/asterisk start followed by asterisk -r. The remote connection will complain if asterisk hasn’t started properly. Check /var/log/asterisk/messages.log for errors to resolve. You only need Asterisk to run and respond. Don't worry about configuration files yet.

Disable magic quotes in php.ini located in:

/etc/php5/apache2/php.ini
/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini

magic_quotes_gpc = Off



# Create a Database the VoiceOne Database on MySql:

$ mysql -u root -p

mysql> create database voiceone;



# Unpack voiceone 0.6.1 into /var/www directory #####

$ cd /var/www
$ sudo tar xvfz /path_to_voiceone_tar_gz/voiceone-0.6.1.tar.gz



# Using visudo add the following line to the end of /etc/sudoers: #####

$ sudo visudo

www-data ALL=NOPASSWD: /var/www/voiceone_webservices/config/script/vo-tools.sh

Or

$ sudo pico /etc/sudoers

www-data ALL=NOPASSWD: /var/www/voiceone_webservices/config/script/vo-tools.sh



# Edit /etc/asterisk/modules.conf file using gedit (or other):

$ sudo gedit /etc/asterisk/modules.conf


- and add this line immediately after: #####

;preload => res_config_odbc.so
preload => res_config_mysql.so



# Create a fresh /etc/asterisk/extconfig.conf file using gedit (or other):

$ sudo gedit /etc/asterisk/extconfig.conf

- containing:

[settings]
agents.conf => mysql,voiceone,ast_config
extensions.conf => mysql,voiceone,ast_config
;iax.conf => mysql,voiceone,ast_config
meetme.conf => mysql,voiceone,ast_config
;misdn.conf => mysql,voiceone,ast_config
musiconhold.conf => mysql,voiceone,ast_config
queues.conf => mysql,voiceone,ast_config
sip.conf => mysql,voiceone,ast_config
zapata.conf => mysql,voiceone,ast_config
;iaxusers => mysql,voiceone,iax_buddies
;iaxpeers => mysql,voiceone,iax_buddies
sipusers => mysql,voiceone,sip_buddies
sippeers => mysql,voiceone,sip_buddies
voicemail => mysql,voiceone,voicemail_users
extensions => mysql,voiceone,extensions_table



# Create /etc/asterisk/res_mysql.conf using gedit

$ sudo gedit /etc/asterisk/res_mysql.conf

- file containing:

[general]
dbhost = localhost
dbname = voiceone
dbuser = root
dbpass = voiceone
dbport = 3306
dbsock = /var/run/mysqld/mysqld.sock



# Create /etc/asterisk/cdr_mysql.conf using gedit (or other)

$ sudo gedit /etc/asterisk/cdr_mysql.conf

- file containing:

[global]
hostname=localhost
dbname=voiceone
table=cdr
user=root
password=voiceone
port=3306
sock=/var/run/mysqld/mysqld.sock
userfield=1



# Edit /etc/asterisk/manager.conf using gedit (or other)

$ sudo gedit /etc/asterisk/manager.conf

- and ensure these three lines are included:

[general]
enabled=yes
#include "manager.d/*.conf"



# Create /etc/asterisk/manager.d/voiceone.conf using gedit (or other)

$ sudo mkdir /etc/asterisk/manager.d/

$ sudo gedit /etc/asterisk/manager.d/voiceone.conf

- containing

[admin]
secret=qwerty_123_mnbvc
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
write=system,call,log,verbose,command,agent,user



# Rename both config.inc.php.default in DOCUMENT_ROOT/voiceone/admin/config and DOCUMENT_ROOT/voiceone_webservices/config in config.inc.php (i.e. config.inc.php.default -> config.inc.php), using the following comands:


$ sudo rm -rf /var/www/voiceone/admin/config/config.inc.php

- rename
$ sudo mv /var/www/voiceone/admin/config/config.inc.php.default /var/www/voiceone/admin/config/config.inc.php


$ sudo rm -rf /var/www/voiceone_webservices/admin/config.inc.php

- rename
$ sudo mv /var/www/voiceone_webservices/config/config.inc.php.default /var/www/voiceone_webservices/config/config.inc.php



# Edit /var/www/voiceone/admin/config/config.inc.php using gedit (or other)

$ sudo gedit /var/www/voiceone/admin/config/config.inc.php

- and change $soapUsername and $soapHostname to the following:

$soapUsername = "root";
$soapHostname = "localhost";


# Edit /var/www/voiceone_webservices/config/config.inc.php using gedit (or other)

$ sudo gedit /var/www/voiceone_webservices/config/config.inc.php

- and change the following to match:

//Mysql ACCOUNT
$synDBHost = "localhost";
$synDBUser = "root";
$synDBPassword = "voiceone";
$synDBName = "voiceone";


# Enter the following sequence to finish off permissions & paths:

$ cd /var/www
$ sudo chown www-data voiceone -R
$ sudo chown www-data voiceone_webservices -R
$ sudo chmod 777 voiceone/sandbox -R
$ sudo chmod 777 voiceone/admin/public/template/cache -R
$ sudo chmod 755 voiceone_webservices/config/script/vo-tools.sh
$ sudo chmod 777 voiceone_webservices/utility/provisioning/firmware/data
$ sudo ln -s /usr/share/asterisk /var/lib/asterisk
$ sudo ln -s /usr/share/asterisk/moh /usr/share/asterisk/mohmp3
$ sudo mkdir /usr/share/asterisk/moh/voiceone
$ sudo mkdir /usr/share/asterisk/moh/voiceone/default




# Restart Apache #####

$ sudo /etc/init.d/apache2 restart



# Delete Apache's Test Webpage #####

$ sudo rm -rf /var/www/index.html



# Configure VoiceOne #####

Type on Mozilla Firefox:
http://127.0.0.1/voiceone/setup.php
and follow the presented voiceone instructions.
.


# Using VoiceOne

Type on Mozilla Firefox:
http://127.0.0.1/voiceone/index.php
to use Voiceone

And that's it you are ready to rumble.

7 comments:

Fernando said...

Hi, I'm getting the follwing error :

wsdl error: HTTP ERROR: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)
Fatal error: Class 'nusoap_proxy' not found in /var/www/voiceone/admin/config/cfg.php(71) : eval()'d code on line 1

Could u help me ?

Robert said...

FYI; I encountered the same problem, but Till's reply in this topic: http://www.voiceone.it/forum/viewtopic.php?t=960 fixed it for me

Anonymous said...

http://forum.webhostlist.de/forum/members/newviagra.html
[b]VIAGRA ohne rezept REZEPTFREI BESTELLEN VIAGRA[/b]
lhttp://www.ile-maurice.com/forum/members/newviagra.html
[b]VIAGRA alternatives REZEPTFREI BESTELLEN VIAGRA[/b]
VIAGRA BESTELLEN eur 0.85 Pro Pille >> Klicken Sie Hier << BESTELLEN BILLIG VIAGRA CIALIS VIAGRA prices Viagra Online Kaufen
http://www.flooringchat.com/member.php?u=19861
[b]VIAGRA online BESTELLEN VIAGRA BESTELLEN PREISVERGLECH[/b]
[url=http://www.getsomeskillz.co.uk/forum/member.php?u=13]VIAGRA[/url] - VIAGRA Suisse
[b]VIAGRA ohne rezept VIAGRA PREISVERGLECH[/b]
[b]VIAGRA on line BILLIG BESTELLEN VIAGRA[/b]
[url=http://cafesuoimo.com/member.php?u=8]VIAGRA Germany[/url] - VIAGRA Germany
[b]alternativ zu VIAGRA VIAGRA BILLIG PREISVERGLECH[/b]
[b]VIAGRA Germany VIAGRA[/b]

Anonymous said...

[b]VIAGRA Rezeptfrei VIAGRA REZEPTFREI PREISVERGLECH[/b]
http://www.doggingforum.org/members/newviagra.html
[b]VIAGRA potenzhilfe REZEPTFREI VIAGRA[/b]
VIAGRA BESTELLEN eur 0.85 Pro Pille >> Klicken Sie Hier << BESTELLEN BILLIG VIAGRA CIALIS VIAGRA Schweiz VIAGRA REZEPTFREI KAUFEN
http://www.claninabox.net/viewtopic.php?f=2&t=498
[b]VIAGRA versand VIAGRA PREISVERGLECH BESTELLEN[/b]
[url=http://www.postyouradforfree.com/showthread.php?p=313013]BESTELLEN VIAGRA[/url] - VIAGRA alternatives
[b]VIAGRA alternativ VIAGRA[/b]
[b]VIAGRA Rezeptfrei VIAGRA BESTELLEN BILLIG[/b]
[url=http://www.pilotmagazin.ro/forum_nou/viewtopic.php?f=2&t=6847]BILLIG[/url] - erection VIAGRA
[b]VIAGRA ohne rezept VIAGRA BILLIG BESTELLEN[/b]
[b]VIAGRA information VIAGRA REZEPTFREI PREISVERGLECH[/b]

Anonymous said...

http://www.djmal.net/thaspot/members/viagrakaufend
[b]VIAGRA ohne rezept REZEPTFREI BESTELLEN VIAGRA[/b]
http://www.serataanime.it/forum2/member.php?u=336
[b]VIAGRA online BESTELLEN VIAGRA PREISVERGLECH BILLIG[/b]
VIAGRA BESTELLEN eur 0.85 Pro Pille >> Klicken Sie Hier << BESTELLEN BILLIG VIAGRA CIALIS VIAGRA preis VIAGRA BILLIG
http://www.stupidhomework.com/homework/members/viagrakaufend-8505.html
[b]VIAGRA erection VIAGRA BILLIG REZEPTFREI BESTELLEN[/b]
[url=http://www.einvestorhelp.com/member.php?u=37776]VIAGRA Austria[/url] - VIAGRA prices
[b]VIAGRA ohne rezept VIAGRA PREISVERGLECH REZEPTFREI[/b]
[b]VIAGRA Apotheke BILLIG VIAGRA BESTELLEN[/b]
[url=http://www.zonatuning.com/members/viagrakaufend]VIAGRA PREISVERGLECH REZEP - VIAGRA Schweiz
TFREI[/url] - erection VIAGRA
[b]VIAGRA online kaufen REZEPTFREI BESTELLEN VIAGRA[/b]
[b]erection VIAGRA BESTELLEN REZEPTFREI VIAGRA[/b]
[b]VIAGRA® kaufen
VIAGRA Deutschland
VIAGRA online kaufen
VIAGRA on line
VIAGRA alternativ
VIAGRA rezeptfrei
VIAGRA Kaufen
VIAGRA Apotheke[/b]

Anonymous said...

http://www.djmal.net/thaspot/members/viagrakaufend
[b]VIAGRA erection PREISVERGLECH VIAGRA BILLIG[/b]
http://www.serataanime.it/forum2/member.php?u=336
[b]VIAGRA Oesterreich PREISVERGLECH BESTELLEN VIAGRA[/b]
VIAGRA BESTELLEN eur 0.85 Pro Pille >> Klicken Sie Hier << BESTELLEN BILLIG VIAGRA CIALIS VIAGRA bestellen VIAGRA REZEPTFREI BESTELLEN
http://www.barroco.comyr.com/member.php?u=3
[b]VIAGRA online BESTELLEN VIAGRA BESTELLEN[/b]
[url=http://www.einvestorhelp.com/member.php?u=37776]VIAGRA PREISVERGLECH REZEP - alternativ zu VIAGRA
TFREI[/url] - VIAGRA bestellen
[b]VIAGRA Nederland VIAGRA BILLIG BESTELLEN[/b]
[b]VIAGRA ohne rezept PREISVERGLECH VIAGRA BESTELLEN[/b]
[url=http://www.zonatuning.com/members/viagrakaufend]VIAGRA potenzhilfe[/url] - VIAGRA Holland
[b]VIAGRA online kaufen VIAGRA[/b]
[b]VIAGRA alternatives VIAGRA BESTELLEN[/b]
[b]VIAGRA® kaufen
VIAGRA Deutschland
VIAGRA online kaufen
VIAGRA on line
VIAGRA alternativ
VIAGRA rezeptfrei
VIAGRA Kaufen
VIAGRA Apotheke[/b]

SteveBrad said...

Thanks for the sharing a such a excellent information Please keep such kind of the information in the future also!!!!
kamagra |kamagra Oral jelly|meltabs