LogoLogo
  • What is Itgrix
  • Contacts
  • Our story
  • Connector installation
    • System requirements
    • Itgrix for Bitrix24 and Asterisk
      • How to perform offline authorization
      • How to obtain a license offline
      • Configuring the connector to work in a closed network
      • Call tests
    • Itgrix for Kommo and Asterisk
      • Restricted mode setting features
      • Call card
      • Call tests
  • Additional functions
    • Automatic call transfer to responsible manager
    • Setting up click-to-call features
      • Features of customization after Bitrix24 23.300.0 update
    • Autoreplacement for phone numbers
    • How to view employee call statistics in Bx24
    • FMC number recognition
    • Configuring WebRTC in Asterisk (FreePBX)
    • Itgrix AsterPhone for Bitrix24
    • Itgrix AsterPhone for Kommo
  • For admins
    • Running an additional copy of the module
    • Deploying a module backup
    • Call processing for the period
    • Examples of the structure of registered calls from CEL
    • Wrong time in created cases in Bitrix24
    • SSH access
    • Useful commands
    • Script to test the module service
    • Changing login and password to enter the admin panel
    • Module files
    • Status monitoring
    • Application update
    • In the CEL table, there is no internal employee number in the cid_num column
    • How to fix click-to-call
    • Custom SSL certificates for https requests
    • Examples of configuring WSS connections
    • Converting recordings to MP3 before sending to Bitrix24
    • How to fix call recording problems
    • Install and configure CEL
    • B24 authorization bugfix
  • Useful customizations (any CRM)
    • Audio file name customization
    • Call data (call_full) in customizations
    • Change the number / context for calling to asterisk
    • Change phone number before sending data to CRM
    • Black and white lists
  • Useful customizations itgrix_bx (Bitrix24)
  • Useful customizations itgrix_kmo (Kommo)
  • FAQ
    • How to pay
    • How to check licence status
    • Differences in connection to B24 via SIP-connector and Itgrix
    • How to turn off the display of calls in the calendar
    • How to view statistics on employee calls
    • Updating the app
    • Offline install (only for Bitrix24)
    • Offline update
    • Reliable softphones for Asterisk
    • Detail-call-statuses
  • Changelog Itgrix_bx
  • Changelog Itgrix_kommo
  • Policy of interaction with Asterisk
Powered by GitBook
On this page
  • Configuring click-to-call in the module admin panel
  • 1. Define callto link format
  • 2. Set default app for outgoing calls
  • 4. Setting up Bitrix24 user profiles
  • 5. Features of setting up click-to-call in the boxed version of 1C-Bitrix24 in a closed network

Was this helpful?

  1. Additional functions

Setting up click-to-call features

PreviousAutomatic call transfer to responsible managerNextFeatures of customization after Bitrix24 23.300.0 update

Last updated 2 years ago

Was this helpful?

Bitrix24 supports the click-to-call function, when a call is made by clicking on a phone number in the portal. Technically it looks like this:

  • After the user clicks on the phone in the portal, the command goes to the module;

  • The module sends the originate command to Asterisk (parameters can be adjusted in the config file and customizer);

  • Asterisk dials first to the operator. When he picks up the phone, Asterisk will send an external call to the client.

When using IAX2 peers, the click-to-call function will not work.

Configuring click-to-call in the module admin panel

There are two options for enabling:

  1. Open port 8077 on the router to receive external requests from Bitrix24;

  2. Or use our click-to-call server to send requests.

For the first option:

  1. Specify your external (!) IP address in the “Address for requests from Bitrix” field in the admin panel section Settings → Module (see figure) – use the url address format (indicating the protocol);

  2. Forward port 8077 on the router - a request from B24 will be sent to it, transmitted to the module, and the module will send a "call" command to Asterisk.

Second option

If you don't want to open the port, then you can use an external click-to-call server.

To do this, enable the option in the admin panel section Settings → Bitrix24 (see figure).

In order for click-to-call to work, you need to define the format of the callto links in the portal and set the Asterisk Integration application to process these links.

1. Define callto link format

Path to settings: CRM → Settings → Other → Other settings → Formatting (see figure).

There, for the "callto" link output format, select "Call via Bitrix24 telephony"

2. Set default app for outgoing calls

Telephony → Telephony settings → General settings (see figure)

In the field “Number for outgoing calls by default” select the item: “Application: Integration with Asterisk”.

If the application is not in the list, then most likely the connection with the server part has not been established: either the module is not running, or the module has not been authorized in the portal and needs to be checked through the admin panel.

4. Setting up Bitrix24 user profiles

For the module to work correctly, users must have an internal phone number on the portal. Internal phone number from user profile will be used to determine whom to show the card and whom to assign as responsible for lead or contact.

Important: If the user does not have an internal number, then calls and leads of this user will not be sent to the portal

The first quick way to specify extension numbers is through the list of telephony users:

Telephony → Telephony settings → Telephony users.

The user only needs to specify an extension number. The application is used by default. Leave the phone unconnected.

The second way is to add an extension number directly through the employee profile.

Important: If you use the FollowMe function (transferring an incoming call to a cell phone), then this cell phone must be specified in the profile.

5. Features of setting up click-to-call in the boxed version of 1C-Bitrix24 in a closed network

To be able to make calls (click-to-call) from the boxed version of Bitrix24 in a closed network, you need to make changes to the file

/home/bitrix/www/bitrix/php_interface/dbconn.php,

which can be found through the 1C-Bitrix24 administrative interface in the section

Content → Site structure → Files and folders → bitrix → php_interface → dbconn.php

Add the following code to the file:

if($_REQUEST['COMMAND'] === 'startCallViaRest' || $_SERVER['REQUEST_URI'] === '/rest/voximplant.call.startViaRest.json') {define('BITRIXREST_URL', '<Asterisk IP>:8077');}

where instead of :8077 enter the internal address of your server with the integration module installed.

If you do not use the code above, then the Asterisk server should allow incoming requests from the address https://oauth.bitrix.info

Path to settings: CRM → Settings → Other → Other settings → Formatting (see figure).
In the field “Number for outgoing calls by default” select the item: “Application: Integration with Asterisk”.
Telephony → Telephony settings → Telephony users.
The second way is to add an extension number directly through the employee profile.