Patent ID: 11916973
Assignee: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 8:
9. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor of a terminal, cause the terminal to:
determine whether a network side supports an IMS service;
acquire, based on an IMS Access Point Name (APN), an address for the IMS registration when the network side supports the IMS service;
perform the IMS registration based on the acquired address for the IMS registration;
receive a reason for a failure of the IMS registration, and determine a first preset threshold based on the reason by:
determining that the first preset threshold has a first value when the reason for the failure of the IMS registration is that a registration request of the IMS registration is lost; and
determining that the first preset threshold has a second value when the reason for the failure of the IMS registration is that an IMS server refuses to register, wherein the second value is less than the first value;

initiate an IMS re-registration based on the acquired address when the IMS registration fails by initiating the IMS re-registration when a number of times that the IMS registration based on the acquired address is performed does not reach the first preset threshold;
re-acquire an address for the IMS registration when the number of times that the IMS registration based on the acquired address is performed reaches the first preset threshold; and
initiate the IMS registration based on the re-acquired address for the IMS registration,
wherein the instructions further cause the terminal to:
determine whether a number of times that acquisition for the address for the IMS registration is performed reaches a second preset threshold; and
re-acquire the address for the IMS registration when the number of times that the acquisition is performed does not reach the second preset threshold.