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

Was this helpful?

  1. Useful customizations (any CRM)

Black and white lists

How to setup?

PreviousChange phone number before sending data to CRMNextUseful customizations itgrix_bx (Bitrix24)

Last updated 1 year ago

Was this helpful?

If you don't want to go into details, contact us. We will quickly help you and answer all questions! in any convenient way.

To configure customization, you must include the customizer file in the module settings. For versions starting from 2.15.0

Starting with version 2.15.0, all black / white lists are implemented through customization need_registration

Black / white lists (filtering by internal number):

Blacklist of internal numbers - allows you to not register a call in CRM in which one of the selected set of internal numbers participated.

On the contrary, the white list of internal numbers allows registering only those calls in CRM in which one of the selected set of internal numbers participated.

To cancel the registration of calls to certain internal numbers, for example 101 and 102, we edit the file /opt/itgrix_bx/customizer/actions/need_registration.php.

Example code for the BLACK list on internal numbers 101 and 102:

$black_list = array('101', '102');

$key = $params['conversation']['type'] == 2 ? 'to' : 'from'; // 2 = incoming

if (in_array($params['conversation'][$key], $black_list)) {
    $result = false;
}

return array(
    'state' => 'success',
    'data' => array(
        'result' => $result
    ),
);

An example of the WHITE list code for extension numbers 201 and 202:

$white_list = array('201', '202');

$key = $params['conversation']['type'] == 2 ? 'to' : 'from'; // 2 = incoming

if (!in_array($params['conversation'][$key], $white_list)) {
    $result = false;
}

return array(
    'state' => 'success',
    'data' => array(
        'result' => $result
    ),
);

Contact us