No description
PHP
Find a file
2019-07-19 10:48:29 +02:00
conf Add overload for recover_phone_account 2019-07-08 05:49:16 +07:00
httpd Restrict access to xmlrpc.php file 2019-07-08 11:18:36 +02:00
src Fixed SMS issue 2019-07-19 10:48:29 +02:00
.gitignore Feature/complete rework for future developments 2019-07-05 11:56:32 +02:00
.gitlab-ci.yml only deploy if flexisip-account-manager.spec has changed, specially version number 2019-06-27 17:50:46 +02:00
flexisip-account-manager.spec Added script for accounts migration & tables deletion + SMS object fix 2019-07-19 10:11:05 +02:00
LICENSE.txt Feature/complete rework for future developments 2019-07-05 11:56:32 +02:00
Makefile Makefile copy php files only 2019-07-08 05:49:29 +07:00
README.md Feature/complete rework for future developments 2019-07-05 11:56:32 +02:00
README.packaging.md Initial commit 2019-06-26 17:18:50 +07:00

1. Install RPM package with dependencies


RPM package should install necessary dependencies automatically.

yum install bc-flexisip-account-manager

This package depends on rh-php71 which will be installed in /opt/rh/rh-php71/. If you don't have any other php installed on your server, use the following to be able to use php commands:

ln -s /opt/rh/rh-php71/root/usr/bin/php /usr/bin/php

2. Configure Apache server


The RPM will create a flexisip-account-manager.conf file inside /opt/rh/httpd24/root/etc/httpd/conf.d/

It simply contains an Alias directive, up to you to configure your virtual host correctly.

Once you're done, reload the configuration inside httpd: service httpd24-httpd reload

3. Install and setup MySQL database


For the account manager to work, you need a mysql database with a user that has read/write access.

4. Configure XMLRPC server


The RPM package has installed the configuration files in /etc/flexisip-account-manager/

Each file name should be explicit on which settings it contains. If you have any doubt, leave the default value. At least you MUST edit the following file and fill the values you used in previous step:

nano /etc/flexisip-account-manager/db.conf

Now you can create the necessary tables in the database using our script:

php /opt/belledonne-communications/share/flexisip-account-manager/tools/create_tables.php

5. Install OVH SMS gateway dependency (optionnal)

To install OVH SMS PHP API create a composer.json file in /opt/belledonne-communications/:

echo '{ "name": "XMLRPC SMS API", "description": "XMLRPC SMS API", "require": { "ovh/php-ovh-sms": "dev-master" } }' > /opt/belledonne-communications/share/flexisip-account-manager/composer.json

Then download and install composer.

Finally start composer:

cd /opt/belledonne-communications/share/flexisip-account-manager/ && composer install

6. Miscellaneous


  • For remote provisioning create a default.rc file in /opt/belledonne-communications/ and set the values you want client side, set the provisioning uri to the same host but to provisioning.php instead of xmlrpc.php.

  • If SELinux forbids mail sending you can try this command: setsebool -P httpd_can_sendmail=1

  • On CentOS firewalld might be running: firewall-cmd --state

  • If it is running you can add a rule to allow https traffic: firewall-cmd --zone public --permanent --add-port=444/tcp && firewall-cmd --reload

  • If you use the standard https port (443) or http (80) the following command might be better: firewall-cmd --zone public --permanent --add-service={http,https} && firewall-cmd --reload

  • Also it can listen on IPv6 only. To fix that, edit /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf and add/set: Listen 0.0.0.0:444 https