TELCAVoiceDetect
Activates or deactivates voice detection on a call appearance.
pascal TELErr TELCAVoiceDetect ( TELCAHandle hTELCA, Boolean VoiceDetectOn);
hTELCA- A handle you provide to the call appearance structure for the call appearance of interest. You can get the handle from the
TELSetupCallfunction (page 4-24).VoiceDetectOn- A Boolean value. Set this parameter to
trueif you want to activate voice detection for the call appearance referenced byhTELCA. Set it tofalseto deactivate voice detection.- function result
- A result code.
DESCRIPTION
TheTELCAVoiceDetectfunction activates or deactivates voice detection for the call appearance specified by thehTELCAparameter, according to the value of theVoiceDetectOnparameter. Positive voice detection indicates that the call has been answered on the remote side.If you call the
TELCAVoiceDetectfunction to activate voice detection, your call appearance message handler gets atelCAVoiceDetectedMsgmessage when voice is detected on the line. Note, however, that voice detection is not a continuous process; as a result, you get at most only onetelCAVoiceDetectedMsgmessage each time you callTELCAVoiceDetectto activate voice detection.Typically, you call this function after calling
TELConnect(page 4-27) orTELDialDigits(page 4-28) so that your application can smoothly handle the case in which no ring tone is received before the remote party answers the call.