PlaySilenceAction

View as Markdown

Relay.Calling.PlaySilenceAction

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

Properties

NameTypeDescription
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.

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