contents.gifindex.gifprev1.gifnext1.gif

ActiveAG constants

ActiveAG defines a number of constants in the file AagCons.h. This is a C-language header file, intended for use by C++ deveopers. There is no Pascal version for Delphi.

Visual Basic developers will find that these values have been enumerated within the control, so external definiton isnt needed. Nonetheless, all ActiveAG developers should be familiar with these constants and their meanings.

Asynchronous completion constants

All developers will use this set of constants. These define the values that can be sent with the AsyncCmdDone event to indicate which command completed.

AagConPlayVoice PlayVoiceAsync method completed.

AagConRecordVoice RecordVoiceAsync method completed.

AagConGetTones GetTouchTonesAsync method completed.

AagConPlayNumber PlayNumberAsync method completed.

AagConPlayMoney PlayMoneyAsync method completed.

AagConPlayDate PlayDateAsync method completed.

AagConPlayTime PlayTimeAsync method completed.

AagConPlaceCall PlaceCallAsync method completed.

AagConDial DialAsync method completed.

AagConPlayPrompt PlayPromptAsync method completed.

AagConPlayMsgList PlayVoxMsgListAsync method completed.

Voice format constants

Another set of constants is that which defines the voice (and prompt) data formats. These should be used when setting the values of the PromptVoiceFormat property and the VoiceFormat property.

AagConWAVE16Voice Voice data is 16-bit mono PCM at 11kHz

AagConWAVE8Voice Voice data is 8-bit mono PCM at 11kHz

AagConNMS16Voice Voice data is VCE at 16 kilobits per second.

AagConNMS24Voice Voice data is VCE at 24 kilobits per second.

AagConNMS32Voice Voice data is VCE at 32 kilobits per second.

AagConNMS64Voice Voice data is VCE at 64 kilobits per second.

Completion code constants

This set of contants defines what can be contained in the CompletionCode property after calling ActiveAG methods. See the discussion in the Completion and Error handling topic.

AagConSignal Out-of-band signaling detection of remote answer

AagConVoiceBegin Voice was detected

AagConVoiceMedium Voice lasted for a specified (medium) duration

AagConVoiceLong Voice lasted for a specified (long) duration

AagConVoiceExtended Voice lasted for a specified (extended) duration

AagConVoiceEnd Silence detected after voice detected

AagConTimeout Many methods use this to indicate their function timed out

AagConRingQuit Ring tone was detected but then stopped; nothing else detected

AagConCED Fax terminal tone or modem tone was detected

AagConDialtoneDetected Detected dial tone while performing call analysis

AagConSITDetected Detected special information tone (SIT)

AagConProceeding Application forced connect after delivering digits to switch

AagConDigit Digit/terminating digit detected

AagConNoVoice No voice detected by record

AagConStopped Asynchronous method stopped with Stop method

Aag_ConRecognition Recognition event detected (with ASR future)

Aag_ConCNG "FaxCalling" detected CNG tone

Aag_ConPlayDone "FaxCalling" play finished