CSTADLL  2.5.0
Public Types | Public Attributes | List of all members
Constants Class Reference

Public Types

enum  ACSEMessageTypes
 
enum  CallbackInvocationMechanisms
 
enum  CommunicationTypes
 
enum  Encoding
 
enum  PBXModels
 
enum  XMLSessionMessageTypes
 

Public Attributes

const long MAX_LOGFILE_SIZE = (5 * 1024 * 1024)
 

Detailed Description

The Constants class contains some helpful constant and enum definitions.

Member Enumeration Documentation

◆ ACSEMessageTypes

enum ACSEMessageTypes
strong

Provides symbolic names for the ACSE message types.

◆ CallbackInvocationMechanisms

Indicates how an asynchronous callback method should be invoked. This setting influences how the asynchronous callback methods for monitor event report messages, route messages, and Call Detail Record messages are invoked.

The value InvokeCallbackThenPostNextRead causes the callback method to be invoked before the next read from the PBX or UA is posted to the socket. This setting is the default. With this mechanism callback methods can be easily debugged because new packets from the PBX or UA won't be arriving while debugging of the method is in progress. This mechanism also ensures that messages from the PBX or UA will arrive in a predictable order.

The value PostNextReadThenInvokeCallback causes the callback method to be invoked after the next read from the PBX or UA is posted to the socket. Use of this mechanism is necessary if additional synchronous CSTA messages are going to be sent as part of a callback method's processing. If this mechanism is not used in such a case, the response to the CSTA message sent from the callback method will never be seen because no read to the socket was posted. With that said, however, use this mechanism with EXTREME caution. Because the read to the socket is posted before the event is handled, event n+1 may come in and get handled before event n. You may need to add code to ensure that events get handled in an expected order, if such code is even possible for your situation.

◆ CommunicationTypes

enum CommunicationTypes
strong

Provides symbolic names for different ways of communicating with a PBX or UA. The values of this enum influence how each message exchange with a PBX or UA is handled.

◆ Encoding

enum Encoding
strong

Provides symbolic names for the mechanisms for encoding CSTA messages.

◆ PBXModels

enum PBXModels
strong

Provides symbolic names for different PBX models.

◆ XMLSessionMessageTypes

Provides symbolic names for the XML session management message types.

Member Data Documentation

◆ MAX_LOGFILE_SIZE

const long MAX_LOGFILE_SIZE = (5 * 1024 * 1024)

Defines the maximum size, in bytes, that a log file is allowed to grow to before a new log file is opened.