Network access method and apparatus
By obtaining P-CSCF addresses from a preset list and selecting a target P-CSCF address to make a SIP registration request, the problem of IMS network registration failure was solved, improving the success rate of terminal access to the IMS network and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2021-01-21
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, when a terminal accesses the IMS network, the registration fails due to a P-CSCF response failure, resulting in a low IMS network registration success rate and a poor user experience.
The terminal obtains a pre-configured list containing n first P-CSCF addresses or m second P-CSCF addresses, determines the target P-CSCF address through the list, and sends a SIP registration request to the target P-CSCF to improve the registration success rate.
By selecting P-CSCF addresses that have historically responded successfully or failed, the success rate of terminal registration with the IMS network and the user experience are improved, while the occurrence of P-CSCF response failures is reduced.
Smart Images

Figure CN112714136B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, specifically relating to a network access method and apparatus. Background Technology
[0002] Internet Protocol (IP) Multimedia System, or IP Multimedia Subsystem (IMS), is a network architecture that provides network services such as voice and video. It typically uses Session Initiation Protocol (SIP) to achieve network communication between terminals.
[0003] Currently, when a terminal accesses the IMS network, it needs to register with the IMS network first. After successful registration, it can access the IMS network. Specifically, when registering with the IMS network, the terminal can send a SIP registration request to the P-CSCF corresponding to the Proxy-CSCF (P-CSCF) address assigned by the Call Session Control Function (CSCF) discovery mechanism. The P-CSCF then executes the terminal's registration process with the IMS network based on the SIP registration request, enabling the terminal to access the IMS network after successful registration.
[0004] In the process of developing this application, the inventors discovered at least the following problems in the prior art:
[0005] In existing technologies, terminal registration with the IMS network may fail due to P-CSCF response failures (such as a registration failure message or a response timeout). This results in a low success rate for terminal registration with the IMS network, leading to a poor user experience. Summary of the Invention
[0006] The purpose of this application is to provide a network access method and apparatus that can solve the technical problems of low success rate of terminal registration with the IMS network, low success rate of accessing IMS, and poor user experience.
[0007] To solve the above-mentioned technical problems, this application is implemented as follows:
[0008] In a first aspect, embodiments of this application provide a network access method applied to a terminal, the method comprising:
[0009] Obtain a preset list; the preset list includes n first proxy call session control function (P-CSCF) addresses or m second P-CSCF addresses; n and m are positive integers;
[0010] Based on the preset list, a target P-CSCF address is determined; wherein, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0011] Send a Session Initiation Protocol (SIP) registration request to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the IMS network through the target P-CSCF.
[0012] Secondly, embodiments of this application provide a network access device, the device comprising:
[0013] The acquisition module is used to acquire a preset list; the preset list includes n first proxy call session control function (P-CSCF) addresses or m second P-CSCF addresses; n and m are positive integers;
[0014] The determining module is used to determine a target P-CSCF address based on the preset list; wherein, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0015] The sending module is used to send a Session Initiation Protocol (SIP) registration request to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the IMS network through the target P-CSCF.
[0016] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0017] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0018] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0019] In this embodiment, the terminal can obtain a pre-configured preset list including n first P-CSCF addresses or m second P-CSCF addresses. Then, it determines the target P-CSCF address using this preset list. Finally, it sends a SIP registration request to the target P-CSCF corresponding to the target P-CSCF address. Upon successful registration via the SIP registration request response message, the terminal accesses the IMS network. Furthermore, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0020] In this way, if the preset list includes the first P-CSCF address, a SIP registration request can be sent to the first P-CSCF; or if the preset list includes the second P-CSCF address, a SIP registration request can be sent to any P-CSCF other than the second P-CSCF. Thus, this application can determine the target P-CSCF based on the pre-configured preset list, and then send a SIP registration request to the target P-CSCF determined based on the preset list. Compared to the existing method of directly sending a SIP registration request to the P-CSCF address allocated by the CSCF discovery mechanism, this effectively improves the success rate of terminal registration with the IMS network, increases the success rate of terminal access to the IMS network, and enhances the user experience. Attached Figure Description
[0021] Figure 1 This is a flowchart illustrating a network access method provided in an embodiment of this application;
[0022] Figure 2 This is a flowchart illustrating another network access method provided in an embodiment of this application;
[0023] Figure 3 This is a flowchart illustrating another network access method provided in an embodiment of this application;
[0024] Figure 4 This is a schematic diagram of the structure of a network access device provided in an embodiment of this application;
[0025] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0028] As is known from the background technology, a terminal registers with and accesses the IMS network by sending a SIP registration request to the P-CSCF corresponding to the P-CSCF address allocated by the CSCF discovery mechanism. However, a failure to respond to the P-CSCF can lead to the terminal failing to register with the IMS network.
[0029] Specifically, the P-SCSF serves as both the boundary node and access node of the IMS network. As the first contact node for terminals at the signaling layer within the IMS network, the P-SCSF acts as a SIP proxy server from a SIP perspective. All SIP signaling, whether originating from or destined for the terminal, must pass through the P-SCSF. Furthermore, terminals must register with the IMS network before accessing IMS services.
[0030] Therefore, when a terminal initiates IMS services such as Voice over Long-Term Evolution (VOLTE) or Voice over Wi-Fi (VOWIFI), it needs to register with IMS first. During registration, the terminal can use its local CSCF discovery mechanism to obtain a P-CSCF address and send a SIP registration request to the P-CSCF corresponding to that address. The P-CSCF then uses the existing mechanism to register the terminal with the IMS network based on the SIP registration request, thus enabling the terminal to access the IMS network. However, in this access method, because the CSCF discovery mechanism does not consider the success or failure of historical P-CSCF response messages when assigning a P-CSCF address, terminal registration with the IMS network often fails due to P-CSCF response failures.
[0031] Based on the above findings, embodiments of this application provide a network access method and apparatus. A terminal can obtain a pre-configured preset list including n first P-CSCF addresses or m second P-CSCF addresses. Then, using this preset list, a target P-CSCF address is determined. Finally, a SIP registration request is sent to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the IMS network when the target P-CSCF successfully responds to the SIP registration request. Furthermore, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0032] In this way, if the preset list includes n first P-CSCF addresses, a SIP registration request can be sent to the first P-CSCF; or if the preset list includes m second P-CSCF addresses, a SIP registration request can be sent to all P-CSCFs other than the second P-CSCFs. Thus, this application can determine the target P-CSCF based on the pre-configured preset list, and then send a SIP registration request to the target P-CSCF determined based on the preset list. Compared to the existing method of directly sending SIP registration requests to the P-CSCF addresses allocated by the CSCF discovery mechanism, this can effectively improve the success rate of terminal registration with the IMS network, improve the success rate of terminal access to the IMS network, and improve the user experience.
[0033] The network access method provided in this application will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] Figure 1 This application illustrates a network access method provided by an embodiment of the present application, which is applied to a terminal. For example... Figure 1 As shown, network access methods may include:
[0035] S110, the terminal obtains the preset list.
[0036] The preset list may include n first proxy call session control function (P-CSCF) addresses or m second P-CSCF addresses, where n and m are positive integers. This preset list may be pre-configured and stored on the terminal side, so that the terminal can obtain the target P-CSCF address from it when registering with the IMS network.
[0037] As an example, when a user wants to use IMS services through a terminal, the terminal needs to access the IMS network. Before accessing the IMS network, the terminal needs to register with the IMS network. At this time, the terminal can first obtain a preset list stored on the terminal side. This preset list can be a list including n first P-CSCF addresses; or, the preset list can be a list including m second P-CSCF addresses, where n and m are both positive integers.
[0038] It is understandable that the process of a terminal registering with the IMS network can be performed every time it accesses the IMS network. Alternatively, it can be performed periodically. Taking an hourly period as an example, if the terminal successfully registered with the IMS network at 10:00, it can directly access the IMS network within one hour after 10:00 without needing to register again.
[0039] Alternatively, the preset list can be created after the terminal first registers with the IMS network, or it can be created after any terminal registration with the IMS network. Furthermore, the first or second P-CSCF address in the preset list can be added based on the P-CSCF addresses used during IMS network registrations within a past period.
[0040] S120, the terminal determines the target P-CSCF address based on a preset list.
[0041] The target P-CSCF address can be selected from a preset list and is the address of the P-CSCF used to perform the terminal's registration service with the IMS network.
[0042] If the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; if the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0043] As an example, after obtaining a preset list, the terminal can determine a P-CSCF address, i.e., the target P-CSCF address, based on the preset list. For instance, if the preset list includes n first P-CSCF addresses, the terminal can select a first P-CSCF address from the preset list as the target P-CSCF address; or, if the preset list includes m second P-CSCF addresses, the terminal can select a P-CSCF address outside the preset list as the target P-CSCF address.
[0044] As a concrete example, if the preset list includes n first P-CSCF addresses, one of the first P-CSCF addresses in the preset list can be selected as the target P-CSCF address, and a SIP registration request can be sent to the P-CSCF corresponding to that first P-CSCF address. If the first P-CSCF address fails to respond to the SIP registration request, a first P-CSCF address that was not selected as the target P-CSCF address can be selected from the preset list, and a SIP registration request can be sent to the P-CSCF corresponding to the newly selected first P-CSCF address. This continues until a P-CSCF corresponding to one of the n first P-CSCF addresses in the preset list successfully responds to the SIP registration request.
[0045] Taking a preset list containing n first P-CSCF addresses: P-CSCF address 1, P-CSCF address 2, P-CSCF address 3, ..., P-CSCF address n, as an example, we can first determine P-CSCF address 1 as the target P-CSCF address and send a SIP registration request to P-CSCF1 corresponding to P-CSCF address 1. If P-CSCF1 fails to respond to the SIP registration request, we can determine P-CSCF address 2 as the target P-CSCF address and send a SIP registration request to P-CSCF2 corresponding to P-CSCF address 2. This continues until a P-CSCF corresponding to one of the n first P-CSCF addresses in the preset list successfully responds to the SIP registration request.
[0046] S130, the terminal sends a Session Initiation Protocol (SIP) registration request to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the IMS network through the target P-CSCF.
[0047] The target P-CSCF can be the P-CSCF corresponding to the target P-CSCF address.
[0048] As an example, after determining the target P-CSCF address based on a preset list, the terminal can identify the target P-CSCF corresponding to that address and send a SIP registration request to that target P-CSCF. Upon receiving the SIP registration request, the target P-CSCF can register with the IMS network based on the SIP registration request, enabling the terminal to access the IMS network after successful registration. The process of the target P-CSCF registering with the IMS network based on the SIP registration request, allowing the terminal to access the IMS network after successful registration, is the same as in existing technologies and will not be described in detail here.
[0049] In this embodiment, the terminal can obtain a pre-configured preset list including n first P-CSCF addresses or m second P-CSCF addresses. Then, it determines the target P-CSCF address using this preset list. Finally, it sends a SIP registration request to the target P-CSCF corresponding to the target P-CSCF address. Upon successful SIP registration by the target P-CSCF, the terminal accesses the IMS network. Furthermore, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0050] In this way, if the preset list includes n first P-CSCF addresses, a SIP registration request can be sent to the first P-CSCF; or if the preset list includes m second P-CSCF addresses, a SIP registration request can be sent to all P-CSCFs other than the second P-CSCFs. Thus, this application can determine the target P-CSCF based on the pre-configured preset list, and then send a SIP registration request to the target P-CSCF determined based on the preset list. Compared to the existing method of directly sending SIP registration requests to the P-CSCF addresses allocated by the CSCF discovery mechanism, this can effectively improve the success rate of terminal registration with the IMS network, improve the success rate of terminal access to the IMS network, and improve the user experience.
[0051] In some embodiments, the first P-CSCF address can be the address of the P-CSCF that responded to a successful historical SIP registration request, and the second P-CSCF address can be the address of the P-CSCF that responded to a failed historical SIP registration request.
[0052] As an example, the aforementioned first P-CSCF address or second P-CSCF address refers to the address of a P-CSCF that successfully or unsuccessfully responded to historical SIP registration requests within a certain period of time. For instance, the P-CSCF address used during successful IMS network registration within a certain period of time can be added to the preset list as the first P-CSCF address; or, the P-CSCF address used during failed IMS registration within a certain period of time can be added to the preset list as the second P-CSCF address.
[0053] Thus, when the preset list includes n first P-CSCF addresses, the target P-CSCF address can be the first P-CSCF address that successfully responded to a historical SIP registration request. When the preset list includes m second P-CSCF addresses, the target P-CSCF address can be a P-CSCF address other than the second P-CSCF address that failed to respond to a historical SIP registration request. Therefore, this application can send SIP registration requests to the P-CSCF that successfully responded to a historical SIP registration request, or to P-CSCFs other than those that failed to respond to a historical SIP registration request. This can further improve the success rate of terminal registration with the IMS network, improve the success rate of terminal access to the IMS network, and improve the user experience.
[0054] Specifically, on the one hand, when the preset list includes n first P-CSCF addresses, the target P-CSCF address determined based on the preset list can be the first P-CSCF address that successfully responded to a historical SIP registration request. Thus, determining the first P-CSCF address that successfully responded to a historical SIP registration request as the target P-CSCF address can effectively reduce the occurrence of P-CSCF response failures and terminal registration failures to the IMS network, thereby effectively improving the success rate of terminal registration to the IMS network, increasing the success rate of terminal access to the IMS network, and improving user experience. Furthermore, when the terminal initiates the IMS network registration service again, it can directly select the target P-CSCF address from the preset list, thereby reducing the time spent querying the target P-CSCF address and further improving user experience.
[0055] On the other hand, if the preset list includes m second P-CSCF addresses, the target P-CSCF address determined based on the preset list can be a P-CSCF address other than the second P-CSCF address that failed to respond to historical SIP registration requests. That is, the target P-CSCF address is not the second P-CSCF address that failed to respond to historical SIP registration requests. Thus, determining the target P-CSCF address as a P-CSCF address other than the second P-CSCF address that failed to respond to historical SIP registration requests can effectively improve the interaction efficiency between the terminal and the P-CSCF, effectively reduce the phenomenon of P-CSCF response failures, thereby effectively reducing the phenomenon of terminal registration failures to the IMS network, increasing the success rate of terminal access to the IMS network, and improving the user experience.
[0056] In some embodiments, the first P-CSCF address with the shorter response time can be preferentially determined as the target P-CSCF address. Correspondingly, the preset list can also include the response time corresponding to each first P-CSCF address; the preset list can be arranged in ascending order of response time. The specific implementation of step S120 above can then be as follows:
[0057] The terminal determines the i-th first P-CSCF address in the preset list as the target P-CSCF address;
[0058] If the terminal fails to respond to the SIP registration request at the P-CSCF corresponding to the i-th first P-CSCF address, it will determine the (i+1)-th first P-CSCF address in the preset list as the target P-CSCF address.
[0059] Where i∈[1,n-1].
[0060] As an example, the preset list can also include the response time corresponding to each first P-CSCF address, and the first P-CSCF addresses can be sorted in ascending order of response time. In this case, when determining the target P-CSCF address, the terminal can first identify the i-th first P-CSCF address as the target P-CSCF address and send a SIP registration request to that i-th first P-CSCF address. If the terminal successfully responds to the SIP registration request at the i-th first P-CSCF address, it can access the IMS network; otherwise, if the response to the SIP registration request at the i-th first P-CSCF address fails, the (i+1)-th first P-CSCF address can be identified as the target P-CSCF address.
[0061] As a concrete example, with i = 1 and n = 10, the terminal can first determine the first first P-CSCF address as the target P-CSCF address. If the first first P-CSCF address fails to respond to the SIP registration request, the second first P-CSCF address in the preset list is determined as the target P-CSCF address. If the second first P-CSCF address fails to respond to the SIP registration request, the third first P-CSCF address in the preset list is determined as the target P-CSCF address. And so on.
[0062] In this way, the first P-CSCF address with the shortest response time is prioritized as the target P-CSCF address, allowing for preferential IMS network registration. This not only reduces P-CSCF response failures and terminal registration failures to the IMS network, but also reduces the time spent on terminal registration and IMS network access, thereby further improving the user experience.
[0063] In some embodiments, if all responses to SIP registration requests from the third P-CSCF address allocated by the CSCF discovery mechanism fail, a preset list can be obtained. The specific implementation can be as follows:
[0064] The terminal obtains the third P-CSCF address assigned by the Call Session Control Function (CSCF) discovery mechanism;
[0065] The terminal sends a SIP registration request to the P-CSCF corresponding to the third P-CSCF address;
[0066] At this point, the specific implementation method for obtaining the preset list in step S110 above can be as follows:
[0067] If the terminal fails to respond to the SIP registration request at the P-CSCF corresponding to the third P-CSCF address, it obtains the preset list.
[0068] As an example, a terminal can first obtain a P-CSCF address allocated based on the existing CSCF discovery mechanism, i.e., a third P-CSCF address, and then send a SIP registration request to the P-CSCF corresponding to the third P-CSCF address. If the P-CSCF corresponding to the third P-CSCF address fails to respond to the SIP registration request, the terminal can then obtain a preset list to determine the target P-CSCF address based on the preset list, and send a SIP registration request to the P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the IMS network through the target P-CSCF.
[0069] In this way, since the P-CSCF address allocated by the CSCF discovery mechanism is often combined with the terminal's real-time attributes, such as the terminal's geographical location, the third P-CSCF address is often more consistent with the terminal's real-time attributes. Therefore, the third P-CSCF address allocated by the CSCF discovery mechanism is used preferentially. Only when the P-CSCF corresponding to the third P-CSCF address allocated by the CSCF discovery mechanism fails to respond to the SIP registration request, a preset list is retrieved. Based on the preset list, a target P-CSCF address is determined, and a SIP registration request is sent to the target P-CSCF address corresponding to that target P-CSCF address, enabling the terminal to access the IMS network through the target P-CSCF. This further improves the success rate of terminal registration with the IMS network, increases the success rate of terminal access to the IMS network, and enhances the user experience.
[0070] It should be noted that alternatively, a preset list can be obtained first, and the target P-CSCF address can be determined based on this list. After each first P-CSCF address in the preset list fails to respond to the SIP registration request, a third P-CSCF address allocated by the CSCF discovery mechanism can be obtained, and the IMS network can be accessed through the P-CSCF corresponding to this third P-CSCF address. In this way, even if each first P-CSCF address in the preset list fails to respond to the SIP registration request, access to the IMS network through the third P-CSCF address allocated by the CSCF discovery mechanism can further improve the success rate of terminal registration with the IMS network, thus improving the user experience.
[0071] In some embodiments, when the preset list includes n first P-CSCF addresses, the preset list can be updated to improve its accuracy. Accordingly, after step S130 above, the following steps can also be performed:
[0072] If the target P-CSCF successfully responds to the SIP registration request, the terminal obtains the response duration corresponding to the target P-CSCF.
[0073] The terminal updates the preset list based on the target P-CSCF address and the response time corresponding to the target P-CSCF.
[0074] As an example, when a terminal sends a SIP registration request to a target P-CSCF, it can start a timer to track the response time of the target P-CSCF. Specifically, the time interval from sending the SIP registration request to receiving a successful registration response message from the target P-CSCF can be recorded. If the target P-CSCF successfully responds to the SIP registration request, the terminal can obtain the response time corresponding to that target P-CSCF. Then, based on the target P-CSCF address and the corresponding response time, the terminal can update the preset list.
[0075] As a specific example, if the target P-CSCF address that successfully responds to the SIP registration request is determined based on a preset list, the specific method for the terminal to update the preset list can be: update the response duration corresponding to the target P-CSCF address, and sort the first P-CSCF address in the updated preset list based on the updated response duration.
[0076] If the target P-CSCF address that successfully responds to the SIP registration request is the third P-CSCF address assigned by the CSCF discovery mechanism, the specific method for the terminal to update the preset list can be as follows: add the third P-CSCF address as the new first P-CSCF address to the preset list, add the response duration corresponding to the third P-CSCF address to the preset list, and sort the first P-CSCF addresses in the updated preset list in ascending order of response duration.
[0077] Understandably, to ensure a short response time for the first P-CSCF address in the preset list and reduce the storage space occupied by the preset list, an upper limit can be set for the total number of first P-CSCF addresses stored in the preset list, such as 3-10. In this case, when updating the preset list, if the number in the preset list exceeds the upper limit, one or more first P-CSCF addresses and their corresponding response times can be deleted from the preset list in descending order of response time.
[0078] In this way, updating the preset list based on the target P-CSCF address and the corresponding response time of the target P-CSCF can improve the accuracy of the first P-CSCF address and its corresponding response time stored in the preset list. This can further reduce the occurrence of P-CSCF response failures and the occurrence of terminal registration failures to the IMS network, thereby further improving the success rate of terminal registration to the IMS network, the success rate of terminal access to the IMS network, and the user experience.
[0079] To make the methods provided in the embodiments of this application clearer, the following is combined with... Figure 2The network access method is described when the first P-CSCF address is included in the preset list.
[0080] like Figure 2 As shown, if the first P-CSCF address is included in the preset list, the network access method may include the following steps:
[0081] S210, The terminal obtains the third P-CSCF address assigned by the Call Session Control Function (CSCF) discovery mechanism.
[0082] S220, the terminal sends a SIP registration request to the P-CSCF corresponding to the third P-CSCF address.
[0083] S230, if the terminal fails to respond to the SIP registration request at the third P-CSCF address, it obtains a preset list, which includes n first P-CSCF addresses.
[0084] S240, the terminal determines the i-th first P-CSCF address in the preset list as the target P-CSCF address.
[0085] S250, if the terminal fails to respond to the SIP registration request at the P-CSCF corresponding to the i-th first P-CSCF address, the terminal determines the (i+1)-th first P-CSCF address in the preset list as the target P-CSCF address.
[0086] S260, if the target P-CSCF successfully responds to the SIP registration request, the terminal obtains the response duration corresponding to the target P-CSCF address.
[0087] S270, the terminal updates the preset list based on the target P-CSCF address and the response time corresponding to the target P-CSCF.
[0088] The specific implementation principles and technical effects of the above steps are similar to those of the above method embodiments, and will not be repeated here for the sake of brevity.
[0089] In some embodiments, when the preset list includes m second P-CSCF addresses, the target P-CSCF address can be a fourth P-CSCF address that is different from the second P-CSCF address among the fourth P-CSCF addresses allocated by the CSCF discovery mechanism.
[0090] As an example, the terminal can compare each fourth P-CSCF address allocated by the CSCF discovery mechanism with the second P-CSCF address in a preset list, and select a fourth P-CSCF address that is different from the second P-CSCF address in the preset list as the target P-CSCF address. Then, the terminal can send a SIP registration request to the P-CSCF corresponding to this target P-CSCF address. If the target P-CSCF fails to respond to the SIP registration request, the terminal can select a fourth P-CSCF address that is different from the second P-CSCF address in the preset list from the fourth P-CSCF addresses that were not previously identified as the target P-CSCF address, and continue to send SIP registration requests to the P-CSCF corresponding to this newly selected fourth P-CSCF address. This continues until a P-CSCF corresponding to one of the fourth P-CSCF addresses allocated by the CSCF discovery mechanism successfully responds to the SIP registration request.
[0091] As a specific example, taking the case where the fourth P-CSCF address includes three fourth P-CSCF addresses: P-CSCF address 1, P-CSCF address 2, and P-CSCF address 3, we can first determine whether P-CSCF address 1 is different from the second P-CSCF address in the preset list. If P-CSCF address 1 is different from the second P-CSCF address in the preset list, P-CSCF address 1 can be identified as the target P-CSCF address, and a SIP registration request can be sent to P-CSCF1 corresponding to P-CSCF address 1.
[0092] If P-CSCF1 fails to respond to the SIP registration request, it can be determined whether P-CSCF address 2 is different from the second P-CSCF address in the preset list. If P-CSCF address 2 is different from the second P-CSCF address in the preset list, P-CSCF address 2 can be identified as the target P-CSCF address, and a SIP registration request is sent to P-CSCF2 corresponding to P-CSCF address 2. If P-CSCF1 successfully responds to the SIP registration request, it accesses the IMS network. This process continues until one of the three fourth P-CSCF addresses corresponds to a P-CSCF that successfully responds to the SIP registration request.
[0093] It is understandable that if all SIP registration requests for the P-CSCF corresponding to the fourth P-CSCF address fail, the fourth P-CSCF address, which is the same as the second P-CSCF address in the preset list, can be determined as the target P-CSCF address.
[0094] Thus, the fourth P-CSCF address, different from the second P-CSCF address, is designated as the target P-CSCF address. Since the second P-CSCF address is the P-CSCF address that responded to a failed historical SIP registration request, not designating it as the target P-CSCF address further reduces P-CSCF response failures and terminal registration failures with the IMS network. This improves the success rate of terminal registration with the IMS network, enhances the success rate of terminal access to the IMS network, and improves the user experience.
[0095] In some embodiments, if the preset list includes a second P-CSCF address, the preset list can be updated to improve its accuracy. Accordingly, after step S130 above, the following steps can also be performed:
[0096] The terminal updates the preset list based on the target P-CSCF address.
[0097] As an example, if the terminal fails to respond to the SIP registration request or the response times out when the target P-CSCF corresponding to the target P-CSCF address fails, the terminal can update the preset list based on the target P-CSCF address corresponding to the target P-CSCF.
[0098] As a concrete example, if the target P-CSCF address in a successful SIP registration request response is the fourth P-CSCF address, the method for updating the preset list could be as follows: Add the fourth P-CSCF address that differs from the second P-CSCF address and whose SIP registration request response failed to be submitted to the preset list. If the target P-CSCF address in a successful SIP registration request response is the second P-CSCF address, remove that second P-CSCF address from the preset list.
[0099] Understandably, to ensure the accuracy of the second P-CSCF addresses in the preset list and reduce the storage space occupied by the preset list, an upper limit can be set for the total number of second P-CSCF addresses stored in the preset list, such as 3-10. In this case, when the terminal updates the preset list, if it detects that the number in the preset list exceeds the upper limit, it can delete one or more second P-CSCF addresses from the preset list in order of addition time from oldest to newest.
[0100] In this way, updating the preset list based on the target P-CSCF address can improve the accuracy of the second P-CSCF address stored in the preset list, thereby further improving the accuracy of the determined target P-CSCF address, reducing the occurrence of P-CSCF response failures, reducing the occurrence of terminal registration failures to the IMS network, and thus further improving the success rate of terminal registration to the IMS network, improving the success rate of terminal access to the IMS network, and improving the user experience.
[0101] To make the methods provided in the embodiments of this application clearer, the following is combined with... Figure 3 The network access method is explained when the second P-CSCF address is included in the preset list.
[0102] like Figure 3 As shown, when the preset list includes a second P-CSCF address, the network access method may include the following steps:
[0103] S310, the terminal obtains a preset list, which includes m second P-CSCF addresses.
[0104] S320, the terminal obtains the fourth P-CSCF address allocated by the CSCF discovery mechanism.
[0105] S330, the terminal determines whether the fourth P-CSCF address is the same as the second P-CSCF address.
[0106] If the fourth P-CSCF address is not the same as the second P-CSCF address, proceed to step S340. Conversely, if the fourth P-CSCF address is the same as the second P-CSCF address, proceed to step S350.
[0107] S340, the terminal determines the fourth P-CSCF address, which is the same as the second P-CSCF address, as the target P-CSCF address.
[0108] S350, the terminal determines the fourth P-CSCF address, which is different from the second P-CSCF address, as the target P-CSCF address.
[0109] S360: The terminal sends a SIP registration request to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the IMS network through the target P-CSCF.
[0110] S370, the terminal updates the preset list based on the target P-CSCF address.
[0111] The specific implementation principles and technical effects of the above steps are similar to those of the above method embodiments, and will not be repeated here for the sake of brevity.
[0112] It should be noted that the network access method provided in this application embodiment can be executed by a network access device, or a control module in the network access device for executing the loading network access method. This application embodiment uses the execution of the loading network access method by a network access device as an example to illustrate the network access method provided in this application embodiment.
[0113] Based on the same inventive concept, embodiments of this application also provide a network access device. For example... Figure 4 As shown, the network access device 400 may include:
[0114] The acquisition module 410 can be used to acquire a preset list; the preset list includes n first proxy call session control function (P-CSCF) addresses or m second P-CSCF addresses; n and m are positive integers;
[0115] The determining module 420 can be used to determine a target P-CSCF address based on a preset list; wherein, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0116] The sending module 430 can be used to send a Session Initiation Protocol (SIP) registration request to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the IMS network through the target P-CSCF.
[0117] In this embodiment, the terminal can obtain a pre-configured preset list including n first P-CSCF addresses or m second P-CSCF addresses. Then, it determines the target P-CSCF address using this preset list. Finally, it sends a SIP registration request to the target P-CSCF corresponding to the target P-CSCF address. Upon successful SIP registration by the target P-CSCF, the terminal accesses the IMS network. Furthermore, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0118] In this way, if the preset list includes n first P-CSCF addresses, a SIP registration request can be sent to the first P-CSCF; or if the preset list includes m second P-CSCF addresses, a SIP registration request can be sent to all P-CSCFs other than the second P-CSCFs. Thus, this application can determine the target P-CSCF based on the pre-configured preset list, and then send a SIP registration request to the target P-CSCF determined based on the preset list. Compared to the existing method of directly sending SIP registration requests to the P-CSCF addresses allocated by the CSCF discovery mechanism, this can effectively improve the success rate of terminal registration with the IMS network, improve the success rate of terminal access to the IMS network, and improve the user experience.
[0119] In some embodiments, the first P-CSCF address can be the address of the P-CSCF that responded to a successful historical SIP registration request, and the second P-CSCF address can be the address of the P-CSCF that responded to a failed historical SIP registration request.
[0120] Thus, when the preset list includes n first P-CSCF addresses, the target P-CSCF address can be the first P-CSCF address that successfully responded to a historical SIP registration request. When the preset list includes m second P-CSCF addresses, the target P-CSCF address can be a P-CSCF address other than the second P-CSCF address that failed to respond to a historical SIP registration request. Therefore, this application can send SIP registration requests to the P-CSCF that successfully responded to a historical SIP registration request, or to P-CSCFs other than those that failed to respond to a historical SIP registration request. This can further improve the success rate of terminal registration with the IMS network, improve the success rate of terminal access to the IMS network, and improve the user experience.
[0121] In some embodiments, n can be greater than or equal to 2; the preset list can also include the response time corresponding to each first P-CSCF address; the first P-CSCF addresses can be arranged in the preset list in ascending order of response time;
[0122] Module 420 may include:
[0123] The first determining unit is used to determine the i-th first P-CSCF address in the preset list as the target P-CSCF address, i∈[1,n-1];
[0124] The second determining unit is used to determine the (i+1)th first P-CSCF address in the preset list as the target P-CSCF address when the P-CSCF corresponding to the i-th first P-CSCF address fails to respond to the SIP registration request.
[0125] In this way, the first P-CSCF address with the shortest response time is prioritized as the target P-CSCF address, allowing for preferential IMS network registration. This not only reduces P-CSCF response failures and terminal registration failures to the IMS network, but also reduces the time spent on terminal registration and IMS network access, thereby further improving the user experience.
[0126] In some embodiments, the network access device 400 may further include:
[0127] The first acquisition unit is used to acquire the third P-CSCF address allocated by the Call Session Control Function (CSCF) discovery mechanism;
[0128] The sending unit is used to send a SIP registration request to the P-CSCF corresponding to the third P-CSCF address;
[0129] Module 410 can be used specifically for:
[0130] If the P-CSCF corresponding to the third P-CSCF address fails to respond to the SIP registration request, obtain the preset list.
[0131] In this way, since the P-CSCF address allocated by the CSCF discovery mechanism is often combined with the terminal's real-time attributes, such as the terminal's geographical location, the third P-CSCF address is often more consistent with the terminal's real-time attributes. Therefore, the third P-CSCF address allocated by the CSCF discovery mechanism is used preferentially. Only when the P-CSCF corresponding to the third P-CSCF address allocated by the CSCF discovery mechanism fails to respond to the SIP registration request, a preset list is retrieved. Based on the preset list, a target P-CSCF address is determined, and a SIP registration request is sent to the target P-CSCF address corresponding to that target P-CSCF address, enabling the terminal to access the IMS network through the target P-CSCF. This further improves the success rate of terminal registration with the IMS network, increases the success rate of terminal access to the IMS network, and enhances the user experience.
[0132] In some embodiments, the network access device 400 may further include a first update module, which may include:
[0133] The second acquisition unit can be used to acquire the response duration of the target P-CSCF when the target P-CSCF successfully responds to the SIP registration request.
[0134] The first update unit can be used to update the preset list based on the target P-CSCF address and the response time corresponding to the target P-CSCF.
[0135] In this way, updating the preset list based on the target P-CSCF address and the corresponding response time of the target P-CSCF can improve the accuracy of the first P-CSCF address and its corresponding response time stored in the preset list. This can further reduce the occurrence of P-CSCF response failures and the occurrence of terminal registration failures to the IMS network, thereby further improving the success rate of terminal registration to the IMS network, the success rate of terminal access to the IMS network, and the user experience.
[0136] In some embodiments, when the preset list includes m second P-CSCF addresses, the target P-CSCF address is a fourth P-CSCF address that is different from the second P-CSCF address among the fourth P-CSCF addresses allocated by the CSCF discovery mechanism.
[0137] Thus, the fourth P-CSCF address, different from the second P-CSCF address, is designated as the target P-CSCF address. Since the second P-CSCF address is the P-CSCF address that responded to a failed historical SIP registration request, not designating it as the target P-CSCF address can further reduce P-CSCF response failures and terminal registration failures with the IMS network. This, in turn, improves the success rate of terminal registration with the IMS network, increases the success rate of terminal access to the IMS network, and enhances the user experience.
[0138] In some embodiments, the network access device 400 may further include:
[0139] The second update module is used to update the preset list based on the target P-CSCF address.
[0140] In this way, updating the preset list based on the target P-CSCF address can improve the accuracy of the second P-CSCF address stored in the preset list, thereby further improving the accuracy of the determined target P-CSCF address, reducing the occurrence of P-CSCF response failures, reducing the occurrence of terminal registration failures to the IMS network, and thus further improving the success rate of terminal registration to the IMS network, improving the success rate of terminal access to the IMS network, and improving the user experience.
[0141] The network access device in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.
[0142] The network access device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0143] The network access device provided in this application embodiment can achieve... Figures 1 to 3 The various processes implemented by the network access device in the method embodiment will not be described again here to avoid repetition.
[0144] Optionally, this application embodiment also provides an electronic device, including a processor 510, a memory 509, and a program or instructions stored in the memory 509 and executable on the processor 510. When the program or instructions are executed by the processor 510, they implement the various processes of the above-described network access method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0145] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0146] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0147] The electronic device 500 includes, but is not limited to, components such as: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.
[0148] Those skilled in the art will understand that the electronic device 500 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 510 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0149] Among them, network module 502 is used to obtain the preset list;
[0150] Processor 510 is used to determine the target P-CSCF address based on a preset list;
[0151] Network module 502 is also used to send a Session Initiation Protocol (SIP) registration request to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the IMS network through the target P-CSCF.
[0152] In this embodiment, the terminal can obtain a pre-configured preset list including n first P-CSCF addresses or m second P-CSCF addresses. Then, it determines the target P-CSCF address using this preset list. Finally, it sends a SIP registration request to the target P-CSCF corresponding to the target P-CSCF address. Upon successful response from the target P-CSCF to the SIP registration request, the terminal accesses the IMS network. Furthermore, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses.
[0153] In this way, if the preset list includes n first P-CSCF addresses, a SIP registration request can be sent to the first P-CSCF; or if the preset list includes m second P-CSCF addresses, a SIP registration request can be sent to all P-CSCFs other than the second P-CSCFs. Thus, this application can determine the target P-CSCF based on the pre-configured preset list, and then send a SIP registration request to the target P-CSCF determined based on the preset list. Compared to the existing method of directly sending SIP registration requests to the P-CSCF addresses allocated by the CSCF discovery mechanism, this can effectively improve the success rate of terminal registration with the IMS network, improve the success rate of terminal access to the IMS network, and improve the user experience.
[0154] Optionally, the processor 510 is further configured to determine the i-th first P-CSCF address in the preset list as the target P-CSCF address, i∈[1,n-1];
[0155] If the P-CSCF corresponding to the i-th first P-CSCF address fails to respond to the SIP registration request, the (i+1)-th first P-CSCF address in the preset list will be determined as the target P-CSCF address.
[0156] In this way, the first P-CSCF address with the shortest response time is prioritized as the target P-CSCF address, allowing for preferential IMS network registration. This not only reduces P-CSCF response failures and terminal registration failures to the IMS network, but also reduces the time spent on terminal registration and IMS network access, thereby further improving the user experience.
[0157] Optionally, network module 502 is also configured to obtain the third P-CSCF address assigned by the Call Session Control Function (CSCF) discovery mechanism; send a SIP registration request to the P-CSCF corresponding to the third P-CSCF address; and obtain a preset list if the P-CSCF corresponding to the third P-CSCF address fails to respond to the SIP registration request.
[0158] In this way, since the P-CSCF address allocated by the CSCF discovery mechanism is often combined with the terminal's real-time attributes, such as the terminal's geographical location, the third P-CSCF address is often more consistent with the terminal's real-time attributes. Therefore, the third P-CSCF address allocated by the CSCF discovery mechanism is used preferentially. Only when the P-CSCF corresponding to the third P-CSCF address allocated by the CSCF discovery mechanism fails to respond to the SIP registration request, a preset list is retrieved. Based on the preset list, a target P-CSCF address is determined, and a SIP registration request is sent to the target P-CSCF address corresponding to that target P-CSCF address, enabling the terminal to access the IMS network through the target P-CSCF. This further improves the success rate of terminal registration with the IMS network, increases the success rate of terminal access to the IMS network, and enhances the user experience.
[0159] Optionally, network module 502 is further configured to obtain the response duration of the target P-CSCF if the target P-CSCF successfully responds to the SIP registration request;
[0160] The processor 510 is also used to update the preset list based on the target P-CSCF address and the response time corresponding to the target P-CSCF.
[0161] In this way, updating the preset list based on the target P-CSCF address and the corresponding response time of the target P-CSCF can improve the accuracy of the first P-CSCF address and its corresponding response time stored in the preset list. This can further reduce the occurrence of P-CSCF response failures and the occurrence of terminal registration failures to the IMS network, thereby further improving the success rate of terminal registration to the IMS network, the success rate of terminal access to the IMS network, and the user experience.
[0162] Optionally, the processor 510 is also used to update the preset list based on the target P-CSCF address.
[0163] In this way, updating the preset list based on the target P-CSCF address can improve the accuracy of the second P-CSCF address stored in the preset list, thereby further improving the accuracy of the determined target P-CSCF address, reducing the occurrence of P-CSCF response failures, reducing the occurrence of terminal registration failures to the IMS network, and thus further improving the success rate of terminal registration to the IMS network, improving the success rate of terminal access to the IMS network, and improving the user experience.
[0164] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described network access method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0165] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0166] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above network access method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0167] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0168] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0169] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause an electronic device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0170] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A network access method, characterized in that, Applied to a terminal, the method includes: Obtain a preset list; the preset list includes n first proxy call session control function (P-CSCF) addresses or m second P-CSCF addresses; n and m are positive integers; Based on the preset list, a target P-CSCF address is determined; wherein, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses. Send a Session Initiation Protocol (SIP) registration request to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the Internet Protocol Multimedia System (IMS) network through the target P-CSCF; Before obtaining the preset list, the process also includes: Obtain the third P-CSCF address assigned by the Call Session Control Function (CSCF) discovery mechanism; Send a SIP registration request to the P-CSCF corresponding to the third P-CSCF address; The process of obtaining the preset list includes: If the P-CSCF corresponding to the third P-CSCF address fails to respond to the SIP registration request, the preset list is obtained. The n is greater than or equal to 2; the preset list also includes the response time corresponding to each of the first P-CSCF addresses; the first P-CSCF addresses are arranged in the preset list in ascending order of response time; The step of determining the target P-CSCF address based on the preset list includes: The i-th first P-CSCF address in the preset list is determined as the target P-CSCF address, i∈[1,n-1]; If the P-CSCF corresponding to the i-th first P-CSCF address fails to respond to the SIP registration request, the (i+1)-th first P-CSCF address in the preset list will be determined as the target P-CSCF address. After sending a SIP registration request to the target P-CSCF corresponding to the target P-CSCF address to enable the terminal to access the IMS network through the target P-CSCF, the method further includes: If the target P-CSCF successfully responds to the SIP registration request, the response time corresponding to the target P-CSCF is obtained; The preset list is updated based on the target P-CSCF address and the response time corresponding to the target P-CSCF. If the target P-CSCF address that successfully responds to the SIP registration request is the third P-CSCF address assigned by the CSCF discovery mechanism, the method further includes: The third P-CSCF address is added to the preset list as a new first P-CSCF address. The response time corresponding to the third P-CSCF address is added to the preset list. The first P-CSCF addresses in the updated preset list are sorted in ascending order of response time.
2. The method of claim 1, wherein, The first P-CSCF address is the address of the P-CSCF that successfully responded to a historical SIP registration request, and the second P-CSCF address is the address of the P-CSCF that failed to respond to a historical SIP registration request.
3. The method of claim 2, wherein, When the preset list includes m second P-CSCF addresses, the target P-CSCF address is a fourth P-CSCF address that is different from the second P-CSCF address among the fourth P-CSCF addresses allocated by the CSCF discovery mechanism.
4. A network access device, comprising: include: The get module is used to retrieve the preset list; The preset list includes n first proxy call session control function (P-CSCF) addresses or m second P-CSCF addresses; n and m are positive integers; The determining module is used to determine a target P-CSCF address based on the preset list; wherein, when the preset list includes n first P-CSCF addresses, the target P-CSCF address is one of the n first P-CSCF addresses; when the preset list includes m second P-CSCF addresses, the target P-CSCF address is an address other than the m second P-CSCF addresses. The sending module is used to send a Session Initiation Protocol (SIP) registration request to the target P-CSCF corresponding to the target P-CSCF address, so that the terminal can access the Internet Protocol Multimedia System (IMS) network through the target P-CSCF; The network access device further includes: The first acquisition unit is used to acquire the third P-CSCF address allocated by the Call Session Control Function (CSCF) discovery mechanism; The sending unit is used to send a SIP registration request to the P-CSCF corresponding to the third P-CSCF address; The acquisition module is specifically used for: If the P-CSCF corresponding to the third P-CSCF address fails to respond to the SIP registration request, the preset list is obtained. The n is greater than or equal to 2; the preset list also includes the response time corresponding to each of the first P-CSCF addresses; the first P-CSCF addresses are arranged in the preset list in ascending order of response time; The determining module includes: The first determining unit is used to determine the i-th first P-CSCF address in the preset list as the target P-CSCF address, i∈[1,n-1]; The second determining unit is used to determine the (i+1)th first P-CSCF address in the preset list as the target P-CSCF address when the P-CSCF corresponding to the i-th first P-CSCF address fails to respond to the SIP registration request. The network access device further includes a first update module, which includes: The second acquisition unit is used to acquire the response time of the target P-CSCF when the target P-CSCF successfully responds to the SIP registration request. The first update unit is used to update the preset list based on the target P-CSCF address and the response time corresponding to the target P-CSCF. If the target P-CSCF address that successfully responds to the SIP registration request is the third P-CSCF address assigned by the CSCF discovery mechanism, the determining module further includes: The second update unit is used to add the third P-CSCF address as a new first P-CSCF address to the preset list, add the response time corresponding to the third P-CSCF address to the preset list, and sort the first P-CSCF addresses in the updated preset list in ascending order of response time.
5. The apparatus of claim 4, wherein, The first P-CSCF address is the address of the P-CSCF that successfully responded to a historical SIP registration request, and the second P-CSCF address is the address of the P-CSCF that failed to respond to a historical SIP registration request.
6. The apparatus of claim 5, wherein, When the preset list includes m second P-CSCF addresses, the target P-CSCF address is a fourth P-CSCF address that is different from the second P-CSCF address among the fourth P-CSCF addresses allocated by the CSCF discovery mechanism.