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
  • Step 1: Publish HTTPS port on the external IP
  • Step 2: Write a record in DNS for the external address where the module is published
  • Step 3. Issue SSL certificate
  • Step 4: Specify the path to the certificate in the module
  • Step 5. Specify the address of the web sockets to where you want them to go
  • Configuration for Nginx
  • Configuration for Apache

Was this helpful?

  1. For admins

Examples of configuring WSS connections

PreviousCustom SSL certificates for https requestsNextConverting recordings to MP3 before sending to Bitrix24

Last updated 7 months ago

Was this helpful?

Step 1: Publish HTTPS port on the external IP

Note: If the module is behind NAT, the settings should be made on the corresponding proxying device.

Settings for FreePBX with an external address:

By default (if the Firewall module is enabled) FreePBX blocks all ports unknown to it. Let's add the necessary ones in the firewall settings:

example of a link to the corresponding menu item:

Step 2: Write a record in DNS for the external address where the module is published

As a rule, it is done through the personal cabinet of the provider that serves the client's domain.

Step 3. Issue SSL certificate

If the client already has a certificate, then copy the files (the certificate itself, the key) to the server with the module. If there is no certificate, then issue it (there are many solutions here).

Step 4: Specify the path to the certificate in the module

Save the settings.

Step 5. Specify the address of the web sockets to where you want them to go

When a certificate is reissued, the service must be restarted for the module to load the updated certificate files.

This example shows how to set up a WSS connection using Nginx or Apache

Configuration for Nginx

  1. Open the Nginx configuration file:

nano /etc/nginx/nginx.conf
  1. Add configuration for WSS:

server {
    listen 443 ssl;
    server_name your_domain.com;

    ssl_certificate /etc/nginx/ssl/server.crt;   # Or the path to your SSL certificate from Let's Encrypt
    ssl_certificate_key /etc/nginx/ssl/server.key;

    location /ws/ {
        proxy_pass wss://freepbx.example.com:8078;   # The address of your WebSocket server
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 86400;
        proxy_set_header Origin "";
    }
}
  1. Check the configuration and restart Nginx:

nginx -t
systemctl restart nginx

Configuration for Apache

  1. Open the Apache configuration file:

nano /etc/httpd/conf.d/ssl.conf
  1. Add or modify a configuration block for the WSS:

<VirtualHost *:443>
    ServerName your_domain.com

    SSLEngine on
    SSLCertificateFile /etc/httpd/ssl/server.crt   # Or the path to your SSL certificate from Let's Encrypt
    SSLCertificateKeyFile /etc/httpd/ssl/server.key

    <Location /ws/>
        ProxyPass "wss://freepbx.example.com:8078/"   # The address of your WebSocket server
        ProxyPassReverse "wss://freepbx.example.com:8078/"
        ProxyPreserveHost On
        RequestHeader set Connection "upgrade"
        RequestHeader set Upgrade "websocket"
    </Location>
</VirtualHost>
  1. Restart Apache:

systemctl restart httpd

Option to issue a free certificate through FreePBX:

A reference of the form

https://freepbx.example.com/admin/config.php?display=certman
wss://freepbx.example.com:8078/…
https://freepbx.example.com/admin/config.php?display=firewall