This page was last edited on July 26, 2016, at 21:31.
Comments or questions about this documentation? Contact us for support!
The easiest way to start using the SIP Endpoint SDK is with the bundled QuickStart application. This application ships in the SDK folder and is supplied as both an executable and as source code in the form of a Visual Studio project. You will need to enter environmental information in an XML configuration file before you can execute the application. After doing that, you can build and run the QuickStart application right away.
Find either the <SIP Endpoint SDK Folder>\QuickStartExe folder or the <SIP Endpoint SDK Folder>\QuickStart\\QuickStartWinFormVS9 folder and open the SipEndpoint.config file. The first few lines of the file look like this:
<?xml version="1.0" encoding="utf-8" ?> <SipEndpoint xmlns="http://schemas.genesyslab.com/2009/sipendpoint"> <Container name ="Basic"> <Connectivity user ="8042" server="SEPSDK01.us.int.genesyslab.com:5060" protocol="udp"/> </Container> <Container name ="Genesys"> ...
The first Container element is called "Basic," as you can see, and contains elements that you must supply values for. Otherwise, the QuickStart application will not work. Here are the things you need to do:
The Configuration page includes information on how to configure various settings, including RTP port ranges, QoS bits, diagnostics and endpoint DNs. These additional configuration options are not required to run the SIP Endpoint QuickStart application, but allow you to customize useful features for the created endpoints.
To run the QuickStart application, you can either run the executable version by carrying out these steps:
Or you can build and run the Visual Studio project:
The QuickStart application demonstrates how to use the IEndpoint interface, which you should use in your own applications. As shown in the following code snippet from the QuickStart application, you use the CreateSipEndpoint method of the EndpointFactory class to create the endpoint:
[C#] IEndpoint endpoint; endpoint = EndpointFactory.CreateSipEndpoint(logger);
Note: Because the CreateSipEndpoint method creates a singleton, creation of more than one endpoint instance is not supported by Genesys. Other than that, most of the QuickStart application involves reading configuration values and updating the status of the endpoint. The real work is done by the T-Lib code that will reside elsewhere in your application.