WO2022057473A1 - 一种语音业务切换方法、终端设备及芯片 - Google Patents

一种语音业务切换方法、终端设备及芯片 Download PDF

Info

Publication number
WO2022057473A1
WO2022057473A1 PCT/CN2021/109791 CN2021109791W WO2022057473A1 WO 2022057473 A1 WO2022057473 A1 WO 2022057473A1 CN 2021109791 W CN2021109791 W CN 2021109791W WO 2022057473 A1 WO2022057473 A1 WO 2022057473A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
ims
time
terminal device
timer
Prior art date
Application number
PCT/CN2021/109791
Other languages
English (en)
French (fr)
Inventor
沈玉娟
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022057473A1 publication Critical patent/WO2022057473A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • H04W36/144Reselecting a network or an air interface over a different radio air interface technology
    • H04W36/1443Reselecting a network or an air interface over a different radio air interface technology between licensed networks
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration

Definitions

  • the present application relates to the field of mobile communication technologies, and in particular, to a voice service switching method, a terminal device and a chip.
  • 5G is the fifth-generation mobile communication network. It is a brand-new mobile communication technology. Compared with 2/3/4G technology, it can provide large bandwidth, full connection, and low-latency access.
  • IP Internet Protocol
  • IMS IP Multimedia Subsystem
  • IMS IP Multimedia Subsystem
  • the terminal device can reside on the Long Term Evolution (Long Term Evolution, LTE) for a long time.
  • CSFB Circuit Switch fallback
  • the voice communication under the 5G network can only be carried out through the IMS domain, and the voice communication cannot be guaranteed until the IMS registration is successful.
  • the terminal equipment cannot reside on the 5G network for a long time. Specifically, if the IMS cannot provide services normally, the terminal device will disable the 5G network for a fixed period of time, and switch to other networks such as 4G networks. After the timeout, the ban will be lifted and the 5G access network will be searched again. Since the terminal device does not consider the abnormal conditions at different stages, such as the abnormal IMS PDU session establishment or the retry time of the different stages corresponding to the abnormal IMS network registration, that is, the terminal device will disable the 5G network regardless of the abnormal situation during IMS registration. The same fixed time is not conducive to ensuring that the terminal equipment uses the 5G network to the maximum extent and preventing the terminal equipment from ping-pong between the 5G network and the 4G network, which affects the service experience effect.
  • the embodiments of the present application provide a voice service switching method, terminal device and chip, which can enable the terminal device to use the 5G network to the maximum extent and prevent the terminal device from ping-pong between the 5G network and the 4G network.
  • an embodiment of the present application provides a voice service switching method.
  • the voice service switching method includes: a terminal device uses a first network to perform IMS registration and starts an IMS timer, wherein the IMS registration includes PDU session establishment register with the IMS network, and the time duration of the IMS timer is the maximum time required for the terminal device to establish the PDU session and complete the registration to the IMS network; if the terminal device is in the IMS timer If the PDU session is not established within the timing period, the terminal device determines the first retry time of the PDU session establishment request and starts a first timer; the terminal device disables the first network within the first retry time , and switch to use the second network to establish the IMS voice service or the CSFB voice service of the circuit domain fallback; when the time duration of the first timer reaches the first retry time, the terminal device stops using the second network, And switch to use the first network to establish an IMS voice service; if the terminal device has established a PDU session within the time
  • the terminal device disables the first network within the second retry time, and switches to use the second network to establish IMS voice service or CSFB voice circuit domain fallback service; when the time duration of the second timer reaches the second retry time, the terminal device stops using the second network, and switches to using the first network to establish an IMS voice service.
  • the above-mentioned voice service switching method of the embodiment of the present application can determine the retry time at different stages, that is, the first retry time or the second retry time, according to the abnormal conditions of different stages such as PDU session establishment or IMS network registration, And disable the 5G network within the retry time, and at the same time establish the IMS voice service through the 4G network or fall back to the 2/3G network for the CS voice service.
  • the device can maximize the use of the 5G network and prevent terminal equipment from ping-pong between the 5G network and the 4G network, and can more accurately control the use of the 5G network, ensuring the continuity of voice services and better service experience.
  • an embodiment of the present application provides a voice service switching method, the voice service switching method includes: a terminal device sends a PDU session establishment request to a core network of a first network; if the terminal device is in the IMS timer If a PDU session is not established within the timing period, the terminal device determines the first retry time of the PDU session establishment request and starts a first timer to count, wherein the timing period of the IMS timer is defined as the establishment of the terminal device by the terminal device.
  • the terminal device disables the first network within the first retry time, and switches to use the second network to establish IMS voice services or circuit domain Fall back to the CSFB voice service; when the time duration of the first timer reaches the first retry time, the terminal device stops using the second network and switches to using the first network to establish an IMS voice service .
  • the above-mentioned voice service switching method of the embodiment of the present application can determine the first retry time according to the abnormal condition of the establishment of the PDU session, disable the 5G network within the first retry time, and simultaneously establish the IMS voice service or Fall back to 2/3G network for CS voice service, and retry to use 5G network to establish IMS voice service when the first retry time is reached, so that terminal equipment can use 5G network to the maximum extent and prevent terminal equipment from using 5G network and 4G network. Ping-pong between, can more accurately control the use of 5G network, ensure the continuity of voice services, and better service experience.
  • the terminal device device when the terminal device device receives the error code cause value of the abnormal PDU session establishment sent by the core network of the first network but the non-operator is permanently banned error code cause value, the The terminal device determining the first retry time of the PDU session establishment request includes: if the error code cause value of the abnormal PDU session establishment carries a delay time, the terminal device determines that the delay time is the first retry time. or, if the error code cause value of the abnormal PDU session establishment is not carried or is carried as 0, the terminal device determines that the fixed time is the first retry time.
  • the terminal device when the terminal device continuously receives the same error code cause value of the PDU session establishment exception, the terminal device will obtain the error code cause value according to the PDU session establishment exception error code cause value.
  • the delay time or fixed time after accumulating a penalty time is determined as the first retry time, wherein the accumulated penalty time is the same or different each time until the maximum penalty time is accumulated, and then the delay time or The fixed time is determined as the first retry time.
  • the terminal device device when the terminal device device receives the error code cause value of the abnormal PDU session establishment sent by the core network of the first network and the error code cause value of the abnormal PDU session establishment is the operation
  • the terminal device disables the first network until the power is turned on or off, the card is inserted or removed, the flight is turned on or off, or the IMS related switch is turned on and off.
  • the terminal device determines that the PDU
  • the first retry time of the session establishment request includes: determining the time for retrying the PDU session establishment request when the third timer expires specified in the relevant standard protocol as the first retry time.
  • the terminal device when the terminal device continuously times out of the third timer, the terminal device will retry the time for retrying the PDU session establishment request obtained according to the expiration of the third timer
  • the time after accumulating a period of punishment time is determined as the first retry time, and the cumulative punishment time is the same or different each time until the maximum punishment time is accumulated, and then the third timer is re-acquired according to the relevant standard protocol when it times out.
  • the time for retrying the PDU session establishment request is determined as the first retry time.
  • the first network is a 5G network
  • the second network is a 4G network.
  • an embodiment of the present application provides a voice service switching method.
  • the voice service switching method includes: after a terminal device establishes a PDU session with a core network of a first network, the terminal device sends an IMS network registration message to the IMS network.
  • the terminal device determines the second retry time of the IMS network registration request and starts a second timer to count, wherein, The time duration of the IMS timer is the longest time required to establish the PDU session and complete the registration of the IMS network; the terminal device disables the first network within the second retry time, and Switch to using the second network to establish IMS voice service or circuit domain fallback CSFB voice service; when the time duration of the second timer reaches the second retry time, the terminal device stops using the second network, and switch to using the first network to establish an IMS voice service.
  • the above-mentioned voice service switching method of the embodiment of the present application can determine the second retry time according to the abnormal situation of IMS network registration, disable the 5G network within the second retry time, and simultaneously establish the IMS voice service or Fall back to 2/3G network for CS voice service, and then retry to use 5G network to establish IMS voice service when the second retry time is reached, so that terminal equipment can use 5G network to the maximum extent and prevent terminal equipment from using 5G network and 4G network. Ping-pong between, can more accurately control the use of 5G network, ensure the continuity of voice services, and better service experience.
  • the terminal device device when the terminal device device receives the error code cause value of the abnormal IMS network registration sent by the core network of the first network, the terminal device determines the error code of the IMS network registration request.
  • the second retry time includes: if the error code cause value of the abnormal IMS network registration carries the retry time, the terminal device determines the retry time as the second retry time; or, if the The error code cause value of the abnormal IMS network registration is not carried, and the terminal device determines the retry duration of the IMS network registration request corresponding to the error code cause value of the abnormal IMS network registration specified in the relevant standard protocol as the Second retry time.
  • the terminal device when the terminal device continuously receives the same error code cause value of the IMS network registration exception, the terminal device will obtain the error code cause value according to the IMS network registration exception error code cause value.
  • the time after the retry time is accumulated for a period of punishment time is determined as the second retry time, wherein the cumulative punishment time is the same or different each time, until the maximum punishment time is accumulated, and then the retry time is re-determined as the second retry time.
  • the terminal device device when the terminal device device receives the error code cause value of the IMS network registration exception and the error code cause value of the IMS network registration exception sent by the core network of the first network
  • the terminal device disables the first network until the power is turned on or off, the card is inserted or removed, the flight is turned on or off, or the IMS related switch is turned on and off.
  • the terminal device Determining the second retry time for the IMS network registration request includes: determining the time for retrying the IMS network registration request when the fourth timer expires specified in a relevant standard protocol as the second retry time.
  • the terminal device when the terminal device continuously times out of the fourth timer, the terminal device will retry the IMS network registration request time obtained according to the time out of the fourth timer.
  • the time after accumulating a period of penalty time is determined as the second retry time, and the accumulated penalty time is the same or different each time until the maximum penalty time is accumulated, and then the fourth timer is re-timed and obtained according to the relevant standard protocol.
  • the time for retrying the IMS network registration request is determined as the second retry time.
  • the first network is a 5G network
  • the second network is a 4G network.
  • an embodiment of the present application provides a terminal device, including a memory and a processor, where the memory is used to store a computer program; the processor is used to run the computer program stored in the memory to execute: using the first A network performs IMS registration and starts an IMS timer, wherein the IMS registration includes PDU session establishment and IMS network registration, and the timing of the IMS timer is to specify that the terminal device establishes the PDU session and completes the IMS The longest time required for network registration; if the PDU session is not established within the time duration of the IMS timer, determine the first retry time of the PDU session establishment request and start the first timer; Disable the first network within the retry time, and switch to using the second network to establish IMS voice services or CSFB voice services for circuit domain fallback; when the time duration of the first timer reaches the first retry time, stop Use the second network, and switch to use the first network to establish an IMS voice service; if the PDU session has been established within the IMS timer,
  • an embodiment of the present application provides a terminal device, including a memory and a processor, where the memory is used to store a computer program; the processor is used to run the computer program stored in the memory to execute: to the first The core network of a network sends a PDU session establishment request; if the PDU session is not established within the time duration of the IMS timer, the first retry time of the PDU session establishment request is determined and the first timer is started, wherein the The time duration of the IMS timer is the maximum time required for the terminal device to establish the PDU session and complete the IMS network registration; disable the first network within the first retry time, and switch to use the first network.
  • the second network establishes the IMS voice service or the circuit domain fallback CSFB voice service; when the time duration of the first timer reaches the first retry time, stop using the second network and switch to using the first network
  • the network establishes the IMS voice service.
  • an embodiment of the present application provides a terminal device, including a memory and a processor, where the memory is used to store a computer program; the processor is used to run the computer program stored in the memory to execute: when and After the core network of the first network establishes the PDU session, it sends an IMS network registration request to the IMS network; if the IMS network registration is not completed within the time period of the IMS timer, the second retry time of the IMS network registration request is determined and start a second timer, wherein the timing of the IMS timer is the maximum time required to establish the PDU session and complete the IMS network registration; disable all The first network is used, and the IMS voice service or the CSFB voice service is established by using the second network; when the time duration of the second timer reaches the second retry time, stop using the second network, and switch to using the first network to establish an IMS voice service.
  • an embodiment of the present application provides a chip for implementing the functions of the above-mentioned terminal device.
  • an embodiment of the present application provides a computer-readable storage medium for storing a computer program, and when the computer program is executed by a processor of a terminal device, the terminal device implements the above-mentioned voice service switching method .
  • an embodiment of the present application provides a computer program product, where the computer program product includes a computer program/instruction, when the computer program/instruction is run on a terminal device, the terminal device is made to implement the above-mentioned voice Service switching method.
  • the terminal device determines the retry time of different stages corresponding to the establishment of the PDU session or the IMS registration is abnormal, and disables the 5G network within the retry time, and switches over at the same time.
  • the terminal device determines the retry time of different stages corresponding to the establishment of the PDU session or the IMS registration is abnormal, and disables the 5G network within the retry time, and switches over at the same time.
  • stop using the 4G network when the retry time expires and switch to using the 5G network to establish the IMS voice service, so as to ensure that the terminal equipment can use the 5G network to the maximum extent, and prevent the terminal equipment from using the 5G network.
  • Ping-pong with 4G network can more accurately control the use of 5G network, avoid the situation that voice services cannot be carried out normally, ensure the continuity of voice services, and provide better service experience.
  • FIG. 1 is a schematic diagram of a network architecture to which an embodiment of the application is applied;
  • Fig. 2 is the flow chart of carrying out IMS registration under the network architecture of Fig. 1;
  • Fig. 3 is the specific flow chart of IMS registration under 5G network
  • Fig. 4 is a flow chart of a voice service switching method to which the network architecture in Fig. 1 is applicable;
  • FIG. 5 is a flowchart of the voice service switching method provided in the first embodiment of the present application in the first scenario
  • FIG. 6 is a flowchart of the voice service switching method provided in the first embodiment of the present application under the second scenario
  • FIG. 7 is a flowchart of the voice service switching method provided by the first embodiment of the present application under a third scenario
  • FIG. 10 is a flowchart of the voice service switching method provided by the second embodiment of the present application under a third scenario
  • FIG. 11 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • FIG. 1 is a schematic diagram of a network architecture to which an embodiment of the present application is applied.
  • the network architecture includes a terminal device 101 , an access network device 102 that provides a 2/3G network for the terminal device 101 , an access network device 103 that provides an LTE network for the terminal device 101 , and an access network device 103 that provides the terminal device 101 with Access network equipment 104, core network equipment 105 and IP Multimedia Subsystem (IMS) 106 of the NR network.
  • IMS IP Multimedia Subsystem
  • the terminal device 101 also known as user equipment (UE), can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; it can also be deployed on water (such as ships, etc.); it can also be deployed in the air (eg airplanes, balloons, and satellites, etc.).
  • the terminal device can be a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) device, an augmented reality (augmented reality, AR) device, industrial control (industrial control) Wireless devices in ), wireless devices in self-driving, wireless devices in remote medical, wireless devices in smart grid, wireless devices in transportation safety , wireless devices in smart cities, wireless devices in smart homes, etc.
  • VR virtual reality
  • AR augmented reality
  • industrial control industrial control
  • the terminal device 101 is used to generate a registration request, and send the generated registration request to the P-CSCF entity in the IMS 106 through the access network and the core network, and is also used to receive the registration returned from the IMS 106 through the core network and the access network. reply message.
  • the core network equipment 105 may include 5G core network (5G core, 5GC) equipment, evolved packet core network (evolved packed core, EPC) equipment, and 2/3G core network equipment.
  • the equipment in 5GC includes access and mobility management function (AMF) for terminal equipment access and mobility management, and session management function (session management function) for terminal equipment session management. , SMF), a user plane function (UPF) that controls the user plane of the terminal device.
  • AMF access and mobility management function
  • SMF session management function
  • UPF user plane function
  • the core network device may also include other devices, for example, devices that perform policy control functions.
  • the devices in the EPC may include a mobility management entity (mobility management entity, MME) and a packet gateway (packed gateway, PGW) that manage the movement of the terminal device.
  • MME mobility management entity
  • PGW packet gateway
  • the IP Multimedia Subsystem (IMS) 106 may include a proxy call state control function (P-CSCF) entity, an interrogating call state control function (I-CSCF), a serving call state control function (S-CSCF) entity , Home Subscriber Server (HSS).
  • P-CSCF proxy call state control function
  • I-CSCF interrogating call state control function
  • S-CSCF serving call state control function
  • HSS Home Subscriber Server
  • the P-CSCF entity is the first connection point from the access network to the IMS, and all session messages originating from the terminal equipment supporting IMS and terminating in the terminal equipment supporting IMS must be forwarded through the P-CSCF entity.
  • the P-CSCF entity can be used to forward the registration request from the terminal device to the S-CSCF entity, and forward the registration response information to the terminal device.
  • the I-CSCF entity can connect the S-CSCF entity and the P-CSCF entity to provide the terminal equipment with access to the home network.
  • the P-CSCF entity can forward the registration request message from the terminal device to the I-CSCF entity, and the I-CSCF entity can query the HSS in the IMS and select an S-CSCF entity for the terminal device.
  • the call message to the IMS network is first routed to the I-CSCF, and the I-CSCF entity can query the address information of the S-CSCF entity registered by the user through the HSS in the IMS for the terminal device, and then send the message Route to S-CSCF.
  • the S-CSCF entity is the control core of the IMS, and provides functions such as session control and registration for terminal equipment.
  • the S-CSCF entity is used to receive the registration request of the terminal device forwarded by the P-CSCF entity, cooperate with the HSS to authenticate the terminal device, and obtain the subscription information of the terminal device from the HSS after determining that the authentication is passed.
  • the S-CSCF entity is also used to connect with each application server based on the ISC interface, and the S-CSCF entity is also used to trigger the application server to perform operations, and route the request message of the terminal device to the corresponding application server.
  • the HSS is the main data store in the IMS that stores all user and service related data.
  • the data stored in the HSS mainly includes user identity, subscription information, access information, and the like.
  • FIG. 2 is a flowchart of IMS registration under the network architecture of FIG. 1 .
  • IMS registration includes PDU session establishment and IMS network registration.
  • the IMS registration is timed by the IMS timer, the establishment of the PDU session is timed by the third timer, and the IMS network registration is timed by the fourth timer.
  • IMS registration includes the following steps:
  • Step 201 start the IMS timer.
  • the timing duration of the IMS timer may be a user-defined duration, such as 35s, which is less than the default timer duration 128s specified in the protocol.
  • Step 202 start a third timer.
  • Step 203 the terminal device sends a PDU session establishment request (PDU session establishment request) to the core network through the access network device.
  • PDU session establishment request PDU session establishment request
  • Step 204 the core network sends a PDU session establishment response (PDU session establishment accept) to the terminal device through the access network device.
  • PDU session establishment accept PDU session establishment accept
  • Step 205 the third timer stops timing.
  • the third timer stops timing.
  • Step 206 start a fourth timer.
  • the terminal device After the third timer stops counting, the terminal device needs to send an IMS network registration request to the IMS network, and the fourth timer is started at this time.
  • Step 207 the terminal device sends an IMS network registration request to the IMS network through the access network device.
  • Step 208 the IMS network sends an IMS network registration completion message to the terminal device through the access network device.
  • Step 209 the fourth timer stops timing.
  • the fourth timer stops counting.
  • Step 210 the IMS timer stops counting.
  • the IMS timer stops counting.
  • steps 203 and 204 are the process of establishing a PDU session, and the PDU session can be established by completing steps 203 and 204 within the timing period of the third timer.
  • steps 207 and 208 are the IMS network registration process, and the IMS network can be successfully registered if the steps 207 and 208 are completed within the time period of the fourth timer.
  • the IMS registration needs to complete steps 201-210 within the time duration of the IMS timer.
  • the above-mentioned IMS registration process can be performed under the 4G network or under the 5G network.
  • FIG. 3 is a specific flow chart of IMS registration in a 5G network. As shown in Figure 3, it includes the following steps:
  • Step 301 the registration control module in the terminal device sends a non-access stratum (non-access stratum, NAS) registration request to a 5G non-access stratum (NR non-access stratum, NRNAS) module in the terminal device.
  • NAS non-access stratum
  • NRNAS 5G non-access stratum
  • the NRNAS module mainly includes mobility management and session management functions.
  • Step 302 the NRNAS module sends a NAS registration request to an access and mobility management function (access and mobility management function, AMF) entity.
  • AMF access and mobility management function
  • Step 303 processes such as authentication and authentication are performed between the AMF entity and the terminal device.
  • Step 304 the AMF entity sends a response message carrying the NAS registration success to the NRNAS module.
  • Step 305 the NRNAS module sends a response message carrying a successful NAS registration to the registration control module.
  • Step 306 the NRNAS module sends a NAS registration complete message to the AMF entity.
  • the terminal device searches for the 5G network, for example, it receives the user's operation to turn on the 5G network switch or turn off the airplane mode, or move from the non-5G network coverage area to the 5G network coverage area, and perform NAS registration on the 5G network.
  • the terminal device completes the NAS registration and attaches to the 5G network, the terminal device starts the IMS registration process.
  • the IMS registration process mainly includes the following steps:
  • Step 307 the registration control module starts the IMS timer.
  • the timing duration of the IMS timer may be a user-defined duration, such as 35s, which is less than the default timer duration 128s specified in the protocol.
  • Step 308 the registration control module sends an IMS registration request to the IMS module.
  • the IMS timer may be started when the registration control module sends the IMS registration request to the IMS module. That is, step 307 and step 308 can be performed simultaneously.
  • Step 309 the IMS module in the terminal device sends an IMS protocol data unit (protocol data unit, PDU) connection establishment request to the NRNAS module.
  • IMS protocol data unit protocol data unit
  • Step 310 the NRNAS module sends a PDU session establishment request (PDU session establishment request) to the AMF entity.
  • Step 311 the AMF entity sends a PDU session establishment response (PDU session establishment accept) to the NRNAS module.
  • Step 312 the NRNAS module sends an IMS PDU session establishment response to the IMS module.
  • Step 313 the IMS module sends an IMS network registration request to the P-CSCF.
  • Step 315 the IMS module stops the IMS timer from counting. Then, the terminal device can generate a voice service request message according to user requirements and send it to the P-CSCF of the IMS network to establish a voice service.
  • the voice communication can be carried out by falling back to the 2/3G network through the 4G network, so the voice communication can be guaranteed through the CS domain, and the terminal equipment can be in the long-term evolution (Long Long dwell on Term Evolution, LTE).
  • LTE Long Long dwell on Term Evolution
  • the voice communication under the 5G network can only be carried out through the IMS domain.
  • the terminal device cannot stay on the 5G network for a long time, and needs to search for other networks such as 4G network to stay. And use the 4G network to establish voice services when needed.
  • FIG. 4 is a flowchart of a voice service switching method applicable to the network architecture in FIG. 1 .
  • the voice service switching method may include the following steps:
  • Step 401 The terminal device determines that the IMS service cannot be provided within the time period of the IMS timer under the 5G network. That is, an exception occurs during IMS registration. For example, PDU session establishment abnormality or IMS network registration abnormality.
  • Step 402 The terminal device starts a fifth timer, disables the 5G network for a fixed time, and searches for the 4G network at the same time. Specifically, the terminal device searches the 4G access network and performs the NAS registration process. When the terminal device completes the NAS registration and attaches to the 4G network, it can perform IMS registration according to steps 201 to 210 shown in FIG. 2 to establish a voice service. If the terminal device cannot establish an IMS voice service on the 4G network, it needs to be For voice services, the terminal equipment can fall back to the 2/3G network to perform CS voice services in the circuit-switched domain.
  • Step 403 when the fifth timer expires and the fixed time is reached, the terminal device deactivates the 4G network and searches for the 5G network again. That is, the 5G access network is searched again, and the IMS registration is performed under the 5G network according to the steps shown in FIG. 3 to establish the voice service.
  • the terminal device will disable the 5G network for the same fixed time, such as 5 minutes, regardless of the different stages such as PDU session establishment or IMS network registration.
  • Stage retry time If the retry time in the abnormal phase is less than the fixed time for disabling the 5G network, the 5G network will be searched again after the fixed time is reached, which is not conducive to ensuring the maximum use of the 5G network; if the retry time in the abnormal phase is greater than the fixed time for disabling the 5G network Time, for example, the current cell cannot provide normal IMS services, after reaching the fixed time, the terminal device will re-search the 5G access network for IMS registration, because the retry time corresponding to the abnormal stage such as PDU session establishment or IMS network registration has not yet arrived, At this time, the PDU session cannot be established and/or the IMS network registration can still not be completed.
  • the terminal device will disable the 5G network for a fixed time again and switch to the 4G network. As a result, the terminal device will ping-pong between the 5G network and the 4G network, that is, changing back and forth, which cannot be guaranteed. business continuity. The above two situations will affect the normal use of the 5G network and cannot guarantee a better service experience effect.
  • an embodiment of the present application provides a voice service switching method, which is applied to a system including a terminal device, a first network, and a second network, wherein the first network may only support IMS voice services, such as a 5G network, and the first network may only support IMS voice services.
  • the second network can support IMS voice service and circuit domain fallback CSFB voice service, for example, a 4G network.
  • the voice service switching method can determine the retry time in different stages according to the abnormal conditions of PDU session establishment or IMS network registration, and Disable the 5G network within the retry time, and establish IMS voice services through the 4G network at the same time or fall back to the 2/3G network for CS voice services. It can maximize the use of the 5G network and prevent the terminal equipment from ping-pong between the 5G network and the 4G network, ensuring that the voice service can be carried out normally and the service experience effect is better.
  • the specific procedures of the voice service switching method according to the embodiment of the present application when abnormality occurs in the PDU session establishment process and the IMS network registration process are respectively introduced below.
  • the PDU session establishment exception and the IMS network registration exception each include three scenarios. Specifically, the first scenario is that the terminal device receives the error code cause value (non-operator-customized permanent forbidden error code cause value) sent by the network side within the timing duration of the corresponding timer; the second scenario is the corresponding process. The timer times out (the error code reason value is not received); the third scenario is that the terminal device receives the operator-customized permanent forbidden error code reason value sent by the network side within the timing duration of the corresponding timer.
  • FIG. 5 is a flowchart of the voice service switching method provided in the first embodiment of the present application in the first scenario.
  • the voice service switching method according to the first embodiment of the present application is aimed at the abnormal PDU session establishment in the 5G network.
  • the PDU session establishment process is timed by the third timer, that is, the time duration of the third timer is the completion of the specified terminal equipment.
  • the first scenario is that the terminal device receives the error code cause value of the abnormal PDU session establishment, but the error code cause value of the permanently banned error code is not customized by the operator.
  • the voice service switching method includes the following steps:
  • Step 501 the terminal device starts a third timer.
  • Step 502 the terminal device sends a PDU session establishment request to the 5G core network.
  • Step 503 the 5G core network sends the error code reason value of the abnormal PDU session establishment to the terminal device.
  • the error code cause value of the abnormal PDU session establishment see Table 1 below.
  • Step 504 the third timer stops timing.
  • the third timer stops timing.
  • Step 505 if the PDU session is not established within the time period of the IMS timer, determine the first retry time of the PDU session establishment request according to the error code cause value of the abnormal PDU session establishment.
  • the terminal device when receiving the error code cause value of the abnormal PDU session establishment within the time period of the IMS timer, the terminal device will resend the PDU session establishment request according to the standard protocol.
  • the terminal device will determine the first retry time of the PDU session establishment request according to the error code cause value of the received PDU session establishment abnormality. Specifically, if the error code cause value of the abnormal PDU session establishment carries the delay time back-off specified in the standard protocol, the terminal device determines that the first retry time is the delay time; if the error code cause value of the abnormal PDU session establishment is not Carry or carry is 0, the terminal device determines a fixed period of time as the first retry time.
  • the terminal device can determine the delay time or fixed time obtained according to the error code cause value of the abnormal PDU session establishment error by accumulating a penalty time. is the first retry time, wherein the accumulated penalty time is the same or different each time, until the accumulated penalty time reaches the maximum penalty time, and then the delay time or the set time is re-determined as the first retry time.
  • Step 506 the terminal device starts a first timer, and the time duration of the first timer is the first retry time.
  • Step 507 the terminal device disables the 5G network within the first retry time, and switches to use the 4G network to establish the IMS voice service or the circuit domain fallback CSFB voice service. Specifically, the terminal device searches the 4G access network and performs the NAS registration process. When the terminal device completes the NAS registration and attaches to the 4G network, it can perform IMS registration according to steps 201 to 210 shown in FIG. 2 to establish a voice service, If the terminal device cannot establish the IMS voice service under the 4G network, when the voice service is required, the terminal device can fall back to the 2/3G network to perform the CS voice service in the circuit switched domain.
  • Step 508 the first timer expires.
  • Step 509 the terminal device stops using the 4G network and switches to using the 5G network to establish the IMS voice service
  • the terminal device searches the 5G access network again, and performs NAS registration, PDU session establishment and IMS network registration under the 5G network according to the steps shown in FIG. 3 , so as to establish the IMS voice service.
  • FIG. 6 is a flowchart of the voice service switching method provided in the first embodiment of the present application in the second scenario.
  • the second scenario is that the third timer times out.
  • the voice service switching method includes the following steps:
  • Step 601 start a third timer.
  • Step 602 the terminal device sends a PDU session establishment request to the 5G core network.
  • Step 603 the third timer times out. That is, the terminal device has not established a PDU session, and has not received the error code cause value sent by the 5G core network within the timing duration of the third timer.
  • Step 604 if the PDU session is not established within the time period of the IMS timer, determine the first retry time for the PDU session establishment request according to the third timer timeout.
  • the terminal device when the third timer expires within the time duration of the IMS timer, the terminal device will resend the PDU session establishment request according to the standard protocol. Then, when the PDU session has not been established after the IMS timer expires, the terminal device will determine the time to retry the PDU session establishment request as the first retry time when the third timer specified in the standard protocol 3GPP 24.501 times out. . In addition, when the terminal device continuously times out of the third timer, the terminal device determines the time obtained by retrying the PDU session establishment request according to the time-out of the third timer and adding a penalty time as the first retry time.
  • the accumulated penalty time is the same or different, until the accumulated penalty time reaches the maximum penalty time, and then the time to retry the PDU session establishment request obtained according to the standard protocol 3GPP 24.501 when the third timer expires is determined as the first retry time.
  • Step 605 the terminal device starts a first timer, and the time duration of the first timer is the first retry time.
  • Step 606 disable the 5G network within the first retry time, and switch to using the 4G network to establish the IMS voice service or the circuit domain fallback CSFB voice service.
  • the terminal device searches the 4G access network and performs the NAS registration process.
  • the terminal device completes the NAS registration and attaches to the 4G network, it can perform IMS registration according to steps 201 to 210 shown in FIG. 2 to establish a voice service, If the terminal device cannot establish the IMS voice service under the 4G network, when the voice service is required, the terminal device can fall back to the 2/3G network to perform the CS voice service in the circuit switched domain.
  • Step 607 the first timer expires.
  • Step 608 the terminal device stops using the 4G network, and switches to using the 5G network to establish the IMS voice service.
  • the terminal device searches the 5G access network again, and performs NAS registration, PDU session establishment, and IMS network registration processes under the 5G network according to the steps shown in FIG. 3 , so as to establish the IMS voice service.
  • FIG. 7 is a flowchart of the voice service switching method provided in the first embodiment of the present application in a third scenario.
  • the third scenario is that the terminal device receives the operator-customized permanent forbidden error code cause value when establishing a PDU session.
  • the voice service switching method includes the following steps:
  • Step 701 start a third timer.
  • Step 702 the terminal device sends a PDU session establishment request to the 5G core network.
  • Step 703 the 5G core network sends the operator-customized permanent forbidden error code reason value to the terminal device.
  • the terminal device cannot establish a PDU session without obtaining the operator's permission.
  • it is necessary to switch the machine on and off, or switch the flight, or insert and remove the card, or switch the IMS-related switches.
  • Step 704 the third timer stops timing.
  • the terminal device receives the error code cause value, so the third timer stops timing.
  • Step 705 if the PDU session is not established within the time duration of the IMS timer, determine the first retry time of the PDU session establishment request according to the operator-customized permanent forbidden error code reason value, and the first retry time is used by the recovery operator. Time, that is, switch the machine or switch the flight, or plug and unplug the card, or switch the IMS related switches.
  • the terminal device when receiving the operator-customized permanent forbidden error code reason value within the time duration of the IMS timer, the terminal device will resend the PDU session establishment request according to the standard protocol. Next, when the PDU session is still not established after the IMS timer expires, the terminal device will determine the first retry time of the PDU session establishment request according to the received operator-customized permanent forbidden error code reason value as the power on or off or Switch the flight or plug and unplug the card or switch the IMS related switches.
  • Step 706 the terminal device disables the 5G network until the power is turned on, or the flight is switched on, or the card is inserted or removed, or the IMS related switch is switched on and off, and the 4G network is used to establish the IMS voice service or the CSFB voice service during the period of disabling the 5G network.
  • the terminal device can resume searching for the 5G network after switching on and off, switching on and off the airplane mode, plugging and unplugging the card, or switching on and off the IMS-related switches. Specifically, the terminal device searches the 5G access network again, and performs NAS registration, PDU session establishment and IMS network registration under the 5G network according to the steps shown in FIG. 3 , so as to establish the IMS voice service.
  • the terminal device when the establishment of the PDU session is abnormal, the terminal device will first determine the first retry time of the PDU session establishment request according to the abnormal situation in different scenarios, and then, The 5G network will be disabled within the first retry time (i.e., the 5G access network will not be searched) and switched to use the 4G network to establish the IMS voice service CSFB voice service will fall back to the circuit domain, and stop using the 4G network when the first retry time is reached And switch to use the 5G network to establish the IMS voice service, so that the terminal device can use the 5G network to the maximum extent, and can prevent the terminal device from ping-pong between the 5G network and the 4G network, so that the terminal can more accurately control the use of the 5G network and avoid the occurrence of If the business cannot be used normally, the business experience is better.
  • the voice service switching method of the first embodiment of the present application is described above.
  • the following introduces the voice service switching method according to the second embodiment of the present application, which is aimed at the situation that the IMS network registration is abnormal.
  • the IMS network registration is timed by the fourth timer, that is, the time duration of the fourth timer is the longest time required for the terminal device to complete the IMS network registration.
  • FIG. 8 is a flowchart of the voice service switching method provided in the second embodiment of the present application in the first scenario.
  • the first scenario is that the terminal device receives an error code cause value of abnormal IMS network registration, and the error code cause value is not a permanently banned error code cause value customized by the operator.
  • the voice service switching method includes the following steps:
  • Step 801 start a fourth timer.
  • Step 802 the terminal device sends an IMS network registration request to the IMS network.
  • Step 803 the IMS sends the error code reason value of the abnormal IMS network registration to the terminal device.
  • the error code cause value can be any one of 300-699, but the non-operator customized permanent forbidden error code cause value, specifically, the error code cause value of abnormal IMS network registration can refer to Table 2 below.
  • Step 804 the fourth timer stops timing.
  • the fourth timer stops counting.
  • Step 805 if the IMS network registration is not completed within the time period of the IMS timer, the second retry time of the IMS network registration request is determined according to the error code cause value of the abnormal IMS network registration.
  • the terminal device when receiving the error code cause value of abnormal IMS network registration within the time period of the IMS timer, the terminal device will resend the IMS network registration request according to the standard protocol.
  • the terminal device determines the second retry time of the IMS network registration request according to the received error code cause value of the abnormal IMS network registration.
  • the second retry time is the time for retrying the IMS network registration request corresponding to the error code cause value of the abnormal IMS network registration specified in the standard protocol 3GPP24.229 or RFC3261.
  • the retry-after is determined as the second retry time; when the error code cause value of the abnormal IMS network registration does not carry the retry after, the terminal device will The error code cause value of the abnormal IMS network registration specified in the corresponding standard protocol RFC 5626 is determined as the second retry time corresponding to the retry duration of the IMS network registration request.
  • the terminal device determines the time after accumulating a penalty time for the retry duration obtained according to the error code cause value of abnormal IMS network registration as the second retry time, wherein the accumulated penalty time is the same or different each time, until the accumulated penalty time reaches the maximum penalty time, and then the retry duration is re-determined as the second retry time.
  • Step 806 start a second timer, and the timing duration of the second timer is the second retry time.
  • Step 807 the terminal device disables the 5G network within the second retry time, and switches to use the 4G network to establish the IMS voice service or the circuit domain fallback CSFB voice service. Specifically, the terminal device searches the 4G access network and performs the NAS registration process. When the terminal device completes the NAS registration and attaches to the 4G network, it can perform IMS registration according to steps 201 to 210 shown in FIG. 2 to establish a voice service, If the terminal device cannot establish the IMS voice service under the 4G network, when the voice service is required, the terminal device can fall back to the 2/3G network to perform the CS voice service in the circuit switched domain.
  • Step 808 the second timer expires.
  • Step 809 the terminal device stops using the 4G network, and switches to using the 5G network to establish the IMS voice service.
  • the terminal device searches the 5G access network again, and performs NAS registration, PDU session establishment, and IMS network registration processes under the 5G network according to the steps shown in FIG. 3 , so as to establish the IMS voice service.
  • FIG. 9 is a flowchart of the voice service switching method provided in the second embodiment of the present application in the second scenario.
  • the second scenario is that the fourth timer times out.
  • the voice service switching method includes the following steps:
  • Step 901 start a fourth timer.
  • Step 902 the terminal device sends an IMS network registration request to the IMS network
  • Step 903 the fourth timer times out.
  • the terminal device has not completed the IMS network registration and has not received the error code reason value sent by the IMS network.
  • Step 904 if the IMS network registration is not completed within the time period of the IMS timer, determine the second retry time of the IMS network registration request according to the fourth timer timeout.
  • the terminal device when the fourth timer expires within the time duration of the IMS timer, the terminal device will resend the IMS network registration request according to the standard protocol.
  • the terminal device will determine the time to retry the IMS network registration request as the second time when the fourth timer specified in the standard protocol RFC 5626 times out. trial time.
  • the terminal device determines the time obtained by retrying the IMS network registration request according to the time out of the fourth timer and adding a penalty time as the second retry time.
  • the accumulated penalty time is the same or different, until the accumulated penalty time reaches the maximum penalty time, and then the time for retrying the IMS network registration request obtained according to the relevant standard protocol when the fourth timer expires is determined as the second retry time
  • Step 905 the terminal device starts a second timer, and the timing duration of the second timer is the retry time.
  • Step 906 the terminal device disables the 5G network within the second retry time, and switches to using the 4G network to establish the IMS voice service or the circuit domain fallback CSFB voice service. Specifically, the terminal device searches the 4G access network and performs the NAS registration process. When the terminal device completes the NAS registration and attaches to the 4G network, it can perform IMS registration according to steps 201 to 210 shown in FIG. 2 to establish a voice service, If the terminal device cannot establish the IMS voice service under the 4G network, when the voice service is required, the terminal device can fall back to the 2/3G network to perform the CS voice service in the circuit switched domain.
  • Step 907 the second timer expires.
  • Step 908 the terminal device stops using the 4G network, and switches to using the 5G network to establish the IMS voice service.
  • the terminal device searches the 5G access network again, and performs NAS registration, PDU session establishment and IMS registration processes under the 5G network according to the steps shown in FIG. 3 to establish the IMS voice service.
  • FIG. 10 is a flowchart of the voice service switching method provided by the second embodiment of the present application in a third scenario.
  • the third scenario is that the terminal device receives the operator-customized permanent forbidden error code reason value during the IMS registration process.
  • the voice service switching method includes the following steps:
  • Step 1001 start a fourth timer.
  • Step 1002 the terminal device sends an IMS network registration request to the IMS network.
  • Step 1003 the IMS network sends the operator-customized permanent forbidden error code reason value to the terminal device.
  • the terminal device cannot register with the IMS network without obtaining the operator's permission.
  • obtaining the operator's permission requires switching the machine on or off, or switching on and off the flight, or plugging and unplugging a card, or switching on and off IMS-related switches.
  • Step 1004 the fourth timer stops timing. Because the terminal device receives the operator-customized permanent forbidden error code reason value sent by the IMS network, the fourth timer stops timing.
  • Step 1005 if the IMS network registration is not completed within the time duration of the IMS timer, the second retry time is determined according to the reason value of the permanently forbidden error code customized by the operator, and the retry time is the time to resume the use of the operator, that is, the switch is turned on and off. Or switch flight or plug and unplug cards, or switch IMS related switches.
  • the terminal device when receiving an operator-customized permanent forbidden error code reason value with an abnormal IMS network registration within the time period of the IMS timer, the terminal device will resend the IMS network registration request according to the standard protocol. Next, when the IMS network registration is not completed after the IMS timer expires, the terminal device determines the second retry time of the IMS network registration request according to the received operator-customized permanent forbidden error code reason value.
  • Step 1006 the terminal device disables the 5G network until it is powered on or off or on and off the flight, or plugs and unplugs the card, or switches on and off the IMS related switches, and uses the 4G network to establish IMS voice services or CSFB voice services during the period of disabling the 5G network.
  • the terminal device can resume searching for the 5G network after switching on or off the machine, switching on and off the airplane mode, inserting and removing the card, or switching on and off the IMS-related switches. That is, the terminal device searches for the 5G access network again, and performs NAS registration, PDU session establishment, and IMS network registration under the 5G network according to the steps shown in FIG. 3 to establish the IMS voice service.
  • the terminal device when the IMS network registration is abnormal, the terminal device will first determine the second retry time of the IMS network registration request according to the abnormal situation in different scenarios, and then, in the Disable the 5G network within the second retry time (i.e., prohibit the search for 5G access network) and switch to using the 4G network to establish the IMS voice service and fall back to the CSFB voice service in the circuit domain.
  • Switch to use the 5G network to establish IMS voice services so that the terminal device can use the 5G network to the maximum extent, and can prevent the terminal device from ping-pong between the 5G network and the 4G network, so that the terminal can more accurately control the use of the 5G network and avoid business failure. In normal use, the business experience is better.
  • an embodiment of the present application further provides a terminal device.
  • the terminal device is configured to implement the method steps performed by the terminal device in the foregoing method embodiments.
  • FIG. 11 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device 1100 may include a transceiver 1101 , a memory 1102 and a processor 1103 .
  • the transceiver 1101 is used for receiving and sending data
  • the memory 1102 is used for storing a computer program
  • the processor 1103 can execute the computer program to implement the voice service switching method of the embodiment of the present application.
  • the processor of the terminal device runs the computer program stored in the memory, it is at least configured to perform: using the first network to perform IMS registration and start the IMS timer, where the IMS registration includes PDU session establishment Register with the IMS network, and the duration of the IMS timer is the maximum time required for the terminal device to establish a PDU session and complete the IMS network registration; if the PDU session is not established within the duration of the IMS timer, determine the PDU session establishment request.
  • First retry time and start the first timer disable the first network within the first retry time, and switch to use the second network to establish IMS voice service or CSFB voice service;
  • the time duration reaches the first retry time, stop using the second network and switch to using the first network to establish the IMS voice service;
  • the PDU session has been established within the time duration of the IMS timer but the IMS network registration has not been completed, determine the IMS The second retry time of the network registration request and start the second timer; disable the first network within the second retry time, and switch to use the second network to establish the IMS voice service or the circuit domain fallback CSFB voice service;
  • the time duration of the second timer reaches the second retry time, stop using the second network, and switch to using the first network to establish the IMS voice service.
  • the processor of the terminal device runs the computer program stored in the memory, it is at least used to execute: sending a PDU session establishment request to the core network of the first network; PDU session, determine the first retry time of the PDU session establishment request and start the first timer timing, wherein the timing duration of the IMS timer is the maximum time required for the terminal device to establish the PDU session and complete the IMS network registration; Disable the first network within the first retry time, and switch to using the second network to establish IMS voice service or CSFB voice service in circuit domain fallback; when the time duration of the first timer reaches the first retry time, stop using the second network. network, and switch to use the first network to establish the IMS voice service.
  • the processor of the terminal device runs the computer program stored in the memory, it is at least configured to execute: after establishing a PDU session with the core network of the first network, send an IMS network registration request to the IMS network; If the IMS network registration is not completed within the time period of the IMS timer, the second retry time of the IMS network registration request is determined and the second timer is started, wherein the time period of the IMS timer is defined to establish the PDU session and complete the IMS network registration The maximum time required; disable the first network within the second retry time, and use the second network to establish IMS voice service or CSFB voice service with circuit domain fallback; when the timing of the second timer reaches the second retry time , stop using the second network, and switch to using the first network to establish the IMS voice service.
  • the embodiments of the present application further provide a chip/system on a chip, where the chip/system on a chip is used to implement the method steps performed by the terminal device in the method embodiments of the present application.
  • the chip/system on chip is deployed in the terminal equipment.
  • the terminal device will determine the retry time in different stages corresponding to the establishment of a PDU session or when the IMS network registration is abnormal, and the retry time will be determined at the retry time. Disable the 5G network and switch to using the 4G network to establish voice services. When the retry time expires, stop using the 4G network and switch to using the 5G network to establish IMS voice services, so as to ensure that the terminal equipment can maximize the use of the 5G network. And prevent the terminal equipment from ping-pong between the 5G network and the 4G network, which can more accurately control the use of the 5G network, avoid the situation that the business cannot be carried out normally, ensure the continuity of the voice business, and provide a better business experience.
  • processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general-purpose processors, digital signal processors (digital signal processors, DSP), application-specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • CPU central processing unit
  • DSP digital signal processors
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor or any conventional processor.
  • the method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions.
  • Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disks, removable hard disks, CD-ROMs or known in the art in any other form of storage medium.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and storage medium may reside in an ASIC.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • the computer instructions can be sent from one website site, computer, server, or data center to another website site by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请实施例提供一种语音业务切换方法、终端设备及芯片。方法包括:终端设备使用第一网络进行IMS注册并启动IMS定时器;若在IMS定时器的计时时长内未建立PDU会话,确定PDU会话建立请求的第一重试时间并启动第一定时器计时;若在IMS定时器的计时时长内已建立PDU会话但未完成IMS注册,确定IMS注册请求的第二重试时间并启动第二定时器计时。在重试时间内禁用第一网络并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务,定时器的计时时长到达重试时间停止使用第二网络,切换为使用第一网络建立IMS语音业务。本申请实施例能够使终端最大限度使用5G网络和防止终端在5G网络和4G网络之间乒乓。

Description

一种语音业务切换方法、终端设备及芯片
本申请要求于2020年09月16日提交中国国家知识产权局、申请号为202010975524.8、申请名称为“一种语音业务切换方法、终端设备及芯片”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及移动通信技术领域,具体涉及一种语音业务切换方法、终端设备及芯片。
背景技术
5G(NR)是第五代移动通信网络,是一种全新的移动通信技术,相比于2/3/4G技术能够提供大带宽、全连接、低时延的接入。网络协议(internet protocol,IP)多媒体子系统(IP multimedia subsystem,IMS)是一种基于IP网络的用于提供多媒体业务的网络系统,通过IMS可以为4G网络和5G网络提供语音解决方案。
一般而言,在4G网络支持电路域回落(Circuit Switch fallback,CSFB)的情况下,IMS注册成功之前,语音通信可以通过4G网络回落到2/3G网络进行,所以语音通信可通过CS域得到保障,终端设备可以在长期演进(Long Term Evolution,LTE)上长时间驻留。
而5G网络下的语音通信只能通过IMS域进行,在IMS注册成功之前无法保障语音通信,此时终端设备不能在5G网络长时间驻留。具体地,若IMS无法正常提供服务,终端设备会禁用5G网络一段固定时间,并切换为其他网络如4G网络,超时后解禁,重新搜索5G接入网。由于终端设备不会考虑不同阶段的异常情况如IMS PDU会话建立异常或IMS网络注册异常对应的不同阶段重试时间,即在进行IMS注册时无论哪个阶段发生异常情况,终端设备均会禁用5G网络相同的固定时间,这不利于保证终端设备最大限度使用5G网络以及防止终端设备在5G网络和4G网络之间乒乓的现象发生,影响业务体验效果。
发明内容
本申请实施例提供了一种语音业务切换方法、终端设备及芯片,能够使终端设备最大限度使用5G网络和防止终端设备在5G网络和4G网络之间乒乓。
第一方面,本申请实施例提供了一种语音业务切换方法,所述语音业务切换方法包括:终端设备使用第一网络进行IMS注册并启动IMS定时器,其中,所述IMS注册包括PDU会话建立和IMS网络注册,所述IMS定时器的计时时长为规定所述终端设备建立所述PDU会话和完成所述IMS网络注册所需的最长时间;若所述终端设备在所述IMS定时器的计时时长内未建立PDU会话,所述终端设备确定PDU会话建立请求的第一重试时间并启动第一定时器计时;所述终端设备在所述第一重试时间内禁 用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第一定时器的计时时长到达第一重试时间时,所述终端设备停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务;若所述终端设备在所述IMS定时器的计时时长内已建立PDU会话但未完成IMS网络注册,所述终端设备确定IMS网络注册请求的第二重试时间并启动第二定时器计时;所述终端设备在所述第二重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第二定时器的计时时长到达所述第二重试时间时,所述终端设备停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
以上所述的本申请实施例的语音业务切换方法,能够根据不同阶段如PDU会话建立或IMS网络注册的异常情况确定不同阶段的重试时间,即第一重试时间或第二重试时间,并在重试时间内禁用5G网络,同时通过4G网络建立IMS语音业务或回落至2/3G网络进行CS语音业务,当重试时间达到后再重新尝试使用5G网络建立IMS语音业务,从而使终端设备能够最大限度使用5G网络和防止终端设备在5G网络和4G网络之间乒乓,能够更加精准地控制5G网络的使用,保证了语音业务的连续性,业务体验更好。
第二方面,本申请实施例提供了一种语音业务切换方法,所述语音业务切换方法包括:终端设备向第一网络的核心网发送PDU会话建立请求;若所述终端设备在IMS定时器的计时时长内未建立PDU会话,所述终端设备确定所述PDU会话建立请求的第一重试时间并启动第一定时器计时,其中,所述IMS定时器的计时时长为规定所述终端设备建立所述PDU会话和完成IMS网络注册所需的最长时间;所述终端设备在所述第一重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第一定时器的计时时长到达所述第一重试时间时,所述终端设备停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
以上所述的本申请实施例的语音业务切换方法,能够根据PDU会话建立的异常情况确定第一重试时间,并在第一重试时间内禁用5G网络,同时通过4G网络建立IMS语音业务或回落至2/3G网络进行CS语音业务,当第一重试时间达到后再重新尝试使用5G网络建立IMS语音业务,从而使终端设备能够最大限度使用5G网络和防止终端设备在5G网络和4G网络之间乒乓,能够更加精准地控制5G网络的使用,保证了语音业务的连续性,业务体验更好。
在一种可能的实施方式中,当所述终端设备设备收到所述第一网络的核心网发送的PDU会话建立异常的错误码原因值但非运营商永久被禁错误码原因值时,所述终端设备确定所述PDU会话建立请求的第一重试时间,包括:若所述PDU会话建立异常的错误码原因值携带延迟时间,所述终端设备确定所述延迟时间为所述第一重试时间;或,若所述PDU会话建立异常的错误码原因值未携带或携带为0,所述终端设备确定固定时间为所述第一重试时间。
在一种可能的实施方式中,当所述终端设备连续收到相同的所述PDU会话建立异常的错误码原因值时,所述终端设备将根据所述PDU会话建立异常的错误码原因值获得的延迟时间或固定时间累加一段惩罚时间后的时间确定为所述第一重试时间,其中,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将所述延迟时间 或所述固定时间确定为所述第一重试时间。
在一种可能的实施方式中,当所述终端设备设备收到所述第一网络的核心网发送的PDU会话建立异常的错误码原因值且所述PDU会话建立异常的错误码原因值为运营商永久被禁错误码原因值时,所述终端设备禁用所述第一网络直到开关机或者插拔卡或者开关飞行或者开关IMS相关开关。
在一种可能的实施方式中,当第三定时器超时,其中,所述第三定时器的计时时长为规定所述终端设备完成PDU会话建立所需的最长时间,所述终端设备确定PDU会话建立请求的第一重试时间,包括:将相关标准协议中规定所述第三定时器超时时重试所述PDU会话建立请求的时间确定为所述第一重试时间。
在一种可能的实施方式中,当所述终端设备连续发生所述第三定时器超时时,所述终端设备将根据所述第三定时器超时获得的重试所述PDU会话建立请求的时间累加一段惩罚时间后的时间确定为所述第一重试时间,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将所述第三定时器超时时根据相关标准协议获得的重试所述PDU会话建立请求的的时间确定为所述第一重试时间。
在一种可能的实施方式中,所述第一网络为5G网络,所述第二网络为4G网络。
第三方面,本申请实施例提供了一种语音业务切换方法,所述语音业务切换方法包括:终端设备与第一网络的核心网建立PDU会话后,所述终端设备向IMS网络发送IMS网络注册请求;若所述终端设备在所述IMS定时器的计时时长内未完成IMS网络注册,所述终端设备确定所述IMS网络注册请求的第二重试时间并启动第二定时器计时,其中,所述IMS定时器的计时时长为规定建立所述PDU会话和完成所述IMS网络注册所需的最长时间;所述终端设备在所述第二重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第二定时器的计时时长到达所述第二重试时间时,所述终端设备停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
以上所述的本申请实施例的语音业务切换方法,能够根据IMS网络注册的异常情况确定第二重试时间,并在第二重试时间内禁用5G网络,同时通过4G网络建立IMS语音业务或回落至2/3G网络进行CS语音业务,当第二重试时间达到后再重新尝试使用5G网络建立IMS语音业务,从而使终端设备能够最大限度使用5G网络和防止终端设备在5G网络和4G网络之间乒乓,能够更加精准地控制5G网络的使用,保证了语音业务的连续性,业务体验更好。
在一种可能的实施方式中,当所述终端设备设备收到所述第一网络的核心网发送的IMS网络注册异常的错误码原因值时,所述终端设备确定所述IMS网络注册请求的第二重试时间,包括:若所述IMS网络注册异常的错误码原因值携带重试时长,所述终端设备将所述重试时长确定为所述第二重试时间;或,若所述IMS网络注册异常的错误码原因值未携带,所述终端设备将相关标准协议中规定的所述IMS网络注册异常的错误码原因值对应的所述IMS网络注册请求的重试时长确定为所述第二重试时间。
在一种可能的实施方式中,当所述终端设备连续收到相同的所述IMS网络注册异常的错误码原因值时,所述终端设备将根据所述IMS网络注册异常的错误码原因值获得的重试时长累加一段惩罚时间后的时间确定为所述第二重试时间,其中,每次累加 的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将所述重试时长确定为所述第二重试时间。
在一种可能的实施方式中,当所述终端设备设备收到所述第一网络的核心网发送的所述IMS网络注册异常的错误码原因值且所述IMS网络注册异常的错误码原因值为运营商永久被禁错误码原因值时,所述终端设备禁用所述第一网络直到开关机或者插拔卡或者开关飞行或者开关IMS相关开关。
在一种可能的实施方式中,当第四定时器超时,其中,所述第四定时器的计时时长为规定所述终端设备完成所述IMS网络注册所需的最长时间,所述终端设备确定所述IMS网络注册请求的第二重试时间,包括:将相关标准协议中规定所述第四定时器超时时重试所述IMS网络注册请求的时间确定为所述第二重试时间。
在一种可能的实施方式中,当所述终端设备连续发生所述第四定时器超时时,所述终端设备将根据所述第四定时器超时获得的重试所述IMS网络注册请求的时间累加一段惩罚时间后的时间确定为所述第二重试时间,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将所述第四定时器超时根据相关标准协议获得的重试所述IMS网络注册请求的时间确定为所述第二重试时间。
在一种可能的实施方式中,所述第一网络为5G网络,所述第二网络为4G网络。
第四方面,本申请实施例提供了一种终端设备,包括存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于运行所述存储器中存储的计算机程序,以执行:使用第一网络进行IMS注册并启动IMS定时器,其中,所述IMS注册包括PDU会话建立和IMS网络注册,所述IMS定时器的计时时长为规定所述终端设备建立所述PDU会话和完成所述IMS网络注册所需的最长时间;若在所述IMS定时器的计时时长内未建立PDU会话,确定PDU会话建立请求的第一重试时间并启动第一定时器计时;在所述第一重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第一定时器的计时时长到达所述第一重试时间时,停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务;若在所述IMS定时器的计时时长内已建立所述PDU会话但未完成所述IMS网络注册,确定IMS网络注册请求的第二重试时间并启动第二定时器计时;在所述第二重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第二定时器的计时时长到达所述第二重试时间时,停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
第五方面,本申请实施例提供了一种终端设备,包括存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于运行所述存储器中存储的计算机程序,以执行:向第一网络的核心网发送PDU会话建立请求;若在IMS定时器的计时时长内未建立PDU会话,确定所述PDU会话建立请求的第一重试时间并启动第一定时器计时,其中,所述IMS定时器的计时时长为规定所述终端设备建立所述PDU会话和完成IMS网络注册所需的最长时间;在所述第一重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第一定时器的计时时长到达所述第一重试时间时,停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
第六方面,本申请实施例提供了一种终端设备,包括存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于运行所述存储器中存储的计算机程序,以执行:当与第一网络的核心网建立PDU会话后,向IMS网络发送IMS网络注册请求;若在所述IMS定时器的计时时长内未完成IMS网络注册,确定所述IMS网络注册请求的第二重试时间并启动第二定时器计时,其中,所述IMS定时器的计时时长为规定建立所述PDU会话和完成所述IMS网络注册所需的最长时间;在所述第二重试时间内禁用所述第一网络,并使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第二定时器的计时时长到达所述第二重试时间时,停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
第七方面,本申请实施例提供了一种芯片,用于实现上述的终端设备的功能。
第八方面,本申请实施例提供了一种计算机可读存储介质,用于存储计算机程序,当所述计算机程序被终端设备的处理器执行时,使得所述终端设备实现上述的语音业务切换方法。
第九方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括计算机程序/指令,当所述计算机程序/指令在终端设备上运行时,使得所述终端设备实现上述的语音业务切换方法。
本申请实施例在5G网络下建立IMS业务的过程中,终端设备会确定不同阶段如PDU会话建立或IMS注册异常时对应的不同阶段重试时间,并在重试时间内禁用5G网络,同时切换为使用4G网络来建立语音业务,当重试时间达到后再停止使用4G网络,并切换为使用5G网络建立IMS语音业务,从而保证终端设备能够最大限度使用5G网络,并且防止终端设备在5G网络和4G网络之间乒乓,能够更加精准地控制5G网络的使用,避免出现语音业务无法正常进行的情况,保证了语音业务的连续性,业务体验更好。
附图说明
图1为本申请实施例所适用的一种网络架构的示意图;
图2为在图1的网络架构下进行IMS注册的流程图;
图3为在5G网络下进行IMS注册的具体流程图;
图4为图1中的网络架构所适用的一种语音业务切换方法的流程图;
图5为本申请第一实施例提供的语音业务切换方法在第一种场景下的流程图;。
图6为本申请第一实施例提供的语音业务切换方法在第二种场景下的流程图;
图7为本申请第一实施例提供的语音业务切换方法在第三种场景下的流程图;
图8为本申请第二实施例提供的语音业务切换方法在第一种场景下的流程图;
图9为本申请第二实施例提供的语音业务切换方法在第二种场景下的流程图;
图10为本申请第二实施例提供的语音业务切换方法在第三种场景下的流程图;
图11是本申请实施例提供的终端设备的结构示意图。
具体实施方式
下面将结合附图,对本发明实施例中的技术方案进行描述。显然,所描述的实施 例仅是本说明书一部分实施例,而不是全部的实施例。
在本说明书的描述中“一个实施例”或“一些实施例”等意味着在本说明书的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。
其中,在本说明书的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
在本说明书的描述中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
图1为本申请实施例所适用的一种网络架构的示意图。如图1所示,该网络架构中包括终端设备101、为终端设备101提供2/3G网络的接入网设备102、为终端设备101提供LTE网络的接入网设备103、为终端设备101提供NR网络的接入网设备104、核心网设备105以及IP多媒体子系统(IMS)106。
终端设备101,又可称之为用户设备(user equipment,UE),可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线设备、无人驾驶(self driving)中的无线设备、远程医疗(remote medical)中的无线设备、智能电网(smart grid)中的无线设备、运输安全(transportation safety)中的无线设备、智慧城市(smart city)中的无线设备、智慧家庭(smart home)中的无线设备等。终端设备101用于生成注册请求,并将生成的注册请求通过接入网、核心网发送给IMS 106中的P-CSCF实体,还用于接收通过核心网、接入网从IMS 106返回的注册应答消息。
核心网设备105可包括5G核心网(5G core,5GC)设备、演进分组核心网(evolved packed core,EPC)设备以及2/3G核心网设备。5GC中的设备包括对终端设备进行接入和移动性管理的接入和移动性管理功能设备(access and mobility management function,AMF)、对终端设备的会话进行管理的会话管理功能设备(session management function,SMF)、对终端设备的用户面进行控制的用户面功能设备(user plane function,UPF)。当然,核心网设备还可包括其他设备,例如,进行策略控制功能的设备。EPC中的设备可包括对终端设备的移动进行管理的移动性管理实体(mobility management entity,MME)、分组网关(packed gateway,PGW)。
IP多媒体子系统(IMS)106可包括代理呼叫状态控制功能P-CSCF实体、查询呼叫状态控制功能(interrogating-callsessioncontrolfunction,I-CSCF)、服务呼叫状态控 制功能(serving-callsessioncontrolfunction,S-CSCF)实体、归属地用户服务器(homesubscriber server,HSS)。P-CSCF实体为接入网到IMS的最先连接点,所有发起于支持IMS的终端设备和终止于支持IMS的终端设备的会话消息都要通过P-CSCF实体转发。P-CSCF实体可用于将来自终端设备的注册请求转发给S-CSCF实体,以及将注册应答信息转发给终端设备。I-CSCF实体可以连接S-CSCF实体和P-CSCF实体,用于为终端设备提供到归属网络的入口。在IMS注册过程中,P-CSCF实体可以将来自终端设备的注册请求消息转发给I-CSCF实体,I-CSCF实体可以查询IMS中的HSS,为终端设备选择一个S-CSCF实体。在呼叫过程中,去往IMS网络的呼叫消息首先路由到I-CSCF,I-CSCF实体可以通过IMS中的HSS为终端设备查询到用户所注册的S-CSCF实体的地址信息,之后再将消息路由到S-CSCF。S-CSCF实体为IMS的控制核心,为终端设备提供会话控制和注册等功能。S-CSCF实体用于接收P-CSCF实体转发的终端设备的注册请求,与HSS配合对终端设备进行鉴权;以及在确定鉴权通过后,从HSS获取终端设备的签约信息。S-CSCF实体还用于基于ISC接口与各应用服务器相连,S-CSCF实体还用于触发应用服务器执行操作,将终端设备的请求消息路由到相应的应用服务器。HSS为IMS中存储有所有与用户和服务相关的数据的主要的数据存储器。存储在HSS中的数据主要包括用户身份、签约信息、接入信息等。
图2为在图1的网络架构下进行IMS注册的流程图。如图2所示,IMS注册包括PDU会话建立和IMS网络注册。其中,IMS注册使用IMS定时器计时,PDU会话建立使用第三定时器计时,IMS网络注册使用第四定时器计时。具体地,IMS注册包括如下步骤:
步骤201,启动IMS定时器。
当终端设备搜索到接入网完成NAS注册并附着在网络时,终端设备开始进行IMS注册,此时IMS定时器启动。其中,IMS定时器的计时时长可为自定义时长,例如35s,小于协议中规定的默认定时器时长128s。
步骤202,启动第三定时器。
当启动IMS定时器且终端设备内部完成IMS注册的相应操作后,接着,需要向核心网发送PDU会话建立请求,此时第三定时器启动。
步骤203,终端设备通过接入网设备向核心网发送PDU会话建立请求(PDU session establishment request)。
步骤204,核心网通过接入网设备向终端设备发送PDU会话建立响应(PDU session establishment accept)。
步骤205,第三定时器停止计时。
由于终端设备收到核心网发送的PDU会话建立响应,因此第三定时器停止计时。
步骤206,启动第四定时器。
当第三定时器停止计时后,终端设备需要向IMS网络发送IMS网络注册请求,此时第四定时器启动。
步骤207,终端设备通过接入网设备向IMS网络发送IMS网络注册请求。
步骤208,IMS网络通过接入网设备向终端设备发送IMS网络注册完成消息。
步骤209,第四定时器停止计时。
由于终端设备收到IMS网络发送的IMS网络注册完成消息,因此第四定时器停止计时。
步骤210,IMS定时器停止计时。
当第四定时器停止计时后,终端设备内部根据收到的IMS网络注册完成消息进行相应操作后,IMS定时器停止计时。
也就是说,步骤203和步骤204为PDU会话建立过程,在第三定时器的计时时长内完成步骤203和步骤204可建立PDU会话。步骤207和步骤208为IMS网络注册过程,在第四定时器的计时时长内完成步骤207和步骤208可成功注册IMS网络。相应地,IMS注册需要在IMS定时器的计时时长内完成步骤201-210。并且,上述IMS注册过程可在4G网络下进行也可在5G网络下进行。
图3为在5G网络下进行IMS注册的具体流程图。如图3所示,包括如下步骤:
步骤301,终端设备中的注册控制模块向终端设备中的5G非接入层模块(NR non-access stratum,NRNAS)模块发送非接入层(non-access stratum,NAS)注册请求。其中,NRNAS模块主要包含移动性管理和会话管理功能。
步骤302,NRNAS模块向接入和移动性管理功能(access and mobilitymanagement function,AMF)实体发送NAS注册请求。
步骤303,AMF实体与终端设备之间进行认证、鉴权等过程。
步骤304,AMF实体向NRNAS模块发送携带NAS注册成功的响应消息。
步骤305,NRNAS模块向注册控制模块发送携带NAS注册成功的响应消息。
步骤306,NRNAS模块向AMF实体发送NAS注册完成消息。
也就是说,当终端设备搜索到5G网络后,例如,接收用户打开5G网络开关或关闭飞行模式的操作,或者从非5G网络覆盖区域移动到5G网络覆盖区域,在5G网络进行NAS注册。接着,当终端设备完成NAS注册并附着在5G网络时,终端设备开始IMS注册过程。具体地,IMS注册过程主要包括如下步骤:
步骤307,注册控制模块启动IMS定时器。其中,IMS定时器的计时时长可为自定义时长,例如35s,小于协议中规定的默认定时器时长128s。
步骤308,注册控制模块向IMS模块发送IMS注册请求。
其中,可在注册控制模块向IMS模块发送IMS注册请求的同时启动IMS定时器。即步骤307和步骤308可同时进行。
步骤309,终端设备中的IMS模块向NRNAS模块发送IMS协议数据单元(protocoldata unit,PDU)连接建立请求。
步骤310,NRNAS模块向AMF实体发送PDU会话建立请求(PDU session establishment request)。
步骤311,AMF实体向NRNAS模块发送PDU会话建立响应(PDU session establishment accept)。
步骤312,NRNAS模块向IMS模块发送IMS PDU会话建立响应。
步骤313,IMS模块向P-CSCF发送IMS网络注册请求。
步骤314,P-CSCF向IMS模块发送IMS网络注册完成消息。
步骤315,IMS模块使IMS定时器停止计时。接着,终端设备可根据用户需求生成语音业务请求消息并发送给IMS网络的P-CSCF来建立语音业务。
由于在4G网络支持电路域回落CSFB的情况下,IMS注册成功之前,语音通信可以通过4G网络回落到2/3G网络进行,所以语音通信可通过CS域得到保障,终端设备可以在长期演进(Long Term Evolution,LTE)上长时间驻留。而5G网络下的语音通信只能通过IMS域进行,在IMS注册完成之前,是无法保障语音通信的,此时终端设备不能在5G网络长时间驻留,需要搜索其他网络如4G网络来停留,并在需要时使用4G网络建立语音业务。
图4为图1中的网络架构所适用的一种语音业务切换方法的流程图。如图4所示,该语音业务切换方法可包括以下步骤:
步骤401、终端设备确定5G网络下在IMS定时器的计时时长内无法提供IMS服务。即进行IMS注册时发生异常。例如,PDU会话建立异常或IMS网络注册异常。
步骤402、终端设备启动第五定时器,禁用5G网络固定时间,同时搜索4G网络。具体地,终端设备搜索4G接入网,进行NAS注册过程。当终端设备完成NAS注册并附着在4G网络时,可按照图2所示的步骤201-步骤210进行IMS注册,以建立语音业务,若终端设备无法在4G网络建立IMS语音业务,则在需要进行语音业务时,终端设备可回落到2/3G网络进行电路交换域CS语音业务。
步骤403、第五定时器超时,固定时间达到,终端设备停用4G网络,重新搜索5G网络。即重新搜索5G接入网,按照图3所示的步骤在5G网络下进行IMS注册,以建立语音业务。
上述方案中,在进行IMS注册时无论哪个阶段发生异常,终端设备均会禁用5G网络相同的固定时间,例如5分钟,不会考虑不同阶段如PDU会话建立或IMS网络注册的异常情况对应的不同阶段重试时间。若异常阶段的重试时间小于禁用5G网络的固定时间,由于到达固定时间后才会重新搜索5G网络,这样不利于保证最大限度使用5G网络;若异常阶段的重试时间大于禁用5G网络的固定时间,例如当前小区无法提供正常的IMS业务,则到达固定时间后终端设备会重新搜索5G接入网来进行IMS注册,由于异常阶段如PDU会话建立或IMS网络注册对应的重试时间尚未到来,此时仍无法建立PDU会话和/或完成IMS网络注册,终端设备会再次禁用5G网络固定时间并切换为4G网络,导致终端设备会在5G网络和4G网络之间乒乓,即来回变化,无法保证业务的连续性。上述两种情况均会影响5G网络的正常使用,无法保证较好的业务体验效果。
鉴于此,本申请实施例提供一种语音业务切换方法,应用于包括终端设备、第一网络和第二网络的系统,其中,第一网络可仅支持IMS语音业务,例如可为5G网络,第二网络可支持IMS语音业务和电路域回落CSFB语音业务,例如可为4G网络,该语音业务切换方法能够根据不同阶段如PDU会话建立或IMS网络注册的异常情况确定不同阶段的重试时间,并在重试时间内禁用5G网络,同时通过4G网络建立IMS语音业务或回落至2/3G网络进行CS语音业务,当重试时间达到后再重新尝试使用5G网络建立IMS语音业务,从而使终端设备能够最大限度使用5G网络和防止终端设备在5G网络和4G网络之间乒乓,保证语音业务能够正常进行,业务体验效果较好。
下面分别对PDU会话建立过程和IMS网络注册过程发生异常时本申请实施例的语音业务切换方法的具体流程进行介绍。其中,PDU会话建立异常和IMS网络注册异常各包括三种场景。具体地,第一种场景为终端设备在相应定时器的计时时长内收到网络侧发送的错误码原因值(非运营商定制永久被禁错误码原因值);第二种场景为相应过程的定时器超时(未收到错误码原因值);第三种场景为终端设备在相应定时器的计时时长内收到网络侧发送的运营商定制永久被禁错误码原因值。
图5为本申请第一实施例提供的语音业务切换方法在第一种场景下的流程图。本申请第一实施例的语音业务切换方法针对5G网络下PDU会话建立异常的情况,如上所述,PDU会话建立过程使用第三定时器计时,即第三定时器的计时时长为规定终端设备完成PDU会话建立所需的最长时间。第一种场景为终端设备收到PDU会话建立异常的错误码原因值但非运营商定制永久被禁错误码原因值。如图5所示,该语音业务切换方法包括如下步骤:
步骤501,终端设备启动第三定时器。
步骤502,终端设备向5G核心网发送PDU会话建立请求。
步骤503,5G核心网向终端设备发送PDU会话建立异常的错误码原因值。其中,PDU会话建立异常的错误码原因值具体可参见下表1。
步骤504,第三定时器停止计时。
由于终端设备收到了PDU会话建立异常的错误码原因值,因此第三定时器停止计时。
步骤505,若在IMS定时器的计时时长内未建立PDU会话,根据PDU会话建立异常的错误码原因值确定PDU会话建立请求的第一重试时间。
即当在IMS定时器的计时时长内收到PDU会话建立异常的错误码原因值时,终端设备会根据标准协议重新发送PDU会话建立请求。接着,当在IMS定时器的计时时长到达后仍未建立PDU会话,终端设备会根据收到的PDU会话建立异常的错误码原因值确定PDU会话建立请求的第一重试时间。具体地,若PDU会话建立异常的错误码原因值携带标准协议中规定的延迟时间back-off,则终端设备确定第一重试时间为该延迟时间;若PDU会话建立异常的错误码原因值不携带或者携带为0,则终端设备确定一段固定时间为第一重试时间。
另外,当终端设备连续收到相同的PDU会话建立异常的错误码原因值时,终端设备可将根据PDU会话建立异常的错误码原因值获得的延迟时间或固定时间累加一段惩罚时间后的时间确定为第一重试时间,其中,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将延迟时间或设定时间确定为第一重试时间。
步骤506,终端设备启动第一定时器,第一定时器的计时时长为第一重试时间。
步骤507,终端设备在第一重试时间内禁用5G网络,并切换为使用4G网络建立IMS语音业务或电路域回落CSFB语音业务。具体地,终端设备搜索4G接入网,进行NAS注册过程,当终端设备完成NAS注册并附着在4G网络时,可按照图2所示的步骤201-步骤210进行IMS注册,以建立语音业务,若终端设备无法在4G网络下建立IMS语音业务,则在需要进行语音业务时,终端设备可回落到2/3G网络进行电路交换域CS语音业务。
步骤508,第一定时器计时到达。
步骤509,终端设备停止使用4G网络,并切换为使用5G网络建立IMS语音业务
具体地,终端设备重新搜索5G接入网,按照图3所示的步骤在5G网络下进行NAS注册、PDU会话建立和IMS网络注册,以便建立IMS语音业务。
图6为本申请第一实施例提供的语音业务切换方法在第二种场景下的流程图。第二种场景为第三定时器超时。此时,如图6所示,语音业务切换方法包括以下步骤:
步骤601,启动第三定时器。
步骤602,终端设备向5G核心网发送PDU会话建立请求。
步骤603,第三定时器超时。即终端设备未建立PDU会话,且在第三定时器的计时时长内未收到5G核心网发送的错误码原因值。
步骤604,若在IMS定时器的计时时长内未建立PDU会话,根据第三定时器超时确定PDU会话建立请求的第一重试时间。
即当在IMS定时器的计时时长内第三定时器超时,终端设备会根据标准协议重新发送PDU会话建立请求。接着,当IMS定时器的计时时长到达后仍未建立PDU会话,终端设备会将标准协议3GPP 24.501中规定的第三定时器超时时,重试PDU会话建立请求的时间确定为第一重试时间。另外,当终端设备连续发生第三定时器超时时,终端设备将根据第三定时器超时获得的重试PDU会话建立请求的时间累加一段惩罚时间后的时间确定为第一重试时间,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将第三定时器超时时根据标准协议3GPP 24.501获得的重试PDU会话建立请求的的时间确定为第一重试时间。
步骤605,终端设备启动第一定时器,第一定时器的计时时长为第一重试时间。
步骤606,在第一重试时间内禁用5G网络,并切换为使用4G网络建立IMS语音业务或电路域回落CSFB语音业务。具体地,终端设备搜索4G接入网,进行NAS注册过程,当终端设备完成NAS注册并附着在4G网络时,可按照图2所示的步骤201-步骤210进行IMS注册,以建立语音业务,若终端设备无法在4G网络下建立IMS语音业务,则在需要进行语音业务时,终端设备可回落到2/3G网络进行电路交换域CS语音业务。
步骤607,第一定时器计时到达。
步骤608,终端设备停止使用4G网络,并切换为使用5G网络建立IMS语音业务。
具体地,终端设备重新搜索5G接入网,按照图3所示的步骤在5G网络下进行NAS注册、PDU会话建立和IMS网络注册过程,以便建立IMS语音业务。
图7为本申请第一实施例提供的语音业务切换方法在第三种场景下的流程图。其中,第三种场景为终端设备建立PDU会话时收到运营商定制永久被禁错误码原因值。此时,如图7所示,语音业务切换方法包括以下步骤:
步骤701,启动第三定时器。
步骤702,终端设备向5G核心网发送PDU会话建立请求。
步骤703,5G核心网向终端设备发送运营商定制永久被禁错误码原因值。
即终端设备没有获得运营商许可而无法建立PDU会话。并且,在进行缴费或开通业务等操作后,获得运营商许可需要开关机或者开关飞行或者插拔卡或者开关IMS相 关开关。
步骤704,第三定时器停止计时。终端设备收到错误码原因值故第三定时器停止计时。
步骤705,若在IMS定时器的计时时长内未建立PDU会话,根据运营商定制永久被禁错误码原因值确定PDU会话建立请求第一重试时间,第一重试时间为恢复运营商使用的时间,即开关机或者开关飞行或者插拔卡或者开关IMS相关开关。
即当在IMS定时器的计时时长内收到运营商定制永久被禁错误码原因值,终端设备会根据标准协议重新发送PDU会话建立请求。接着,当IMS定时器的计时时长到达后仍未建立PDU会话时,终端设备会根据收到的运营商定制永久被禁错误码原因值确定PDU会话建立请求的第一重试时间为开关机或者开关飞行或者插拔卡或者开关IMS相关开关。
步骤706,终端设备禁用5G网络网络直到开关机或者开关飞行或者插拔卡或者开关IMS相关开关,并且在禁用5G网络网络期间使用4G网络建立IMS语音业务或电路域回落CSFB语音业务。
也就是说,终端设备在进行开关机或者开关飞行模式或者插拔卡后或者开关IMS相关开关,可恢复搜索5G网络。具体地,终端设备重新搜索5G接入网,按照图3所示的步骤在5G网络下进行NAS注册、PDU会话建立和IMS网络注册,以便建立IMS语音业务。
为了更清楚了解本申请第一实施例的语音业务切换方法,对改进前方案与本申请第一实施例的改进后方案在5G网络下PDU会话异常时的不同应对策略进行了对比,具体参见表1。
Figure PCTCN2021109791-appb-000001
Figure PCTCN2021109791-appb-000002
表1
也就是说,在本申请第一实施例的语音业务切换方法中,PDU会话建立异常时,终端设备会先根据不同场景下的异常情况确定PDU会话建立请求的的第一重试时间,接着,会在第一重试时间内禁用5G网络(即禁搜5G接入网)并切换为使用4G网络建立IMS语音业务电路域回落CSFB语音业务,当第一重试时间达到后再停止使用4G网络并切换为使用5G网络建立IMS语音业务,从而使终端设备能够最大限度使用5G网络,并且能够防止终端设备在5G网络和4G网络之间乒乓,使得终端更加精准地控制5G网络的使用,避免出现业务无法正常使用的情况,业务体验更好。
上面介绍了对本申请第一实施例的语音业务切换方法。下面介绍本申请第二实施例的语音业务切换方法,其针对IMS网络注册异常的情况。如上所述,IMS网络注册使用第四定时器计时,即第四定时器的计时时长为规定终端设备完成IMS网络注册所需的最长时间。
图8为本申请第二实施例提供的语音业务切换方法在第一种场景下的流程图。第一种场景为终端设备收到IMS网络注册异常的错误码原因值并且该错误码原因值不是运营商定制永久被禁错误码原因值。此时,如图8所示,语音业务切换方法包括以下步骤:
步骤801,启动第四定时器。
步骤802,终端设备向IMS网络发送IMS网络注册请求。
步骤803,IMS向终端设备发送IMS网络注册异常的错误码原因值。
其中,错误码原因值可为300-699中的任一者,但非运营商定制永久被禁错误码原因值,具体地,IMS网络注册异常的错误码原因值可参见下表2。
步骤804,第四定时器停止计时。
由于终端设备收到了IMS网络注册异常的错误码原因值,因此第四定时器停止计时。
步骤805,若在IMS定时器的计时时长内未完成IMS网络注册,根据IMS网络注册异常的错误码原因值确定IMS网络注册请求的第二重试时间。
即当在IMS定时器的计时时长内收到IMS网络注册异常的错误码原因值时,终端设备会根据标准协议重新发送IMS网络注册请求。接着,当在IMS定时器的计时时长到达后仍未完成IMS网络注册,终端设备会根据收到的IMS网络注册异常的错误码原因值确定IMS网络注册请求的第二重试时间。第二重试时间为标准协议3GPP24.229或RFC3261中规定的IMS网络注册异常的错误码原因值对应的重试IMS网络注册请求的时间。当IMS网络注册异常的错误码原因值携带重试时长retry-after时,将retry-after确定为第二重试时间;当IMS网络注册异常的错误码原因值未携带retry after 时,终端设备将相应的标准协议RFC 5626中规定的IMS网络注册异常的错误码原因值对应IMS网络注册请求的重试时长确定为第二重试时间。
当终端设备连续收到相同的IMS网络注册异常的错误码原因值时,终端设备将根据IMS网络注册异常的错误码原因值获得的重试时长累加一段惩罚时间后的时间确定为第二重试时间,其中,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将重试时长确定为第二重试时间。
步骤806,启动第二定时器,第二定时器的计时时长为第二重试时间。
步骤807,终端设备在第二重试时间内禁用5G网络,并切换为使用4G网络建立IMS语音业务或电路域回落CSFB语音业务。具体地,终端设备搜索4G接入网,进行NAS注册过程,当终端设备完成NAS注册并附着在4G网络时,可按照图2所示的步骤201-步骤210进行IMS注册,以建立语音业务,若终端设备无法在4G网络下建立IMS语音业务,则在需要进行语音业务时,终端设备可回落到2/3G网络进行电路交换域CS语音业务。
步骤808,第二定时器计时到达。
步骤809,终端设备停止使用4G网络,并切换为使用5G网络建立IMS语音业务。
具体地,终端设备重新搜索5G接入网,按照图3所示的步骤在5G网络下进行NAS注册、PDU会话建立和IMS网络注册过程,以便建立IMS语音业务。
图9为本申请第二实施例提供的语音业务切换方法在第二种场景下的流程图。第二种场景为第四定时器超时。如图9所示,此时,语音业务切换方法包括以下步骤:
步骤901,启动第四定时器。
步骤902,终端设备向IMS网络发送IMS网络注册请求;
步骤903,第四定时器超时。
即终端设备未完成IMS网络注册且未收到IMS网络发送的错误码原因值。
步骤904,若在IMS定时器的计时时长内未完成IMS网络注册,根据第四定时器超时确定IMS网络注册请求的第二重试时间。
即当在IMS定时器的计时时长内第四定时器超时,终端设备会根据标准协议重新发送IMS网络注册请求。接着,当在IMS定时器的计时时长到达后仍未完成IMS网络注册,终端设备会将标准协议RFC 5626中规定的第四定时器超时时,重试IMS网络注册请求的时间确定为第二重试时间。另外,当终端设备连续发生第四定时器超时时,终端设备将根据第四定时器超时获得的重试IMS网络注册请求的时间累加一段惩罚时间后的时间确定为第二重试时间,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将第四定时器超时根据相关标准协议获得的重试IMS网络注册请求的时间确定为第二重试时间
步骤905,终端设备启动第二定时器,第二定时器的计时时长为重试时间。
步骤906,终端设备在第二重试时间内禁用5G网络,并切换为使用4G网络建立IMS语音业务或电路域回落CSFB语音业务。具体地,终端设备搜索4G接入网,进行NAS注册过程,当终端设备完成NAS注册并附着在4G网络时,可按照图2所示的步骤201-步骤210进行IMS注册,以建立语音业务,若终端设备无法在4G网络下建立IMS语音业务,则在需要进行语音业务时,终端设备可回落到2/3G网络进行电 路交换域CS语音业务。
步骤907,第二定时器计时到达。
步骤908,终端设备停止使用4G网络,并切换为使用5G网络建立IMS语音业务。
具体地,终端设备重新搜索5G接入网,按照图3所示的步骤在5G网络下进行NAS注册、PDU会话建立和IMS注册过程,以建立IMS语音业务。
图10为本申请第二实施例提供的语音业务切换方法在第三种场景下的流程图。第三种场景为终端设备进行IMS注册的过程中收到运营商定制永久被禁错误码原因值。此时,如图9所示,语音业务切换方法包括如下步骤:
步骤1001,启动第四定时器。
步骤1002,终端设备向IMS网络发送IMS网络注册请求。
步骤1003,IMS网络向终端设备发送运营商定制永久被禁错误码原因值。
也就是说,终端设备没有获得运营商许可而无法进行IMS网络注册。并且,在进行缴费或开通业务等操作后,获得运营商许可需要开关机或者开关飞行或者插拔卡或者开关IMS相关开关。
步骤1004,第四定时器停止计时。由于终端设备收到IMS网络发送的运营商定制永久被禁错误码原因值,因此,第四定时器停止计时。
步骤1005,若在IMS定时器的计时时长内未完成IMS网络注册,根据运营商定制永久被禁错误码原因值确定第二重试时间,重试时间为恢复运营商使用的时间,即开关机或者开关飞行或者插拔卡或者开关IMS相关开关。
也就是说,当在IMS定时器的计时时长内收到IMS网络注册异常的运营商定制永久被禁错误码原因值时,终端设备会根据标准协议重新发送IMS网络注册请求。接着,当在IMS定时器的计时时长到达后仍未完成IMS网络注册,终端设备会根据收到的运营商定制永久被禁错误码原因值确定IMS网络注册请求的第二重试时间。
步骤1006,终端设备禁用5G网络直到开关机或者开关飞行或者插拔卡或者开关IMS相关开关,并且在禁用5G网络期间使用4G网络建立IMS语音业务或电路域回落CSFB语音业务。
即终端设备在进行开关机或者开关飞行模式或者插拔卡或者开关IMS相关开关后,可恢复搜索5G网络。即终端设备重新搜索5G接入网,按照图3所示的步骤在5G网络下进行NAS注册、PDU会话建立和IMS网络注册,以建立IMS语音业务。
为了更清楚地了解本申请第二实施例的语音业务切换方法,对改进前方案与本申请第二实施例的改进后方案进行了对比,具体参见表2。
Figure PCTCN2021109791-appb-000003
Figure PCTCN2021109791-appb-000004
表2
也就是说,在本申请第二实施例的语音业务切换方法中,IMS网络注册异常时,终端设备会先根据不同场景下的异常情况确定IMS网络注册请求的第二重试时间,接着,在第二重试时间内禁用5G网络(即禁搜5G接入网)并切换为使用4G网络建立IMS语音业务电路域回落CSFB语音业务,当第二重试时间达到后,再停止使用4G网络并切换为使用5G网络建立IMS语音业务,从而使终端设备能够最大限度使用5G网络,并且能够防止终端设备在5G网络和4G网络之间乒乓,使得终端更加精准控制5G网络的使用,避免出现业务无法正常使用的情况,业务体验更好。
基于与前述方法实施例相同的构思,本申请实施例中还提供了一种终端设备。终端设备用于实现前述方法实施例中由终端设备执行的各方法步骤。换而言之,终端设备的具体工作过程可以参考前述方法实施例中的对应过程,在此不再赘述。
图11是本申请实施例提供的终端设备的结构示意图。如图11所示,终端设备1100可包括收发器1101、存储器1102和处理器1103。其中,收发器1101用于接收和发送数据,存储器1102用于存储计算机程序,处理器1103能够执行计算机程序,以实现本申请实施例的语音业务切换方法。
具体地,本申请第一实施例的终端设备的处理器运行存储器中存储的计算机程序时,至少用于执行:使用第一网络进行IMS注册并启动IMS定时器,其中,IMS注册包括PDU会话建立和IMS网络注册,IMS定时器的计时时长为规定终端设备建立PDU会话和完成IMS网络注册所需的最长时间;若在IMS定时器的计时时长内未建立PDU 会话,确定PDU会话建立请求的第一重试时间并启动第一定时器计时;在第一重试时间内禁用第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当第一定时器的计时时长到达第一重试时间时,停止使用第二网络,并切换为使用第一网络建立IMS语音业务;若在IMS定时器的计时时长内已建立PDU会话但未完成IMS网络注册,确定IMS网络注册请求的第二重试时间并启动第二定时器计时;在第二重试时间内禁用第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当第二定时器的计时时长到达第二重试时间时,停止使用第二网络,并切换为使用第一网络建立IMS语音业务。
本申请第二实施例的终端设备的处理器运行存储器中存储的计算机程序时,至少用于执行:向第一网络的核心网发送PDU会话建立请求;若在IMS定时器的计时时长内未建立PDU会话,确定PDU会话建立请求的第一重试时间并启动第一定时器计时,其中,IMS定时器的计时时长为规定终端设备建立PDU会话和完成IMS网络注册所需的最长时间;在第一重试时间内禁用第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当第一定时器的计时时长到达第一重试时间时,停止使用第二网络,并切换为使用第一网络建立IMS语音业务。
本申请第三实施例的终端设备的处理器运行存储器中存储的计算机程序时,至少用于执行:当与第一网络的核心网建立PDU会话后,向IMS网络发送IMS网络注册请求;若在IMS定时器的计时时长内未完成IMS网络注册,确定IMS网络注册请求的第二重试时间并启动第二定时器计时,其中,IMS定时器的计时时长为规定建立PDU会话和完成IMS网络注册所需的最长时间;在第二重试时间内禁用第一网络,并使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当第二定时器的计时时长到达第二重试时间时,停止使用第二网络,并切换为使用第一网络建立IMS语音业务。
本申请实施例还提供了一种芯片/片上系统,所述芯片/片上系统用于实现本申请的方法实施例中由终端设备执行的各方法步骤。其中,该芯片/片上系统部署在终端设备中。
综上所述,本申请实施例在5G网络下建立IMS语音业务的过程中,终端设备会确定不同阶段如PDU会话建立或IMS网络注册异常时对应的不同阶段重试时间,并在重试时间内禁用5G网络,同时切换为使用4G网络来建立语音业务,当重试时间达到后再停止使用4G网络,并切换为使用5G网络建立IMS语音业务,从而保证终端设备能够最大限度使用5G网络,并且防止终端设备在5G网络和4G网络之间乒乓,能够更加精准地控制5G网络的使用,避免出现业务无法正常进行的情况,保证了语音业务的连续性,业务体验更好。
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行 软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。

Claims (20)

  1. 一种语音业务切换方法,其特征在于,所述语音业务切换方法包括:
    终端设备使用第一网络进行IMS注册并启动IMS定时器,其中,所述IMS注册包括PDU会话建立和IMS网络注册,IMS定时器的计时时长为规定所述终端设备建立所述PDU会话和完成所述IMS网络注册所需的最长时间;
    若所述终端设备在所述IMS定时器的计时时长内未建立PDU会话,所述终端设备确定PDU会话建立请求的第一重试时间并启动第一定时器计时;所述终端设备在所述第一重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第一定时器的计时时长到达第一重试时间时,所述终端设备停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务;
    若所述终端设备在所述IMS定时器的计时时长内已建立PDU会话但未完成IMS网络注册,所述终端设备确定IMS注册请求的第二重试时间并启动第二定时器计时;所述终端设备在所述第二重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第二定时器的计时时长到达所述第二重试时间时,所述终端设备停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
  2. 一种语音业务切换方法,其特征在于,所述语音业务切换方法包括:
    终端设备向第一网络的核心网发送PDU会话建立请求;
    若所述终端设备在IMS定时器的计时时长内未建立PDU会话,所述终端设备确定所述PDU会话建立请求的第一重试时间并启动第一定时器计时,其中,所述IMS定时器的计时时长为规定所述终端设备建立所述PDU会话和完成IMS网络注册所需的最长时间;
    所述终端设备在所述第一重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;
    当所述第一定时器的计时时长到达所述第一重试时间时,所述终端设备停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
  3. 根据权利要求2所述的语音业务切换方法,其特征在于,当所述终端设备设备收到所述第一网络的核心网发送的PDU会话建立异常的错误码原因值但非运营商永久被禁错误码原因值时,所述终端设备确定所述PDU会话建立请求的第一重试时间,包括:
    若所述PDU会话建立异常的错误码原因值携带延迟时间,所述终端设备确定所述延迟时间为所述第一重试时间;或,
    若所述PDU会话建立异常的错误码原因值未携带或携带为0,所述终端设备确定固定时间为所述第一重试时间。
  4. 根据权利要求3所述的语音业务切换方法,其特征在于,当所述终端设备连续收到相同的所述PDU会话建立异常的错误码原因值时,所述终端设备将根据所述PDU会话建立异常的错误码原因值获得的延迟时间或固定时间累加一段惩罚时间后的时间确定为所述第一重试时间,其中,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将所述延迟时间或所述固定时间确定为所述第一重试时间。
  5. 根据权利要求2所述的语音业务切换方法,其特征在于,当所述终端设备设备收到所述第一网络的核心网发送的PDU会话建立异常的错误码原因值且所述PDU会话建立异常的错误码原因值为运营商永久被禁错误码原因值时,所述终端设备禁用所述第一网络直到开关机或者插拔卡或者开关飞行或者开关IMS相关开关。
  6. 根据权利要求2所述的语音业务切换方法,其特征在于,当第三定时器超时,其中,所述第三定时器的计时时长为规定所述终端设备完成所述PDU会话建立所需的最长时间,所述终端设备确定PDU会话建立请求的第一重试时间,包括:
    将相关标准协议中规定所述第三定时器超时时重试所述PDU会话建立请求的时间确定为所述第一重试时间。
  7. 根据权利要求6所述的语音业务切换方法,其特征在于,当所述终端设备连续发生所述第三定时器超时时,所述终端设备将根据所述第三定时器超时获得的重试所述PDU会话建立请求的时间累加一段惩罚时间后的时间确定为所述第一重试时间,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将所述第三定时器超时时根据相关标准协议获得的重试所述PDU会话建立请求的的时间确定为所述第一重试时间。
  8. 根据权利要求1-7中任一项所述的语音业务切换方法,其特征在于,所述第一网络为5G网络,所述第二网络为4G网络。
  9. 一种语音业务切换方法,其特征在于,所述语音业务切换方法包括:
    当终端设备与第一网络的核心网建立PDU会话后,所述终端设备向IMS网络发送IMS网络注册请求;
    若所述终端设备在所述IMS定时器的计时时长内未完成IMS网络注册,所述终端设备确定所述IMS注册请求的第二重试时间并启动第二定时器计时,其中,所述IMS定时器的计时时长为规定建立所述PDU会话和完成所述IMS网络注册所需的最长时间;
    所述终端设备在所述第二重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;
    当所述第二定时器的计时时长到达所述第二重试时间时,所述终端设备停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
  10. 根据权利要求9所述的语音业务切换方法,其特征在于,当所述终端设备设备收到所述第一网络的核心网发送的IMS网络注册异常的错误码原因值时,所述终端设备确定所述IMS网络注册请求的第二重试时间,包括:
    若所述IMS网络注册异常的错误码原因值携带重试时长,所述终端设备将所述重试时长确定为所述第二重试时间;或,
    若所述IMS网络注册异常的错误码原因值未携带,所述终端设备将相关标准协议中规定的所述IMS网络注册异常的错误码原因值对应的所述IMS网络注册请求的重试时长确定为所述第二重试时间。
  11. 根据权利要求10所述的语音业务切换方法,其特征在于,当所述终端设备连续收到相同的所述IMS网络注册异常的错误码原因值时,所述终端设备将根据所述IMS网络注册异常的错误码原因值获得的重试时长累加一段惩罚时间后的时间确定为 所述第二重试时间,其中,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将所述重试时长确定为所述第二重试时间。
  12. 根据权利要求9所述的语音业务切换方法,其特征在于,当所述终端设备设备收到所述第一网络的核心网发送的所述IMS网络注册异常的错误码原因值且所述IMS网络注册异常的错误码原因值为运营商永久被禁错误码原因值时,所述终端设备禁用所述第一网络直到开关机或者插拔卡或者开关飞行或者开关IMS相关开关。
  13. 根据权利要求9所述的语音业务切换方法,其特征在于,当第四定时器超时,其中,所述第四定时器的计时时长为规定所述终端设备完成所述IMS网络注册所需的最长时间,所述终端设备确定所述IMS网络注册请求的第二重试时间,包括:
    将相关标准协议中规定所述第四定时器超时时重试所述IMS网络注册请求的时间确定为所述第二重试时间。
  14. 根据权利要求13所述的语音业务切换方法,其特征在于,当所述终端设备连续发生所述第四定时器超时时,所述终端设备将根据所述第四定时器超时获得的重试所述IMS网络注册请求的时间累加一段惩罚时间后的时间确定为所述第二重试时间,每次累加的惩罚时间相同或不同,直到累加至最大惩罚时间,再重新将所述第四定时器超时根据相关标准协议获得的重试IMS网络注册请求的时间确定为所述第二重试时间。
  15. 根据权利要求9-14中任一项所述的语音业务切换方法,其特征在于,所述第一网络为5G网络,所述第二网络为4G网络。
  16. 一种终端设备,其特征在于,包括存储器和处理器,
    所述存储器用于存储计算机程序;
    所述处理器用于运行所述存储器中存储的计算机程序,以执行:
    使用第一网络进行IMS注册并启动IMS定时器,其中,所述IMS注册包括PDU会话建立和IMS网络注册,所述IMS定时器的计时时长为规定所述终端设备建立PDU会话和完成IMS网络注册所需的最长时间;
    若在所述IMS定时器的计时时长内未建立PDU会话,确定PDU会话建立请求的第一重试时间并启动第一定时器计时;在所述第一重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第一定时器的计时时长到达所述第一重试时间时,停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务;
    若在所述IMS定时器的计时时长内已建立所述PDU会话但未完成所述IMS网络注册,确定IMS网络注册请求的第二重试时间并启动第二定时器计时;在所述第二重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;当所述第二定时器的计时时长到达所述第二重试时间时,停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
  17. 一种终端设备,其特征在于,包括存储器和处理器,
    所述存储器用于存储计算机程序;
    所述处理器用于运行所述存储器中存储的计算机程序,以执行:
    向第一网络的核心网发送PDU会话建立请求;
    若在IMS定时器的计时时长内未建立PDU会话,确定所述PDU会话建立请求的第一重试时间并启动第一定时器计时,其中,所述IMS定时器的计时时长为规定所述终端设备建立PDU会话和完成IMS网络注册所需的最长时间;
    在所述第一重试时间内禁用所述第一网络,并切换为使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;
    当所述第一定时器的计时时长到达所述第一重试时间时,停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
  18. 一种终端设备,其特征在于,包括存储器和处理器,
    所述存储器用于存储计算机程序;
    所述处理器用于运行所述存储器中存储的计算机程序,以执行:
    当与第一网络的核心网建立PDU会话后,向IMS网络发送IMS网络注册请求;
    若在所述IMS定时器的计时时长内未完成IMS网络注册,确定所述IMS网络注册请求的第二重试时间并启动第二定时器计时,其中,所述IMS定时器的计时时长为规定建立PDU会话和完成IMS网络注册所需的最长时间;
    在所述第二重试时间内禁用所述第一网络,并使用第二网络建立IMS语音业务或电路域回落CSFB语音业务;
    当所述第二定时器的计时时长到达所述第二重试时间时,停止使用所述第二网络,并切换为使用所述第一网络建立IMS语音业务。
  19. 一种芯片,其特征在于,用于实现权利要求16-18中任一所述的终端设备的功能。
  20. 一种计算机可读存储介质,其特征在于,用于存储计算机程序,当所述计算机程序被终端设备的处理器执行时,使得所述终端设备实现权利要求1至15中任一项所述的方法。
PCT/CN2021/109791 2020-09-16 2021-07-30 一种语音业务切换方法、终端设备及芯片 WO2022057473A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010975524.8 2020-09-16
CN202010975524.8A CN114268609B (zh) 2020-09-16 2020-09-16 一种语音业务切换方法、终端设备及芯片

Publications (1)

Publication Number Publication Date
WO2022057473A1 true WO2022057473A1 (zh) 2022-03-24

Family

ID=80777624

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109791 WO2022057473A1 (zh) 2020-09-16 2021-07-30 一种语音业务切换方法、终端设备及芯片

Country Status (2)

Country Link
CN (1) CN114268609B (zh)
WO (1) WO2022057473A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710801A (zh) * 2022-05-10 2022-07-05 中国联合网络通信集团有限公司 网络性能的测评参数的处理方法、装置、存储介质及设备
CN114980066A (zh) * 2022-05-11 2022-08-30 维沃移动通信有限公司 语音通话方法、装置及电子设备
TWI843421B (zh) 2022-06-06 2024-05-21 聯發科技股份有限公司 藉由使用快速初始 ims 註冊來避免不良用戶體驗的方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115551111B (zh) * 2022-04-29 2023-07-07 荣耀终端有限公司 一种语音呼叫方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190313229A1 (en) * 2018-04-04 2019-10-10 T-Mobile Usa, Inc. Call setup logic with emerg-request-non-100 timer
CN111031571A (zh) * 2018-10-09 2020-04-17 华为技术有限公司 一种网络切片接入控制的方法及装置
CN111107058A (zh) * 2019-11-28 2020-05-05 华为技术有限公司 一种ims注册时长管理系统及终端设备
WO2020105546A1 (ja) * 2018-11-19 2020-05-28 シャープ株式会社 ユーザ装置
WO2020155053A1 (zh) * 2019-01-31 2020-08-06 华为技术有限公司 一种网络异常的处理方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100596084C (zh) * 2006-04-20 2010-03-24 华为技术有限公司 移动电路域用户接入ims网络的系统及其接入的注册方法
CN113873595A (zh) * 2017-08-09 2021-12-31 三星电子株式会社 用于在无线通信系统中处理注册和会话管理的方法和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190313229A1 (en) * 2018-04-04 2019-10-10 T-Mobile Usa, Inc. Call setup logic with emerg-request-non-100 timer
CN111031571A (zh) * 2018-10-09 2020-04-17 华为技术有限公司 一种网络切片接入控制的方法及装置
WO2020105546A1 (ja) * 2018-11-19 2020-05-28 シャープ株式会社 ユーザ装置
WO2020155053A1 (zh) * 2019-01-31 2020-08-06 华为技术有限公司 一种网络异常的处理方法及装置
CN111107058A (zh) * 2019-11-28 2020-05-05 华为技术有限公司 一种ims注册时长管理系统及终端设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NOKIA, NOKIA SHANGHAI BELL: "Corrections on encodings and typos in 24502", 3GPP DRAFT; CP-202149, vol. CT WG1, 4 September 2020 (2020-09-04), pages 1 - 19, XP051929498 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710801A (zh) * 2022-05-10 2022-07-05 中国联合网络通信集团有限公司 网络性能的测评参数的处理方法、装置、存储介质及设备
CN114710801B (zh) * 2022-05-10 2024-04-30 中国联合网络通信集团有限公司 网络性能的测评参数的处理方法、装置、存储介质及设备
CN114980066A (zh) * 2022-05-11 2022-08-30 维沃移动通信有限公司 语音通话方法、装置及电子设备
CN114980066B (zh) * 2022-05-11 2024-03-01 维沃移动通信有限公司 语音通话方法、装置及电子设备
TWI843421B (zh) 2022-06-06 2024-05-21 聯發科技股份有限公司 藉由使用快速初始 ims 註冊來避免不良用戶體驗的方法

Also Published As

Publication number Publication date
CN114268609B (zh) 2023-09-01
CN114268609A (zh) 2022-04-01

Similar Documents

Publication Publication Date Title
WO2022057473A1 (zh) 一种语音业务切换方法、终端设备及芯片
US11178714B2 (en) Proxy call session control function failure recovering method, apparatus and system
US11503523B2 (en) Network handover method, apparatus and system, and handover determination method and apparatus
CN113329462B (zh) 用于双活跃连接切换的方法和设备
US8165068B2 (en) User equipment detach with multiple packet data network connectivity
TWI462616B (zh) 基於存取點名稱的擁塞控制方法,以及使用該方法之行動通訊裝置
US20230007054A1 (en) Ims registration duration management system, terminal device, and chip
CN106031105B (zh) 针对epc的受信任wlan访问的过载控制
US20220007444A1 (en) User device
US10728789B2 (en) Data service control method and related device
EP3720187B1 (en) Service request handling method and device and communication system
EP3627799A1 (en) Communication terminal and method for establishing a communication session
US20220312510A1 (en) Session Establishment with a Local Serving Network
WO2022156586A1 (zh) 网络接入方法及装置
WO2010108355A1 (zh) 注册处理方法和接入处理方法
US11405834B2 (en) Data transmission method and device
WO2013000345A1 (zh) 一种疏导终端接入网络的方法及系统
US20220330005A1 (en) Roaming method, apparatus, and system
CN112738848A (zh) 核心网负荷调整方法、装置、设备及计算机可读存储介质
US11051268B2 (en) Service activation and deactivation method, device and computer storage medium
WO2016065511A1 (zh) 网络注册方法、装置和用户终端
US11432350B2 (en) Session management function (SMF) selection based on supported protocol type
WO2022067734A1 (zh) 一种通信方法、装置及系统
WO2023155618A1 (zh) 一种通信方法及装置
WO2022062827A1 (zh) 网络切换方法、网络设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21868302

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868302

Country of ref document: EP

Kind code of ref document: A1