Itgrix for Kommo and Asterisk

The integration module has two components: a CRM application installed on the Kommo portal and a server-side application for Asterisk server.

1. Installing a CRM application in Kommo

The installation should be done using an account with Administrator rights.

This step is mandatory for the proper functioning of the application.

Go to the Settings section in Kommo.

In the search bar, type in "Itgrix" or "Asterisk". Select the application "Asterisk connector Itgrix".

Alternatively, use this link: https://company.kommo.com/settings/widgets#amo_itgrix and replace "company.kommo.com" with the name of your Kommo account.

Accept the Privacy Policy and install the application.

2. Setting up the click-to-call function and displaying call cards

Select "Use Click-to-Call server", or specify the IP address of the server with the module in order to receive click-to-call requests from CRM.

Choose whether to show the call card. see description

To enable the call card, you need to tick the "Show call card" checkbox in the widget settings, configure and enable users to connect to the integration module using the WSS protocol.

Remember to save your changes before closing the widget settings page.

Important: If you opt out of using the Click-to-Call server, you need to specify the external address of your network and forward port 8077 to the server where the server-side part of the connector is installed.

When using the C2C server, its address https://apix.itgrix.ru must be accessible from the server with the module.

3. Installing the module on the server

3.1 Installation

Use the automatic installation script.

Download the script from the link:

wget https://itgrix.ru/download/autoinstaller_kmo.sh

Run the script

bash autoinstaller_kmo.sh

At the conclusion of the installation, set login/password to enter the module's admin panel. In the future, these credentials can be changed at the bottom of the config file at /etc/itgrix_kmo/config.json in the "server" section.

3.2 Launch the service

If the systemctl service is installed in the operating system, then the module will start automatically, or it can started manually using the following commands:

service itgrix_kmo start
service itgrix_kmo status

3.3 Setting up the integration module

We recommend further configuration through the configuration wizard in the Admin panel of the module (the web interface is available at http://<Asterisk IP>:8077/config/master).

4. Setup wizard steps:

1. Connection to the Database

The setup wizard will automatically configure access to the Asterisk database. The availability of tables CEL, CDR, and the latest entries in them will also be checked.

If the database connection credentials were not found automatically, they can be found as follows:

In the files /etc/asterisk/res_odbc.conf or /etc/asterisk/res_odbc_additional.conf find a block:

[asteriskcdrdb]
username=>freepbxuser
password=>mysqlsecret

You can also create a separate user in MySQL with permissions to read tables with CDR and CEL data.

2. Connection to Asterisk

Select an existing user or create a new one on behalf of which the module will send commands to the Asterisk AMI interface.

If the module is not hosted directly on the Asterisk server, then you need to create a user manually:

  1. make changes to the /etc/asterisk/manager_custom.conf file (if not present, edit the /etc/asterisk/manager.conf file instead):

[kmo]
secret = asterisksecret (specify your own)
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.0
read = cdr,reporting,originate,call
write = reporting,originate
  1. After adding a new user, you need to reload Asterisk to load new data with the command asterisk -rx 'manager reload'

3. Recording files storage method

Specify the path to call recording files. Usually they are located at

/var/spool/asterisk/monitor

Choose how the directory structure is organized. For FreePBX, by default, directories are organized into Year/Month/Day subfolders.

4. Connecting to Kommo

Enter the portal address here by simply copying it from the address bar.

Click "Authenticate".

In the window that opens, log in to your CRM and confirm access permissions.

If any network connectivity issues prevent the authentication procedure from completing normally, you may be given an authenticaction code. Copy this code into the field in the admin panel and confirm.

5. Finalizing initial setup

Complete the setup by clicking the "Finish" button at the end of the page and you will be automatically taken to the Business Logic page.

5. Business-logic

If all previous steps are completed successfully, you will be redirected to the Business Logic settings section:

http://<Asterisk IP>:8077/config/business_logic,

where <Asterisk IP> is the address of the Asterisk server on which the integration module is installed.

Set up the logic of the connector.

Be sure to specify the mapping of the internal numbers from telephony to users in CRM.

If a user has multiple internal numbers or has configured call redirection to a cell phone, to ensure correct logging of calls to additional numbers, all their phone numbers must be added in the admin panel or the settings config file:

"kommo": {
    "users": {
        "101": "user_id_1",
        "102": "user_id_1",
        "14844731331": "user_id_1"
    }
}

To save the settings, click the “Save” button at the bottom of each modified page.

Installation completed!

Last updated