Asterisk Live Calls Monitor - Installation Steps

1. Download Installer package:

Once you completed purchase process, you can download latest Asterisk Live call monitor package from client area (Note: Please choose proper source based on PHP version you have on the system)

To find out your php version run below command:

php -v

For php version 7, download package from HERE

2. Copy package on server:

Copy downloaded tar.gz package on server and extract under your server's DocumentRoot Directory (Default path: /var/www/html/)

For example: If you have downloaded package at /usr/src/ then run below commands to extract package and copy it on DocumentRoot.

cd /usr/src/
tar -xvzf LiveCall_php7.tar.gz
cp -Rf LiveCall /var/www/html/


3. Configure apache to override settings:

a) First you need to locate the apache config file, ideally it should be at /etc/httpd/conf/httpd.conf or /etc/apache2/apache2.conf. You need to edit it with text editor such as vim, pico etc. You can open file using below commands

For httpd use below command:

vim /etc/httpd/conf/httpd.conf

For apache2 use below command:

vim /etc/apache2/apache2.conf

b) If you are using vim editor, then press i or insert key to write into file.

Paste below code block at the end of your file, and save and close file.

<Directory "/var/www/html/LiveCall">
AllowOverride All
</Directory>

Here, /var/www/html/ is your DocumentRoot, if you have different DocumentRoot then you will have to change it accordingly.

To save and close file using vim editor press “Esc” then “:wq” without quotes.


c) If you are having apache2 then run below command in terminal client to enable rewrite mode:

sudo a2enmod rewrite

4. Setup ioncube loader:

a) Begin by downloading the latest loaders to your computer from http://www.ioncube.com/loaders.php

b) Extract the contents of the archived file on your local PC to a folder of your choice.

c) Upload the folder IONCUBE via FTP to your domain webspace

d) Now establish an SSH connection with server using a suitable client (e.g. Putty for PC's or Terminal on Mac/Linux). This is usually done using the command: SSH rootusername@yourserver.com (you will then be asked for your password).

e) You will need to browse to the public folder where you uploaded the IONCUBE directory (search internet to change and view directory commands in Unix).

f) Move the ioncube folder to a permanent location by entering: mv ioncube /usr/local

g) Next, you need to locate the php.ini file, to do this enter: locate php.ini - You should find it is in /usr/local/lib/php.ini. Now that you know the location of php.ini you need to edit it with text editor such as vim, pico etc

h) Paste zend_extension = /usr/local/ioncube/ioncube_loader_lin_x.so (Here replace x with your version of PHP eg. 5.3, if version is 5.3.3 then just use 5.3) at the end of your php.ini file

i) Save and close the file(you can refer step 3b to check how you can use vim editor)


5. Restart the web server to take effect:

/etc/init.d/httpd restart
or
service httpd restart

Some systems may have apache2 instead of httpd.

They can run below commands to restart the web server
/etc/init.d/apache2 restart
or
service apache2 restart

6. Give writable permission:

Change permission of files by executing below commands in terminal:

Chmod 777 /var/www/html/LiveCall/licence_config/licence_key.txt
Chmod 777 /var/www/html/LiveCall/asterisk_manager_config/asterisk-manager.txt
Chmod 777 /var/www/html/LiveCall/asterisk_manager_config/lang.txt

7. Create Dialplan

Add below dialplan at the end of /etc/asterisk/extensions.conf to enable Listen/Barge feature on livecall report.


[livecallchanspy]
exten => _X.,1,ChanSpy(${SPYSIPEXTEN},qEo)
exten => _X.,2,ChanSpy(${SPYIAXEXTEN},qEo)
(Note: if you are using FreePBX then dialplan needs to be added in /etc/asterisk/extensions_custom.conf)

Please reload asterisk once dialplan is added.

8. Access Portal:

Open URL in browser: http://xxx.xxx.xxx.xxx/LiveCall/ (Please replace xxx.xxx.xxx.xxx with your server IP/domain)


9. License setup:

While opening first time, you will be asked to enter license key. Please enter the same license key which you got from client area section after purchasing product. For eg. “ALCM-XXXXXXXXXXXX”

10. Asterisk manager configuration:

Configure your Asterisk manager Host, Username and Password of Asterisk server for which you want to monitor Live calls.

Navigate to Asterisk manager menu in left panel.

You can find username and password in /etc/asterisk/manager.conf file. It will look like below section:

[myasterisk]
secret=mycode
deny = 0.0.0.0/0.0.0.0
permit = xx.xx.x.xx/255.255.255.0
read = all
write = all

Here, myasterisk is username and mycode is password. And xx.xx.x.xx is the IP address of Asterisk machine.

If there is no manager entry in file manager.conf then you need to create one as shown above.
(Note: if you are using FreePBX then manager details will need to add in /etc/asterisk/manager_custom.conf)



You are done!!! Enjoy and monitoring your Live Calls now.

Please feel free to open a support ticket in case of difficulties or issues.

  • 360 Users Found This Useful
Was this answer helpful?

Related Articles

Asterisk Live Calls Monitor - Troubleshooting

1) License key not working:Please make sure all below packages are installed in system. If not...

Upgrade existing Asterisk Live Call Monitor to v2.1

It's quite easy to upgrade your existing Asterisk Live Call Monitor tool to the all new version...

Powered by WHMCompleteSolution