The following will help you get a local test server running that can be used with DreamPi or BlastEm clients. Setup to support VoIP/PSTN clients is much more in-depth and will be covered later.
Clone this repository to a convenient directory.
Install PHP CLI (7.4+) including the cURL, GD, and MySQL extensions, and MySQL/MariaDB (server).
apt install mariadb-server php-cli php-curl php-gd php-mysql
Connect to your SQL server:
2a. Create a new database:
create database roofgarden;
2b. Add a new user to the db:
grant all privileges on roofgarden.* to 'roofgarden'@'%' identified by 'roofgarden';
2c. Exit the client: Ctrl+D
2d. Import the db schema from the repo:
mysql -u roofgarden -p roofgarden < schema.sql
2e. Enter the SQL client again and create a user named "test" to use with blastem:
insert into sipaccounts values(0, 'test', 'test', 'test', 'test', 'emu', NULL);(id, mac, sn, user, password, type, comment)
Make a copy of secret.php.dist named secret.php
3a. Edit the new file with your database host, user, password, and database name details.
php roofgarden.php(note: this can run as a regular user. root is not required.)
Set the server to your server address, and use
testas the identity value.