ErrorInfo
public class ErrorInfo : LinphoneObject
Object representing full details about a signaling error or status.
All ErrorInfo
object returned by the liblinphone API are readonly and
transcients. For safety they must be used immediately after obtaining them. Any
other function call to the liblinphone may change their content or invalidate
the pointer.
-
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> ErrorInfo
-
Declaration
Swift
public var getCobject: OpaquePointer? { get }
-
Assign phrase to a
ErrorInfo
object.Declaration
Swift
public var phrase: String { get set }
Return Value
The error phrase
-
Assign protocol name to a
ErrorInfo
object.Declaration
Swift
public var proto: String { get set }
Return Value
The protocol.
-
Assign protocol code to a
ErrorInfo
object.Declaration
Swift
public var protocolCode: Int { get set }
Return Value
The status code
-
Assign retry-after value to a
ErrorInfo
object.Declaration
Swift
public var retryAfter: Int { get set }
Return Value
The Retry-After delay second
-
Set the sub_ei in
ErrorInfo
to anotherErrorInfo
. Used when a reason header is to be added in a SIP response. The first levelErrorInfo
defines the SIP response code and phrase, the second (sub)LinphoneErroInfo defining the content of the Reason header.
Declaration
Swift
public var subErrorInfo: ErrorInfo? { get set }
Return Value
ErrorInfo
pointer defined in the ei object. -
Assign warnings to a
ErrorInfo
object.Declaration
Swift
public var warnings: String { get set }
Return Value
More details about the failure.