2600hz: Difference between revisions

From Alpine Linux
(replace /etc/init.d with rc-service)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[http://www.2600hz.org blue.box] is an open source GUI for administration and configuration of FreeSWITCH and Asterisk based VoIP systems. It supports multi-tenancy and skinning, and is completely modular.
{{Expand|This page is outdated and possibly should be considered for deletion}}
 
[https://2600hz.org blue.box] is an open source GUI for administration and configuration of FreeSWITCH and Asterisk based VoIP systems. It supports multi-tenancy and skinning, and is completely modular.


== Install Lighttpd ==
== Install Lighttpd ==


{{:Setting Up Lighttpd With FastCGI}}
{{:Setting Up Lighttpd With FastCGI}}
== Configuring postgresql ==
{{Cmd|apk add postgresql postgresql-client git
/etc/init.d/postgresql setup}}
'''Starting http service and adding to boot'''
{{Cmd|/etc/init.d/postgresql start && rc-update add postgresql default}}


== Installing FreeSwitch ==
== Installing FreeSwitch ==
Line 29: Line 22:
'''Starting http and sql server and adding to boot'''
'''Starting http and sql server and adding to boot'''


{{Cmd|/etc/init.d/postgresql setup
{{Cmd|rc-service postgresql setup
/etc/init.d/postgresql start && rc-update add postgresql default
rc-service postgresql start && rc-update add postgresql default
/etc/init.d/lighttpd start && rc-update add lighttpd default }}
rc-service lighttpd start && rc-update add lighttpd default }}


== Installing 2600hz ==
== Installing 2600hz ==
Line 42: Line 35:


{{Cmd|cd /usr/share/webapps/
{{Cmd|cd /usr/share/webapps/
git clone git://source.2600hz.org/bluebox.git bluebox/}}
git clone <nowiki>https://github.com/2600hz/bluebox.git</nowiki> bluebox/}}


Change the folder permissions
Change the folder permissions
Line 56: Line 49:
'''Log on your bluebox'''
'''Log on your bluebox'''


Browse to: http://WEBSERVER_IP_ADDRESS/bluebox and start configuration.
Browse to: <nowiki>http://WEBSERVER_IP_ADDRESS/bluebox</nowiki> and start configuration.


* Welcome to Bluebox 1.0 Setup Wizard
* Welcome to Bluebox 1.0 Setup Wizard
Line 68: Line 61:
Set '''Default Timezone'''
Set '''Default Timezone'''


'''Note:''' Set Port to 3306 (for mysql); see - http://tickets.2600hz.org/browse/BLUEBOX-445
'''Note:''' Set Port to 3306 (for mysql); see - https://2600hz.atlassian.net/browse/BLUEBOX-445{{dead link}}


Next
Next
Line 107: Line 100:


'''Note:''' If you are using the Alpine ACF, or if you change the port in the lighttpd.conf file, the go to the port you set.
'''Note:''' If you are using the Alpine ACF, or if you change the port in the lighttpd.conf file, the go to the port you set.
e.g: if you set the port to 8080, then browse to: http://WEBSERVER_IP_ADDRESS:8080/bluebox
e.g: if you set the port to 8080, then browse to: <nowiki>http://WEBSERVER_IP_ADDRESS:8080/bluebox</nowiki>


'''Note:''' Needs PHP DOM package (apk add php-dom)
'''Note:''' Needs PHP DOM package (apk add php-dom)

Latest revision as of 10:18, 17 November 2023

This material needs expanding ...

This page is outdated and possibly should be considered for deletion

blue.box is an open source GUI for administration and configuration of FreeSWITCH and Asterisk based VoIP systems. It supports multi-tenancy and skinning, and is completely modular.

Install Lighttpd

Basic Installation

For installing the additional packages first activate community packages and update the package index

Install the required packages:

# apk add lighttpd php82 fcgi php82-cgi

Configure Lighttpd

Edit lighttpd.conf (/etc/lighttpd/lighttpd.conf) and uncomment the line:

Contents of /etc/lighttpd/lighttpd.conf

... include "mod_fastcgi.conf" ...

Edit mod_fastcgi.conf (/etc/lighttpd/mod_fastcgi.conf), find and change /usr/bin/php-cgi to /usr/bin/php-cgi82.

Contents of /etc/lighttpd/mod_fastcgi.conf

... "bin-path" => "/usr/bin/php-cgi82" # php-cgi ...

Start lighttpd service and add it to default runlevel

# rc-service lighttpd start # rc-update add lighttpd default

Installing FreeSwitch

First use apk to install the needed software parts.

apk add freeswitch freeswitch-flite freeswitch-sounds-en-us-callie-8000 freeswitch-sample-config

Change the permissions of /etc/freeswitch/

chown lighttpd:lighttpd /etc/freeswitch/ chmod 777 -R /etc/freeswitch/

Starting

Starting http and sql server and adding to boot

rc-service postgresql setup rc-service postgresql start && rc-update add postgresql default rc-service lighttpd start && rc-update add lighttpd default

Installing 2600hz

Create a webapps folder

mkdir /usr/share/webapps/ -p

Checkout the source code from the git repository

cd /usr/share/webapps/ git clone https://github.com/2600hz/bluebox.git bluebox/

Change the folder permissions

chmod -R 777 /usr/share/webapps/bluebox

Create a symlink to the create directory

ln -s /usr/share/webapps/bluebox/ /var/www/localhost/htdocs/bluebox

Configuring bluebox

Log on your bluebox

Browse to: http://WEBSERVER_IP_ADDRESS/bluebox and start configuration.

  • Welcome to Bluebox 1.0 Setup Wizard

Accept Terms and Conditions Next

  • Initial Configuration

Select pqsl as database server, bluebox as database name, postgres as user, no password Set Default Timezone

Note: Set Port to 3306 (for mysql); see - https://2600hz.atlassian.net/browse/BLUEBOX-445[Dead Link]

Next

  • Create Main Administrator

Master Administration Account

Email Address:youremail@yourserver.net Password:adminpassword Confirm Password:adminpassword

Next

  • Telephony Engine

In Telephony Configuration

Conf Directory: /etc/freeswitch

Global Sound File Directory: /usr/sounds

Next

Conflicting configuration files will be permanently erased if you continue!

Next

  • Installation

Ready to Install

Next

After that you will see Click here to use Bluebox 1.0!

And you finish you Bluesbox installation.

Note: If you are using the Alpine ACF, or if you change the port in the lighttpd.conf file, the go to the port you set. e.g: if you set the port to 8080, then browse to: http://WEBSERVER_IP_ADDRESS:8080/bluebox

Note: Needs PHP DOM package (apk add php-dom)

Note: This documentation need some minor fixes.