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,["# SipRegistrationListener\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\nSipRegistrationListener\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/sip/SipRegistrationListener \"View this page in Java\") \n\n```\ninterface SipRegistrationListener\n```\n\n|----------------------------------------------|\n| [android.net.sip.SipRegistrationListener](#) |\n\n*** ** * ** ***\n\n| **This interface 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\nListener for SIP registration events.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRegistering](#onRegistering(kotlin.String))`(`localProfileUri:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Called when a registration request is sent. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRegistrationDone](#onRegistrationDone(kotlin.String,%20kotlin.Long))`(`localProfileUri:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `expiryTime:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Called when the registration succeeded. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRegistrationFailed](#onRegistrationFailed(kotlin.String,%20kotlin.Int,%20kotlin.String))`(`localProfileUri:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `errorCode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `errorMessage:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Called when the registration failed. |\n\nPublic methods\n--------------\n\n### onRegistering\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onRegistering(localProfileUri: String!): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nCalled when a registration request is sent.\n\n| Parameters ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `localProfileUri` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the URI string of the SIP profile to register with |\n\n### onRegistrationDone\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onRegistrationDone(\n localProfileUri: String!, \n expiryTime: Long\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nCalled when the registration succeeded.\n\n| Parameters ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `localProfileUri` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the URI string of the SIP profile to register with |\n| `expiryTime` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): duration in seconds before the registration expires |\n\n### onRegistrationFailed\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onRegistrationFailed(\n localProfileUri: String!, \n errorCode: Int, \n errorMessage: String!\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nCalled when the registration failed.\n\n| Parameters ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `localProfileUri` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the URI string of the SIP profile to register with |\n| `errorCode` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): error code of this error |\n| `errorMessage` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: error message |\n\n**See Also**\n\n- [android.net.sip.SipErrorCode](/reference/kotlin/android/net/sip/SipErrorCode)"]]