CTI Client events (C++ CTI API)

WM_CTI_NETWORK_DISPATCH

Contents  Back  Next

CTI message sent.

 

Message WM_CTI_NETWORK_DISPATCH ( WM_USER + 21 )

WPARAM

Contains the size of the structure sent.

 

LPARAM

Pointer to a CTI_COMMAND_MSG or CTI_PHONE_DATA structure.

 

Remarks

Almost all CTI events arrive in these structures. The interpretation depends on the m_dwCommand parameter, which is located at the same position in both structures. LPARAM should first be cast to LP_CTI_COMMAND_MSG in order to interpret m_dwCommand. The possible values of m_dwCommand are listed in the table below:

 

Parameter

Value

Description

Interpretation of LPARAM

CTI_LOGIN

0x00011001

Successful log-on

LP_CTI_COMMAND_MSG

CTI_CALLNUMBER

0x00012001

Telephone number sent

LP_CTI_COMMAND_MSG

CTI_FORWARDINGSTATE

0x00012004

Notification of call forwarding

LP_CTI_COMMAND_MSG

CTI_OBJECTOFREDIRECT

0x00012006

Notification of call forwarding destination

LP_CTI_COMMAND_MSG

CTI_PROTOCOLDATA

0x0001200B

Call data records sent

LP_CTI_PHONE_DATA

CTI_CALLREMINDER

0x0001200C

Call reminder sent

LP_CTI_PHONE_DATA

CTI_IDENTITY

0x0001200D

Telephone number identification

LP_CTI_COMMAND_MSG

CTI_LICENSEINFO

0x0001300E

Licence information

LP_CTI_COMMAND_MSG

CTI_SENDUSERSTATE

0x00012011

Status of group member

LP_CTI_COMMAND_MSG

CTI_CONFNOTIFY

0x00012014

Joining conference

LP_CTI_COMMAND_MSG

CTI_SENDADDRESS

0x00012016

MSN or address of call

LP_CTI_COMMAND_MSG

CTI_SERVICEPAUSE

0x00013001

CTI server is taking a break

LP_CTI_COMMAND_MSG

CTI_CLIENTCLOSE

0x00013002

Client stop and restart

LP_CTI_COMMAND_MSG

CTI_SERVERMESSAGE

0x00013003

Message from the administrator

LP_CTI_COMMAND_MSG

CTI_INVALIDSTRINGFORMAT

0x00013004

Character widths differ

LP_CTI_COMMAND_MSG

CTI_USERTOUSER

0x00013005

Messages between users

LP_CTI_COMMAND_MSG

CTI_DATABASETOUSER

0x00013007

Messages from server interface

LP_CTI_COMMAND_MSG

CTI_GROUPMEMBER

0x00013008

Group list

LP_CTI_COMMAND_MSG

CTI_CHATSTART

0x0001300A

Chat session start

LP_CTI_COMMAND_MSG

CTI_CHATSTOP

0x0001300B

Chat session end

LP_CTI_COMMAND_MSG

CTI_CHATMESSAGE

0x0001300C

Chat message sent

LP_CTI_COMMAND_MSG

CTI_LOCALEINFO

0x0001300D

Switch parameter

LP_CTI_COMMAND_MSG

CTI_CALLSTATE

0x00030002

Status of own calls

LP_CTI_COMMAND_MSG

SQL_LOGIN

0x00040001

SQL log-on success

LP_CTI_COMMAND_MSG

SQL_DATA

0x00040002

Data records

LP_CTI_COMMAND_MSG

SQL_END

0x00040004

Query terminated

LP_CTI_COMMAND_MSG

SQL_DBBOOK

0x00040006

Telephone numbers from database

LP_CTI_COMMAND_MSG

 

Example

SQL sample

Simply CTI client (C++)

 

See also

Events overview

 


Send feedback to TAPIMaster®

© 2020 Tino Kasubke. All rights reserved.