Class IncomingCallEvent
java.lang.Object
com.sinch.sdk.domains.voice.models.webhooks.WebhooksEvent
com.sinch.sdk.domains.voice.models.webhooks.CallEvent
com.sinch.sdk.domains.voice.models.webhooks.IncomingCallEvent
This event, called the ICE event, can be triggered by either an incoming data call or an incoming
PSTN call.
It's a POST request to the specified calling callback URL. Look here for allowed instructions
and actions
.
If there is no response to the callback within the timeout period, an error message is played, and the call is disconnected.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
IncomingCallEvent.Builder<B extends IncomingCallEvent.Builder<B>>
-
Method Summary
Modifier and TypeMethodDescriptionstatic IncomingCallEvent.Builder
<?> builder()
The unique application keyIf the call is initiated by a Sinch SDK client, call headers are the headers specified by the caller client.The path of the API resourcegetCli()
The number that will be displayed to the recipient of the call.The domain destination of the incoming callThe duration of the call in secondsThe origination domain of the incoming callgetRdnis()
The redirected dialled number identification servicegetTo()
Information about the recipient of the callCharged for the call established to the original destination.toString()
Methods inherited from class com.sinch.sdk.domains.voice.models.webhooks.CallEvent
getCustom, getTimestamp
Methods inherited from class com.sinch.sdk.domains.voice.models.webhooks.WebhooksEvent
getCallId, getVersion
-
Method Details
-
getCallResourceUrl
The path of the API resource- Returns:
- path value
-
getUserRate
Charged for the call established to the original destination. If the SVAML response specifies another destination, the same rate may not apply.- Returns:
- charged value
-
getCli
The number that will be displayed to the recipient of the call.To set your own CLI, you may use your verified number or your Dashboard virtual number and add it to the
ActionConnectPstn
SVAML response to the Incoming Call Event request.- Returns:
-
getTo
Information about the recipient of the call- Returns:
- information value
-
getDomain
The domain destination of the incoming call- Returns:
- Domain value
-
getApplicationKey
The unique application key- Returns:
- Application key value
-
getOriginationType
The origination domain of the incoming call- Returns:
- Origin type
-
getDuration
The duration of the call in seconds- Returns:
- Duration value
-
getRdnis
The redirected dialled number identification service- Returns:
- RDNIS value
-
getCallHeaders
If the call is initiated by a Sinch SDK client, call headers are the headers specified by the caller client. Read more about call headers here- Returns:
- Headers
-
toString
-
builder
-