Sinch Node.js SDK - v1.6.0
    Preparing search index...

    Interface Session

    A session represents the complete lifecycle of a voice interaction initiated through the Voice API.

    A session can contain one or more related call legs (for example, an original outbound call plus additional dials or transfers triggered by SVAML commands). Use the calls array to inspect all call legs associated with the session and state to determine whether the session is still ongoing or has reached a final state.

    interface Session {
        calls: Voice.v2.Call[];
        createTime: Date;
        endTime?: Date;
        projectId: string;
        serviceId: string;
        sessionId: string;
        state: string;
        updateTime?: Date;
    }
    Index

    Properties

    calls: Voice.v2.Call[]

    Call legs associated with the session.

    createTime: Date

    Timestamp (RFC 3339) indicating when the session was created.

    endTime?: Date

    Timestamp (RFC 3339) indicating when the session ended. Omitted for ongoing sessions.

    projectId: string

    The Id of the project associated with the call.

    serviceId: string

    The ID of the service used.

    sessionId: string

    The ID of the session.

    state: string

    SessionState

    updateTime?: Date

    Timestamp (RFC 3339) indicating when the session was last updated. Omitted if no updates were performed on this session.