How to correctly stop/reboot Skype for Business server

skype-for-businessSkype for Business like any other service needs periodic maintenance and that’s when you need to know how to gracefully stop Skype for Business service without losing a quorum.

Before stopping Skype for Business service make sure you will have more than 50% of front end servers running. Continue reading

How to find all files containing specific text in Linux

Finding files containing text string in Linux is the easy task with the grep utility. grep also allows you to find files with specific text by searching directories recursively by defining -r key. Here are a few examples:

Continue reading

Asterisk crashes on res_odbc.so load

asterisk-invalid-pointerWhile loading res_odbc.so Asterisk crashes with “invalid pointererror like in the backtrace below:

Loading res_odbc.so. Continue reading

How to reset MySQL/MariaDB root password

mysql-logo-imageStart session ssh (using root if possible).

Edit my.cnf file using.

sudo vi /etc/my.cnf

Add line to [mysqld] block: Continue reading

Parse JSON in Asterisk: how to install res_json

Asterisk PBXIf you need to talk to external API and parse JSON in Asterisk dialplan you will need res_json installed. Unfortunately it’s not bundled in Asterisk installation yet but here is how you can install res_json in Asterisk: Continue reading

Calculate Difference between two Time Values in Asterisk Dialplan

Asterisk PBXFor calculating the difference between two times in Asterisk dialplan, the time values should be converted to an epoch value first. This  can be done using the asterisk function STRFTIME. Use the below dialplan to convert current time to an epoch value

Set(time=${STRFTIME(${EPOCH},,%s)}) Continue reading

New encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)

odoo-logoDuring the step of database creation in Odoo database manager the following database creation error occurs:

New encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)

Odoo-database-creation-error Continue reading

A2Billing wholesale: fake ring and incorrect billing

a2billingOften in A2billing wholesale setup one might find that A2Billing starts billing for calls too early (before the call is  answered). Another frequently asked question is “fake ring”.

Let’s go through each of issues. Continue reading

A2Billing wholesale configuration

a2billingIn order to use A2Billing for wholesale you need to modify a few settings.

Log in to A2Billing as usual and go to System Settings -> Global List menu. Set Display setting to All and now you can use browser to quickly find needed setting (Ctrl+F).

Play Audio (this will disable all stream file but not the Get Data , for wholesale ensure that the authentication works and than number_try = 1 ) = Yes Continue reading

FreePBX error gui_hidden has a deprecated constructor

freepbxHaving fresh manual installation of FreePBX 14 on CentOS 7 and when access GUI for the first time it throws the following error: Methods with the same name as their class will not be constructors in a future version of PHP; gui_hidden has a deprecated constructor.

In Apache’s error log file I found the following:

Whoops\Exception\ErrorException: Methods with the same name as their class will not be constructors in a future version of PHP; dayNightObject has a deprecated constructor in file /var/www/html/admin/modules/daynight/functions.inc.php on line 9
Stack trace:
1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/daynight/functions.inc.php:9
2. Whoops\Run->handleError() /var/www/html/admin/bootstrap.php:362
3. require_once() /var/www/html/admin/bootstrap.php:362
4. require_once() /etc/freepbx.conf:9
5. include_once() /var/lib/asterisk/bin/retrieve_conf:19 Continue reading

Load more