sinch.domains.voice.models.v2.svaml.shared.call_events module

class sinch.domains.voice.models.v2.svaml.shared.call_events.CallEvents(
*,
onAnswer: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
onBusy: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
onReject: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
onTimeout: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
onHangup: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
onFailure: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
on_answer: Annotated[list[SvamlCommand], Len(min_length=0, max_length=None)] | None
on_busy: Annotated[list[SvamlCommand], Len(min_length=0, max_length=None)] | None
on_reject: Annotated[list[SvamlCommand], Len(min_length=0, max_length=None)] | None
on_timeout: Annotated[list[SvamlCommand], Len(min_length=0, max_length=None)] | None
on_hangup: Annotated[list[SvamlCommand], Len(min_length=0, max_length=None)] | None
on_failure: Annotated[list[SvamlCommand], Len(min_length=0, max_length=None)] | None
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_post_init(_BaseConfigModel__context: Any) None

Marks applied non-None defaults as set.

Parameters:

_BaseConfigModel__context (Any)

Return type:

None