CN111315009B - IMS network registration method and related device - Google Patents

IMS network registration method and related device Download PDF

Info

Publication number
CN111315009B
CN111315009B CN202010266220.4A CN202010266220A CN111315009B CN 111315009 B CN111315009 B CN 111315009B CN 202010266220 A CN202010266220 A CN 202010266220A CN 111315009 B CN111315009 B CN 111315009B
Authority
CN
China
Prior art keywords
address
ims network
address information
alternative
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010266220.4A
Other languages
Chinese (zh)
Other versions
CN111315009A (en
Inventor
张雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN202010266220.4A priority Critical patent/CN111315009B/en
Publication of CN111315009A publication Critical patent/CN111315009A/en
Application granted granted Critical
Publication of CN111315009B publication Critical patent/CN111315009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides an IMS network registration method and a related device, relating to the field of communication. After the terminal equipment establishes a bearer with the IMS network, receiving a response message returned by the IMS network based on a P-CSCF equipment discovery request sent by the terminal equipment, reading locally pre-configured alternative address information when the response message is determined not to carry the address information of the P-CSCF equipment allocated by the IMS network or the address information of the P-CSCF equipment carried in the response message is invalid, and initiating a registration request to the IMS network based on the alternative address information. Therefore, when the IMS network is abnormal and cannot return the address of the P-CSCF equipment, the terminal equipment is pre-configured with the alternative address information of the P-CSCF equipment, so that the IMS registration can be carried out by using the alternative address information, and the problem that the terminal equipment cannot be successfully registered to the IMS network due to the abnormal IMS network is avoided.

Description

IMS network registration method and related device
Technical Field
The present invention relates to the field of communications, and in particular, to an IMS network registration method and a related apparatus.
Background
In an LTE (Long Term Evolution) network, PS (Packet Switched) calls based on an IMS (Internet Protocol Multimedia Subsystem) network are becoming more and more important, and some countries have already started to quit a 2g,3g network, and once a problem occurs in registration of a UE (User Equipment) with the IMS network, a mobile phone cannot make a call.
A CSCF (Call Session Control Function) entity is a key component in the IMS network, where a P-CSCF (Proxy-CSCF) device is a first node of the UE accessing the IMS network, and before the UE initiates a registration request to the IMS network, the UE needs to establish a bearer with the IMS network to obtain an address (address) of the P-CSCF allocated to the IMS network.
However, when the IMS network is abnormal, the address of the P-CSCF cannot be returned to the UE by establishing a bearer, so that the UE cannot register with the IMS network.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an IMS network registration method and a related apparatus, so as to solve the problem that a terminal device cannot register with an IMS network due to an abnormal IMS network.
In order to achieve the above object, the embodiments of the present invention adopt the following technical solutions:
in a first aspect, an embodiment of the present invention provides an IMS network registration method, which is applied to a terminal device, where the terminal device is preconfigured with alternative address information of a P-CSCF device, and the method includes:
after the terminal equipment establishes a bearer with an IMS network, receiving a response message returned by the IMS network based on a P-CSCF equipment discovery request sent by the terminal equipment;
if the response message does not carry the address information of the P-CSCF equipment allocated to the terminal equipment by the IMS network, or the address information of the P-CSCF equipment carried by the response message is invalid, reading the local pre-configured alternative address information;
initiating a registration request to the IMS network based on the alternative address information.
In an optional implementation manner, the response message carries an address parameter, and a value of the address parameter is address information of a P-CSCF device allocated to the terminal device by the IMS network;
if the response message does not carry the address information of the P-CSCF device allocated to the terminal device by the IMS network, or the address information of the P-CSCF device carried by the response message is invalid, the step of reading the locally preconfigured alternative address information includes: if the value of the address parameter is null or the value of the address parameter is invalid, reading the local pre-configured alternative address information;
the step of initiating a registration request to the IMS network based on the alternative address information comprises: and assigning the alternative address information to the address parameter, and initiating a registration request to the IMS network based on the assigned address parameter.
In an optional implementation manner, before the step of receiving, by the IMS network, a response message returned based on a P-CSCF device discovery request sent by the terminal device after the terminal device establishes a bearer with the IMS network, the method further includes:
after the terminal equipment establishes a bearer with the IMS network and the IMS network is not abnormal, a first address to be configured and a second address to be configured are obtained according to a response message returned by the IMS network;
correspondingly configuring the first address to be configured and the second address to be configured to a predefined first node and a predefined second node to obtain the alternative address information; wherein the alternative address information includes the first address to be configured and the second address to be configured.
In an optional implementation manner, the step of correspondingly configuring the first address to be configured and the second address to be configured to a predefined first node and a predefined second node, and obtaining the candidate address information includes:
correspondingly configuring the first address to be configured and the second address to be configured to the first node and the second node according to the MCC and the MNC to obtain the alternative address information; wherein the MCC and the MNC are commonly used for identifying the alternative address information.
In an optional embodiment, the value of the address parameter includes a primary address and a backup address;
if the value of the address parameter is null or the value of the address parameter is invalid, the step of reading the locally preconfigured alternative address information includes: if the main address and the standby address are both empty or the main address and the standby address are both invalid, reading the first address to be configured and the second address to be configured which are locally pre-configured according to the MCC and the MNC;
the step of assigning the alternative address information to the address parameter comprises: and respectively taking the first address to be configured and the second address to be configured as the main address and the standby address, and assigning the addresses to the address parameters.
In a second aspect, an embodiment of the present invention provides an IMS network registration apparatus, which is applied to a terminal device, where the terminal device is preconfigured with alternative address information of a P-CSCF device, and the apparatus includes:
a message receiving module, configured to receive, after the terminal device establishes a bearer with an IMS network, a response message returned by the IMS network based on a P-CSCF device discovery request sent by the terminal device;
an address obtaining module, configured to, if the response message does not carry address information of a P-CSCF device allocated to the terminal device by the IMS network, or address information of the P-CSCF device carried by the response message is invalid, read the locally preconfigured alternative address information;
and the registration module is used for initiating a registration request to the IMS network based on the alternative address information.
In an optional implementation manner, the response message carries an address parameter, and a value of the address parameter is address information of a P-CSCF device allocated to the terminal device by the IMS network;
the address acquisition module is used for reading the local pre-configured alternative address information if the value of the address parameter is null or the value of the address parameter is invalid;
and the registration module is used for assigning the alternative address information to the address parameter and initiating a registration request to the IMS network based on the assigned address parameter.
In an alternative embodiment, the apparatus further comprises:
an address configuration module, configured to, after the terminal device establishes a bearer with the IMS network and the IMS network is not abnormal, obtain a first address to be configured and a second address to be configured according to a response message returned by the IMS network, and configure the first address to be configured and the second address to be configured to a predefined first node and a predefined second node, so as to obtain the candidate address information; the alternative address information includes the first address to be configured and the second address to be configured.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor and a memory, where the memory stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, the terminal device implements the method according to any one of the foregoing implementation manners.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method according to any one of the foregoing embodiments.
In the IMS network registration method and the related apparatus provided in the embodiment of the present invention, after a bearer is established between a terminal device and an IMS network, a response message returned by the IMS network based on a P-CSCF device discovery request sent by the terminal device may be received, when it is determined that no address information of a P-CSCF device allocated by the IMS network is carried in the response message or address information of the P-CSCF device carried in the response message is invalid, local pre-configured alternative address information is read, and then a registration request is initiated to the IMS network based on the alternative address information. Therefore, when the IMS network is abnormal and the address of the P-CSCF equipment cannot be returned to the terminal equipment, the terminal equipment is pre-configured with the alternative address information of the P-CSCF equipment, so that the IMS registration can be carried out by using the alternative address information, the fault-tolerant processing of the IMS network registration process is realized, and the problem that the terminal equipment cannot be successfully registered to the IMS network due to the abnormal IMS network is avoided.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 illustrates an application scenario diagram of an IMS network registration method and apparatus provided in an embodiment of the present invention;
fig. 2 is a schematic block diagram of a terminal device according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an IMS network registration method according to an embodiment of the present invention;
fig. 4 shows another flow chart of the IMS network registration method provided in the embodiment of the present invention;
fig. 5 shows another flowchart of the IMS network registration method according to an embodiment of the present invention;
fig. 6 shows a partial content diagram of a response message returned when the IMS network is not abnormal;
FIG. 7 illustrates a code implementation diagram defining a first node and a second node;
FIG. 8 is a schematic diagram illustrating a code implementation for correspondingly configuring a first address to be configured and a second address to be configured to a first node and a second node;
fig. 9 is a diagram illustrating a part of the content of a response message returned when an IMS network is abnormal;
fig. 10 is a schematic diagram illustrating functional modules of an IMS network registration apparatus according to an embodiment of the present invention;
fig. 11 is a schematic diagram illustrating another functional module of an IMS network registration apparatus according to an embodiment of the present invention.
An icon: 100-a terminal device; 200-an IMS network; 400-IMS network registration means; 110-a memory; 120-a processor; 130-a communication module; 410-a message receiving module; 420-address acquisition module; 430-a registration module; 440-address configuration module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
In the process of implementing the technical scheme of the embodiment of the present invention, the inventor finds that, in the existing startup registration process of VoLTE (Voice over LTE)/volga WiFi (Voice over WiFi), the most important purpose of establishing an IMS PDN (Packet Data Network) bearer with QCI (QoS Class Identifier) =5 is to acquire the address of the P-CSCF device allocated by the IMS Network, but in the development process, the IMS PDN bearer is established several times, but the IMS Network does not feed back the address of the corresponding P-CSCF device to the terminal device, thereby causing the failure of accessing the terminal device to the IMS Network. By considering the reason, the method is positioned in the case of IMS network abnormality, namely, the address of the P-CSCF equipment cannot be fed back to the terminal equipment under the condition that the IMS network is abnormal.
Based on the research on the defects, the embodiment of the invention provides an IMS network registration method and a related device, on the premise that the address of a P-CSCF (proxy-Call Session control function) device of an operator is basically fixed, alternative address information of the P-CSCF device is pre-configured on a terminal device, and when the IMS network is abnormal and the address of the P-CSCF device cannot be returned to the terminal device, the terminal device can initiate a registration request to the IMS network according to the alternative address information by taking out the alternative address information configured on the terminal device, so that the fault-tolerant processing of the IMS network registration process is realized, and the condition that the terminal device cannot be successfully registered to the IMS network due to the abnormality of the IMS network is avoided. The IMS network registration method and related apparatus provided in the embodiments of the present invention are described in detail below.
Fig. 1 is a schematic view of an application scenario of an IMS network registration method and device according to an embodiment of the present invention. IMS network 200 may include entities such as a P-CSCF device, an I-CSCF (Interrogating-Call Session Control Function) device, an S-CSCF (Serving-Call Session Control Function) device, and an HSS (Home Subscriber Server); wherein the P-CSCF device is an ingress node connecting the terminal device 100 and the IMS network 200, and the HSS is a server for storing user-related information.
Before the terminal device 100 uses the IMS service, it must register with the IMS network 200, and before the registration, the terminal device 100 needs to find an ingress node of the IMS network 200, that is, perform a discovery process of a P-CSCF device. For example, the terminal device 100 may acquire an address of a P-CSCF device allocated by an HSS in the IMS network 200 by establishing an IMS PDN bearer of QCI =5 with the IMS network 200, thereby registering with the IMS network 200 based on the address of the P-CSCF device.
Fig. 2 is a block diagram of a terminal device 100 according to an embodiment of the present invention. The terminal device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 110 is used to store programs or data. The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 120 is used to read/write data or programs stored in the memory 110 and perform corresponding functions. For example, when a computer program stored in the memory 110 is read and executed by the processor 120, the IMS network registration method disclosed in the present embodiment may be implemented. The Processor 120 in this embodiment may be an Application Processor (AP).
The communication module 130 is used for establishing a communication connection between the terminal device 100 and another communication terminal through a network, and for transceiving data through the network.
It should be understood that the structure shown in fig. 2 is only a schematic structural diagram of the terminal device 100, and the terminal device 100 may also include more or fewer components than shown in fig. 2, or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by the processor 120 to implement the IMS network registration method disclosed in this embodiment.
Fig. 3 is a flowchart illustrating an IMS network registration method according to an embodiment of the present invention. It should be noted that, the IMS network registration method according to the embodiment of the present invention is not limited by fig. 3 and the following specific sequence, and it should be understood that, in other embodiments, the sequence of some steps in the IMS network registration method according to the embodiment of the present invention may be interchanged according to actual needs, or some steps may be omitted or deleted. The IMS network registration method may be applied to the terminal device 100 shown in fig. 3, and the specific flow shown in fig. 3 will be described in detail below.
Step S201, after the terminal device establishes a bearer with the IMS network, a response message returned by the IMS network based on the P-CSCF device discovery request sent by the terminal device is received.
In this embodiment, terminal device 100 may establish an IMS PDN bearer with QCI =5 with IMS network 200 by initiating a P-CSCF device discovery request, and after the PDN bearer is successfully established, IMS network 200 may feed back a corresponding response message to terminal device 100 based on the P-CSCF device discovery request; under the condition that the IMS network 200 is normal, the response message carries the address information of the P-CSCF device allocated by the IMS network 200 to the terminal device 100, but if the IMS network 200 is abnormal, the response message does not carry the address information of the P-CSCF device, or the carried address information of the P-CSCF device is invalid.
And step S202, if the response message does not carry the address information of the P-CSCF equipment allocated to the terminal equipment by the IMS network, or the address information of the P-CSCF equipment carried by the response message is invalid, reading the locally pre-configured alternative address information.
In this embodiment, the terminal device 100 is preconfigured with candidate address information of the P-CSCF device, and the candidate address information of the P-CSCF device may be obtained according to a response message returned by the IMS network 200 to the terminal device 100 when the terminal device 100 establishes a bearer with the IMS network 200 and the IMS network 200 is not abnormal.
It can be understood that, since the P-CSCF device address of the operator is basically fixed, and the IMS network 200 is abnormal and is not normal, when the IMS network 200 is not abnormal, the terminal device 100 may obtain the address information of the P-CSCF device allocated by the IMS network 200 by establishing a bearer with the IMS network 200.
Step S203, initiating a registration request to the IMS network based on the alternative address information.
In this embodiment, the terminal device 100 may initiate a registration request to the IMS network 200 based on the local pre-configured alternative address information, and enter a normal IMS registration procedure.
It can be seen that, in the IMS network registration method provided in the embodiment of the present invention, after the terminal device 100 establishes a bearer with the IMS network 200, a response message returned by the IMS network 200 based on a P-CSCF device discovery request sent by the terminal device 100 may be received, and when it is determined that the response message does not carry address information of a P-CSCF device allocated by the IMS network 200, or address information of a P-CSCF device carried in the response message is invalid, the locally preconfigured alternative address information is read, and then a registration request is initiated to the IMS network 200 based on the alternative address information. Thus, when the IMS network 200 is abnormal and the address of the P-CSCF device cannot be returned to the terminal device 100, the terminal device 100 can use the alternative address information of the P-CSCF device to perform IMS registration because the alternative address information is pre-configured in the terminal device 100, so that fault-tolerant processing of the IMS registration process is achieved, and the terminal device 100 cannot be successfully registered in the IMS network 200 due to the abnormality of the IMS network 200 is avoided. The scheme is also applicable to VoLTE, voWiFi, RCS (Rich Communication Suite) registration.
Optionally, as shown in fig. 4, in an implementation, the response message returned by the IMS network 200 may carry an address parameter, where a value of the address parameter is address information of a P-CSCF device allocated by the IMS network 200 to the terminal device 100, in this case, the step S202 may specifically include: step S2021, if the value of the address parameter is null or invalid, read the locally pre-configured candidate address information. The step S203 may specifically include: step S2031, assigning the alternative address information to the address parameter, and initiating a registration request to the IMS network 200 based on the assigned address parameter.
That is, the terminal device 100 may obtain the value of the address parameter according to the response message returned by the IMS network 200, and when it is determined that the value of the address parameter is null or invalid, extract and assign the locally preconfigured candidate address information to the address parameter, so that the assigned value of the address parameter is valid, and then may initiate a registration request to the IMS network 200 based on the assigned address parameter, and perform the next IMS registration process.
Since the IMS network 200 can normally return the address information of the P-CSCF device to the terminal device 100, before the above step S201, the configuration of the alternative address information of the P-CSCF device can also be realized through the steps S301 to S302 shown in fig. 5. Next, step S301 and step S302 will be described in detail.
Step S301, after the terminal device establishes a bearer with the IMS network and the IMS network is not abnormal, the first address to be configured and the second address to be configured are obtained according to a response message returned by the IMS network.
It can be understood that, when IMS network 200 is not abnormal, terminal device 100 establishes a bearer with IMS network 200 to obtain a response message returned by IMS network 200, and the response message may carry address information of a valid P-CSCF device allocated to terminal device 100 by IMS network 200. In this embodiment, the IMS network 200 generally allocates two addresses of P-CSCF devices to the terminal device 100, where one is used as a primary address and one is used as a standby address, and in the configuration stage of the candidate address information, the addresses of the two P-CSCF devices are respectively referred to as a first address to be configured and a second address to be configured.
For example, in a normal IMS registration process, the terminal device 100 may acquire a response message returned by the IMS network 200 by establishing a bearer with the IMS network 200, and a part of the content of the response message may refer to fig. 6. As can be known from the content shown in fig. 6, the terminal device 100 can obtain, based on the response message returned when the IMS network 200 is not abnormal, two IPv 6P-CSCF addresses, namely "2409 801d 21" and "2409.
Step S302, correspondingly configuring a first address to be configured and a second address to be configured to a predefined first node and a predefined second node to obtain alternative address information; the alternative address information comprises a first address to be configured and a second address to be configured.
In the present embodiment, two nodes may be defined in advance in Carrier Config (operator configuration) of the terminal apparatus 100, and the first address to be configured and the second address to be configured acquired in step S301 may be configured into the two nodes.
Specifically, the terminal device 100 may correspondingly configure the first address to be configured and the second address to be configured to the first node and the second node according to the MCC (mobile country code) and the MNC (mobile network code), so as to obtain alternative address information; wherein the MCC and MNC are used together to identify alternative address information.
The MCC and MNC may be obtained through information stored in the SIM card, where the MCC is used to uniquely identify a country to which the mobile subscriber belongs, and the MNC is used to identify a mobile network to which the mobile subscriber belongs.
Next, a configuration process of the alternative address information is described in detail. In one example, the first node pcsccf _ address1 and the second node pcsccf _ address2 may be defined in the Carrier configmanager. Java based on an Android Carrier config mechanism, and a specific code implementation may refer to fig. 7; after the first node and the second node are defined, the first address to be configured and the second address to be configured may be configured to the first node and the second node correspondingly according to the MCC and the MNC to obtain the alternative address information, and a specific code implementation may refer to fig. 8. Thus, a configuration file in an XML format may be obtained, where the configuration file includes alternative address information (i.e., a first address to be configured and a second address to be configured) of the P-CSCF device, and after the configuration file is identified by the MCC and the MNC (for example, a file name of the configuration file may be set according to the MCC and the MNC), the configuration file may be identified based on the MCC and the MNC, and then the alternative address information in the configuration file may be read.
Since the alternative address information is identified by the MCC and MNC, when the terminal device 100 needs to read locally preconfigured alternative address information, the terminal device can read according to the MCC and MNC, that is, the step S2021 may specifically include: if the main address and the standby address are both empty or the main address and the standby address are both invalid, reading a first address to be configured and a second address to be configured which are locally pre-configured according to the MCC and the MNC; the step S2031 may specifically include: and respectively taking the first address to be configured and the second address to be configured as a main address and a standby address, and assigning the addresses to address parameters.
That is to say, when the terminal device 100 needs to read the local pre-configured alternative address information, the corresponding configuration file may be identified according to the MCC and MNC, and then the first address to be configured and the second address to be configured in the configuration file may be read, and the first address to be configured and the second address to be configured are respectively used as the main address and the standby address, and assigned to the address parameter, so that the value of the address parameter is valid.
For example, assuming that the address parameter is Pcscf, when the response message returned by the IMS network 200 to the terminal device 100 includes the contents shown in fig. 9, it can be seen that both values of Pcscf are null, the terminal device 100 can determine that it has not acquired the primary address and the backup address of the P-CSCF device allocated by the IMS network 200, and then, according to the MCC and MNC.
In order to perform the corresponding steps in the above embodiments and various possible manners, an implementation manner of the IMS network registration apparatus is given below. Referring to fig. 10, a functional block diagram of an IMS network registration apparatus 400 according to an embodiment of the present invention is shown. It should be noted that the IMS network registration apparatus 400 provided in this embodiment has the same basic principle and technical effect as those of the above embodiments, and for the sake of brief description, no part of this embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments. The IMS network registration apparatus 400 includes a message receiving module 410, an address obtaining module 420, and a registration module 430.
Alternatively, the modules may be stored in the memory 110 shown in fig. 2 in the form of software or Firmware (Firmware) or be fixed in an Operating System (OS) of the terminal device 100, and may be executed by the processor 120 in fig. 2. Meanwhile, data, codes of programs, and the like required to execute the above-described modules may be stored in the memory 110.
The message receiving module 410 is configured to receive a response message returned by the IMS network 200 based on the P-CSCF device discovery request sent by the terminal device 100 after the terminal device 100 establishes a bearer with the IMS network 200.
It is understood that the message receiving module 410 may perform the step S201.
The address obtaining module 420 is configured to, if the response message does not carry the address information of the P-CSCF device allocated to the terminal device 100 by the IMS network 200, or the address information of the P-CSCF device carried in the response message is invalid, read the locally pre-configured alternative address information.
It is understood that the address obtaining module 420 may perform the step S202.
The registration module 430 is configured to initiate a registration request to the IMS network 200 based on the alternative address information.
It is understood that the registration module 430 may perform the step S203.
Optionally, the response message carries an address parameter, a value of the address parameter is address information of a P-CSCF device allocated to the terminal device 100 by the IMS network 200, and the address obtaining module 420 is specifically configured to, if the value of the address parameter is null or the value of the address parameter is invalid, read locally preconfigured alternative address information; the registration module 430 is specifically configured to assign the alternative address information to the address parameter, and initiate a registration request to the IMS network 200 based on the assigned address parameter.
It is understood that the address obtaining module 420 may also perform the step S2021, and the registering module 430 may also perform the step S2031.
Optionally, as shown in fig. 11, the IMS network registration apparatus 400 may further include an address configuration module 440, where the address configuration module 440 is configured to, after the terminal device 100 establishes a bearer with the IMS network 200 and when the IMS network 200 is not abnormal, obtain the first address to be configured and the second address to be configured according to a response message returned by the IMS network 200, and configure the first address to be configured and the second address to be configured to the predefined first node and second node correspondingly, so as to obtain the alternative address information; the alternative address information comprises a first address to be configured and a second address to be configured.
The address configuration module 440 may be specifically configured to configure the first address to be configured and the second address to be configured to the first node and the second node correspondingly according to the MCC and the MNC, so as to obtain alternative address information; wherein the MCC and MNC are used together to identify the alternative address information.
It is understood that the address configuration module 440 may perform the steps S301 and S302 described above.
Optionally, in this embodiment, the value of the address parameter includes a primary address and a backup address, and the address obtaining module 420 is specifically configured to, if the primary address and the backup address are both empty or both the primary address and the backup address are invalid, read a first address to be configured and a second address to be configured that are locally pre-configured according to the MCC and the MNC; the registration module 430 is specifically configured to use the first address to be configured and the second address to be configured as a primary address and a backup address, respectively, and assign the addresses to the address parameters.
In summary, in the IMS network registration method and the related apparatus provided in the embodiments of the present invention, after the terminal device establishes a bearer with the IMS network, a response message returned by the IMS network based on a P-CSCF device discovery request sent by the terminal device may be received, and when it is determined that the response message does not carry address information of a P-CSCF device allocated by the IMS network, or address information of a P-CSCF device carried in the response message is invalid, the locally pre-configured alternative address information is read, and then a registration request is initiated to the IMS network based on the alternative address information. Therefore, when the IMS network is abnormal and the address of the P-CSCF equipment cannot be returned to the terminal equipment, the terminal equipment is pre-configured with the alternative address information of the P-CSCF equipment, so that the IMS registration can be carried out by using the alternative address information, the fault-tolerant processing of the IMS network registration process is realized, and the condition that the terminal equipment cannot be successfully registered to the IMS network due to the abnormal IMS network is avoided.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a mobile device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. An IMS network registration method is applied to a terminal device, wherein alternative address information of a proxy call session control function (P-CSCF) device is pre-configured in the terminal device, and the method comprises the following steps:
after the terminal equipment establishes a bearer with the IMS network and the IMS network is not abnormal, a first address to be configured and a second address to be configured are obtained according to a response message returned by the IMS network;
correspondingly configuring the first address to be configured and the second address to be configured to a predefined first node and a predefined second node to obtain the alternative address information; the alternative address information comprises the first address to be configured and the second address to be configured;
after the terminal equipment establishes a bearer with an IMS network, receiving a response message returned by the IMS network based on a P-CSCF equipment discovery request sent by the terminal equipment;
if the response message does not carry the address information of the P-CSCF equipment allocated to the terminal equipment by the IMS network, or the address information of the P-CSCF equipment carried by the response message is invalid, reading the local pre-configured alternative address information;
initiating a registration request to the IMS network based on the alternative address information.
2. The method according to claim 1, wherein the response message carries an address parameter, and a value of the address parameter is address information of a P-CSCF device allocated to the terminal device by the IMS network;
if the response message does not carry the address information of the P-CSCF device allocated to the terminal device by the IMS network, or the address information of the P-CSCF device carried by the response message is invalid, the step of reading the locally preconfigured alternative address information includes: if the value of the address parameter is null or the value of the address parameter is invalid, reading the local pre-configured alternative address information;
the step of initiating a registration request to the IMS network based on the alternative address information comprises: and assigning the alternative address information to the address parameter, and initiating a registration request to the IMS network based on the assigned address parameter.
3. The method according to claim 2, wherein the step of correspondingly configuring the first address to be configured and the second address to be configured to a predefined first node and a predefined second node to obtain the alternative address information comprises:
correspondingly configuring the first address to be configured and the second address to be configured to the first node and the second node according to a mobile country code MCC and a mobile network code MNC to obtain the alternative address information; wherein the MCC and the MNC are commonly used for identifying the alternative address information.
4. The method of claim 3, wherein the values of the address parameters include a primary address and a backup address;
if the value of the address parameter is null or the value of the address parameter is invalid, the step of reading the locally preconfigured alternative address information includes: if the main address and the standby address are both null or both the main address and the standby address are invalid, reading the first address to be configured and the second address to be configured which are locally pre-configured according to the MCC and the MNC;
the step of assigning the alternative address information to the address parameter comprises: and respectively taking the first address to be configured and the second address to be configured as the main address and the standby address, and assigning the addresses to the address parameters.
5. An IMS network registration apparatus, which is applied to a terminal device, where candidate address information of a P-CSCF device is preconfigured in the terminal device, and the apparatus includes:
an address configuration module, configured to, after the terminal device establishes a bearer with the IMS network and the IMS network is not abnormal, obtain a first address to be configured and a second address to be configured according to a response message returned by the IMS network, and configure the first address to be configured and the second address to be configured to a predefined first node and a predefined second node, so as to obtain the candidate address information; the alternative address information comprises the first address to be configured and the second address to be configured;
a message receiving module, configured to receive, after the terminal device establishes a bearer with an IMS network, a response message returned by the IMS network based on a P-CSCF device discovery request sent by the terminal device;
an address obtaining module, configured to, if the response message does not carry address information of a P-CSCF device allocated to the terminal device by the IMS network, or the address information of the P-CSCF device carried in the response message is invalid, read the locally pre-configured alternative address information;
and the registration module is used for initiating a registration request to the IMS network based on the alternative address information.
6. The apparatus according to claim 5, wherein the response message carries an address parameter, and a value of the address parameter is address information of a P-CSCF device allocated to the terminal device by the IMS network;
the address acquisition module is used for reading the local pre-configured alternative address information if the value of the address parameter is null or the value of the address parameter is invalid;
and the registration module is used for assigning the alternative address information to the address parameter and initiating a registration request to the IMS network based on the assigned address parameter.
7. A terminal device, characterized in that it comprises a processor and a memory, said memory storing a computer program executable by said processor, said computer program, when executed by said processor, implementing the method according to any one of claims 1-4.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202010266220.4A 2020-04-07 2020-04-07 IMS network registration method and related device Active CN111315009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010266220.4A CN111315009B (en) 2020-04-07 2020-04-07 IMS network registration method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010266220.4A CN111315009B (en) 2020-04-07 2020-04-07 IMS network registration method and related device

Publications (2)

Publication Number Publication Date
CN111315009A CN111315009A (en) 2020-06-19
CN111315009B true CN111315009B (en) 2022-11-25

Family

ID=71147561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010266220.4A Active CN111315009B (en) 2020-04-07 2020-04-07 IMS network registration method and related device

Country Status (1)

Country Link
CN (1) CN111315009B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766630A (en) * 2021-09-03 2021-12-07 维沃移动通信有限公司 IMS network registration method, device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087301A (en) * 2006-09-07 2007-12-12 华为技术有限公司 Method and system for user access to network
CN101217407A (en) * 2008-01-04 2008-07-09 中兴通讯股份有限公司 A processing method on functional failure on calling conversation control agent
CN101317389A (en) * 2006-09-07 2008-12-03 华为技术有限公司 Method, system and equipment for user's access to network
CN104219705A (en) * 2014-09-24 2014-12-17 中国联合网络通信集团有限公司 VoLTE terminal re-registering method and device
CN104284360A (en) * 2014-10-21 2015-01-14 中国联合网络通信集团有限公司 P-CSCF fault processing method and system
CN106488475A (en) * 2015-08-28 2017-03-08 华为技术有限公司 A kind of method and device realizing terminal called service recovery
CN109995726A (en) * 2017-12-30 2019-07-09 中国移动通信集团辽宁有限公司 Proxy Call Session Control Function disaster recovery method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101809961B (en) * 2007-09-28 2013-03-27 爱立信电话股份有限公司 Failure recovery in an IP multimedia subsystem network
EP3092773A1 (en) * 2014-01-09 2016-11-16 Telefonaktiebolaget LM Ericsson (publ) Methods and apparatuses for p-cscf restoration based on ue capabilities
US9979756B2 (en) * 2016-06-07 2018-05-22 Verizon Patent And Licensing Inc. Recovery from a potential proxy call session control function (P-CSCF) failure during call origination

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087301A (en) * 2006-09-07 2007-12-12 华为技术有限公司 Method and system for user access to network
CN101317389A (en) * 2006-09-07 2008-12-03 华为技术有限公司 Method, system and equipment for user's access to network
CN101217407A (en) * 2008-01-04 2008-07-09 中兴通讯股份有限公司 A processing method on functional failure on calling conversation control agent
CN104219705A (en) * 2014-09-24 2014-12-17 中国联合网络通信集团有限公司 VoLTE terminal re-registering method and device
CN104284360A (en) * 2014-10-21 2015-01-14 中国联合网络通信集团有限公司 P-CSCF fault processing method and system
CN106488475A (en) * 2015-08-28 2017-03-08 华为技术有限公司 A kind of method and device realizing terminal called service recovery
WO2017036227A1 (en) * 2015-08-28 2017-03-09 华为技术有限公司 Method and device realizing terminal called service restoration
CN109995726A (en) * 2017-12-30 2019-07-09 中国移动通信集团辽宁有限公司 Proxy Call Session Control Function disaster recovery method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VoLTE终端在异常场景下的性能优化方案;高晨亮,等;《面向5G的LTE网络创新研讨会论文辑》;20160817;全文 *

Also Published As

Publication number Publication date
CN111315009A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US9026675B2 (en) IMS restoration procedures for multiple contacts
CN101433053B (en) Simplified method and device for IMS registration in the event of emergency calls
US7936665B2 (en) IMS network system and data restoring method
EP2058981A1 (en) A method, system and equipment of accessing network for user
EP2315409B1 (en) Realizing method, system and apparatus of register mechanism in ip multimedia subsystem
KR102144654B1 (en) Methods and systems for providing emergency numbers
CN107534666B (en) Translation of network domains in IMS networks
CN101299859B (en) Method, server and system for managing personal area network
CN116782368A (en) PLMN selection for mission critical devices
CN108702628B (en) Access point name determination for mission critical services
EP2096792B1 (en) Method for configuring service and entity for storing service configuration
WO2006053502A1 (en) A method for ensuring the information consistency between the network nodes
CN109274512B (en) Management method and device for proxy call service control function
CN111464999B (en) Network access method and device and electronic equipment
US20180049086A1 (en) Method for configuring a terminal connected to a communications network
CN111315009B (en) IMS network registration method and related device
KR100938624B1 (en) Method and element for service control
CN102316435B (en) Method and device for updating P-CSCF (proxy-call session control function) configuration of user equipment (UE) in access network system
CN109039988B (en) Registration method, device and equipment of IP multimedia subsystem
EP2673943B1 (en) Method for handling public identities in an internet protocol multimedia subsystem network
US11876839B2 (en) Methods and apparatus for selecting a serving session control node in an internet protocol multimedia subsystem, IMS, telecommunication network for a user equipment
US20220006845A1 (en) Self-healing and resilient ip multimedia subsystem core
CN115349119A (en) Method and apparatus for enhanced 5GC recovery when deploying a Network Function (NF) set in a network
US20240007508A1 (en) Method for establishing communication connection and electronic apparatus capable of establishing communication connection
EP3248399B1 (en) Method, apparatus and computer program product for provisioning multiple user identities in an ip multimedia subsystem

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant