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,["# SipSession.State\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\nState\n=====\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/sip/SipSession.State \"View this page in Java\") \n\n```\nclass State\n```\n\n|---|---------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.sip.SipSession.State](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 31.**\n|\n| Deprecated in Java.\n\nDefines SIP session states, such as \"registering\", \"outgoing call\", and \"in call\".\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [DEREGISTERING](#DEREGISTERING:kotlin.Int) When the unregistration request is sent out. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [INCOMING_CALL](#INCOMING_CALL:kotlin.Int) When an INVITE request is received. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [INCOMING_CALL_ANSWERING](#INCOMING_CALL_ANSWERING:kotlin.Int) When an OK response is sent for the INVITE request received. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [IN_CALL](#IN_CALL:kotlin.Int) When a call is established. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [NOT_DEFINED](#NOT_DEFINED:kotlin.Int) Not defined. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OUTGOING_CALL](#OUTGOING_CALL:kotlin.Int) When an INVITE request is sent. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OUTGOING_CALL_CANCELING](#OUTGOING_CALL_CANCELING:kotlin.Int) When a CANCEL request is sent for the INVITE request sent. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OUTGOING_CALL_RING_BACK](#OUTGOING_CALL_RING_BACK:kotlin.Int) When a RINGING response is received for the INVITE request sent. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PINGING](#PINGING:kotlin.Int) When an OPTIONS request is sent. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [READY_TO_CALL](#READY_TO_CALL:kotlin.Int) When session is ready to initiate a call or transaction. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [REGISTERING](#REGISTERING:kotlin.Int) When the registration request is sent out. |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [toString](#toString(kotlin.Int))`(`state:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Converts the state to string. |\n\nConstants\n---------\n\n### DEREGISTERING\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DEREGISTERING: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen the unregistration request is sent out. \n\n Value: 2\n\n### INCOMING_CALL\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val INCOMING_CALL: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen an INVITE request is received. \n\n Value: 3\n\n### INCOMING_CALL_ANSWERING\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val INCOMING_CALL_ANSWERING: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen an OK response is sent for the INVITE request received. \n\n Value: 4\n\n### IN_CALL\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val IN_CALL: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen a call is established. \n\n Value: 8\n\n### NOT_DEFINED\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val NOT_DEFINED: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nNot defined. \n\n Value: 101\n\n### OUTGOING_CALL\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val OUTGOING_CALL: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen an INVITE request is sent. \n\n Value: 5\n\n### OUTGOING_CALL_CANCELING\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val OUTGOING_CALL_CANCELING: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen a CANCEL request is sent for the INVITE request sent. \n\n Value: 7\n\n### OUTGOING_CALL_RING_BACK\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val OUTGOING_CALL_RING_BACK: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen a RINGING response is received for the INVITE request sent. \n\n Value: 6\n\n### PINGING\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PINGING: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen an OPTIONS request is sent. \n\n Value: 9\n\n### READY_TO_CALL\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val READY_TO_CALL: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen session is ready to initiate a call or transaction. \n\n Value: 0\n\n### REGISTERING\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val REGISTERING: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nWhen the registration request is sent out. \n\n Value: 1\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(state: Int): String!\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nConverts the state to string."]]