Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

XML Bridge

The mission of the XML Bridge is to secure encapsulation and mediation of PBX proprietary interface (message bridge). Secure in the sense that the user application does not work directly with binary structures from which the messages are composed, but is their XML image. It avoids undesirable behavior of the system in case that misspelled external application sends an incorrectly formatted message. XML Bridge also defines a set of messages that may be exchanged between external programs and NetStar. Model user application is schematically illustrated in the following figure.


  A program that connects to the PBX NetStar needs a dynamically linked library NsBridge.dll. It consists of a message-core including message-bridge from XML compiler and the session manager. Library must be initialized after its introduction by calling function InitNsBridge. This function must be called before you use any other library function. Function ExitNsBridge needs to be called before library release in order to do the correct release of non-allocated sources. Value definitions for the functions in NsBridge.dll are located in NsBridge.h.


We will use the TestNsBridge.exe application for the connectivity test. This application can be used as a simulator of your application.

  1. Check the version of NetStar PBX software (version NsBridge.dll must match the version of firmware in all 5 parts, for example:
  2. Check opened ports through NetStar Administrator or via console menu. In the console menu you can find it in: Configuration> Bridges> Display
  3. Choose the port which will be used. For the first connection is recommended to use a port without authorization. This eliminates the need to enter the username and password. For our testing we could open port 6991 without authorization.
  4. Then connect using TestNsBridge.exe with parameter IP address:port
    TestNsBridge.exe 6991 = where is the IP address of the PBX and the 6991 port.
  5. If you would like to use port with authorization, you need to enter username and password (see. Chapter 5)
  6. You are now connected to the PBX NetStar and you can use all the commands that can be found in the document: Example.xml
  7. All documents can be found in folder
    C:\Program Files\2N Telecommunications a.s\NETSTAR\Administrator X.X.X\CTI_Interface\. . .

Connecting with TestNsBridge.exe to port without required authorization

Through NetStar Administrator or through console menu check opened ports and set one port, which does not require authorization.


XML bridge connectivity to the target system is performed by BIND command. If the connection goes via unprotected channel, the connection is built and ready to use when this answer is received:

<bind Status="OK"/>.

Connecting with TestNsBridge.exe to port with required authorization

Every NetStar PBX has port 6992 opened with authorization required by default. We can choose port 6992 to connect application TestNsBridge.exe or create new port with authorization required. In our case we will open port 6993 which will require authorization. Again there are two choices how to do it:


Connection is now built and ready to use.


CTI module is primarily used for retrieving stations, users, monitoring of users and calls in PBX and last but not least to actively control the PBX and to receive and send messages.

Examples of CTI functions use:

There are more examples of its use that are located in the document CTI doc_XML_bridge_1_20_en.pdf