Platform SDK: Web Telephony Engine

Getting the Active Connection

In normal mode, when the WTE service starts, it opens all the lines that are connected to an application. In debug-extension mode, the WTE service does not open any lines when starting. That is, it does not answer any of its applications.

To activate an application when in debug extension mode, call the GetActiveConnection function, specifying the application name. GetActiveConnection returns the WTEActiveConnection object.

The GetActiveConnection function can be called any number of times on each application, regardless of the number of lines connected to the application. A different WTEActiveConnection object is created on every call. Only one ActiveConnection object handles each incoming call, in random order.