Click or drag to resize
TapiCallWaitForSilence Method
Waits until either a period of silence has been detected or the specified time interval has elapsed.

Namespace: Traysoft.AddTapi
Assembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax
public bool WaitForSilence(
	int silenceDurationMilliseconds,
	int timeoutSeconds
)

Parameters

silenceDurationMilliseconds
Type: SystemInt32
Duration of time during which the silence should be present before a detection is made, in milliseconds.
timeoutSeconds
Type: SystemInt32
Timeout period in seconds.

Return Value

Type: Boolean
This method returns true if the silence was detected or false if the silence was not detected within the specified time interval.
Exceptions
ExceptionCondition
TapiDisconnectExceptionThe call has been disconnected while waiting for silence.
Remarks

WaitForSilence detects a specified period of silence on the call. This method can be useful if the application makes outgoing calls and needs to wait until the end of answering machine greetings before playing a message.

Please note that the telephony hardware must support hardware silence detection for this method to work. Regular voice modems do not support silence detection.

See Also