Table of Contents

Voip PBX & Doorcom

Every Thinknx server embeds a software VOIP telephony PBX. It is optimized for the VOIP functionalities between clients and for door communication. This object allows to configure the PBX (extensions, ring groups and door stations).

The diagram below gives a general overview on the configuration when using a Thinknx server as a VoIP PBX.

Thinknx server used as a VoIP PBX

Thinknx server used as a VoIP PBX

When using an external VoIP PBX, there is no need to add the object “VoIP PBX” in System. All the extensions are configured on the external PBX. It is only essential to create one user per extension in “Sytem”–>“Users and Groups”, and disable the “System PBX” parameter in order to enter the correct settings for the user.

Adding PBX accounts

Click on the button displayed on the right to open the PBX users editor window, then click on ”Add” and adjust the properties in the grid:

Adding ring groups

Click on the button displayed on the right to open the ring groups editor window, then click on ”Add” and adjust the properties in the grid:

co

Adding intercom devices

Click on the button displayed on the right to open the intercom devices editor, click on ”Add” and adjust the properties in the grid:

Integration example: 2N IP

The intercom used in this example is the 2N IP Helios, an SIP Door Station solution with an integrated video camera for monitoring door activity, however, the same concept can be applicable to the other products within the same 2N series. The below configuration was applied to 2N firmware version 2.10.0 (2015), where the following features are supported:

Preliminary Requirements

The 2N IP door station has to be connected to the ethernet using a CAT5 cable and it has to be in the same network to which Thinknx server is attached. Also the clients have to be connected to the same network. Special network configuration is possible using the needed routing/firewalling devices.

Voip PBX setup

Add the Voip PBX object and configure as follow:

2N IP setup

Enter the IP Address of the door station into a Web Browser. You will be taken to the login page for the Door Station. Log in to the Door Station. By default, the user name is Admin and the password is 2n. You will be taken to the Configuration Utility:

Select the “Services” Icon on the left to access the Services screen. Then select the Phone option:

On the SIP 1 Tab→ Intercom Identity

  1. Set the Phone Number. This is actually the “ID” with which the device will populate in the Thinknx SIP server (901)
  2. Set the Domain to the IP Address of Thinknx server

On the SIP 1 Tab→ Authentication

  1. Check the Use Authentication ID box
  2. Set the Authentication ID to the ID of the device inside the Thinknx SIP server (901)
  3. Set the Password with the same number of the ID (901)

On the SIP 1 Tab→ SIP Proxy

  1. Set the Proxy Address to the IP Address of Thinknx server
  2. Ensure the Proxy Port is set to 5060

On the SIP 1 Tab→ SIP Registrar

  1. Check the Registration Enabled box
  2. Set the Registrar Address to the IP Address of Thinknx server
  3. Ensure the Registrar Port is set to 5060
  4. Leave the Registration Expires time set to default

On the Audio Tab

  1. Uncheck G.722
  2. Make G.711 (PCMU) the first choice

On the HTTP API option:

  1. Select “No authentication” for the camera image service

Select the “Directory” Icon on the left to access the Users screen

On the User 1 (button 1) tab:

  1. Check the “Position Enabled” box
  2. Under User Basic Information→ Name, type any name you like. The E-Mail field may be left blank
  3. Under User Phone Numbers→ Number 1→ Phone Number type sip:9001@x.x.x.x, where “x.x.x.x” is the IP Address of the Thinknx Server and 9001 is the extension number to call (ring group in this case).
  4. All other fields on this screen may be left blank

To be able to see the images coming from the device you need to add a Camera inside Thinknx UI and configure to grab images using the following parameters:

  1. Type: Generic Camera
  2. Use RTSP : Disabled
  3. Image Path : api/camera/snapshot?width=640&height=480
  4. Fill the other fields like IP addresses and credentials as for any other normal camera.

To be able to open the Lock connected to the 2N device you have two options: to send DTMF tones during conversation or to send html GET messages to the device. If you want to use DTMF tones, it will be enough to create a Generic Buttom into the UI and select as action the generation of DTMF tone as in the following picture. DTMF code must be the same inserted into the 2N configuration page followed by * (in the example 1234*).

If you prefer to use html GET solution, you need to use the Thinknx Ethernet Gateway plugin and configure a Generic Button to perform an action with the following parameters:

  1. Command: Make http GET call to a specified url with username and password
  2. URL : http://IP_of_2N_DEVICE/api/switch/ctrl?switch=1&action=on
  3. Username : username used to authenticate with 2N station
  4. Password : password used to authenticate with 2N station

This method require additional licenses from 2N to enable the Switch API. The API should be available on HTTP also (Not HTTPS only).

Integration example: Doorbird D10x, D20x

The DoorBird D10x and D20x Door Stations are SIP Door Station solution with an integrated video camera for monitoring door activity.
For proper connection between Doorbird door stations and Thinknx PBX, refer to the step-by-step user guide created by Doorbird wich can be found on their website, or follow the instructions below.

The following features are supported:

Preliminary Requirements

The DoorBird door station has to be connected in the same network to which Thinknx server is attached. Also the clients have to be connected to the same network. Special network configuration is possible using the needed routing/firewalling devices.

Voip PBX setup

Add the Voip PBX object and configure as follow:

Doorbird setup

Enter the following url into a web browser to configure the SIP part of the doorbird device:

http://x.x.x.x/bha-api/sip.html

where x.x.x.x is the local ip of the Doorbird doorstation. To get the ip address, in case you don't know it, you can use the utility reachable from the following address: http://www.doorbird.com/checkonline and inserting the required data.

Referring to the image:

  1. Set SIP to enabled
  2. Set SIP Proxe to the IP Address of Thinknx server
  3. Set the SIP User to the ID of the device inside the Thinknx SIP server (901)
  4. Set the SIP Password with the same number of the ID (901)
  5. Set the Autocall doorbell as sip:9001@x.x.x.x, where “x.x.x.x” is the IP Address of the Thinknx Server and 9001 is the extension number to call (ring group in this case).
  6. Set DTMF to enabled to be able to open the lock using DTMF codes
  7. Finally, make sure that the Thinknx account is allowed to make calls by selecting all the days of the week in the schedule as seen in the picture below.

The same procedure can be done using the DoorBird app into the dedicated SIP configuration section, or by accessing their portal on https://webadmin.doorbird.com/login.

To be able to see the images coming from the device you need to add a Camera inside Thinknx UI and configure to grab images using the following parameters:

  1. Type: Generic Camera
  2. Use RTSP : Disabled
  3. Image Path : bha-api/image.cgi
  4. Fill the other fields like IP addresses and credentials as for any other normal camera.

To be able to open the Lock connected to the Doorbird device you have two options: to send DTMF tones during conversation or to send html GET messages to the device. If you wnat to use DTMF tones, it will be enough to create a Generic Buttom into the UI and select as action the generation of DTMF tone as in the following picture. DTMF code must be the same inserted into the Doorbird configuration page followed by * (in the example 1234*).

If you prefer to use html GET solution, you need to use the Thinknx Ethernet Gateway plugin and configure a Generic Button to perform an action with the following parameters:

  1. Command: Make http GET call to a specified url with username and password
  2. URL : http://IP_of_DOORBIRD/bha-api/open-door.cgi
  3. Username : username used to authenticate with Doorbird station
  4. Password : password used to authenticate with Doorbird station

Integration example: Mobotix T25 doorstation

The Mobotix T25 is a SIP door station solution with an integrated video camera for monitoring door activity. Below are the settings to apply to the Mobotix T25 to work properly with Thinknx PBX. The following features are supported:

Preliminary Requirements

The Mobotix T25 has to be connected to the ethernet using a CAT5 cable and it has to be in the same network to which Thinknx server is connected. Also, the clients have to be connected to the same network. Special network configuration is possible using the needed routing/firewalling devices.

Voip PBX setup

Add the Voip PBX object and configure as follow:

Mobotix T25 setup

Enter the IP Address of the door station into your web browser and login using your admin username and password. You will be redirected to the live page of the camera with a main menu to the left.

Press the “Admin Menu” button to access the administration settings.

Scroll down through the list to reach the section called “Audio and VoIP Telephony.

SIP Server

Click on “SIP Server Settings”. Once inside the page, make sure that the internal SIP Server of Mobotix is OFF. We will not need to activate this since the SIP server used will be the Thinknx server.

SIP Clients

Go back to the Audio and VoIP Telephony, and click on the SIP Client Settings. Here we need to configure the Mobotix as a SIP client so it can communicate with Thinknx client devices.

Scroll down through the settings till you reach the Audio Codec Settings.

Make sure that you enable “Use PCMA Codec” and “Use PCMU Codec”, and disable “Use G.722 Codec”.

If you are unable to view the parameters above, make sure that you scroll down to the “Setup Mode” and select “Expert Setup”.

Configure Outgoing Calls

Access the “Outgoing Call Settings” from the Audio and VoIP Telephony menu. We will need to create the accounts that the Mobotix will try to call once the intercom button is pressed. Since our accounts have been added to a group call from inside the configurator, then we will only need to create an entry for extension 9001.

To create the profile, click on “Add new profile”.

Add the extension 9001 as Phone Number or SIP Address. Under “SIP Proxy”, select the option whith the following template “IP_Thinknx_Server(9001@IP_Thinknx_Server)”.

For “Connection type”, choose “SIP Audio”.

For the option “After the message has been sent” choose “intercom”.

Click on Set to save the settings.

Configure Intercom Button

The final step to be able to make a call from the intercom would be to configure the button on the Mobotix. To do that, close the “Admin menu” and instead access the “Setup Menu” from the live interface.

Once inside, look for “Event Control” and click on “Action Group Overview”.

Click on “Add new group” to create a new entry and name it “Button” or “Bell Button”.

Click on Edit to configure the newly created entry.

Under “Event Selection”, select “Signal:CameraBellButton”. This will trigger the call when the Bell button on the intercom unit is pressed.

Under Actions, click on “Add new action” and select the action “Phone Call: call_1”. This will allow you to call the extension configured in the Outgoing Call.

It is recommended to tune the microphone and speaker volume on the Mobotix intercom for a good quality call. This can be done by going to the Admin Menu and clicking on “Speaker and Microphone” under “Audio and VoIP Telephony”.

Once the configuration is completed, do not forget to store the settings on the Mobotix device. This can be done by going to the Admin Menu and scrolling down to the bottom where you will see the option “Store”. A reboot will need to take place after storing.

Integration example: Fermax Milo Panel

The information below is extracted from a more detailed guide available on Fermax:

https://meet.fermax.com/wp-content/uploads/2022/07/CASE-STUDY-TEC-THINKNX_EN-ANDROID-4.pdf

Voip PBX setup

Add the Voip PBX object and configure as follow:

Configuring Milo Panel

On your Milo Panel webpage, access Web server > General > Configure MEET P2P call (Block = 1; Apart. = 101)

Open SIP > Register the ThinKNX Micro server as your panel's SIP server with extension 901.

Access SIP Call and configure your Apartment 101 to call group 9001 on the SIP Thinknx server.

Camera Configuration

In a new page on your interface, add the object “Camera”. Set the parameters as seen in the picture below:

Door Opening

In the same page created earlier, add the object “Generic command” and configure the command to send a DTMF tone during the call. Write down the DTMF number or combination of numbers configured on your Fermax intercom to activate the door opener. They can be numeric characters and special characters such as # or *.