ICallRunWithMedia Method

Checks availability of the media channel and optionaly run specified action if media (becomes) ready
script should use this method only when executed in Active mode.

Definition

Namespace: CallFlow
Assembly: 3CX.CallFlow (in 3CX.CallFlow.dll) Version: 20.0.1
C#
bool RunWithMedia(
	Action MediaReadyHandler
)

Parameters

MediaReadyHandler  Action
Called if (when) media is (becomes) ready.

Return Value

Boolean
true - MediaReadyHandler completed. false - MediaReadyHandler will be executed asynchronously.

Remarks

MediaReadyHandler should not rely on the execution context. This method allows to make conditional answer when script requires media interactions.media related part of the script launch media channel and launch Answer if it is

See Also