Connecting a SIP trunk to Bitrix24

Our company is engaged in the development, support and maintenance of Bitrix and Bitrix24 solutions of any complexity. From simple one-page sites to complex online stores, CRM systems with 1C and telephony integration. The experience of developers is confirmed by certificates from the vendor.
Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1175
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    811
  • image_bitrix-bitrix-24-1c_development_of_an_online_appointment_booking_widget_for_a_medical_center_594_0.webp
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    564
  • image_bitrix-bitrix-24-1c_mirsanbel_458_0.webp
    Development based on 1C Enterprise for MIRSANBEL
    747
  • image_crm_dolbimby_434_0.webp
    Website development on CRM Bitrix24 for DOLBIMBY
    655
  • image_crm_technotorgcomplex_453_0.webp
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    976

Connecting SIP Trunk to Bitrix24

A SIP trunk is a virtual communication channel between Bitrix24 and a phone operator. Through it, calls from an existing company number arrive in Bitrix24, and outgoing calls are placed through the operator at favorable rates. Unlike renting a number from Bitrix24, a trunk allows you to keep an existing number and not overpay for calls.

What is SIP trunk technically

A trunk is a set of SIP credentials that the provider issues for PBX registration. Credentials consist of:

  • SIP server address of the provider (host) — for example, sip.provider.ru or IP address.
  • Login and password — for registration on the provider's server.
  • Phone number — which will be displayed for outgoing calls (CallerID).

Bitrix24 registers on the provider's server as a SIP device and accepts incoming calls addressed to this number.

Configuring trunk in Bitrix24

Section: CRM → Telephony → Settings → Add number → Connect your number (SIP).

Parameters to fill in:

Parameter Description
Server SIP server address of the provider
Login SIP login of the trunk account
Password SIP password
Outgoing number Number for CallerID
Transport UDP (by default) or TCP/TLS

After saving, Bitrix24 attempts to register on the SIP server. Registration status is displayed in the "Trunks" section — a green circle means successful connection.

Specifics of working behind NAT

Most SIP trunk issues arise from NAT — when Bitrix24 runs on a server behind a router or in the cloud with changing external IP. Symptoms: registration passed but calls don't arrive or no sound.

The solution depends on the side:

  • If trunk is with cloud Bitrix24 — NAT problems are rare, Bitrix servers have public IPs.
  • If using your own Bitrix24 box — in SIP server settings, you need to specify external IP (externalip in Asterisk if used as intermediary) or configure STUN.
  • On the router side — open ports: TCP/UDP 5060 (SIP), UDP 10000-20000 (RTP media stream).

Incoming call routing setup

After registering the trunk, configure incoming processing: in what order and to whom to ring. In Bitrix24 this is "Call processing scheme" for each number:

  • Queue — call is distributed among managers in rotation.
  • Simultaneously to all — all phones ring at once, first to pick up answers.
  • IVR — voice menu with transfer to needed department.

Outgoing calls via trunk

By default, outgoing calls from Bitrix24 go through the platform's internal balance. To use your operator's rates, in settings you need to specify: "Outgoing via SIP trunk [trunk name]". Then the call goes through the connected trunk, and the operator charges it according to their rates.

Connecting a ready SIP trunk with credentials from the provider takes 1-2 hours including testing of incoming and outgoing calls.