SMARTBuilder™ CTI DEVELOPMENT TOOL                                                                                   The SMARTest™ Way to Build Lower Cost, High Performance CTI Applications

Below is the Code that you would write in the C programming language:
C’ Code in TSAPI
ATTPrivateData_t ATTData;
ATTEvent_t ATTEventBuffer;
InvokeIDType_t invokeIDType;
StreamType_t streamType;
Version_t apiVer;
AppName_t applicationName;
Level_t acsLevelReq;
unsigned short sendQSize;
unsigned short sendExtraBufs;
unsigned short recvQSize;
unsigned short recvExtraBufs;
unsigned short numEvents;
unsigned short eventBufferSize= sizeof(ATTEvent_t);
invokeIDType=LIB_GEN_ID;
invokeID=0;
streamType=ST_CSTA;
acsLevelReq=ACS_LEVEL1;
strcpy(applicationName,ApplicationName);
strcpy(apiVer,CSTA_API_VERSION);
sendQSize=sendExtraBufs=recvQSize=recvExtraBufs=15;
strcpy(LocalATTData.vendor, "VERSION");
LocalATTData.data[0] = PRIVATE_DATA_ENCODING;
sprintf(&LocalATTData.data[1], "%s#%s",
ATT_VENDOR_STRING, "2-6");
LocalATTData.length = strlen(&LocalATTData.data[1]) + 2;
rCode=acsOpenStream(&acsHandle,invokeIDType,invokeID,streamType,
(ServerID_t *)ServerName,(LoginID_t *)UserID,(Passwd_t*)Password,&applicationName,acsLevelReq,
&apiVer,sendQSize,sendExtraBufs,recvQSize,recvExtraBufs,(PrivateData_t*)&LocalATTData);

The Above Code can be reduced to the code below using ‘VB’ Code with SmartBuilder:
ACSHandle = frmSmartVDNMonitor.SBTSAPI1.OpenStream(MyServerName, "ctiuser", "phone", "SmartVDNMonitor")
If ACSHandle < 1 Then
WriteError ("Open Stream Failed to: " & MyServerName)
Exit Sub
End If
rCode = frmSmartVDNMonitor.SBTSAPI1.MonitorDevice(ACSHandle, gDeviceID(gCounter), &H0, &H0, &H0, &H0, 0)
If rCode = False Then
WriteError ("Error monitoring port#" & gDeviceID(gCounter))
End If
rCode = frmSmartVDNMonitor.SBTSAPI1.MakeCall(ACSHandle,gDeviceID,sNumberToDial, "", 0, sUUIData)
if rCode = False then
WriteError("MakeCall failed from " & gDeviceID & "to " & sNumberToDial)
End If

 Got An Eye For CTI?
Interested in building your own CTI based inbound call routing applications? SupportFirst provides one of the most powerful CTI application development tools in the industry—SmartBuilder™. Using SmartBuilder, application developers can quickly and easily create powerful custom CTI applications.

Get A CATScan™                and Improve Your ROI                Does an automated inbound call routing make sense for your operation? SupportFirst’s consulting services and/or CATScan™ Analysis can help you determine the ROI and impact on your 1, 2, and 3-year operating budget of this solution and other technology implementations.