Настройка подключения REST API Asterisk к Битрикс24
Здравствуйте.
Настроено подключение Asterisk к битрикс24 через rest api. Работают входящие и исходящие звонки с битрикс24.
Нужно до настроить подключения REST API Asterisk к Битрикс24:
1. Отключить создание лида при исходящих звонках через веб-хук.
2. Включить уведомления в чат для сотрудника о входящих, исходящих и пропущенных звонках.
3. Включить скрытие карточки клиента при завершении звонков.
Пример организации похожей схеме можно найти по ссылке:
https://voipexpert.ru/asterisk/integratsiya-s-crm
4. Установить сертификат let's encrypt на поддомен и настроить его автообновление.
5. Изменить логику работы исходящего веб-хука, для того, чтобы можно было использовать внутренний ip-адрес для исходящего звонка с битрикс24, чтобы наружу не выводить сервер asterisks
Подсказка от поддержки битрикс24: В теории можно написать свой класс, чтобы события шли сразу на локальный сервер, для этого в /bitrix/php_interface/init.php или /local/php_interface/init.php нужно добавить следующий код
\Bitrix\Main\Loader::includeModule('rest');
class MyEventProvider extends \Bitrix\Rest\Event\ProviderOAuth
{
public function send(array $queryData)
{
$http = new \Bitrix\Main\Web\HttpClient();
foreach($queryData as $key => $item)
{
if(preg_match('/192\.168\./', $item['query']['QUERY_URL'])) // directly sending handlers, having 192.168. in the address
{
$http->post($item['query']['QUERY_URL'], $item['query']['QUERY_DATA']);
unset($queryData[$key]);
}
}
if(count($queryData) > 0)
{
parent::send(array_values($queryData)); // all the rest is to be sent via the standard mechanism
}
}
}
\Bitrix\Rest\Event\Sender::setProvider(MyEventProvider::instance());
Current freelance projects in the category Web Programming
Responsive Portolio Website Design ( wordap - selling and buying website )I need a clean, modern portfolio site that follows my existing brand guide and adapts beautifully to desktop, tablet, and mobile. The site’s job is simple: highlight my work through high-impact photos, embedded videos, and detailed case studies so visitors immediately understand… Content Management Systems, Web Programming ∙ 4 hours 13 minutes back ∙ 19 proposals |
Moved the website from OpenCart to the Khoroshop platformHello. There is a website on OpenCart, an online store. It is necessary to transfer the structure of the site to the GoodShop platform, select a design for the new site, and make it fully functional. HTML & CSS, Web Programming ∙ 7 hours 54 minutes back ∙ 20 proposals |
Making edits to the website (WP, Elementor)Good day. We need to make 2 changes to the website: 1. The main menu "jumps" when hovering the cursor, plus in the Ukrainian version it is vertically centered (as it should be), while in the Russian version it is not centered, at the top. We need to center the Russian version… Web Programming ∙ 10 hours 30 minutes back ∙ 53 proposals |
It is necessary to modernize the admin panel in Open Cart for convenience.Technical assignment for configuring/improving OpenCart 1. Catalog → Products Task 1. Add a "Category" column to the product list Task 2. Add a "SKU" column to the product list Task 3. Add a "Creation date and time of the product" column Task 4. Quick edit of main product data… Web Programming ∙ 10 hours 46 minutes back ∙ 44 proposals |
Improvement of the catalog for the websiteFor the catalog website, improvements need to be made: (the work can be divided into stages or taken by qualification part) 1. In the admin panel, the ability to upload SQL files for updating prices (in the archive it is price_balluff_2026_for_site.sql). (currently they are… AI Content Creation, Web Programming ∙ 10 hours 54 minutes back ∙ 28 proposals |