Call method and device, electronic equipment and computer readable storage medium
By detecting the port number on the receiving end and downgrading it to voice calls, the compatibility problem of RTT calls between different operators is solved, ensuring that users can communicate normally and improving user experience.
Patent Information
- Application Number
- CN202510645846.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2025-08-22
AI Technical Summary
During real-time text communication (RTT) calls between different operators, due to differences in network configuration, the text entered by the user cannot be transmitted to the counterpart, resulting in a decline in user experience.
When the receiving end detects whether the port number is the target port number that cannot send and receive real-time text data, it is downgraded to a voice call, and notifies the initiator by responding messages carrying the target port number to ensure that both parties establish a voice call.
Avoid misleading users due to port number compatibility issues and improve the call experience.
Smart Images

Figure CN120528901A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a communication method, device, electronic device, and computer-readable storage medium. Background Art
[0002] Real-Time Text (RTT) is a technology that allows users to send and receive text messages in real time during a call. Unlike traditional text messaging methods (such as SMS), RTT transmits text messages in real time while both parties are speaking, enabling seamless two-way communication. Therefore, RTT provides an effective communication tool for people with hearing impairments.
[0003] However, in actual network testing, it was found that due to differences in network configuration between different operators, RTT calls between some operators could not be established normally. However, there was an RTT text box on the terminal interface. Although the user could enter relevant text, the user on the other end could not receive the corresponding text content, which misled the user and seriously affected the user experience. Summary of the Invention
[0004] The embodiments of the present application provide a calling method, device, electronic device, and computer-readable storage medium, which can effectively improve the user's calling experience.
[0005] In a first aspect, an embodiment of the present application provides a call method, applied to a receiving device, the method comprising:
[0006] Upon receiving an invitation message for a real-time text communication (RTT) call from an initiating device, obtaining a port number carried in the invitation message; and
[0007] When the port number is a target port number of a real-time transport protocol text RTP data packet indicating that real-time text data cannot be sent or received, the call establishment with the initiating device is completed through a voice call.
[0008] In one embodiment, the establishing of the call with the initiating device through a voice call includes:
[0009] Downgrading the RTT call to the voice call;
[0010] Replying a response message for establishing the voice call to the initiating device to complete the establishment of the voice call;
[0011] The response message carries the target port number.
[0012] In one embodiment, upon receiving an invitation message for a real-time text communication (RTT) call from an initiating device, obtaining a port number carried in the invitation message includes:
[0013] Upon receiving an invitation message for an RTT call from the initiating device, starting a listener;
[0014] Obtaining, based on the listener, a port number carried in the invitation message;
[0015] The method further comprises:
[0016] Based on the listener, it is determined whether the port number is the target port number.
[0017] In one embodiment, the method further comprises:
[0018] When the port number is not the target port number, the call establishment with the initiating device is completed through the RTT call.
[0019] In one embodiment, the receiving device and the initiating device are devices registered on the Internet Protocol Multimedia Subsystem IMS.
[0020] In a second aspect, an embodiment of the present application provides a call method, applied to an initiating device, the method comprising:
[0021] Sending an RTT call invitation message to the receiving device; and
[0022] Upon receiving a response message for establishing a voice call replied by the receiving device, completing the call establishment with the receiving device through a voice call;
[0023] The response message is sent by the receiving device when the port number carried in the invitation message is a target port number indicating that text RTP data packets cannot be sent or received.
[0024] In a third aspect, an embodiment of the present application provides a communication device, applied to a receiving device, the device comprising:
[0025] A port number acquisition module, configured to, upon receiving an invitation message for a real-time text communication (RTT) call from an initiating device, acquire the port number carried in the invitation message; and
[0026] The call establishment module is used to complete the call establishment with the initiating device through a voice call when the port number is a target port number of a real-time transport protocol text RTP data packet indicating that real-time text data cannot be sent or received.
[0027] In one embodiment, the call establishment module includes:
[0028] A call downgrading unit, configured to downgrade the RTT call to the voice call;
[0029] A call establishing unit, configured to reply to the initiating device with a response message for establishing the voice call, so as to complete the establishment of the voice call;
[0030] The response message carries the target port number.
[0031] In one embodiment, the port number acquisition module includes:
[0032] A starting unit, configured to start the listener upon receiving an invitation message for an RTT call from the initiating device;
[0033] A port number acquiring unit, configured to acquire the port number carried in the invitation message based on the listener;
[0034] The device further comprises:
[0035] A judgment module is used to judge whether the port number is the target port number based on the listener.
[0036] In one embodiment, the apparatus further comprises:
[0037] The RTT call establishing module is used to complete the call establishment with the initiating device through the RTT call when the port number is not the target port number.
[0038] In one embodiment, the receiving device and the initiating device are devices registered on the Internet Protocol Multimedia Subsystem IMS.
[0039] In a fourth aspect, an embodiment of the present application provides a call device, which is applied to an initiating device, and the device includes:
[0040] A message sending module, configured to send an RTT call invitation message to a receiving device; and
[0041] A call establishment module, configured to complete the call establishment with the receiving device through a voice call upon receiving a response message for establishing a voice call from the receiving device;
[0042] The response message is sent by the receiving device when the port number carried in the invitation message is a target port number indicating that text RTP data packets cannot be sent or received.
[0043] In a fifth aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above-mentioned call method are implemented.
[0044] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned call method are implemented.
[0045] In a seventh aspect, embodiments of the present application further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in the embodiments of the present application.
[0046] In an embodiment of the present application, an initiating device sends an RTT call invitation message to a receiving device. Upon receiving the RTT call invitation message from the initiating device, the receiving device can obtain the port number carried in the invitation message. If the port number is the target port number of a Real-time Transport Protocol (RTP) data packet that indicates an inability to send or receive real-time text data, the initiating device can establish a call with the initiating device as a voice call. Upon receiving a response message from the receiving device requesting to establish a voice call, the initiating device completes the call with the receiving device as a voice call. This avoids the problem of the initiating device believing an RTT call is established when the receiving device cannot actually receive text, effectively improving the user's call experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in this application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 This is a schematic diagram of the RTT call establishment process under normal circumstances provided by an embodiment of the present application;
[0049] Figure 2 This is a schematic diagram of an RTT call establishment process under abnormal circumstances provided by an embodiment of the present application;
[0050] Figure 3 This is a schematic diagram of the steps of a calling method provided by an embodiment of the present application;
[0051] Figure 4 Schematic diagram of an RTT call establishment process provided by an embodiment of the present application;
[0052] Figure 5 This is a schematic diagram of the steps of a calling method provided by an embodiment of the present application;
[0053] Figure 6 This is a schematic diagram of the structure of a communication device provided by an embodiment of the present application;
[0054] Figure 7 This is a schematic diagram of the structure of a communication device provided by an embodiment of the present application;
[0055] Figure 8 It is a structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0057] Figure 1 FIG. 1 is a schematic diagram of the RTT call establishment process under normal circumstances provided by an embodiment of the present application. Figure 1 As shown, an RTT call is established between user equipment (UE) via a network. The network can be provided by the same operator or different operators. Under normal circumstances, UE1 and UE2 are registered with the IP Multimedia Subsystem (IMS) and have RTT capabilities. UE1 makes an RTT call to UE2, and the INVITE message sent by UE1 carries RTT-related media parameters, which may be (m=text 40010, a=sendrecv). 40010 is the text port number, representing the port used by UE1 to subsequently send and receive text RTP packets; sendrecv represents the Real-time Transport Protocol (text RTP) packets that can send and receive real-time text data. UE2 then receives the INVITE message sent by the network containing RTT-related media parameters (e.g., m=text 35520, a=sendrecv), and then negotiates the establishment of the RTT call between UE1 and UE2. If the text port number is 0, it means that text RTP packets cannot be sent or received.
[0058] Figure 2FIG. 1 is a schematic diagram of an RTT call establishment process under abnormal circumstances provided by an embodiment of the present application. Figure 2 As shown, it was found in the actual network test that when user UE1 of operator A made an RTT call to user UE2 of operator B, due to the compatibility problem in the interaction between operators A and B, although UE1 carried m=text XX (XX was not a 0 value) when sending to network A, UE2 received m=text 0 (text port number was 0) in the INVITE message sent by network B, that is, UE1 and UE2 were out of sync, which eventually led to UE1 displaying that the RTT call was established, but UE2 could not receive the text content sent by UE1, which misled users and seriously affected the user experience.
[0059] In order to solve the above technical problems, an embodiment of the present application provides a calling method. Figure 3 Although the steps are shown in a logical order, in some cases, the steps shown or described may be performed in a different order than shown in the accompanying drawings. Specifically, the calling method can be applied to a terminal, where the terminal may include but is not limited to one or more of a smartphone, a tablet computer, a laptop computer, a desktop computer, and an in-vehicle computer. The terminal may be the receiving device of the RTT call.
[0060] It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.
[0061] according to Figure 3 The calling method shown in FIG. 1 includes at least steps S110 to S120, which are described in detail as follows:
[0062] In step S110, when an invitation message for a real-time text communication (RTT) call is received from an initiating device, a port number carried in the invitation message is obtained.
[0063] In step S120 , when the port number is a target port number indicating that a real-time transport protocol text RTP data packet cannot be sent or received, the call establishment with the initiating device is completed through a voice call.
[0064] The receiving and initiating devices are registered with the IMS, an IP (Internet Protocol)-based network architecture that provides users with rich multimedia services. Both the receiving and initiating devices must be registered with the IMS to communicate and access services.
[0065] An initiating device registered with the IMS can, based on the IMS network architecture and communication protocols, initiate diverse multimedia service requests, such as voice calls, video conferencing, and / or file transfers, to a receiving device. Receiving devices registered with the IMS can accurately receive multimedia information transmitted over complex network links from other IMS-registered devices (such as the initiating device). This allows efficient and smooth information exchange between initiating and receiving devices based on the IMS.
[0066] The receiving device closely monitors various signal fluctuations on the network channel. When the initiating device sends an RTT call invitation message to the receiving device, the receiving device receives it. The receiving device parses the RTT call invitation message and obtains the port number carried in the message. Based on this port number, the receiving device establishes a call with the initiating device.
[0067] The receiving device can determine whether the port number carried in the RTT call invitation message is the target port number. The target port number indicates that the real-time transport protocol text RTP data packet cannot be sent or received. In one embodiment, the target port number is 0.
[0068] The port number carried in the invitation message is the target port number. One possible scenario is that the initiating device is not actually initiating an RTT call to the receiving device, so the port number carried is the target port number. In this case, the receiving device can directly respond to the target port number to conduct a non-RTT call with the initiating device. Another possible scenario can be referred to Figure 2 The initiating device initiates an RTT call to the receiving device. The port number originally carried is not the target port number, but the port number for the RTT call (the port number is not 0). However, due to network incompatibility between different operators and other issues, the port number received by the receiving device is the target port number. At this time, if the receiving device directly completes the call establishment with the initiating device based on the target port number, then for the receiving device side, it is a non-RTT call, but for the initiating device side, it is an RTT call. Then, the text RTP data packet sent by the initiating device to the receiving device cannot be received by the receiving device, which will cause misunderstanding between the initiating device side and the receiving device side.
[0069] Therefore, if the receiving device determines that the port number carried in the initiating device's RTT call invitation message is the target port number indicating that it cannot send or receive text RTP packets, the receiving device can proactively complete the call with the initiating device through a voice call. In either case, normal communication between the initiating and receiving devices is guaranteed.
[0070] Using the technical solution of the embodiment of the present application, the initiating device sends an RTT call invitation message to the receiving device; upon receiving the RTT call invitation message from the initiating device, the receiving device can obtain the port number carried in the invitation message; if the port number is the target port number of a Real-time Transport Protocol (RTP) data packet indicating an inability to send or receive real-time text data, the call with the initiating device can be established as a voice call; upon receiving a response message from the receiving device requesting the establishment of a voice call, the initiating device completes the call with the receiving device as a voice call. This avoids the problem of the initiating device believing an RTT call has been established when the receiving device cannot actually receive the text, effectively improving the user's call experience.
[0071] Based on the above technical solution, as an embodiment, completing the establishment of a call with the initiating device through a voice call may include: downgrading the RTT call to a voice call; replying to the initiating device with a response message for establishing a voice call to complete the establishment of the voice call; wherein the response message carries the target port number.
[0072] Because the initiating device initiates an RTT call, the receiving device needs to first downgrade the RTT call to a voice call in order to complete the call establishment with the device through a voice call.
[0073] A voice call is a method of communicating between two parties in real time through the transmission of voice signals. Voice calls can convey information directly and quickly, allowing both parties to communicate instantly, just like face-to-face conversations, greatly improving communication efficiency.
[0074] like Figure 4 As shown, in order to let the initiating device know that the RTT call has been downgraded to a voice call, the receiving device can carry the target port number in the response message when replying to the initiating device's RTT call invitation message, so that the initiating device can know that the RTT call has been downgraded to a voice call based on the target port number carried in the response message, and thus conduct a voice call with the receiving device.
[0075] In one embodiment, the target port number may be included in the 183Session Progress response message sent back by the receiving device. The 183Session Progress response message indicates that the call is in progress and has made some progress, but has not yet been fully established or completed. It is an intermediate status message between the initial request and the final success or failure response during the call establishment process. The 183Session Progress response message may also include specific details about the call progress, such as the status of media negotiation, the determined encoding format, and possible call forwarding information. With this information, the initiating device can understand the current processing status of the receiving device and the direction of the call development.
[0076] By adopting the technical solution of the embodiment of the present application, the receiving device can inform the initiating device that the RTT call has been downgraded to a voice call by replying to the initiating device with a response message carrying the target port number, so as to realize a voice call between the initiating device and the receiving device, avoiding the problem that the initiating device mistakenly believes that an RTT call has been established but the actual receiving device cannot receive the text, and can effectively improve the user's call experience.
[0077] Based on the above technical solution, as an embodiment, upon receiving an invitation message for a real-time text communication (RTT) call from an initiating device, obtaining the port number carried in the invitation message may include: upon receiving the invitation message for the RTT call from the initiating device, starting a listener; and obtaining the port number carried in the invitation message based on the listener. The call method further includes: determining, based on the listener, whether the port number is the target port number.
[0078] The receiving device may set a listener, which is used to obtain and listen to the port number carried in the RTT call invitation message.
[0079] When the receiving device obtains the invitation message of the RTT call, the receiving device can start a listener, and can use the listener to parse the invitation message of the RTT call and obtain the port number carried in the invitation message of the RTT call.
[0080] Before determining whether to complete the call establishment with the initiating device as a voice call or an RTT call, the listener first determines whether the port number carried in the RTT call invitation message is the target port number. If the listener determines that the port number carried in the RTT call invitation message is the target port number, the receiving device completes the call establishment with the initiating device as a voice call. If the listener determines that the port number carried in the RTT call invitation message is not the target port number, the receiving device completes the call establishment with the initiating device as an RTT call.
[0081] By adopting the technical solution of the embodiment of the present application, the listener can determine whether the port number carried in the invitation message of the RTT call is the target port number, thereby helping the receiving device to determine whether to complete the call establishment with the initiating device through a voice call or an RTT call, thereby improving the user's call experience.
[0082] Based on the above technical solution, as an embodiment, the call method may further include: when the port number is not the target port number, completing the call establishment with the initiating device through RTT call.
[0083] The receiving device determines that the port number carried in the RTT call invitation message is not the target port number, proving that there is no compatibility issue and that the receiving device and the initiating device can send and receive Real-time Transport Protocol (RTP) data packets. Therefore, the receiving device can directly establish the call with the initiating device via RTT.
[0084] Optionally, the receiving device may not carry the port number in its response message to the initiating device, or it may carry the port number carried in the invitation message for the RTT call. If the port number carried in the invitation message for the RTT call is to be carried, the port number carried in the invitation message for the RTT call may be carried in the 183 Session Progress response message.
[0085] By adopting the technical solution of the embodiment of the present application, when the port number is not the target port number, the receiving device can complete the RTT call establishment with the initiating device, thereby conducting an RTT call with the initiating device.
[0086] An embodiment of the present application provides a method for making a call. Figure 5 Although the steps are shown in a logical order, in some cases, the steps shown or described may be performed in a different order than shown in the accompanying drawings. Specifically, the calling method can be applied to a terminal, where the terminal may include but is not limited to one or more of a smartphone, a tablet computer, a laptop computer, a desktop computer, and an in-vehicle computer. The terminal may be the initiator of the RTT call.
[0087] according to Figure 5 The calling method shown in FIG. 1 includes at least steps S210 to S220, which are described in detail as follows:
[0088] In step S210, an RTT call invitation message is sent to a receiving device.
[0089] In step S220, upon receiving a response message for establishing a voice call from the receiving device, the call establishment with the receiving device is completed through a voice call.
[0090] The response message is sent by the receiving device when the port number carried in the invitation message is a target port number indicating that the device cannot send or receive text RTP data packets.
[0091] The receiving device and the initiating device are both registered with the IMS. Based on the IMS network architecture and communication protocols, the initiating device can initiate a variety of multimedia service requests, such as voice calls, video conferencing, and / or file transfers, to the receiving device. The receiving device registered with the IMS can accurately receive multimedia information transmitted from other IMS-registered devices (such as the initiating device) over complex network links. This allows the initiating and receiving devices to achieve efficient and smooth information exchange based on the IMS.
[0092] The initiating device sends an RTT call invitation message to the receiving device. The receiving device then parses the message to obtain the port number carried in the message. Based on this port number, the receiving device establishes a call with the initiating device.
[0093] The receiving device can determine whether the port number carried in the RTT call invitation message is the target port number. The target port number indicates that the real-time transport protocol text RTP data packet cannot be sent or received. In one embodiment, the target port number is 0.
[0094] If the receiving device determines that the port number carried in the initiating device's RTT call invitation message is the target port number indicating inability to send or receive text RTP packets, it can proactively establish the call with the initiating device through a voice call. Specifically, the receiving device sends a voice call establishment response message to the initiating device, which carries the target port number indicating inability to send or receive text RTP packets.
[0095] The remaining technical details of the embodiments of this application can be referred to above and will not be repeated here.
[0096] Using the technical solution of the embodiment of the present application, the initiating device sends an RTT call invitation message to the receiving device; upon receiving the RTT call invitation message from the initiating device, the receiving device can obtain the port number carried in the invitation message; if the port number is the target port number of a Real-time Transport Protocol (RTP) data packet indicating an inability to send or receive real-time text data, the call with the initiating device can be established as a voice call; upon receiving a response message from the receiving device requesting the establishment of a voice call, the initiating device completes the call with the receiving device as a voice call. This avoids the problem of the initiating device believing an RTT call has been established when the receiving device cannot actually receive the text, effectively improving the user's call experience.
[0097] To facilitate better implementation of the communication method of the present application, the present application also provides a communication device based on the above communication method. The meanings of the terms are the same as those in the above communication method, and the specific implementation details can be referred to the description in the method embodiment.
[0098] See also Figure 6 , Figure 6 : is a schematic diagram of the structure of a communication device provided in an embodiment of the present application, wherein the communication device is applied to a receiving device, and the communication device includes:
[0099] The port number acquisition module 601 is configured to acquire the port number carried in the invitation message when receiving the invitation message for the real-time text communication (RTT) call from the initiating device; and
[0100] The call establishing module 602 is configured to complete the call establishment with the initiating device through a voice call when the port number is a target port number indicating that the real-time transport protocol text RTP data packet cannot be sent or received.
[0101] In one embodiment, the call establishment module 602 includes:
[0102] A call downgrade unit, used to downgrade an RTT call to a voice call;
[0103] A call establishing unit, configured to reply to the initiating device with a response message for establishing a voice call, so as to complete the establishment of the voice call;
[0104] The response message carries the target port number.
[0105] In one embodiment, the port number obtaining module 601 includes:
[0106] A starting unit, configured to start the listener upon receiving an invitation message for an RTT call from an initiating device;
[0107] A port number obtaining unit, configured to obtain the port number carried in the invitation message based on the listener;
[0108] The device also includes:
[0109] The judgment module is used to judge whether the port number is the target port number based on the listener.
[0110] In one embodiment, the apparatus further comprises:
[0111] The RTT call establishment module is used to complete the call establishment with the initiating device through RTT call when the port number is not the target port number.
[0112] In one embodiment, the receiving device and the initiating device are devices registered on the Internet Protocol Multimedia Subsystem (IMS).
[0113] Using the technical solution of the embodiment of the present application, the initiating device sends an RTT call invitation message to the receiving device; upon receiving the RTT call invitation message from the initiating device, the receiving device can obtain the port number carried in the invitation message; if the port number is the target port number of a Real-time Transport Protocol (RTP) data packet indicating an inability to send or receive real-time text data, the call with the initiating device can be established as a voice call; upon receiving a response message from the receiving device requesting the establishment of a voice call, the initiating device completes the call with the receiving device as a voice call. This avoids the problem of the initiating device believing an RTT call has been established when the receiving device cannot actually receive the text, effectively improving the user's call experience.
[0114] To facilitate better implementation of the communication method of the present application, the present application also provides a communication device based on the above communication method. The meanings of the terms are the same as those in the above communication method, and the specific implementation details can be referred to the description in the method embodiment.
[0115] See also Figure 7 , Figure 7 : is a schematic diagram of the structure of a communication device provided in an embodiment of the present application, wherein the communication device is applied to an initiating device, and the communication device includes:
[0116] A message sending module 701 is configured to send an RTT call invitation message to a receiving device; and
[0117] The call establishment module 702 is configured to complete the call establishment with the receiving device through a voice call upon receiving a response message for establishing a voice call from the receiving device;
[0118] The response message is sent by the receiving device when the port number carried in the invitation message is a target port number indicating that the device cannot send or receive text RTP data packets.
[0119] Using the technical solution of the embodiment of the present application, the initiating device sends an RTT call invitation message to the receiving device; upon receiving the RTT call invitation message from the initiating device, the receiving device can obtain the port number carried in the invitation message; if the port number is the target port number of a Real-time Transport Protocol (RTP) data packet indicating an inability to send or receive real-time text data, the call with the initiating device can be established as a voice call; upon receiving a response message from the receiving device requesting the establishment of a voice call, the initiating device completes the call with the receiving device as a voice call. This avoids the problem of the initiating device believing an RTT call has been established when the receiving device cannot actually receive the text, effectively improving the user's call experience.
[0120] For specific definitions of the communication device, please refer to the definition of the communication method above and will not be repeated here. Each module in the above-mentioned communication device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.
[0121] In addition, the present application also provides an electronic device, such as Figure 8 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:
[0122] The electronic device may include one or more processing core processors 801 and one or more computer readable storage media memories 802 and other components. Those skilled in the art will understand that Figure 8 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0123] The processor 801 is the control center of the electronic device. It connects the various parts of the entire electronic device using various interfaces and lines. By running or executing software programs and / or modules stored in the memory 802 and accessing data stored in the memory 802, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, and the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 801.
[0124] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.
[0125] In one embodiment, the electronic device further includes a power supply 803 for supplying power to various components. Preferably, the power supply 803 can be logically connected to the processor 801 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 803 can also include any of one or more DC or AC power supplies, a recharging system, a power supply device debugging circuit, a power converter or inverter, a power status indicator, and other components.
[0126] In one embodiment, the electronic device may further include an input unit 804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0127] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 801 in the electronic device loads the executable files corresponding to one or more application processes into the memory 802 according to the following instructions, and the processor 801 runs the application stored in the memory 802, thereby implementing the steps of any call method provided in the embodiments of the present application.
[0128] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0129] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in any embodiment of the present application is implemented.
[0130] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present application is implemented.
[0131] In some embodiments, a computer program product is also proposed, including a computer program or instructions, which implements the method described in any embodiment of the present application when executed by a processor.
[0132] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0133] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0134] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any call method provided in the present application.
[0135] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0136] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0137] Since the instructions stored in the computer-readable storage medium can execute the steps in any call method provided in this application, the beneficial effects that can be achieved by any call method provided in this application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0138] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "includes," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements that are inherent to such process, method, article, or terminal device. In the absence of further restrictions, an element defined by the phrase "comprises a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
[0139] The above is a detailed introduction to a call method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims
1. A calling method, characterized in that: Applied to a receiving device, the method includes: Upon receiving an invitation message for a real-time text communication (RTT) call from an initiating device, obtaining a port number carried in the invitation message; and When the port number is a target port number of a real-time transport protocol text RTP data packet indicating that real-time text data cannot be sent or received, the call establishment with the initiating device is completed through a voice call.
2. The method according to claim 1, characterized in that The step of establishing a call with the initiating device through a voice call includes: Downgrading the RTT call to the voice call; Replying a response message for establishing the voice call to the initiating device to complete the establishment of the voice call; The response message carries the target port number.
3. The method according to claim 1, characterized in that The step of obtaining the port number carried in the invitation message when receiving the invitation message for the real-time text communication (RTT) call from the initiating device includes: Upon receiving an invitation message for an RTT call from the initiating device, starting a listener; Obtaining, based on the listener, a port number carried in the invitation message; The method further comprises: Based on the listener, it is determined whether the port number is the target port number.
4. The method according to claim 1, wherein The method further comprises: When the port number is not the target port number, the call establishment with the initiating device is completed through the RTT call.
5. The method according to claim 1, wherein The receiving device and the initiating device are devices registered on the Internet Protocol Multimedia Subsystem IMS.
6. A communication method, characterized in that: Applied to an initiating device, the method includes: Sending an RTT call invitation message to the receiving device; and Upon receiving a response message for establishing a voice call replied by the receiving device, completing the call establishment with the receiving device through a voice call; The response message is sent by the receiving device when the port number carried in the invitation message is a target port number indicating that text RTP data packets cannot be sent or received.
7. A communication device, characterized in that: Applicable to receiving equipment, including: A port number acquisition module, configured to, upon receiving an invitation message for a real-time text communication (RTT) call from an initiating device, acquire the port number carried in the invitation message; and The call establishment module is used to complete the call establishment with the initiating device through a voice call when the port number is the target port number of the real-time transport protocol textRTP data packet indicating that real-time text data cannot be sent or received.
8. A communication device, characterized in that: Applicable to the initiating device, including: A message sending module, configured to send an RTT call invitation message to a receiving device; and A call establishment module, configured to complete the call establishment with the receiving device through a voice call upon receiving a response message for establishing a voice call from the receiving device; The response message is sent by the receiving device when the port number carried in the invitation message is a target port number indicating that text RTP data packets cannot be sent or received.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the call method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the communication method according to any one of claims 1 to 6 are implemented.