Represents the Leg of a Voice Call

interface Leg {
    get conversationId(): string;
    get direction(): string;
    get endTime(): string;
    get from(): LegChannelJS;
    get id(): string;
    get mediaState(): Nullable<MediaStateJS>;
    get startTime(): string;
    get status(): string;
    get to(): LegChannelJS;
    get type(): string;
}

Accessors

  • get conversationId(): string
  • The id of the Conversation the Leg belongs to

    Returns string

  • get direction(): string
  • The direction of the Leg (inbound or outbound)

    Returns string

  • get endTime(): string
  • The timestamp when the Leg ended

    Returns string

  • get from(): LegChannelJS
  • The from LegChannel

    Returns LegChannelJS

  • get id(): string
  • The Leg id

    Returns string

  • get mediaState(): Nullable<MediaStateJS>
  • Returns Nullable<MediaStateJS>

  • get startTime(): string
  • The timestamp when the Leg started

    Returns string

  • get status(): string
  • The status of the Leg

    Returns string

  • get to(): LegChannelJS
  • The to LegChannel

    Returns LegChannelJS

  • get type(): string
  • The type of Leg

    Returns string