Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SipErrorCode\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSipErrorCode\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/sip/SipErrorCode \"View this page in Java\") \n\n```\nopen class SipErrorCode\n```\n\n|---|-----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.sip.SipErrorCode](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 31.**\n|\n| [android.net.sip.SipManager](/reference/kotlin/android/net/sip/SipManager) and associated classes are no longer supported and should not be used as the basis of future VOIP apps.\n\nDefines error codes returned during SIP actions. For example, during [onRegistrationFailed()](/reference/kotlin/android/net/sip/SipRegistrationListener#onRegistrationFailed(kotlin.String,%20kotlin.Int,%20kotlin.String)), [onError()](/reference/kotlin/android/net/sip/SipSession.Listener#onError(android.net.sip.SipSession,%20kotlin.Int,%20kotlin.String)), [onCallChangeFailed()](/reference/kotlin/android/net/sip/SipSession.Listener#onCallChangeFailed(android.net.sip.SipSession,%20kotlin.Int,%20kotlin.String)) and [onRegistrationFailed()](/reference/kotlin/android/net/sip/SipSession.Listener#onRegistrationFailed(android.net.sip.SipSession,%20kotlin.Int,%20kotlin.String)).\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CLIENT_ERROR](#CLIENT_ERROR:kotlin.Int) When some error occurs on the device, possibly due to a bug. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CROSS_DOMAIN_AUTHENTICATION](#CROSS_DOMAIN_AUTHENTICATION:kotlin.Int) Cross-domain authentication required. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [DATA_CONNECTION_LOST](#DATA_CONNECTION_LOST:kotlin.Int) When data connection is lost. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [INVALID_CREDENTIALS](#INVALID_CREDENTIALS:kotlin.Int) When invalid credentials are provided. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [INVALID_REMOTE_URI](#INVALID_REMOTE_URI:kotlin.Int) When the remote URI is not valid. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [IN_PROGRESS](#IN_PROGRESS:kotlin.Int) The client is in a transaction and cannot initiate a new one. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [NO_ERROR](#NO_ERROR:kotlin.Int) Not an error. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PEER_NOT_REACHABLE](#PEER_NOT_REACHABLE:kotlin.Int) When the peer is not reachable. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SERVER_ERROR](#SERVER_ERROR:kotlin.Int) When server responds with an error. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SERVER_UNREACHABLE](#SERVER_UNREACHABLE:kotlin.Int) When the server is not reachable. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SOCKET_ERROR](#SOCKET_ERROR:kotlin.Int) When some socket error occurs. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TIME_OUT](#TIME_OUT:kotlin.Int) When the transaction gets timed out. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TRANSACTION_TERMINTED](#TRANSACTION_TERMINTED:kotlin.Int) When transaction is terminated unexpectedly. |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| open static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [toString](#toString(kotlin.Int))`(`errorCode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\nConstants\n---------\n\n### CLIENT_ERROR\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CLIENT_ERROR: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen some error occurs on the device, possibly due to a bug. \n\n Value: -4\n\n### CROSS_DOMAIN_AUTHENTICATION\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CROSS_DOMAIN_AUTHENTICATION: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nCross-domain authentication required. \n\n Value: -11\n\n### DATA_CONNECTION_LOST\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DATA_CONNECTION_LOST: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen data connection is lost. \n\n Value: -10\n\n### INVALID_CREDENTIALS\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val INVALID_CREDENTIALS: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen invalid credentials are provided. \n\n Value: -8\n\n### INVALID_REMOTE_URI\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val INVALID_REMOTE_URI: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen the remote URI is not valid. \n\n Value: -6\n\n### IN_PROGRESS\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val IN_PROGRESS: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe client is in a transaction and cannot initiate a new one. \n\n Value: -9\n\n### NO_ERROR\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val NO_ERROR: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nNot an error. \n\n Value: 0\n\n### PEER_NOT_REACHABLE\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PEER_NOT_REACHABLE: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen the peer is not reachable. \n\n Value: -7\n\n### SERVER_ERROR\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SERVER_ERROR: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen server responds with an error. \n\n Value: -2\n\n### SERVER_UNREACHABLE\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SERVER_UNREACHABLE: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen the server is not reachable. \n\n Value: -12\n\n### SOCKET_ERROR\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SOCKET_ERROR: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen some socket error occurs. \n\n Value: -1\n\n### TIME_OUT\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TIME_OUT: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen the transaction gets timed out. \n\n Value: -5\n\n### TRANSACTION_TERMINTED\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TRANSACTION_TERMINTED: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen transaction is terminated unexpectedly. \n\n Value: -3\n\nPublic methods\n--------------\n\n### toString\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen static fun toString(errorCode: Int): String!\n```\n\n**Deprecated:** *Deprecated in Java.*"]]