Ims registration method and electronic device

By receiving a deregistration notification or detecting a status change while the electronic device is registered with IMS, the device can determine and trigger deregistration and re-registration based on preset conditions, thus resolving the multimedia service interruption problem caused by IMS non-registration and improving the success rate of call services.

CN119254755BActive Publication Date: 2025-11-28HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410235188.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2025-11-28
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

Electronic devices cannot provide VoLTE and other multimedia services when they are not registered with IMS, which affects the user experience, especially in areas with CS coverage where voice calls may not be possible.

Method used

When an electronic device receives a deregistration notification message or detects a status change while in IMS registration status, it triggers deregistration and re-initial registration to restore the IMS registration status by judging whether preset conditions are met. This includes judging PLMN, timer conditions, and user operations to avoid accidental restoration.

Benefits of technology

It improves the success rate of electronic device call services, ensures the restoration of IMS registration status, and avoids increased power consumption caused by frequent retries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254755B_ABST
    Figure CN119254755B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an IMS registration method and an electronic device. The method is performed by the electronic device and includes: in a case where the electronic device is in an IMS registration state, if a logoff notification message sent by a network is received or it is detected that the IMS registration state is changed to an IMS unregistered state, the electronic device determines whether a preset condition is met, the preset condition being used by the electronic device to determine whether the IMS registration state needs to be restored; in a case where the preset condition is met, the electronic device triggers de-registration, re-initialization registration and IMS registration retry to restore the IMS registration state of the electronic device. Thus, the success rate of a call service of the electronic device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronics, in particular to an IMS registration method and an electronic device. BACKGROUND

[0002] After an electronic device (or terminal) in a 4G or 5G network is connected to the network, if multimedia services such as voice over long-term evolution (VoLTE) are to be used, the electronic device also needs to be registered to an IP multimedia system (IMS) network. The IMS registration here is a process in which a VoLTE client registers its contact information to the IMS network, so that the electronic device can perform various multimedia services.

[0003] Currently, when the electronic device is in an IMS registered state, the electronic device may receive a core network notification (Notify) message or may change from the IMS registered state to an IMS unregistered state due to an internal runtime exception of the electronic device. If the electronic device is in the IMS unregistered state for a long time and has not been restored, the electronic device cannot perform call services and other problems, which affects the user experience. SUMMARY

[0004] The present application provides an IMS registration method and an electronic device, which can improve the success rate of call services of the electronic device.

[0005] In a first aspect, the present application provides an IMS registration method, which is executed by an electronic device and includes: in a case where the electronic device is in an IP multimedia system (IMS) registered state, if a logoff notification message sent by a network is received or it is detected that the IMS registered state is changed to an IMS unregistered state, the electronic device determines whether a preset condition is met, the preset condition being used by the electronic device to determine whether the IMS registered state needs to be restored; in a case where the preset condition is met, the electronic device triggers de-registration and re-initialization registration and IMS registration retry to restore the IMS registered state of the electronic device.

[0006] In the IMS registered state, if the electronic device has some abnormal conditions, the network (such as a core network) sends a logoff notification message (such as a Notify message) to the electronic device to log off the IMS registered state, or the electronic device changes to an IMS unregistered state due to its own abnormal operation. When the electronic device receives the logoff notification message sent by the network, or detects that the IMS registered state changes to the IMS unregistered state, in order to improve the success rate of subsequent call services, the electronic device judges a preset condition according to the judgment result, triggers the electronic device to perform deregistration and re-initialization registration, and then triggers the IMS registration retry to restore the IMS registered state of the electronic device. Therefore, the electronic device can normally perform services after the IMS registered state is restored, and the success rate of call services is improved.

[0007] In combination with the first aspect, in some implementations of the first aspect, in the case that the logoff notification message sent by the network is received, the electronic device judges whether the preset condition is met, including: if the information carried in the logoff notification message is preset information, judging whether the preset condition is met.

[0008] This implementation is in the case that the electronic device receives the logoff notification message sent by the network. The electronic device judges whether the information carried in the logoff notification message is preset information. If the information carried is preset information, it is judged whether the preset condition is met. If the information carried is not preset information, the process is ended. Thus, the electronic device is prevented from performing subsequent false recovery processing.

[0009] In some implementations, the preset information is information including state="terminated" and event="rejected", indicating that the IMS core network initiates the logoff behavior, and the IMS registration is terminated.

[0010] In combination with the first aspect, in some implementations of the first aspect, the preset condition is met including at least one of the following conditions: the public land mobile network (PLMN) currently registered by the electronic device is a target PLMN, the electronic device does not perform a first operation within a first time period timed by a first timer, the electronic device does not change to the IMS registered state within the first time period, and the system time of the electronic device exceeds a second time period from a time corresponding to a second operation in the case that the first timer expires; wherein the first operation is an operation of actively triggering the IMS registration recovery when performing a reverse operation of the first operation, and the second operation is an operation of performing deregistration and re-initialization registration.

[0011] In the scenario where the electronic device receives the logoff notification message sent by the network, the judgment process of the electronic device on the preset condition includes at least one of the following processes: judging whether the PLMN currently registered by the electronic device is the target PLMN (i.e., whether the above-mentioned abnormality of the electronic device occurs in the target PLMN), if yes, judging whether the first operation is performed within the first time length (here, a first timer can be started and timed for the first time length); if the first operation is performed, judging whether the IMS registered state is changed within the first time length; if the IMS registered state is not changed (i.e., still in the IMS unregistered state), in the case where the first timer is timed out, judging whether the system time is more than the second time length from the time corresponding to the second operation (here, the second time length is set to avoid frequent de-registration and re-initialization registration); if more than the second time length, the electronic device triggers de-registration and re-initialization registration, and IMS registration retry.

[0012] Exemplarily, the first time length is 60 seconds, and the second time length is 30 minutes.

[0013] The first operation is an operation of actively triggering the IMS registration recovery when the inverse operation of the first operation is performed, i.e., an operation capable of actively triggering the IMS registration recovery. Exemplarily, the first operation can include a SIM card state change operation (such as a card removal operation and / or a deactivation operation), an opening of the flight mode operation, etc. For example, if the first operation is the opening of the flight mode operation, the electronic device can recover to the normal state if the inverse operation of the first operation is performed, i.e., if the user actively closes the flight mode.

[0014] Therefore, the electronic device triggers the electronic device to perform de-registration and re-initialization registration, and further triggers the IMS registration retry to recover the IMS registration state of the electronic device and improve the success rate of the call service, by judging the preset conditions such as whether the abnormality occurs in the target PLMN, whether the first operation is performed within the first time length, whether the IMS registered state is changed within the first time length, and whether the system time is more than the second time length from the time corresponding to the second operation.

[0015] In combination with the first aspect, in some implementations of the first aspect, in the case where the first timer is timed out, if the system time of the electronic device is not more than the second time length from the time corresponding to the second operation, the method further includes: determining that the preset condition is not met, and continuously timing until the system time of the electronic device is more than the second time length from the time corresponding to the second operation; if the electronic device is still in the IMS unregistered state, triggering de-registration and re-initialization registration, and IMS registration retry.

[0016] From the above description, it can be known that the electronic device triggers to perform the deregistration and the re-initial registration in a case where the system time of the electronic device is more than the second time length from a time corresponding to the second operation. If the second time length has not been exceeded at this time, that is, the preset condition is not met, the electronic device can continue to count time until the second time length is reached. In a case where the electronic device is still in the IMS unregistered state, the electronic device needs to trigger to perform the deregistration and the re-initial registration to restore the IMS registered state of the electronic device, and further improve the call service success rate.

[0017] In combination with the first aspect, in some implementations of the first aspect, in a case where the IMS registration state is changed to the IMS unregistered state, the preset condition is met including at least one of the following conditions: the IMS switch state of the electronic device is the on state, the electronic device is in the online state, a subscriber identity module (SIM) card of the electronic device is in the in-place state, the electronic device does not perform the first operation within a third time length timed by a second timer, the electronic device does not change to the IMS registered state within the third time length, and the first condition is met in a case where the second timer times out.

[0018] This implementation is in a case where the electronic device detects that the IMS registration state is changed to the IMS unregistered state. The judgment process of the electronic device on the preset condition includes at least one of the following processes: judging whether the IMS switch state is the on state, and if so, judging whether the electronic device is currently in the online state (that is, the online state, not the flight mode state); if the electronic device is in the online state, judging whether the SIM card is in the in-place state (that is, the state in which the SIM card is normally installed in the card slot); if the SIM card is in the in-place state, judging whether the first operation is performed within a third time length (here, a second timer can be started to time the third time length); if the first operation is performed, judging whether the IMS registered state is changed within the third time length; if the IMS registered state is not changed (that is, still the IMS unregistered state), judging whether the first condition is met in a case where the second timer times out; and if the first condition is met, the electronic device triggers to perform the deregistration and the re-initial registration, and the IMS registration retry.

[0019] In some implementations, the first condition being met includes at least one of the following conditions: the current network mode of the electronic device is 4G or 5G, the electronic device is in the screen-off state, the electronic device is in the idle state, and the system time of the electronic device is more than the second time length from a time corresponding to the second operation.

[0020] In the process of judging the first condition, at least one of the following processes can be included: the electronic device judges whether the current network standard is 4G or 5G, and if so, whether it is in a screen-off state. If the electronic device is in a screen-off state, it is judged whether it is in an idle state. If the electronic device is in an idle state, it is judged whether the system time is more than a second time from the time corresponding to the second operation, and if so, the subsequent deregistration and re-initial registration. If the second time is not exceeded, the timing continues until the second time is reached. After reaching the second time, if the electronic device has resumed the IMS registration state, there is no need to deregister and re-initially register, and the process ends. If the IMS registration state has not been restored, i.e. it is still in the IMS unregistered state, the deregistration and re-initial registration are triggered.

[0021] Through the above series of judgment processes, the electronic device can trigger the electronic device to deregister and re-initially register, and then trigger the IMS registration retry to restore the IMS registration state of the electronic device and improve the success rate of the call service. In addition, compared with the scenario of receiving the deregistration notification message sent by the network, the judgment process in this scenario is more strict to avoid the result of misjudgment and misprocessing of the electronic device.

[0022] In combination with the first aspect, in some implementations of the first aspect, the electronic device triggers the deregistration and re-initial registration, and the IMS registration retry, including: the electronic device sends a deregistration request message to the network; the electronic device receives a deregistration acceptance message from the network, and replies to the network with a deregistration completion message; the electronic device sends an initial registration request message to the network; the electronic device receives an initial registration acceptance message from the network; and the electronic device performs a session initiation protocol (SIP) signaling registration with the network.

[0023] The deregistration request message can be an attach request message, the deregistration acceptance message can be an attach accept message, the deregistration completion message can be an attach complete message, the initial registration request message can be a detach request message, and the initial registration acceptance message can be a detach accept message. Through the signaling interaction between the electronic device and the network, the deregistration process and the initial registration process of the electronic device are completed. After the electronic device is connected to the network, it needs to continue to register with the IMS network. The core of the IMS network is the CSCF, and the electronic device can perform IMS registration based on the SIP signaling of the CSCF. Thus, the IMS registration state of the electronic device is restored.

[0024] In a second aspect, the present application provides an apparatus, which is included in an electronic device, and the apparatus has functions to implement the electronic device behaviors of the first aspect and possible implementation manners of the first aspect. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a receiving module or unit, a processing module or unit, and the like.

[0025] In a third aspect, the present application provides an electronic device, which includes one or more processors, and a memory;

[0026] The memory is coupled to the one or more processors, and the memory is configured to store computer program codes, the computer program codes including computer instructions, and the one or more processors are configured to invoke the computer instructions to cause the electronic device to perform any of the methods in the first aspect.

[0027] In a fourth aspect, the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are configured to invoke computer instructions to cause the electronic device to perform the methods in the first aspect and any possible implementation manners thereof.

[0028] Optionally, the chip system further includes a memory, and the memory is connected to the processor through a circuit or a wire.

[0029] Further optionally, the chip system further includes a communication interface.

[0030] In a fifth aspect, the present application further provides a chip system, which includes a processing circuit, a receiving pin, and a sending pin; wherein the receiving pin, the sending pin, and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the methods in the first aspect and any possible implementation manners thereof to control the receiving pin to receive signals and control the sending pin to send signals.

[0031] In a sixth aspect, the present application provides a computer-readable storage medium, which includes instructions, and when the instructions run on an electronic device, cause the electronic device to perform any of the methods in the first aspect.

[0032] In a seventh aspect, the present application provides a computer program product, which includes computer program codes, and when the computer program codes run on an electronic device, cause the electronic device to perform any of the methods in the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0033] Figure 1FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application;

[0034] Figure 2 FIG. 2 is a software structure block diagram of an electronic device according to an embodiment of the present application;

[0035] Figure 3 FIG. 3 is a flowchart of an IMS registration method according to an embodiment of the present application;

[0036] Figure 4 FIG. 4 is a flowchart of another IMS registration method according to an embodiment of the present application;

[0037] Figure 5 FIG. 5 is a process schematic diagram of an electronic device performing de-registration and re-initial registration according to an embodiment of the present application. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; in this document, "and / or" is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0039] Hereinafter, the terms "first", "second", "third" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second", "third" can explicitly or implicitly include one or more features.

[0040] After the electronic device (also referred to as terminal) in the 4G or 5G network is connected to the network, if multimedia services such as VoLTE are to be used, it also needs to be registered to the IMS network. Here, IMS registration is the process of the VoLTE client registering its contact information to the IMS network, so that the electronic device can perform various multimedia services.

[0041] After the electronic device completes IMS registration, that is, the electronic device is in an IMS registered state, if the electronic device appears some abnormal conditions, for example, communication underpayment occurs, and the like, the core network sends a Notify message to the electronic device, and the message can carry information such as "state="terminated", event="rejected". When the electronic device receives the information, the electronic device changes from the IMS registered state to an IMS unregistered state, and based on the current protocol (for example, the RFC3680 protocol), if the core network sends the above-mentioned Notify message to the electronic device, it means that the core network considers that the electronic device does not need to do IMS re-registration, and then the electronic device continuously stays in the IMS unregistered state. Or, if the electronic device performs 4G or 5G network switching or reselection, and the electronic device runs abnormally to cause the IMS registration state to be abnormal, the electronic device can also continuously stay in the IMS unregistered state.

[0042] In the case that the electronic device changes from the IMS registered state to the IMS unregistered state, the above-mentioned multimedia service such as VoLTE cannot be performed, and in particular, if the electronic device is in an area covered by no circuit switched domain (CS), a problem that a call service cannot be performed can also occur, which affects the user experience.

[0043] Therefore, the embodiments of the present application provide an IMS registration method, in the case that the electronic device changes from the IMS registered state to the IMS unregistered state, by judging a preset condition, triggering the electronic device to perform deregistration and re-initialization registration according to the judgment result, and then triggering IMS registration retry to restore the IMS registration state of the electronic device and improve the call service success rate. It can be understood that the IMS registration method provided by the embodiments of the present application can be applied to electronic devices such as mobile phones, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, netbooks, and the like, which can have an IMS registration function, and the embodiments of the present application do not limit the specific type of the electronic device.

[0044] Exemplarily, Figure 1Fig. 1 is a structural schematic diagram of an electronic device 100 provided by an embodiment of the present application. Taking the electronic device 100 as a mobile phone for example, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a loudspeaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identity module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0045] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated in one or more processors.

[0046] The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.

[0047] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.

[0048] The mobile communication module 150 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transfer the processed signals to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and radiate the signals as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the same device as at least part of the modules of the processor 110.

[0049] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the microphone 170B, etc.), or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110, and disposed in the same device as the mobile communication module 150 or other functional modules.

[0050] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidu navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).

[0051] The internal memory 121 can be used to store computer executable program codes including instructions. The processor 110 performs various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required for a function (such as a sound play function, an image play function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0052] The SIM card interface 195 is configured to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to realize contact and separation with the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support a Nano SIM card, a Micro SIM card, a SIM card, and the like. The same SIM card interface 195 can simultaneously insert multiple cards. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external storage cards. The electronic device 100 interacts with a network through the SIM card to realize functions such as call and data communication. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0053] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than those illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0054] The software system of the electronic device 100 can use a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take the Android system with a layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.

[0055] Figure 2 FIG. 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Android runtime and system library, and a kernel layer. The application layer can include a series of application packages.

[0056] As shown in FIG. 1, the application packages can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and the like. Figure 2

[0057] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions. ​

[0058] As Figure 2 shown, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.

[0059] The window manager is used to manage window programs. The content provider is used to store and obtain data, and make the data accessible to the application program. The view system includes visual controls, such as a control for displaying text, a control for displaying pictures, etc. The phone manager is used to provide the communication function of the electronic device 100, such as the management of the call state (including connection, hang-up, etc.). The resource manager provides various resources for the application program, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables the application program to display notification information in the status bar, which can be used to convey a type of message that can automatically disappear after a short stay without user interaction.

[0060] The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0061] The core library contains two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.

[0062] The system library can include multiple functional modules. For example: a surface manager, media libraries, a three-dimensional graphics processing library (for example: OpenGL ES), a 2D graphics engine (for example: SGL), etc.

[0063] The surface manager is used to manage the display subsystem, and provides the fusion of 2D and 3D layers for multiple application programs. The media library supports multiple commonly used audio, video format playback and recording, and static image files, etc. The three-dimensional graphics processing library is used to realize three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0064] The kernel layer is the layer between hardware and software. The kernel layer at least contains a display driver, a camera driver, an audio driver, a sensor driver.

[0065] For ease of understanding, the following embodiments of the present application will take an electronic device with the structure shown in Figure 1 and Figure 2 as an example, and the IMS registration method provided by the embodiments of the present application will be specifically described in combination with the drawings and application scenarios.

[0066] Embodiment one

[0067] This embodiment introduces that when the electronic device is in an IMS registered state, if the electronic device receives a Notify message sent by a core network, the electronic device changes from the IMS registered state to an IMS unregistered state, and then initiates a de-registration and re-initialization, and triggers an IMS registration recovery process, thereby improving the call service success rate of the electronic device.

[0068] Specifically, Figure 3 FIG. 1 is a signaling interaction process diagram of an IMS registration method provided by an embodiment of the present application, and the method comprises the following steps.

[0069] S101, the electronic device is in an IMS registered state.

[0070] That is, at this time, the electronic device has connected to the network and completed the IMS registration process, is in the IMS registered state, and can normally perform multimedia services.

[0071] S102, the IMS core network sends a Notify message to the electronic device.

[0072] Generally, when the IMS core network detects that the electronic device has some abnormal conditions, for example, the electronic device has a communication underpayment or the electronic device has a bad call behavior, the IMS core network sends a de-registration notification Notify message to the electronic device.

[0073] Exemplarily, the Notify message sent by the IMS core network can carry "state="terminated",event="rejected" information, which can represent that the de-registration behavior is initiated by the IMS core network, and the IMS registration is terminated.

[0074] S103, the electronic device judges whether the information carried in the Notify message is preset information, if yes, S104 is executed, if not, the process is ended.

[0075] The preset information can be the above-mentioned "state="terminated",event="rejected" information, that is, the electronic device only executes the subsequent process when the information carried in the Notify message is the preset information, and if it is not the preset information, it does not need to be further processed and the process can be ended.

[0076] In some implementations, when the IMS core network sends the above-mentioned Notify message to the electronic device, the Notify message can be received by a Modem in the electronic device, and whether the information carried in the Notify message is preset information is judged by the Modem.

[0077] S104, the electronic device changes the IMS registration state to an IMS unregistered state.

[0078] That is, in the case that the information carried in the Notify message is preset information, indicating that the IMS core network has initiated a logout behavior, the electronic device also performs a logout process, and the IMS state is changed to an unregistered state.

[0079] In some implementations, a state identifier can be set to record the IMS state of the electronic device. For example, the state identifier can be set to 1 when the electronic device is in an IMS registered state, and the state identifier can be set to 0 when the electronic device is in an IMS unregistered state.

[0080] S105, the electronic device determines whether the currently registered PLMN is the target PLMN. If yes, S106 is performed, and if not, the process ends.

[0081] The public land mobile network (PLMN) is a network established and operated by an approved operator for the purpose of providing land mobile communication services to the public, which is usually interconnected with the public switched telephone network (PSTN) to form a communication network of the entire region or country. In the embodiments of the present application, a target PLMN can be set, for example, the target PLMN includes three mobile networks corresponding to regions A, B, and C. When the network currently registered and used by the electronic device (i.e., the network where the anomaly occurs) is a network in the target PLMN, subsequent processes are performed. If the network currently registered and used by the electronic device (i.e., the network where the anomaly occurs) is not a network in the target PLMN, subsequent processes are not performed, that is, the embodiments of the present application are only applied to the target PLMN.

[0082] In some implementations, in the case that the Modem in the electronic device determines that the information carried in the Notify message is preset information, and changes the IMS registration state to an IMS unregistered state, the Modem can send a message to the application processor (AP) to instruct the AP to perform the following steps.

[0083] S106, a first timer is started, and a first time duration is timed.

[0084] The purpose of starting the first timer here is to detect whether the electronic device can automatically perform IMS registration recovery within the first time duration. If the electronic device can automatically perform IMS registration recovery, it is not necessary to trigger the process of deregistration and re-initialization registration, so as to save the processing power consumption of the electronic device. For example, in some scenarios, the chip vendor used by the electronic device can trigger IMS registration recovery according to its self-healing capability. If the IMS registration is recovered within the first time duration, the electronic device does not need to perform the process of deregistration and re-initialization registration.

[0085] Exemplarily, the first duration timed by the first timer can be T1, for example, T1 is 60 seconds.

[0086] S107, whether the electronic device performs the first operation within the first duration, if not, S108 is performed, if yes, the first timer is terminated.

[0087] The first operation can be a preset operation capable of actively triggering IMS registration recovery, for example, the first operation can include a SIM card state change operation (such as a card removal operation and / or a deactivation operation), an opening of a flight mode operation, etc. If the electronic device performs the first operation within the first duration, since these operations are operations capable of actively triggering IMS registration recovery (such as the user actively closing the flight mode) following the user's behavior, the electronic device can terminate the first timer and no longer perform the subsequent process. If the electronic device does not perform the first operation within the first duration, it means that IMS registration recovery can not be actively triggered, and the subsequent process needs to be performed.

[0088] S108, whether the electronic device has changed to an IMS registration state within the first duration, if not, S109 is performed, if yes, the first timer is terminated.

[0089] That is to say, if the electronic device has recovered the IMS registration state (regardless of whether it is due to the user's triggering operation or the self-healing ability of the electronic device) within the timing range of the first timer, the electronic device does not need to perform the subsequent process and can terminate the first timer. If the electronic device is still in an IMS unregistered state within the first duration, the subsequent process is performed.

[0090] S109, in the case where the first timer is timed out, the electronic device judges whether the system time is more than a second duration from a time corresponding to a second operation, if yes, S110 is performed, if not, S111 is performed.

[0091] The second operation can be an operation of last de-registration and re-initialization registration, that is, in order to avoid frequent de-registration and re-initialization registration, a second duration is set here, in the case where the second operation is less than the second duration from the system time, de-registration and re-initialization registration are not repeated, and the electronic device continues to time until the second duration is reached; in the case where the second operation is more than the second duration from the system time, de-registration and re-initialization registration need to be performed to recover the IMS registration.

[0092] Exemplarily, the second duration can be T2, for example, T2 is 30 minutes.

[0093] S110, the electronic device triggers de-registration and re-initialization registration, and IMS registration retry.

[0094] That is to say, in the case that the electronic device triggers to perform the deregistration and re-initial registration to the system for the first time, the time has exceeded the second time, and the electronic device is still in the IMS unregistered state, the electronic device needs to trigger to perform the deregistration and re-initial registration, and the IMS registration retry, so as to make the electronic device restore the IMS registered state, and ensure that the subsequent call service can be normally performed.

[0095] In some implementations, the process in which the electronic device triggers to perform the deregistration and re-initial registration, and the IMS registration retry can refer to the flowchart shown in the following Figure 5 , which will not be described in detail here.

[0096] S111, continue timing until the system time reaches the second time length from the time corresponding to the second operation.

[0097] S112, the electronic device judges whether it is still in the IMS unregistered state, if yes, S110 is executed, if not, the flow is ended.

[0098] That is to say, if the second operation is still less than the second time length from the system time in S109, the electronic device will continue to time until the system time reaches the second time length from the time corresponding to the second operation, at this time, it is judged whether the electronic device has restored the IMS registered state, if the IMS registered state has been restored, the deregistration and re-initial registration are not needed, and the flow is ended. If the IMS registered state has not been restored, that is, it is still in the IMS unregistered state, the process of deregistration and re-initial registration, and the IMS registration retry in S110 is executed, so as to make the electronic device restore the IMS registered state.

[0099] In some implementations, in the process of S106 to S112, the process in which the electronic device triggers to perform the deregistration and re-initial registration, and the IMS registration retry in S110 can be executed by the Modem, and the remaining logical judgment process can be executed by the AP.

[0100] In another implementation, the process of S101 to S112 can also be executed by the Modem, and the embodiments of the present application do not make specific limitation.

[0101] It can be understood that for the judgment processes of S105, S107, S108 and S109, the embodiments of the present application do not make specific limitation on the execution order, which can be executed in the order of S105, S107, S108 and S109, or in other order, or can be executed simultaneously, as long as the final judgment result is obtained.

[0102] The IMS registration method, in a case where the electronic device changes from an IMS registered state to an IMS unregistered state, judges preset conditions including whether the currently registered PLMN is the target PLMN, whether the first operation is performed within the first time length, whether the IMS registered state is changed within the first time length, whether the system time is more than the second time length from the time corresponding to the second operation, and the like, triggers the electronic device to perform deregistration and re-initial registration according to the judgment result, and further triggers IMS registration retry to restore the IMS registration state of the electronic device and improve the success rate of call services.

[0103] Embodiment Two

[0104] For the above-mentioned embodiment one, the electronic device senses the IMS registration exception after receiving the Notify message sent by the core network, but in some other scenarios, the electronic device may have an exception, but the core network does not trigger the electronic device to send the Notify message, if the electronic device does not trigger deregistration and re-initial registration due to not receiving the Notify message in this scenario, the electronic device will continue to be in the IMS unregistered state, causing the problem of subsequent call service failure. Therefore, the electronic device in this embodiment can actively detect the change of the IMS registration state, and trigger the electronic device to perform deregistration and re-initial registration to restore the IMS registration state of the electronic device in a case where the IMS registration state is changed.

[0105] Specifically, Figure 4

[0106] S201, the electronic device detects that the IMS registration state is changed to the IMS unregistered state.

[0107] Wherein, when the IMS registration state of the electronic device changes, the corresponding module can report the state change event, for example, report to the Modem, or the Modem can listen to the change of the IMS registration state through the listening mechanism.

[0108] Exemplarily, the electronic device can determine that the state is changed to the IMS unregistered state through the change of the state identifier, for example, the state identifier is changed to 0, which represents that the IMS registration state is changed to the IMS unregistered state.

[0109] S202, the electronic device judges whether the IMS switch state is turned on, if yes, S203 is executed, if not, the process is ended.

[0110] ​​​​​​​​​If the IMS switch state in the electronic device is changed to the IMS unregistered state, the subsequent judgment needs to be performed to recover the IMS state. If the IMS switch state in the electronic device is closed, it is not necessary to perform the unregistration and the reinitialization registration, and the process ends.

[0111] In S203, the electronic device determines whether the electronic device is in the online state. If yes, S204 is performed; if no, the process ends.

[0112] The online state can be the normal working state of the electronic device, for example, the electronic device can normally make a call, connect a network, and perform other data services. If the electronic device is in the airplane mode or the communication is in the state of arrears, it can be understood that the electronic device is not in the online state.

[0113] If the electronic device is in the normal working state, the subsequent judgment needs to be performed to recover the IMS state. If the electronic device is not in the normal working state, the electronic device does not perform the subsequent process because some states can actively trigger the IMS registration recovery (for example, the user actively closes the airplane mode).

[0114] In S204, the electronic device determines whether the SIM card is in the ready state. If yes, S205 is performed; if no, the process ends.

[0115] The ready state of the SIM card can be the state in which the SIM card is normally installed in the card slot. If the SIM card is in the ready state, the subsequent judgment needs to be performed to recover the IMS state. If the SIM card is not in the ready state, it is not necessary to perform the unregistration and the reinitialization registration, and the process ends.

[0116] It can be understood that the execution order of the judgment on whether the IMS switch state is opened, the judgment on whether the electronic device is in the online state, and the judgment on whether the SIM card is in the ready state in S202 to S204 is not limited in the embodiments of the present application. In addition, the three steps can be combined as "whether the electronic device performs a second operation". The second operation can include the IMS switch state change operation, the airplane mode opening operation, and the card removal operation. If the electronic device performs the second operation, the process ends. If the electronic device does not perform the second operation, the subsequent process is performed.

[0117] In S205, a second timer is started, and the third time length is timed.

[0118] The purpose of starting the second timer here is to detect whether the electronic device can perform IMS registration recovery by itself within the second time length, and if the electronic device can perform IMS registration recovery by itself, the process of deregistration and re-initial registration does not need to be triggered again, so as to save the processing power consumption of the electronic device.

[0119] Exemplarily, the third time length timed by the second timer can be T3, for example, T3 is 10 minutes.

[0120] S206, whether the electronic device performs the first operation within the third time length, if not, S207 is performed, and if yes, the second timer is terminated.

[0121] The first operation can be a preset operation capable of actively triggering IMS registration recovery, for example, the first operation can include a SIM card state change operation (such as a card removal operation and / or a deactivation operation), an opening of a flight mode operation, and the like. If the electronic device performs the first operation within the third time length, since these operations are operations capable of actively triggering IMS registration recovery (such as the user actively closing the flight mode) following the user's behavior, the electronic device can terminate the second timer and no longer perform the subsequent process. If the electronic device does not perform the first operation within the third time length, it is indicated that IMS registration recovery can not be actively triggered, and the subsequent process needs to be performed.

[0122] S207, whether the electronic device has changed to an IMS registration state within the third time length, if not, S208 is performed, and if yes, the second timer is terminated.

[0123] That is to say, if the electronic device has recovered the IMS registration state (regardless of whether it is due to the triggering operation of the user or the self-healing capability of the electronic device) within the timing range of the second timer, the electronic device does not need to perform the subsequent process and can terminate the second timer. If the electronic device is still in an IMS unregistered state within the third time length, the subsequent process is performed.

[0124] S208, in the case where the second timer is timed out, the electronic device judges whether a first condition is met, if yes, S209 is performed, and if not, the process is ended.

[0125] The first condition being met represents that the electronic device needs to perform the deregistration and re-initial registration operation, and if the first condition is not met, that is, the deregistration and re-initial registration does not need to be performed, the process is ended.

[0126] In some implementations, the first condition can include at least one of the following: a current network mode of the electronic device is 4G or 5G, the electronic device is in a screen-off state, the electronic device is in an idle state, and a system time is more than a second time length from a time corresponding to the second operation. The electronic device being in the idle state can mean that the electronic device is not in a call process, is not performing data service, and the like. The second operation can be an operation of triggering a last de-registration and re-initial registration.

[0127] Exemplarily, in a case where the first condition includes the four conditions of the current network mode of the electronic device being 4G or 5G, the electronic device being in the screen-off state, the electronic device being in the idle state, and the system time being more than the second time length from the time corresponding to the second operation, the electronic device can first determine whether the current network mode is 4G or 5G. If yes, it is determined whether the electronic device is in the screen-off state. If no, the process ends. Then, if the electronic device is in the screen-off state, it is determined whether the electronic device is in the idle state. If the electronic device is not in the screen-off state, the process ends. Next, if the electronic device is not in the idle state, the process ends. If the electronic device is in the idle state, it is determined whether the system time is more than the second time length from the time corresponding to the second operation. If yes, S209 is performed. If no, the timing continues until the second time length is reached. After the second time length is reached, if the electronic device has recovered the IMS registration state, the de-registration and re-initial registration are not needed, and the process ends. If the electronic device has not recovered the IMS registration state, i.e., is still in the IMS unregistered state, S209 is performed.

[0128] It can be understood that, according to actual scenarios, the first condition can include more or fewer conditions than the above, which is not limited in the embodiments of the present application.

[0129] S209, the electronic device triggers de-registration and re-initial registration, and IMS registration retry.

[0130] That is to say, in a case where the second timer is timed out and the first condition is met, the electronic device needs to trigger de-registration and re-initial registration, and IMS registration retry, so as to recover the IMS registration state of the electronic device and ensure that subsequent call service can be normally performed.

[0131] In some implementations, the process of the electronic device triggering de-registration and re-initial registration, and IMS registration retry can refer to the process shown in the flowchart of FIG. 8, which is not described herein again. Figure 5

[0132] ​In some implementations, after the Modem in the electronic device detects that the IMS registration state changes to the IMS unregistered state in step S201, the Modem can send a message to the AP, instructing the AP to perform steps S202 to S208, and then the Modem performs the triggering of step S209 to perform the deregistration and re-initialization registration, and the IMS registration retry process.

[0133] In other implementations, the processes of steps S201 to S209 described above can all be performed by the Modem, and the embodiments of the present application do not make specific limitations.

[0134] It can be understood that the condition content and the judgment process of the judgment condition in Embodiment One S105 to S109 described above can be applied in Embodiment Two S202 to S208, and the condition content and the judgment process of the judgment condition in Embodiment Two S202 to S208 can also be applied in Embodiment One, and Embodiment One and Embodiment Two can also include more or less judgment conditions, and the embodiments of the present application do not make limitations.

[0135] The IMS registration method described above, in the case where the electronic device detects that the IMS registration state changes to the IMS unregistered state, by judging whether the IMS switch state is on, whether the current state is online, whether the SIM card is in the in-place state, whether the first operation is performed within the third time period, whether the IMS registration state has been changed within the third time period, and whether the first condition is met, and other preset conditions, according to the judgment result, the electronic device is triggered to perform the deregistration and re-initialization registration, and then the IMS registration retry is triggered to restore the IMS registration state of the electronic device and improve the success rate of the call service; and the preset conditions in the embodiment are more conditions and the judgment process is more strict compared with Embodiment One, so as to avoid the result of misjudgment and misprocessing of the electronic device.

[0136] For the process of "triggering the deregistration and re-initialization registration, and the IMS registration retry" in S110 and S209 described above, see the following Figure 5 The process can include:

[0137] S301, the electronic device sends a deregistration request message to the core network.

[0138] The deregistration request message can be an attach request message, and the electronic device can send the deregistration request to the core network through the eNode.

[0139] S302, the core network replies to the electronic device with a deregistration acceptance message.

[0140] The deregistration acceptance message can be an attach accept message, and the attach accept message can carry specific support content of the core network in reply to the electronic device performance.

[0141] S303, the electronic device replies to the core network with a deregistration completion message.

[0142] The registration completion message can be an attach complete message, to represent that the electronic device deregistration process is completed.

[0143] S304, the electronic device sends an initial registration request message to the core network.

[0144] The initial registration request message can be a detach request message, to represent that the electronic device requests to attach to the network.

[0145] S305, the core network replies to the electronic device with an initial registration acceptance message.

[0146] The initial registration acceptance message can be a detach accept message, and when the electronic device receives the detach accept message sent by the network, it means that the initial registration process is completed, and the electronic device is connected to the network.

[0147] S306, the electronic device performs SIP signaling registration to the IMS core network.

[0148] After the electronic device is connected to the network, it needs to continue to register to the IMS network, and according to the above description, the core of the IMS network is the CSCF, so the electronic device can perform IMS registration based on the SIP signaling of the CSCF. The CSCF can be divided into proxy CSCF (P-CSCF), interrogating CSCF (I-CSCF), and serving CSCF (S-CSCF) according to the function, and in essence, they are all SIP servers and can process SIP signaling.

[0149] In one implementation, the process of SIP signaling registration can include: the electronic device sends a register message to the P-CSCF through the IMS default bearer, the P-CSCF forwards the register message to the I-CSCF, the I-CSCF sends a user authorization request message to a home subscriber server (HSS) to obtain an S-CSCF. The I-CSCF forwards the register message to the S-CSCF, the S-CSCF sends a multimedia authentication request message to the HSS to query an authentication parameter set, the S-CSCF sends a 401 response message to the I-CSCF, including the authentication parameter, to the electronic device for two-way authentication. The I-CSCF sends the 401 response message to the P-CSCF, and the P-CSCF sends the 401 response message to the electronic device. The electronic device performs calculation according to the authentication parameter, and after the network side authentication is passed, the register message is re-sent, the P-CSCF forwards the register message to the I-CSCF, the I-CSCF sends a user authorization request to the HSS again, the I-CSCF forwards the register message to the S-CSCF, and the S-CSCF determines that the authentication is passed, sends a service distribution message to the HSS to obtain user subscription data. The S-CSCF sends a 200 OK response message to the I-CSCF, the I-CSCF forwards the 200 OK to the P-CSCF, and the P-CSCF forwards it to the electronic device, so that the electronic device is successfully registered in the IMS network.

[0150] Through the above process, the electronic device completes the IMS retry process, and the IMS registration state of the electronic device is restored accordingly, so that the electronic device can normally perform subsequent services and improve the success rate of call services.

[0151] The above describes an example of the IMS registration method provided by the embodiments of the present application. It can be understood that the electronic device includes hardware and / or software modules corresponding to the execution of each function in order to implement the above functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed in the present application, the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered beyond the scope of the present application.

[0152] The embodiments of the present application can divide the function modules of the electronic device according to the above method examples. For example, each function module, such as a detection unit, a processing unit, a display unit, etc., can be divided. Two or more functions can also be integrated in one module. The integrated module can be implemented in the form of hardware or software function module. It should be noted that the division of the module in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, another division mode can be used.

[0153] It should be noted that all related contents of each step involved in the above method embodiments can be cited in the function description of the corresponding function module, which will not be repeated here.

[0154] The electronic device provided by the embodiments can be used to execute the above IMS registration method, and thus the same effect as the above implementation method can be achieved.

[0155] In the case of using the integrated unit, the electronic device can further include a processing module, a storage module and a communication module. The processing module can be used to control and manage the actions of the electronic device. The storage module can be used to support the electronic device to execute the storage of program codes and data, etc. The communication module can be used to support the communication between the electronic device and other devices.

[0156] The processing module can be a processor or a controller. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of digital signal processors and microprocessors, etc. The storage module can be a memory. The communication module can be a device for interacting with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0157] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in the embodiments can be a device with the structure as shown in the figure. Figure 1

[0158] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes the IMS registration method of any one of the above embodiments. The storage medium can include a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0159] ​The embodiment of the present application further provides a computer program product, which, when running on a computer, enables the computer to execute the above related steps to realize the IMS registration method in the above embodiment.

[0160] In addition, the embodiment of the present application further provides a device, which can be a chip, a component or a module, and the device can include a processor and a memory connected to each other, wherein the memory is used to store computer-executable instructions, and the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the IMS registration method in the above method embodiments when the device runs.

[0161] The electronic device, the computer readable storage medium, the computer program product or the chip provided by the embodiment can be used to execute the corresponding method provided above, and thus the beneficial effects thereof can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.

[0162] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity, only the division of the above functional modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0163] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically independently, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit.

[0164] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An IMS registration method, the method being performed by an electronic device, characterized in that, The method comprises: In the case that the electronic device is in an IMS registration state, if a logoff notification message sent by a network is received, or it is detected that the IMS registration state is changed to an IMS unregistered state, the electronic device judges whether a preset condition is met, the preset condition being used by the electronic device to determine whether the IMS registration state needs to be restored; In the case that the preset condition is met, the electronic device triggers de-registration and re-initial registration, and IMS registration retry to restore the IMS registration state of the electronic device; The electronic device triggers de-registration and re-initial registration, and IMS registration retry, comprising: The electronic device sends a de-registration request message to the network; The electronic device receives a de-registration acceptance message from the network, and replies a de-registration completion message to the network; The electronic device sends an initial registration request message to the network; The electronic device receives an initial registration acceptance message from the network; The electronic device performs SIP signaling registration to the network.

2. The method of claim 1, wherein, In the case that the logoff notification message sent by the network is received, the electronic device judges whether a preset condition is met, comprising: If information carried in the logoff notification message is preset information, it is judged whether the preset condition is met.

3. The method of claim 2, wherein, The preset information is information comprising state="terminated" and event="rejected".

4. The method of claim 2, wherein, The preset condition is met including at least one of the following conditions: a currently registered PLMN of the electronic device is a target PLMN, the electronic device does not perform a first operation within a first time length timed by a first timer, the electronic device does not change to the IMS registration state within the first time length, and in the case that the first timer is timed out, system time of the electronic device is more than a second time length from time corresponding to a second operation; The first operation is an operation of actively triggering IMS registration restoration when an inverse operation of the first operation is performed, and the second operation is an operation of last de-registration and re-initial registration.

5. The method of claim 4, wherein, In the case that the first timer is timed out, if the system time of the electronic device is not more than the second time length from the time corresponding to the second operation, the method further comprises: It is determined that the preset condition is not met, and the timing is continued until the system time of the electronic device is the second time length from the time corresponding to the second operation; If the electronic device is still in the IMS unregistered state, de-registration and re-initial registration, and IMS registration retry are triggered.

6. The method of claim 1, wherein, In the case that the IMS registration state is detected to change to the IMS unregistered state, the preset condition satisfaction includes at least one of the following conditions: the IMS switch state of the electronic device is an open state, the electronic device is in an online state, a subscriber identity module (SIM) card of the electronic device is in a seated state, the electronic device does not perform a first operation within a third time length timed by a second timer, the electronic device does not change to an IMS registered state within the third time length, and a first condition is satisfied in the case that the second timer times out.

7. The method of claim 6, wherein, The first condition satisfaction includes at least one of the following conditions: a current network mode of the electronic device is 4G or 5G, the electronic device is in an off-screen state, the electronic device is in an idle state, and a system time of the electronic device is more than a second time length from a time corresponding to a second operation.

8. The method according to claim 4 or 6, characterized in that, The first operation includes a SIM card removal and / or deactivation operation, and / or an operation of opening a flight mode.

9. An electronic device, comprising: The electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is configured to store computer program codes including computer instructions, and the one or more processors are configured to invoke the computer instructions to cause the electronic device to perform the method according to any one of claims 1 to 8.

10. A chip system, characterized by The chip system includes: processing circuitry, a receiving pin, and a sending pin; wherein the receiving pin, the sending pin, and the processing circuitry communicate with each other through an internal connection path, and the processing circuitry performs the method according to any one of claims 1 to 8 to control the receiving pin to receive signals and control the sending pin to send signals.

11. A chip system, characterized by The chip system is applied to an electronic device, and the chip system includes one or more processors configured to invoke computer instructions to cause the electronic device to perform the method according to any one of claims 1 to 8.

12. A computer-readable storage medium, characterized in that, The computer readable storage medium includes instructions configured to cause an electronic device to perform the method according to any one of claims 1 to 8 when the instructions are executed on the electronic device.

Citation Information

Patent Citations

  • Methods and apparatus for resolving data inconsistencies in an IMS network

    US20150312387A1