Function setting

Configure basic Itgrix functions!

Contact us instead of reading the instructions

If you don’t feel like wasting time on instructions, or they didn’t help, contact our support. We will quickly help you set everything up and answer all questions!

Contact us in any convenient way.

Configure click-to-call in Bitrix24

Allow click-to-call link format: CRM → Settings → Other → Other settings → Format. (see the picture) Select “call via Bitrix24 telephony”.

For “call-to:” link format select “call via Bitrix24 telephony”.

2. Choose application as default application for outgoing calls

Open Telephony → Configure telephony → Telephony settings. Then in the "Configure default numbers" section choose "Application: Asterisk integration" as "default number for outgoing calls". (See the picture)

3. Click-to-call configuration for on-primise Bitrix24

To make calls from self-hosted Bitrix24 you should add the following code in file /home/bitrix/www/bitrix/php_interface/dbconn.php:

if($_REQUEST['COMMAND'] === 'startCallViaRest' || $_SERVER['REQUEST_URI'] === '/rest/voximplant.call.startViaRest.json') { define('BITRIXREST_URL', 'ipasterisk:8077'); }where ipasterisk:8077 - is host and port of server with installed application (see 2.2 section).

You can edit this file using administrative interface of Bitrix24:Content → Site explorer → Files and folders → bitrix → php_interface → dbconn.php

Setting automatic call distribution to the responsible managers

You should add additional context in Asterisk and change the route of incoming calls.

Incoming call should go to this context, and then to the traditional one (Ivr-1 for example).

Context example:

[bx24transfer] exten => 1,1,Set(CURLOPT(hashcompat)=yes) exten => 1,n,Set(CURLOPT(httptimeout)=5) exten => 1,n,Set(CURLOPT(conntimeout)=5) exten => 1,n,Set(HASH(forwardHash)=${CURL(http://localhost:8077/extendedForward?phone=${CALLERID(num)})}) exten => 1,n,Set(CALLERID(name)=${HASH(forwardHash,name)}) exten => 1,n,GotoIf($[${HASH(forwardHash,number)}]?from-internal,${HASH(forwardHash,number)},1:ivr-1,s,1)In this example:

  • localhost - host of server with installed application

  • ivr-1,s,1 - next context, uses for unknown numbers

How to find your correct context see the article for admins.

That is all what you need to