Method for implementing IP multimedia subsystem registration

RE049428 ยท 2023-02-21

Assignee

Inventors

Cpc classification

International classification

Abstract

A method for implementing an IP Multimedia Subsystem (IMS) registration, includes: a Home Subscriber Server (HSS) recording a current registration state of a User Equipment (UE) in response to receiving a Multimedia Authentication Request (MAR) initiated by a Service Call Session Control Function (S-CSCF) selected for the UE when a first Register request is sent by the UE; in response to receiving a second Register request initiated by an Interrogating Call Session Control Function (I-CSCF), the HSS sends the S-CSCF Name to the I-CSCF when the current registration state of the UE is an assigned S-CSCF state. By the scheme, a same S-CSCF is ensured to be used in the two User Authentication Request/User Authentication Answer (UAR/UAA) procedures of the initial IMS registration procedure, and the initial IMS registration of the UE is implemented successfully.

Claims

.[.1. A method for implementing an Internet Protocol (IP) Multimedia Subsystem (IMS) registration, comprising: receiving, by a Home Subscriber Server (HSS), an Multimedia Authentication Request (MAR) message from a Service Call Session Control Function (S-CSCF); wherein the S-CSCF is selected for a User Equipment (UE) when a first Register request is sent by the UE; recording, by the HSS, the current registration state of the UE, generating Authentication Vectors (AV) and sending the AVs to the S-CSCF; initiating, by the S-CSCF, an authentication challenge to the UE according to the AVs returned by the HSS; sending, by the UE, a second Register request to an Interrogating Call Session Control Function (I-CSCF), after the UE implements the authentication challenge; notifying, by the I-CSCF, the HSS of inquiring the subscriber registration state; and returning, by the HSS, an S-CSCF Name to the I-CSCF when the registration state of the UE is not registered and the pending flag is set to pending state, wherein the pending flag is set to pending state for indicating that the UE is in the authentication procedure..].

.[.2. The method of claim 1, further comprising: sending, by the I-CSCF, the second Register request to the S-CSCF according to the S-CSCF Name returned by the HSS; and changing, by the S-CSCF, the current registration state of the UE to a registered state, after the S-CSCF authenticates the UE. .].

.[.3. The method of claim 1, further comprising: before receiving by the HSS the MAR message from the S-CSCF, sending, by the UE, the first Register request to the I-CSCF through a Proxy Call Session Control Function (P-CSCF); notifying, by the I-CSCF, the HSS of inquiring the subscriber registration state, in response to receiving the first Register request; returning, by the HSS, S-CSCF Capabilities to the I-CSCF; selecting, by the I-CSCF, the S-CSCF according to the S-CSCF Capabilities and storing the S-CSCF Name of the S-CSCF; and sending, by the I-CSCF, the first Register request to the S-CSCF. .].

.[.4. The method of claim 3, wherein the notifying by the I-CSCF the HSS of inquiring the subscriber registration state in response to receiving the first Register request comprises: sending, by the I-CSCF, a User Authentication Request (UAR) message to the HSS; and the returning by the HSS the S-CSCF Capabilities to the I-CSCF comprises: sending, by the HSS, a User Authentication Answer (UAA) message carrying the S-CSCF Capabilities to the I-CSCF. .].

.[.5. The method of claim 1, wherein the notifying by the I-CSCF the HSS of inquiring the subscriber registration state comprises: sending, by the I-CSCF, a User Authorization Request (UAR) message to the HSS; and the returning by the HSS the S-CSCF Name to the I-CSCF comprises: sending, by the HSS, a User Authentication Answer (UAA) message carrying the S-CSCF Name to the I-CSCF. .].

.[.6. The method of claim 1, wherein the receiving the MAR message from the S-CSCF comprises: receiving, by the HSS, the MAR message carrying the S-CSCF Name of the S-CSCF; and the returning by the HSS the AVs comprises: sending, by the HSS, the S-CSCF a Multimedia Authentication Answer (MAA) message carrying the AVs generated. .].

.[.7. The method of claim 1, further comprising: receiving, by the HSS, a subscriber Location Inquiry Request (LIR) message from the I-CSCF in response to recording the current registration state of the UE; returning, by the HSS, the I-CSCF a Location Inquiry Answer (LIA) message carrying the S-CSCF Name if a current registration state of the UE is a not registered state, and a Pending Flag stored in the HSS is in a Pending state; and sending, by the I-CSCF, a session initialization (INVITE) message to the S-CSCF corresponding to the S-CSCF Name carried in the LIA message. .].

.[.8. A method for implementing an Internet Protocol (IP) Multimedia Subsystem (IMS) registration, comprising: receiving, by a Home Subscriber Server (HSS), an Multimedia Authentication Request (MAR) message from a Service Call Session Control Function (S-CSCF); wherein the S-CSCF is selected for a User Equipment (UE) when a first Register request is sent by the UE; recording, by the HSS, the current registration state of the UE, generating Authentication Vectors (AV) and sending the AVs to the S-CSCF, initiating, by the S-CSCF, an authentication challenge to the UE according to the AVs returned by the HSS; sending, by the UE, a second Register request to an Interrogating Call Session Control Function (I-CSCF), after the UE implements the authentication challenge; notifying, by the I-CSCF, the HSS of inquiring the subscriber registration state; and returning, by the HSS, the S-CSCF Name to the I-CSCF when the registration state of the UE is an authentication state, wherein the authentication state is a subscriber registration state for indicating that a UE is in the authentication procedure. .].

.[.9. The method of claim 8, further comprising: receiving, by the HSS, a subscriber Location Inquiry Request (LIR) message from the I-CSCF in response to recording the current registration state of the UE; returning, by the HSS, the I-CSCF a Location Inquiry Answer (LIA) message carrying the S-CSCF Name, if the current registration state of the UE is the authentication state; and sending, by the I-CSCF, an INVITE message to the S-CSCF corresponding to the S-CSCF Name carried in the LIA message. .].

.Iadd.10. A method for implementing an Internet Protocol Multimedia Subsystem (IMS) registration, comprising: receiving, by a Home Subscriber Server (HSS), an authentication request message from a Service Call Session Control Function (S-CSCF), wherein the S-CSCF is selected by an Interrogating Call Session Control Function (I-CSCF) for a User Equipment (UE) after the I-CSCF receives a first Register request sent by the UE, and the authentication request message carries an S-CSCF Name of the S-CSCF; storing, by the HSS, the S-CSCF name in the HSS for the UE; receiving, by the I-CSCF, a second register request from the UE; sending, by the I-CSCF, an authorization request message to the HSS; determining, by the HSS, that a registration state of a current public subscriber ID of the UE is not registered; determining, by the HSS, that there is no other public subscriber ID of the UE whose current registration state is registered or unregistered; determining, by the HSS, that the S-CSCF name for the UE is stored in the HSS; and sending, by the HSS, an authentication answer message including the S-CSCF name to the I-CSCF..Iaddend.

.Iadd.11. The method according to claim 10, wherein the current public subscriber ID of the UE and the other public subscriber ID of the UE are corresponding to a same private subscriber ID of the UE..Iaddend.

.Iadd.12. The method according to claim 10, wherein the public subscriber ID is IP Multimedia Public Identity (IMPU)..Iaddend.

.Iadd.13. The method according to claim 11, wherein the private subscriber ID is IP Multimedia Private Identity (IMPI)..Iaddend.

.Iadd.14. The method according to claim 10, wherein before the receiving the authentication request message, the method further comprises: receiving, by the I-CSCF, the first register request from the UE; sending, by the I-CSCF, an authorization request message to the HSS; receiving, by the I-CSCF, an authorization request message including S-CSCF capabilities from the HSS; selecting, by the I-CSCF, the S-CSCF according to the S-CSCF capabilities; and sending, by the I-CSCF, the first register request to the S-CSCF..Iaddend.

.Iadd.15. The method according to claim 10, wherein after the storing the S-CSCF name, the method further comprises: generating, by the HSS, Authentication Vectors (AVs); sending, by the HSS, the AVs to the S-CSCF; initiating, by the S-CSCF, an authentication challenge to the UE according to the AVs returned by the HSS, wherein an authentication challenge response is carried in the second Register request received by the I-CSCF..Iaddend.

.Iadd.16. The method according to claim 15, wherein the method further comprising: sending, by the I-CSCF, the second register request to the S-CSCF according to the S-CSCF name; and changing a registration state of the current public subscriber ID of the UE to a registered state after the S-CSCF authenticates the UE..Iaddend.

.Iadd.17. A Internet Protocol Multimedia Subsystem (IMS) registration system, comprising: a Service Call Session Control Function (S-CSCF), an Interrogating Call Session Control Function (I-CSCF) and a Home Subscriber Server (HSS); the HSS receives an authentication request message from the S-CSCF, wherein the S-CSCF is selected by the I-CSCF for a User Equipment (UE) after the I-CSCF receives a first Register request sent by the UE, and the authentication request message carries an S-CSCF Name of the S-CSCF; the I-CSCF receives a second register request from the UE, and sends an authorization request message to the HSS; and the HSS further stores the S-CSCF name in the HSS for the UE, determines that a registration state of a current public subscriber ID of the UE is not registered, determines that there is no other public subscriber ID of the UE whose current registration state is registered or unregistered, determines that the S-CSCF name for the UE is stored in the HSS; and sends a authentication answer message including the S-CSCF name to the I-CSCF..Iaddend.

.Iadd.18. The system according to claim 17, wherein the current public subscriber ID of the UE and the other public subscriber ID of the UE are corresponding to a same unique private subscriber ID..Iaddend.

.Iadd.19. The system according to claim 17, wherein the public subscriber ID is IP Multimedia Public Identity (IMPU)..Iaddend.

.Iadd.20. The system according to claim 18, wherein the private subscriber ID is IP Multimedia Private Identity (IMPI)..Iaddend.

.Iadd.21. The system according to claim 17, wherein before the HSS receives the authentication request message, the I-CSCF receives the first register request from the UE, sends an authorization request message to the HSS, receives an authentication answer message including S-CSCF capabilities from the HSS selects the S-CSCF according to the S-CSCF capabilities; and sends the first register request to the S-CSCF..Iaddend.

.Iadd.22. The system according to claim 17, wherein after the HSS stores the S-CSCF name, the HSS generates Authentication Vectors (AVs), sends the AVs to the S-CSCF, initiates an authentication challenge to the UE according to the AVs returned by the HSS, wherein an authentication challenge response is carried in the second Register request received by the I-CSCF..Iaddend.

.Iadd.23. The system according to claim 22, wherein the I-CSCF sends the second register request to the S-CSCF according to the S-CSCF name; and changes a registration state of the current public subscriber ID of the UE to a registered state after the S-CSCF authenticates the UE..Iaddend.

.Iadd.24. A method for implementing an Internet Protocol Multimedia Subsystem (IMS) registration, comprising: receiving, by a Home Subscriber Server (HSS), an authentication request message from a Service Call Session Control Function (S-CSCF), and the authentication request message carries an S-CSCF Name of the S-CSCF; storing, by the HSS, the S-CSCF name in the HSS for a user equipment (UE); receiving, by an Interrogating Call Session Control Function (I-CSCF), a register request from the UE; sending, by the I-CSCF, an authorization request message to the HSS to authorize the UE; determining, by the HSS, that a registration state of a current public subscriber ID of the UE is not registered; determining, by the HSS, that there is no other public subscriber ID of the UE whose current registration state is registered or unregistered; determining, by the HSS, that the S-CSCF name for the UE is stored in the HSS; and sending, by the HSS, an authentication answer message including the S-CSCF name to the I-CSCF..Iaddend.

.Iadd.25. The method according to claim 24, wherein before receiving the authentication request message from the S-CSCF, the method comprising: receiving, by a Interrogating Call Session Control Function (I-CSCF), an initial Register request from the UE; selecting, by the I-CSCF, the S-CSCF for the UE; sending, by the I-CSCF, the initial Register request to the S-CSCF; sending, by the S-CSCF, the authentication request message to the HSS..Iaddend.

.Iadd.26. The method according to claim 24, wherein the current public subscriber ID of the UE and the other public subscriber ID of the UE correspond to a same private subscriber ID of the UE..Iaddend.

.Iadd.27. The method according to claim 24, wherein the public subscriber ID is IP Multimedia Public Identity (IMPU)..Iaddend.

.Iadd.28. The method according to claim 25, wherein the private subscriber ID is IP Multimedia Private Identity (IMPI)..Iaddend.

.Iadd.29. The method according to claim 24, wherein after storing the S-CSCF name at the HSS, the method comprises: sending, by the HSS, Authentication Vectors (AVs) to the S-CSCF; initiating, by the S-CSCF, an authentication challenge to the UE according to the AVs..Iaddend.

.Iadd.30. The method according to claim 29, wherein after sending the authentication answer message including the S-CSCF name to the I-CSCF by the HSS, the method comprises: sending, by the I-CSCF, the register request to the S-CSCF according to the S-CSCF name; authenticating, by the S-CSCF, the UE according to the register request and the AVs; and changing, by the HSS, a registration state of the current public subscriber ID of the UE to a registered state after the S-CSCF complete the authentication of the UE..Iaddend.

.Iadd.31. An Internet Protocol Multimedia Subsystem (IMS) registration system, comprising: a Service Call Session Control Function (S-CSCF); an Interrogating Call Session Control Function (I-CSCF); and a HSS in communication with the S-CSCF and the I-CSCF, wherein the HSS: receives an authentication request message from the S-CSCF, and the authentication request message carries an S-CSCF Name of the S-CSCF; stores the S-CSCF name in the HSS for a user equipment (UE); receives an authorization request message from the I-CSCF: determines that a registration state of a current public subscriber ID of the UE is not registered; determines that there is no other public subscriber ID of the UE whose current registration state is registered or unregistered; determines that the S-CSCF name for the UE is stored in the HSS; and sends an authentication answer message including the S-CSCF name to the I-CSCF; the I-CSCF: receives a register request from the UE; and sends the authorization request message to the HSS to authorize the UE..Iaddend.

.Iadd.32. The system according to claim 31, wherein the I-CSCF further: receives an initial Register request from the UE; selects the S-CSCF for the UE; and sends the initial Register request to the S-CSCF; the S-CSCF sends the authentication request message to the HSS..Iaddend.

.Iadd.33. The system according to claim 31, wherein the current public subscriber ID of the UE and the other public subscriber ID of the UE correspond to a same private subscriber ID of the UE..Iaddend.

.Iadd.34. The system according to claim 31, wherein the current public subscriber ID is IP Multimedia Public Identity (IMPU)..Iaddend.

.Iadd.35. The system according to claim 31, wherein the private subscriber ID is IP Multimedia Private Identity (IMPI)..Iaddend.

.Iadd.36. The system according to claim 31, wherein the HSS further sends Authentication Vectors (AVs) to the S-CSCF after storing the S-CSCF name; and the S-CSCF initiates an authentication challenge to the UE according to the AVs..Iaddend.

.Iadd.37. The system according to claim 31, wherein the I-CSCF further sends the register request to the S-CSCF according to the S-CSCF name after receiving the authentication answer message including the S-CSCF name; the HSS authenticates the UE according to the register request and the AVs; and changes a registration state of the current public subscriber ID of the UE to a registered state after the S-CSCF has completed the authentication of the UE..Iaddend.

.Iadd.38. A method for implementing an Internet Protocol Multimedia Subsystem (IMS) registration, comprising: receiving, by a Home Subscriber Server (HSS), an authentication request message from a Service Call Session Control Function (S-CSCF), and the authentication request message carries an S-CSCF Name of the S-CSCF; storing, by the HSS, the S-CSCF name in the HSS for a user equipment (UE); receiving, by the HSS, an authorization request message to authorize the UE from an Interrogating Call Session Control Function (I-CSCF); determining, by the HSS, that a registration state of a current public subscriber ID of the UE is not registered; determining, by the HSS, that there is no other public subscriber ID of the UE whose current registration state is registered or unregistered; determining, by the HSS, that the S-CSCF name for the UE is stored in the HSS; and sending, by the HSS, an authentication answer message including the S-CSCF name to the I-CSCF..Iaddend.

.Iadd.39. The method according to claim 38, wherein the current public subscriber ID of the UE and the other public subscriber ID of the UE correspond to a same private subscriber ID of the UE..Iaddend.

.Iadd.40. The method according to claim 38, wherein the public subscriber ID is IP Multimedia Public Identity (IMPU)..Iaddend.

.Iadd.41. The method according to claim 38, wherein the private subscriber ID is IP Multimedia Private Identity (IMPI)..Iaddend.

.Iadd.42. The method according to claim 38, wherein after storing the S-CSCF name at the HSS, the method comprises: sending, by the HSS, Authentication Vectors (AVs) to the S-CSCF..Iaddend.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a flow chart illustrating the process of implementing an initial IMS registration in the prior art.

(2) FIG. 2 is a flow chart illustrating the process of implementing an initial IMS registration according to an embodiment of the present invention.

(3) FIG. 3 is a flow chart illustrating a method for determining a subscriber registration state in the initial IMS registration procedure according to an embodiment of the present invention.

(4) FIG. 4 is a flow chart illustrating a method for recording a subscriber registration state in the initial IMS registration procedure according to an embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

(5) According to embodiments of the present invention, in an initial IMS registration procedure initiated by a UE, in response to receiving an MAR message initiated by an S-CSCF, an HSS records the current registration state of the UE entering the authentication procedure to an assigned S-CSCF state; in response to receiving a UAR message initiated by an I-CSCF, the HSS determines whether the current registration state of the UE recorded in the HSS is the assigned S-CSCF state; if the current registration state of the UE recorded in the HSS is the assigned S-CSCF state, the HSS sends a UAA message carrying an S-CSCF Name to the I-CSCF; otherwise, the HSS sends a UAA message carrying S-CSCF Capabilities to the I-CSCF.

(6) The present invention is hereinafter further described in detail with reference to the accompanying drawings and preferred embodiments to further clarify the technical solutions and advantages thereof.

(7) FIG. 2 is a flow chart illustrating the process of implementing an initial IMS registration according to an embodiment of the present invention. If a UE has acquired an IP connection bearer, and found an interface of the IMS system before the initial IMS registration is implemented, a P-CSCF, the initial IMS registration includes steps as below.

(8) Step 200: The UE sends a first Register request based on the SIP to the P-CSCF found by the UE.

(9) Step 201: The P-CSCF forwards the first Register request to an I-CSCF.

(10) The implementation of the steps 200-201 is similar to that of the steps 100-101 in the prior art, so there is no more description.

(11) Step 202: The I-CSCF initiates a UAR message to an HSS.

(12) Step 203: The HSS determines whether the current registration state of the UE is the assigned S-CSCF state according to the current registration state of the UE stored in the HSS.

(13) Step 204: If the current registration state of the UE is the assigned S-CSCF state, the HSS sends a UAA message carrying an S-CSCF Name to the I-CSCF; otherwise, the HSS sends the UAA message carrying S-CSCF Capabilities to the I-CSCF.

(14) According to the existing protocol criterions, a subscriber has three registration states: the not registered state, the registered state, and the unregistered state. However, according to the embodiment of the present invention, subscriber has four registration states: the not registered state, the registered state, the unregistered state, and an authentication state which is newly-added, and the authentication state is a subscriber registration state for indicating that a UE is in the authentication procedure. According to the embodiment of the present invention, the registered state, the unregistered state, and the authentication state all belong to the assigned S-CSCF state. The current registration state of the UE can be determined through three methods as below.

(15) Method I: Determining the current registration state of the UE according to the three subscriber registration states prescribed in the existing protocols and the state of a Pending Flag.

(16) FIG. 3 is a flow chart illustrating a method for determining a subscriber registration state in the initial IMS registration procedure according to an embodiment of the present invention, including the following steps.

(17) Step 2031: The HSS receives the UAR message from the I-CSCF.

(18) Step 2032: The HSS determines the current registration state of the UE stored in the HSS; if the current registration state of the UE is the registered state or the unregistered state, proceeding to step 2033; if the current registration state of the UE is the not registered state, proceeding to step 2034.

(19) Step 2033: The HSS returns the I-CSCF the UAA message carrying the S-CSCF Name stored in the HSS.

(20) Step 2034: The HSS determines whether the Pending Flag stored in the HSS has been set to the Pending state; if the Pending Flag stored in the HSS has been set to the Pending state, proceeding to step 2035; otherwise, proceeding to step 2036.

(21) Step 2035: The HSS returns the I-CSCF the UAA message carrying the S-CSCF Name stored in the HSS.

(22) Step 2036: the HSS returns the I-CSCF the UAA message carrying the S-CSCF Capabilities stored in the HSS.

(23) In the steps 2034-2036, although the current registration state of the UE is the not registered state, it means that the UE is being authenticated, that is, the UE is in the authentication state if the Pending Flag stored in the HSS is set to the Pending state, and the authentication state belongs to the assigned S-CSCF state provided by embodiments of the present invention. This is why the current registration state of the UE is the not registered state and the Pending Flag is set to the Pending state, the HSS returns the UAA message carrying the S-CSCF Name stored in the HSS to the I-CSCF.

(24) The UAR/UAA procedure in the steps 203-204 is the first UAR/UAA procedure of the initial IMS registration. In this procedure the UE just enters the initial IMS registration, that is, the UE is in the not registered state, and the Pending Flag has not been set to the Pending state; so the UAA message carrying the S-CSCF Capabilities is returned to the I-CSCF.

(25) The specific process of recording the current registration state of the UE is described in an MAR/MAA procedure in steps 207-209.

(26) Method II: Determining the current registration state of the UE according to the subscriber registration state recorded.

(27) According to the Method II, a registration state indicating that the UE is in the authentication procedure, that is, the Authentication pending state, should be added. Therefore, according to the Method II, the UE has four registration states: the not registered state, the registered state and the unregistered state which are prescribed in the existing protocols, and the Authentication pending state newly-added. The specific process of recording the current registration state of the UE is described in the MAR/MAA procedure in steps 207-209.

(28) During the UAR/UAA procedure in the steps 203-204, the HSS just determines whether the S-CSCF Name or the S-CSCF capabilities is carried in the UAA message according to the current registration state of the UE stored in the HSS. If the current registration state of the UE is the assigned S-CSCF state, for example, the Authentication pending state, the unregistered state, or the registered state, the HSS returns the UAA message carrying the S-CSCF Name stored in the HSS to the I-CSCF; otherwise, the HSS returns the UAA message carrying the S-CSCF Capabilities stored in the HSS to the I-CSCF.

(29) Similarly, when the Method II is used, the UAR/UAA procedure in the steps 203-204 is the first UAR/UAA procedure of the initial IMS registration procedure and the UE has just entered the initial IMS registration at this time, that is, the UE is in the not registered state; so the UAA message carries the S-CSCF Capabilities. The specific process of recording the current registration state of the UE is described in the MAR/MAA procedure in steps 207-209.

(30) Method III: Determining the current registration state of the UE according to the three subscriber registration states prescribed in the existing protocols and whether the HSS stores the S-CSCF Name.

(31) Generally, the UE has a unique private subscriber ID identified by an IP Multimedia Private Identity (IMPI), and multiple public subscriber ids identified by different IP Multimedia Public Identities (IMPUs).

(32) The Method III includes the following steps:

(33) In response to receiving the UAR message from the I-CSCF, the HSS determines the current registration state of the UE stored in the HSS; if a current public subscriber ID registration state of the UE is the registered state, the unregistered state, or the not registered state, but one or more of the other public subscriber ID registration states of the UE are the registered state or the unregistered state, the current registration state of the UE is the assigned S-CSCF state; therefore, the HSS returns the I-CSCF the UAA message carrying the S-CSCF Name stored in the HSS; if the current public subscriber ID registration state of the UE is the not registered state, and none of the other public subscriber ID registration states of the UE is the registered state or the unregistered state, the HSS further determines whether the HSS stores the S-CSCF Name for the UE; if the HSS stores the S-CSCF Name selected for the UE, the current registration state of the UE is the assigned S-CSCF state; therefore, the HSS returns the I-CSCF the UAA message carrying the S-CSCF Name stored in the HSS; if the HSS does not store the S-CSCF Name selected for the UE, the HSS returns the I-CSCF the UAA message carrying the S-CSCF Capabilities stored in the HSS.

(34) It should be noted that, although the current registration state of the UE is the not registered state, it means that the UE is being authenticated, that is, the UE is in the authentication state if there is the HSS storing the S-CSCF Name for the UE; and the authentication state belongs to the assigned S-CSCF state provided by the embodiment of the present invention. In other words, when the current registration state of the UE is the not registered state, and the HSS stores the S-CSCF Name, the HSS returns the I-CSCF the UAA carrying the S-CSCF Name.

(35) Similarly, when the Method III is used, the UAR/UAA procedure in the steps 203-204 is the first UAR/UAA procedure of the initial IMS registration procedure, the UE has just entered the initial IMS registration at this time, that is, the UE is in the not registered stat, and S-CSCF Name is not stored in the HSS; so, the UAA message carrying the S-CSCF Capabilities is returned to the I-CSCF.

(36) Step 205: The I-CSCF selects the S-CSCF according to the S-CSCF Capabilities carried in the UAA message,

(37) Step 206: The I-CSCF sends the first Register request received to the S-CSCF selected.

(38) The implementation of the steps 205-206 is similar to that of the steps 104-105 in the prior art, so there is no more description.

(39) Step 207: The S-CSCF sends an MAR message to the HSS to request the UE's authentication data.

(40) Step 208: The HSS generates AVs and records the current registration state of the UE.

(41) Step 209: The HSS returns the S-CSCF an MAA message carrying the AVs.

(42) The implementation of the steps 207-209 is basically similar to that of steps 106-108 in the prior art. In response to receiving the MAR message, the HSS sets the Pending Flag stored in the HSS to the Pending state, to indicate that the UE is in the authentication procedure currently, stores the S-CSCF Name carried in the MAR message, and returns the MAA message carrying the generated AVs to the S-CSCF according to the S-CSCF Name carried in the MAR message.

(43) What is different from the prior art is that, the HSS records the current registration state of the UE in the HSS, besides all processes in the steps 106-108 in the prior art. Besides setting the Pending Flag to the Pending state to indicate that the UE is in an authentication state of an initial IMS registration, and stores the S-CSCF Name carried in the MAR message, an embodiment of the present invention provides another mother for recording the current registration state of the UE.

(44) FIG. 4 is a flow chart illustrating a method for recording a subscriber registration state in the initial IMS registration procedure according to an embodiment of the present invention. In the method for recording a subscriber registration state as shown in FIG. 4, pre-setting an Authentication Pending state is to indicate that the UE is in the authentication state of the initial IMS registration currently. And the method includes the following steps.

(45) Step 2081: The HSS receives the MAR message from the S-CSCF.

(46) Step 2082: The HSS determines whether the S-CSCF Name carried in the MAR message is consistent with the S-CSCF Name stored in the HSS; if the S-CSCF Name carried in the MAR message is not consistent with the S-CSCF Name stored in the HSS, proceeding to step 2083; otherwise, proceeding to step 2084.

(47) Step 2083: The HSS records the current registration state of the UE as the Authentication Pending state.

(48) If the S-CSCF Name of the S-CSCF providing the service for the UE is stored in the HSS, but the S-CSCF Name carried in the MAR message from the S-CSCF is not consistent with the S-CSCF Name stored in the HSS, it can be determined according to related protocol criterions that the UE having completed the initial IMS registration must be roaming or the like and re-gains a new S-CSCF in the roaming. Therefore, the current registration state of the UE recorded in the HSS is the Authentication Pending state.

(49) Step 2084: The HSS determines whether the current registration state of the UE is the unregistered state or the not registered state; if the current registration state of the UE is the unregistered state or the not registered state, proceeding to step 2085; otherwise, proceeding to step 2086.

(50) Step 2085: The HSS changes the current registration state of the UE to the Authentication Pending state.

(51) Step 2086: The HSS records the current registration state of the UE as the registered state.

(52) According to the process of recording the subscriber registration state as shown in FIG. 4, the UE's registration state is recorded as the Authentication Pending state, or the registered state as long as the UE enters the authentication state. The UE's registration state stored in the HSS is ensured to be the assigned S-CSCF state during the second UAR/UAA procedure, in other words, a same S-CSCF is used during the two UAR/UAA procedures, by carrying the S-CSCF Name stored in the HSS in the UAA message during the first UAR/UAA procedure, to provide the registration service for the UE; thereby ensuring the successful implementation of the initial IMS registration of the UE.

(53) It should be noted that, the subscriber public subscriber ID registration state is the not registered state in the steps 207-209, and in response to receiving and processing the MAR message sent by the S-CSCF, the HSS stores the S-CSCF Name, i.e. the S-CSCF Name corresponding to the S-CSCF selected during the first UAR/UAA procedure. If the HSS, in response to receiving and processing the MAR message sent by the S-CSCF, triggers the process in which the IMS subscriber serves as the called party, i.e. the LIR/LIA process, which is independent with IMS registration process, the subsequent process of the IMS registration process continues to be implemented. The subsequent process includes according to the criterions of the 3GPP TS 29.228 v6.7.0 protocol: the HSS returning the I-CSCF a subscriber LIA message carrying the S-CSCF Capabilities in response to receiving a subscriber LIR message from the I-CSCF, since the public subscriber ID registration state corresponding to the subscriber is the not registered state; the I-CSCF selecting an S-CSCF according to the received S-CSCF Capabilities, sending a session initialization (INVITE) message to the S-CSCF selected currently, and proceeding to the LIR/LIA process. The process according to the prior art can not guarantee the consistency of the S-CSCF selected by the I-CSCF during the LIR/LIA procedure with the S-CSCF selected by the HSS during the first UAR/UAA procedure; therefore, the INVITE message can not be sent to the S-CSCF selected during the first UAR/UAA procedure. As a result, the S-CSCF initiates the initialization location registration process if finding no the UE. Consequently, the LIR/LIA can not be implemented successfully if such a situation happens many times.

(54) If the Method III is used to determine the current registration state of the UE, the HSS triggers a process in which the IMS subscriber serves as the called party in response to receiving and processing the MAR message sent by the S-CSCF, and the process includes: in response to receiving the LIR message from the I-CSCF, the HSS determining that the current registration state of the UE is the authentication state, since the public subscriber ID registration state corresponding to the subscriber is the not registered state, and the S-CSCF Name is stored in the HSS for the UE; the HSS returning the I-CSCF the LIA message carrying the S-CSCF Name; and the I-CSCF sending the INVITE message to the S-CSCF corresponding to the S-CSCF Name received, and implementing the LIR/LIA process according to protocols. Obviously, according to this method, when the initial IMS registration procedure is not completed, and the LIR/LIA process is triggered, the I-CSCF is enabled to forward the corresponding message in the LIR/LIA process to the S-CSCF allocated for the subscriber, thereby ensuring the successful implementation of the LIR/LIA process.

(55) If the Method II is used to determine the current registration state of the UE, the HSS triggers a process in which the IMS subscriber serves as the called party in response to receiving and processing the MAR message sent by the S-CSCF, and the process includes: in response to receiving the LIR message from the I-CSCF, the UE's registration state is recorded as either the Authentication Pending state or the registered state, and the UE's registration state stored in the HSS is the assigned S-CSCF state, since the UE has already been in the authentication state; the HSS returning the I-CSCF the LIA message carrying the S-CSCF Name stored in the HSS; and the I-CSCF sending the INVITE message to the S-CSCF corresponding to the S-CSCF Name received, and implementing the LIR/LIA process according to protocols. Obviously, when the initial IMS registration procedure is not completed, and the LIR/LIA process is triggered, the I-CSCF is enabled to forward the corresponding message in the LIR/LIA process to the S-CSCF allocated for the subscriber, thereby ensuring the successful implementation of the LIR/LIA process.

(56) If the Method I is used to determine the current registration state of the UE, the HSS triggers a process in which the IMS subscriber serves as the called party in response to receiving and processing the MAR message sent by the S-CSCF, and the process includes: in response to receiving the LIR message from the I-CSCF, the current registration state of the UE is the not registered state, but the Pending Flag stored in the HSS is set to the Pending state, it means that the UE is being authenticated, that is, the UE is in the authentication state; the HSS returning the I-CSCF the LIA message carrying the S-CSCF Name stored in the HSS; and the I-CSCF sending the INVITE message to the S-CSCF corresponding to the S-CSCF Name received, and implementing the LIR/LIA process according to protocols. Obviously, when the initial IMS registration procedure is not completed, and the LIR/LIA process is triggered, the I-CSCF is enabled to forward the corresponding message in the LIR/LIA process to the S-CSCF allocated for the subscriber, thereby ensuring the successful implementation of the LIR/LIA process.

(57) Steps 210-212: The S-CSCF sends a 401 unauthorized response to the UE through the I-CSCF and the P-CSCF, to challenge the UE;

(58) Steps 213-214: The UE sends a second Register request carrying the RES to the I-CSCF through the P-CSCF.

(59) The specific implementation of the steps 210-214 is similar to that of the steps 109-113 in the prior art, so there is no more description.

(60) Step 215: The I-CSCF initiates to an HSS a UAR message.

(61) Step 216: The HSS determines whether the current registration state of the UE is the assigned S-CSCF state according to the current registration state of the UE stored in the HSS.

(62) Step 217: If the current registration state of the UE is the assigned S-CSCF state, the HSS sends a UAA message carrying an S-CSCF Name to the I-CSCF; otherwise, the HSS sends the UAA message carrying S-CSCF Capabilities to the I-CSCF.

(63) The specific implementation of the steps 216-217 is similar to that of the steps 203-204, so there is no more description.

(64) It should be noted that, if the method I in the steps 203-204 is used to determine the current registration state of the UE, because the UAR/UAA procedure in the steps 216-217 is the second UAR/UAA procedure of the initial IMS registration, the UE's registration state recorded in the HSS is still the not registered state, but the Pending Flag has been set to the Pending state; according to the process of steps 2034-2036 of the Method I, the UE is still in the authentication state. The HSS returns the I-CSCF the S-CSCF Name selected during the first UAR/UAA procedure and stored in the HSS in steps 207-209.

(65) If the Method II in the steps 203-204 is used to determine the current registration state of the UE, because in the steps 207-209, the current registration state of the UE is recorded as the Authentication Pending state or the registered state. The HSS returns the I-CSCF the UAA message carrying the S-CSCF Name selected during the first UAR/UAA procedure and stored in the HSS in the steps 207-209.

(66) If the Method III in the steps 203-204 is used to determine the current registration state of the UE, the UE is in the authentication state according to the process of Method III, since the UAR/UAA procedure in the steps 216-217 is the second UAR/UAA procedure of the initial IMS registration procedure, the UE's registration state recorded in the HSS is still the not registered state, but the S-CSCF Name of the S-CSCF selected during the first UAR/UAA procedure is stored in the HSS. The HSS returns the I-CSCF the UAA message carrying the S-CSCF Name.

(67) Step 218: The I-CSCF sends the second Register request to the S-CSCF corresponding to the S-CSCF Name according to the S-CSCF Name carried in the UAA message.

(68) According to the process in steps 216-217, and step 218, the HSS returns the S-CSCF Name of the S-CSCF selected during the first UAR/UAA procedure and stored in the HSS to the I-CSCF during the second UAR/UAA procedure, by recording different UE's registration states, and the second Register request from the UE is ensured to be successfully sent to the S-CSCF receiving the first Register request, and the successful implementation of the UE's initial IMS registration is ensured.

(69) Step 219: The S-CSCF authenticates the UE according to the RES carried in the second Register request.

(70) Step 220: If the UE passes the authentication, the S-CSCF sends an SAR message to the HSS.

(71) Step 221: The HSS returns an SAA message to the S-CSCF in response to receiving the SAR message.

(72) The specific implementation of the steps 219-221 is similar to that of the steps 117-119 in the prior art, so there is no more description.

(73) Steps 222-224: The S-CSCF sends a 200 OK answer to the UE through the I-CSCF and the P-CSCF to accept the initial IMS registration initiated by the UE.

(74) The specific implementation of the steps 222-224 is similar to that of the steps 120-122 in the prior art, so there is no more description.

(75) The above are only preferred embodiments of the present invention and are not for use in limiting the present invention. Any modification, equivalent replacement or improvement made under the spirit and principles of the present invention is included in the protection scope of the present invention.