Search

CN-120166366-B - Call flow processing method and electronic equipment

CN120166366BCN 120166366 BCN120166366 BCN 120166366BCN-120166366-B

Abstract

The embodiment of the application provides a call flow processing method and electronic equipment, relates to the field of communication, and can effectively improve the call transfer success rate of a super incoming call, and solve the problem that a user can continuously and rapidly switch on and off a call in the process of using the super incoming call function, and when the call is switched on again, the mobile phone cannot normally transmit audio data with other equipment due to untimely release of a waiting thread. The method includes establishing an audio channel with the cooperative device in response to a call of the electronic device continuing to the cooperative device. And responding to the hanging-up of the call, and acquiring a session identifier corresponding to the call information. The call information is used for indicating the audio hardware information occupied by the call and the opposite terminal equipment information of the call. The session identifier is used to indicate a session in the process of connecting the call to the cooperative device. And deleting the call information and releasing the waiting thread when the session identification is valid. Wherein the session identification effectively indicates that the session is in progress. A waiting thread refers to the resources occupied by a session.

Inventors

  • Bai Jinyin

Assignees

  • 荣耀终端股份有限公司

Dates

Publication Date
20260508
Application Date
20231208

Claims (10)

  1. 1. A call flow processing method is characterized by being applied to an audio hardware abstraction layer in electronic equipment, and comprises the following steps: Responding to the call of the electronic equipment to be connected to the cooperative equipment, and establishing an audio channel between the electronic equipment and the cooperative equipment, wherein the audio channel is used for transmitting audio data in the call; The method comprises the steps of responding to the hanging-up of a call, obtaining a session identifier corresponding to call information, wherein the call information is used for indicating audio hardware information occupied by the call and opposite-end equipment information of the call, and the session identifier is used for indicating a session in the process of connecting the call to the cooperative equipment; And deleting the call information and releasing a waiting thread when the session identifier is effective, wherein the session identifier effectively indicates that the session is in progress, and the releasing waiting thread refers to resources occupied by the session corresponding to the releasing waiting thread.
  2. 2. The method of claim 1, wherein deleting the call information and releasing the waiting thread when the session identification is valid comprises: when the session identifier is valid, deleting the call information and generating a simulation success instruction, wherein the simulation success instruction is used for simulating the successful establishment of any channel in the audio channels corresponding to the call or the successful configuration of any channel parameter; and releasing the waiting thread based on the simulation success instruction.
  3. 3. The method of claim 1, wherein after the releasing the waiting thread, the method further comprises: the method comprises the steps of sending a call cancellation instruction to an audio virtualization module of electronic equipment to indicate that the audio virtualization module does not forward an instruction corresponding to a call, wherein the instruction corresponding to the call comprises an instruction indicating that any channel in an audio channel corresponding to the call is successfully established or any channel parameter configuration is successful, the audio channel at least comprises a control channel, a downlink data channel and an uplink data channel, and channel parameters in the audio channel at least comprise configuration parameters of the downlink data channel and configuration parameters of the uplink data channel.
  4. 4. A method according to any one of claims 1-3, wherein the session in which the call is continued to the cooperating device comprises at least a session for establishing a control channel, a session for establishing a downlink data channel, a session for establishing an uplink channel, a session for configuring downlink data channel parameters, and a session for configuring uplink data channel parameters.
  5. 5. A method according to any one of claims 1-3, wherein the method further comprises: And deleting the call information when the session identification is invalid, wherein the session identification is invalid to indicate that the session is ended.
  6. 6. A method according to any of claims 1-3, wherein when the session identification is valid, the method further comprises: and unloading the drive occupied by the session.
  7. 7. A method according to any one of claims 1-3, wherein the session identifier includes a field indicating whether the session is valid, and wherein deleting the call information and releasing the waiting thread when the session identifier is valid includes: And deleting the call information and releasing the waiting thread when the field indicates that the session identification is valid.
  8. 8. A method according to any of claims 1-3, characterized in that the call is hung up as any of receiving a call logoff instruction and receiving an indication to delete the call information.
  9. 9. An electronic device comprising one or more processors, one or more memories coupled to the one or more processors, an audio hardware abstraction layer coupled to the one or more processors, the one or more memories storing computer instructions; the computer instructions, when executed by the one or more processors, cause the electronic device to perform the call flow processing method of any one of claims 1-8.
  10. 10. A computer readable storage medium comprising computer instructions which, when executed, perform the call flow processing method of any one of claims 1-8.

Description

Call flow processing method and electronic equipment Technical Field The embodiment of the application relates to the field of communication, in particular to a call flow processing method and electronic equipment. Background With the continuous development of electronic technology, the types and the number of electronic devices owned by users are increasing. For example, a user may have three electronic devices, such as a cell phone, a tablet, a personal computer, and the like, at the same time. In some scenarios, a trust network may be established between multiple device electronic devices owned by a user, such that electronic devices in the trust network other than a cell phone may share the communication capabilities of the cell phone. For example, after a trust network is established between a mobile phone, a tablet and a personal computer owned by a user, the user can answer an incoming call on the mobile phone on the tablet and the personal computer, and can also make a call on the tablet and the personal computer through the mobile phone. However, when a call is placed or received on an electronic device in a trusted network through a mobile phone, a problem may occur in that call sound cannot be transferred to the electronic device. Disclosure of Invention The call flow processing method and the electronic device provided by the embodiment of the application can effectively improve the call transfer success rate of the super incoming call, and solve the problem that the mobile phone cannot normally transmit audio data with other devices due to untimely release of a waiting thread when the user continuously and rapidly turns on and hangs up the call and turns on the call again. In order to achieve the above purpose, the following technical scheme is adopted in the embodiment of the application. In a first aspect, a call flow processing method is provided, which is applied to an audio hardware abstraction layer in an electronic device. The method comprises the steps of responding to connection of a call of the electronic equipment to the cooperative equipment, establishing an audio channel between the electronic equipment and the cooperative equipment, wherein the audio channel is used for transmitting audio data in the call, and the cooperative equipment and the electronic equipment are in the same trust ring. And responding to the hanging-up of the call, and acquiring a session identifier corresponding to the call information. The call information is used for indicating the audio hardware information occupied by the call and the opposite terminal equipment information of the call. The session identifier is used to indicate a session in the process of connecting the call to the cooperative device. The opposite terminal device refers to a device communicating with the electronic device. And deleting the call information and releasing the waiting thread when the session identification is valid. Wherein the session identification effectively indicates that the session is in progress. A waiting thread refers to the resources occupied by a session. Based on the scheme, the electronic equipment can clear the waiting thread in the call after the call is hung up, so that the problem that the mobile phone cannot normally transmit audio data with other equipment due to the fact that the waiting thread is not released in time when the user hangs up the call and then connects the call is avoided in the process of using the super incoming call function, the call transfer success rate of the super incoming call is improved, and the use experience of the user is improved. In one possible implementation, when the session identification is valid, the call information is deleted and the waiting thread is released, including deleting the call information and generating a simulation success instruction when the session identification is valid. The simulation success instruction is used for simulating the instruction that any channel in the audio channels corresponding to the call is successfully established or any channel parameter configuration is successful. The audio channel at least comprises a control channel, a downlink data channel and an uplink data channel. The channel parameters in the audio channel at least comprise configuration parameters of the downlink data channel and configuration parameters of the uplink data channel. The waiting thread is released based on the simulated success instruction. Based on the scheme, the purpose of releasing the waiting thread can be achieved through less resource consumption. In one possible implementation, after releasing the waiting thread, the method further includes sending a call cancellation instruction to an audio virtualization module of the electronic device to instruct the audio virtualization module not to forward an instruction corresponding to the call. The instruction corresponding to the call comprises an instruction indicating that any channel in the audio