Returns the number of milliseconds of silence detected on the voice resource over the specified interval of time.
[Visual Basic] Public Shared Function MonitorSilence( _ ByVal chdev As Integer, _ ByVal cmd As Integer, _ ByVal maxtime As Integer _ ) As Integer
[C#] public static int MonitorSilence( intchdev, intcmd, intmaxtime );
Parameters
chdev
The channel device handle.
cmd
1 To Enable the Silence Events on the Channel. You should do this before the dial, as a small tone is played to cause the the first event to fire. If you need to initialize after the call is placed, and you don't want a user to hear the tone, route the resource away from the channel, initialize and then route the resource back. 2 to monitor for the silence, and 3 to disable the events.
maxtime
The amount of time to monitor for silence in milliseconds. Use a negative value to aggregate values between sucessive calls to the function.
Return Value
The number of milliseconds of silence detected during the interval. Or total milliseconds of silence if aggregating.