Itgrix for Kommo and Asterisk

The module consists of two parts: an application installed on the Kommo portal and a server application.

1. Installing an application in Kommo.

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

To ensure the proper functioning of the application, it is necessary to install the application in Kommo.

Go to the Settings section.

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** where company.kommo.com is the name of your Kommo.

Agree to the transfer of data and install the application.

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

Select: Use our 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 enable the "Show call card" checkbox in the widget settings, configure and enable users to connect to the integration module using the WSS protocol.

Be sure to save your data.

Important: If you are not using an external c2c server, then you need to specify the external address of your network and forward port 8077 to the server where the server part of the connector is installed.

When using our c2c server, our address https://apix.itgrix.ru must be available on the server with the module.

3. Installing the module on the server.

3.1 Installation

Use the automatic script to install.

Download the script from the link

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

Run the script

bash autoinstaller_kmo.sh

At the end of the installation, set login/password to enter the module's admin panel. In the future, this data can be changed at the end of the config file /etc/itgrix_kmo/config.json in the Webserver section.

3.2 Module launch

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

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. Wizard steps:

1. Connection to the Database.

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

If the data is not found, it can be found as follows:

We look at the files: /etc/asterisk/res_odbc.conf or /etc/asterisk/res_odbc_additional.conf Find:

[asteriskcdrdb]
username=>freepbxuser
password=>mysqlsecret

You can create your user in MySQL. You will need permission 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 AMI.

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

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

[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
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 file storage method

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

/var/spool/asterisk/monitor

Choose how the directory structure is organized. For FreePBX, by default, they 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 "Get Code".

In the window that opens, log in to your CRM and get a code.

Enter the received code in the field. Get verified.

5. Completion

Complete the setup by clicking the "Finish" button at the end of the page and automatically go to the Business Logic page

5. Business-logic

If all steps are completed successfully, complete the setup. 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 correspondence of numbers in telephony and users in CRM.

If one user has several internal numbers or redirection to a cell phone is configured, then for correct registration of calls to additional numbers, they must be registered in the admin panel or in the config:

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

To save the settings, click the “Save” button on each modified page.

Installation completed!

Last updated