CallTerminationReason

public struct CallTerminationReason

Data class to hold detailed reasons for call termination.

  • General cause description (e.g., “CALL_REJECTED”).

    Declaration

    Swift

    public let cause: String?
  • Numerical code for the cause (e.g., 21).

    Declaration

    Swift

    public let causeCode: Int?
  • SIP response code (e.g., 403).

    Declaration

    Swift

    public let sipCode: Int?
  • SIP reason phrase (e.g., “Dialed number is not included in whitelisted countries”).

    Declaration

    Swift

    public let sipReason: String?
  • Undocumented

    Declaration

    Swift

    public init(cause: String? = nil, causeCode: Int? = nil, sipCode: Int? = nil, sipReason: String? = nil)