myContactCenterManual

Workstations outside the company network

How the Agent, Administration and Wallboard work through the Tunnel with only one open port — what you set up on the server, what on the workstations, and how voice runs through the Tunnel.

Workstations that cannot reach the company network directly — for example when working from home — connect through the Tunnel. The myContactCenter Tunnel service on the server computer accepts all connections of a workstation on a single TCP port: messages to the server and Dispatcher, log messages, the data for reports and, for the Agent, also voice. The connection is encrypted with TLS; the workstations do not need a VPN.

On the server

The Tunnel is installed with the Server package and set up by the Server Configurator with the service account of the server — see Setting up the server. It listens on TCP port 6100; the package opens this port in Windows Firewall.

  1. Make port 6100 of the server reachable from the internet, for example with port forwarding on your firewall.
  2. If the Dispatcher, Logger, SQL Server or a standby server run on computers other than the Tunnel, enter these computers in the settings file of the Tunnel, under AllowedDatabaseHosts — see below. Otherwise, the Tunnel only forwards to its own computer.
  3. Distribute the access key to the workstations — see Distributing the access key.

At its first start, the Tunnel generates an access key and stores it in its settings file under Token. It rejects programs without this key.

The certificate for the Tunnel is obtained by the myContactCenter Certificates service — see Certificates. The Tunnel adopts it by itself, including every renewed one, without a restart and without disconnecting existing connections. At the workstations, enter a name that is in the certificate as the Tunnel host. The Tunnel and the certificate service both run under the service account of the server; the Server Configurator gives it access to the certificates folder.

As long as there is no valid certificate from Let’s Encrypt, the Tunnel works with the self-issued fallback certificate of the certificate service, %ProgramData%\ilogixx GmbH\myContactCenter\Certificates\certificate-selfsigned.pfx — the same one that the Web Gateway then uses as well. The certificate service renews it in good time and keeps its key. In the first seconds after a new installation, before it has been created, the Tunnel rejects connections.

The Tunnel takes the phone system and its SIP ports from the PBX tab of the server configuration. It asks the server for them every minute and reconfigures itself if something changes.

Whether the Tunnel is running and how many connections it holds is shown by Status of services.

The settings file of the Tunnel

The file is located under %ProgramData%\ilogixx GmbH\myContactCenter\Tunnel\appsettings.json. At its first start, the Tunnel adopts the file of earlier versions from %ProgramData%\ilogixx\myContactCenter\Tunnel once; an existing file at the new location remains unchanged. Its entries are in the Tunnel section. You don’t need to change most of them:

Entry Default Effect
Port 6100 the TCP port of the Tunnel. If you change it, also adjust the firewall and enter the port at the workstations in the Tunnel section under Port.
Token generated at the first start the access key of the workstations
AcceptBootstrapToken false admits workstations without an access key so that they can fetch it — see below
AllowedDatabaseHosts empty further computers that the Tunnel may reach, as a list of names or addresses — exactly as the registration points, server configuration and Server Configurator name them
CertificatePath empty a PFX file of your own without a password. If empty, the Tunnel uses the certificate from Let’s Encrypt or the fallback certificate of the certificate service.
MediaPortMin, MediaPortMax 16384, 32768 the UDP ports on the Tunnel computer through which it exchanges voice with the phone system
MediaPublicAddress empty the address that the Tunnel gives the phone system for voice; if empty, its own
SipRelayPort 0 the TCP port that the Tunnel gives the phone system for the agents. 0 uses a different port at every start; if there is a firewall between the Tunnel and the phone system, set a fixed port and open it.
SipTlsCertificatePins empty for SIP over TLS to a phone system with a self-issued certificate: per phone system, its name and the thumbprint of its certificate

If the Tunnel should also reach a SQL Server on another computer, the file contains something like:

{
  "Tunnel": {
    "Port": 6100,
    "AllowedDatabaseHosts": [ "cc-sql01" ]
  }
}

Change the file while the service is stopped. Your changes only take effect after the service has been restarted. Back up appsettings.json together with the Certificates folder: they contain the access key and certificates of the Tunnel.

On the workstations

Enter the address under which the Tunnel can be reached from the internet as the Tunnel host:

Program Where
Agent in the Set registration points dialog or under Settings › Special settings — see The connection to the server
Administration in the Connect to server dialog; the entry applies to all servers of this Administration — see Adding a server
Wallboard only in its settings file, in the Tunnel section under Host

The settings file of the Wallboard then contains something like:

{
  "RegistrationPoints": [ "cc-dispatcher1" ],
  "Tunnel": { "Host": "cc.example.com" }
}

If a Tunnel host is entered, the program first tries each connection directly and uses the Tunnel if the destination cannot be reached that way. In the office, it therefore keeps working directly. If a workstation should always use the Tunnel, set the Mode entry in the Tunnel section of its settings file to TunnelOnly. A program applies a changed Tunnel host at its next connection to the server.

Distributing the access key

Copy the value of Token from the settings file of the Tunnel to the settings file of each program, into the Tunnel section. Close the program first.

{
  "Tunnel": {
    "Host": "cc.example.com",
    "Token": "<value of Token from the settings file of the Tunnel>"
  }
}

For the Agent and the Administration, you can write the section to the file in the program folder. The program adopts it at a user’s first start — see Defaults for all users.

The programs check a certificate from Let’s Encrypt by themselves. They reject the fallback certificate unless its thumbprint is in the Tunnel section under CertificateThumbprint, without spaces. On the server, the thumbprint is shown by certutil -dump "%ProgramData%\ilogixx GmbH\myContactCenter\Certificates\certificate-selfsigned.pfx" (leave the password empty). After the first login, the program replaces the entry by itself with a hash of the key (sha256/…); it remains valid when the certificate service renews the fallback certificate. If the Tunnel changes to a certificate from Let’s Encrypt, the programs accept it even if the entry is still there.

Instead of being given the key by hand, the programs can also fetch it themselves if the Tunnel has a certificate they trust:

  1. In the settings file of the Tunnel, set AcceptBootstrapToken to true and restart the service.
  2. Start the programs at the workstations with the Tunnel host entered. They receive the key at the first connection and save it.
  3. Set AcceptBootstrapToken back to false and restart the service.

Voice through the Tunnel

If the Agent’s connection to the server runs through the Tunnel, its softphone also makes calls through it: the Tunnel passes the softphone’s registration on to the phone system and forwards the voice in both directions. If the Agent connects directly, the softphone also registers directly on the phone system.

Without the Tunnel

Without the Tunnel, workstations outside the company network need a VPN or direct access to all ports from Ports and connections. If they reach the server under a different name than in the company network, enter this name as the alternative name — see Names and addresses.

    ↑ ↓ select · Enter open · Esc close