McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 46

↗ View in doc context
page
46
source
cucm/v15/tapi-dev-guide/tapi-dev-guide.md
chunk_id
cucm::v15::tapi-dev-guide::tapi-dev-guide::16

#include <tapi.h>#include <string> #include "StdAfx.h" class TapiLineApp { LINEINITIALIZEEXPARAMS mLineInitializeExParams;//was declared in TAPI.h files HLINEAPP mhLineApp; DWORD mdwNumDevs; DWORD dwAPIVersion = 0x20005 public: // App Initialization // Note hInstance can be NULL // appstr – value can be given the app name "test program" bool TapiLineApp::LineInitializeEx(HINSTANCE hInstance, std::string appStr) { unsigned long lReturn = 0; mLineInitializeExParams.dwTotalSize = sizeof(mLineInitializeExParams); mLineInitializeExParams.dwOptions = LINEINITIALIZEEXOPTION_USEEVENT; lReturn = lineInitializeEx (&mhLineApp, hInstance, NULL, appStr.c_str), &mdwNumDevs,&dwAPIVersion,&LineInitializeExParams); if ( lReturn = = 0 ) { return true; } else { return false; } } //App shutdown bool TapiLineApp::LineShutdown() { return! (lineShutdown (mhLineApp)); } }; Cisco TSP Components The following are Cisco TSP components: • CiscoTSP dll– TAPI service implementation provided by Cisco TSP • CTIQBE over TCP/IP – Cisco protocol used to monitor and control devices and lines • CTI Manager Service – Manages CTI resources and connections to devices. Exposed to 3rd-party applications via Cisco TSP and/or JTAPI API Cisco Media Drivers Cisco Media Driver can be used to play announcements or record the call media. For information about the installation of the Media Drivers, see Cisco Media Driver Selection, on page 116. TAPI Debugging The TAPI browser is a TAPI debugging application. It can be downloaded from the Microsoft MSDN Web site at ftp://ftp.microsoft.com/developr/TAPI/tb20.zip. The TAPI browser can be used to initialize TAPI, for use by TAPI developers to test a TAPI implementation and to verify that the TSP is operational. Cisco Unified TAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs 14 Overview Cisco TSP Components

Page 46 content