TELCASilenceDetect
Activates or deactivates silence detection on a call appearance.
pascal TELErr TELCASilenceDetect ( TELCAHandle hTELCA, Boolean DetectOn, long Period);
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).DetectOn- A Boolean value. Set this parameter to
trueif you want to activate silence detection for the call appearance referenced byhTELCA. Set it tofalseto deactivate silence detection.Period- The duration of silence on the telephone line, in seconds, that qualifies as silence detection. You need to provide this value only when you activate silence detection (
DetectOnistrue).- function result
- A result code. If you call
TELCASilenceDetectto activate silence detection and silence detection is already active, the function returns thetelDetAlreadyOnresult code.DESCRIPTION
TheTELCASilenceDetectfunction activates or deactivates silence detection for the call appearance specified by thehTELCAparameter, according to the value of theDetectOnparameter. After you callTELCASilenceDetectto activate silence detection, the telephone tool listens for silence on the line. If the line is silent for the number of seconds specified by thePeriodparameter, silence is deemed to have been detected. As a result, your call appearance message handler gets atelCASilenceDetectedMsgmessage.Silence detection is not a continuous process. Once silence is detected, silence detection is automatically deactivated--the tool ceases to listen for silence. You get at most only one
telCASilenceDetectedMsgmessage each time you callTELCASilenceDetectto activate silence detection. To detect another silent period, callTELCASilenceDetectagain after getting atelCASilenceDetectedMsgmessage.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help