Skip to main content

PlaySilenceAction

Relay.Calling.PlaySilenceAction​

This object represents a silence action that is currently active on a call.

Properties​

callRelay.Calling.CallThis is the call the action is occurring on.

Methods​

Stop()​

Stop the action immediately.

Parameters

None

Returns

StopResult

Examples

Play 10 seconds of silence and then stop.

playSilence, err := resultDial.Call.PlaySilenceAsync(10); 
if err != nil {
signalwire.Log.Error("Error occurred while trying to play silence. Err: %v\n", err)
}
playSilence.Stop()