Interface SvamlActionConnectStream
- All Superinterfaces:
SvamlAction
Determines how to route a call to a Stream/websocket server. Available to use in a response to an
Incoming Call
Event callback.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builderstatic classThe name property. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Getting builderThese custom parameters (headers/messages) are sent to your WebSocket server in the initial message when the ConnectStream is established.Get destinationThe max duration of the call in seconds (max 14400 seconds).Get streamingOptions
-
Method Details
-
getDestination
DestinationWebSocket getDestination()Get destinationField is required
- Returns:
- destination
-
getStreamingOptions
ConnectStreamStreamingOptions getStreamingOptions()Get streamingOptions- Returns:
- streamingOptions
-
getMaxDuration
Integer getMaxDuration()The max duration of the call in seconds (max 14400 seconds). If the call is still connected at that time, it will be automatically disconnected.- Returns:
- maxDuration
-
getCallHeaders
List<CallHeader> getCallHeaders()These custom parameters (headers/messages) are sent to your WebSocket server in the initial message when the ConnectStream is established.- Returns:
- callHeaders
-
builder
Getting builder- Returns:
- New Builder instance
-