WO2018196548A1 - 网络电话处理的方法及终端 - Google Patents

网络电话处理的方法及终端 Download PDF

Info

Publication number
WO2018196548A1
WO2018196548A1 PCT/CN2018/081081 CN2018081081W WO2018196548A1 WO 2018196548 A1 WO2018196548 A1 WO 2018196548A1 CN 2018081081 W CN2018081081 W CN 2018081081W WO 2018196548 A1 WO2018196548 A1 WO 2018196548A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
network
call
telephony
terminal
Prior art date
Application number
PCT/CN2018/081081
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 WO2018196548A1 publication Critical patent/WO2018196548A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • 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/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • 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/1059End-user terminal functionalities specially adapted for real-time communication

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to network telephony processing.
  • VoIP Voice over Internet Protocol
  • a system telephone is a telephone that is accessed or called out through a communication network such as mobile, China Unicom, or telecommunications.
  • the priority of the VoIP is not as high as that of the system phone.
  • the notification method of the VoIP phone is also different from the system phone.
  • the VoIP phone adopts the push notification method.
  • the notification banner is displayed on the interface first, and the VoIP phone is displayed after the instant messaging application is started.
  • the request takes the VoIP phone in the WeChat application as an example.
  • FIG. 1A the push notification interface when there is a voice invitation, as shown in FIG. 1B, when the user clicks on the WeChat application, the message shown in FIG. 1C appears.
  • Internet phone interface As shown in FIG. 1A, the push notification interface when there is a voice invitation, as shown in FIG. 1B, when the user clicks on the WeChat application, the message shown in FIG. 1C appears. Internet phone interface.
  • VoIP calls provide users with incoming calls, which will undoubtedly miss important VoIP calls.
  • the embodiment of the present application provides a VoIP processing method, which can perform the VoIP and the system call. Integration, so that the VoIP and the system phone have the same priority, and the VoIP call notification method is the same as the system phone, effectively avoiding the omission of important VoIP calls.
  • the embodiment of the present application also provides a corresponding terminal.
  • a first aspect of the present application provides a method for processing a network phone, including:
  • the terminal receives a network telephone call request sent by the server;
  • the terminal compiles the network telephone call request by using a network telephone module to obtain a call packet package of a target format, where the target format is a format that can be recognized by the telephone toolkit framework module in the terminal;
  • the terminal After the terminal identifies that the call encapsulation packet includes a call instruction, the terminal transmits the call encapsulation package to the operating system module by using the first telephony kit module;
  • the terminal displays the network phone in a display form of a system phone on the display interface according to the incoming call package package delivered to the operating system module.
  • the terminal receives, by using the operating system module, an operation instruction for the network phone call request, where the operation instruction is transmitted by the operating system module to the First telephone kit module;
  • the terminal interprets the operation instruction by using the first telephony toolkit module to obtain a first engine instruction recognizable by the network telephony module, the first engine instruction being used by the first telephony tool a packet module is delivered to the network telephony module;
  • the terminal parses the first engine instruction by using the network telephony module to obtain a network call response corresponding to the network telephony call request;
  • the terminal sends the network call response to the server.
  • the method further includes: before the sending the network call response to the server, when the operation instruction is an operation operation instruction, the method further includes:
  • the terminal initiates a call device for a network call.
  • the method further includes:
  • the terminal compiles the operation instruction for the network phone by using the network phone module to obtain an operation package package of the target format
  • the terminal interprets the operation package by using the first telephony kit module to obtain a second engine instruction that can be recognized by the network telephony module, and the second engine instruction is used by the first phone a toolkit module is passed to the network telephony module;
  • the terminal parses the second engine instruction by the network telephony module to obtain an operation response corresponding to the operation instruction for the network phone.
  • the method further includes:
  • the terminal turns off the communication device for the network call.
  • the method further includes:
  • the terminal After the network call ends, the terminal writes a call record corresponding to the current network call to the system call record through the phone toolkit framework module, and the call record includes call record identification information.
  • the call record identification information is the identity information VID of the call partner, when the current network call is When the group is in a call, the call record identification information is a group identifier GroupID.
  • the method further includes:
  • the terminal reads the call record identification information in the call record corresponding to the callback operation by using the network phone module;
  • the terminal initiates a callback call request by using the network telephony module, where the callback call request includes the call record identification information, and the callback call request is transmitted according to a callback path, where the callback path includes
  • the network telephony module begins, passes through a second telephony kit module in the telephony kit framework module to the operating system module to the first telephony kit module, and finally transmits back to the network telephony module;
  • the terminal generates a network telephone callback request packet by using a network telephone module, where the network telephone callback request packet includes call record identification information corresponding to the callback operation;
  • the terminal sends the network telephone callback request packet to the server.
  • a second aspect of the present application provides a terminal, including:
  • a receiving module configured to receive a network phone call request sent by the server
  • a network telephony module configured to compile the network telephony call request received by the receiving module to obtain a call encapsulation package in a target format, where the target format is a format recognized by the telephony toolkit framework module in the terminal ;
  • a first telephony kit module configured to receive the incoming call encapsulation packet delivered by the network telephony module, and identify the incoming call encapsulation packet, and after identifying the incoming call encapsulation packet, being a call instruction, to the terminal
  • the operating system module delivers the incoming call package, and the first telephone kit module belongs to a telephone kit framework module;
  • An operating system module configured to receive the incoming call package packet delivered by the first telephony toolkit module
  • a display module configured to display the network phone in a display form of the system phone on the display interface of the terminal according to the incoming call package package delivered to the operating system module.
  • the terminal further includes a sending module
  • the operating system module is further configured to receive an operation instruction for the network phone call request, where the operation instruction is transmitted by the operating system module to the first phone toolkit module;
  • the first telephony kit module is further configured to interpret the operation instruction to obtain a first engine instruction recognizable by the network telephony module, where the first engine instruction is used by the first telephony tool a packet module is delivered to the network telephony module;
  • the network telephony module is further configured to parse the first engine instruction to obtain a network call response corresponding to the network telephony call request;
  • the sending module is configured to send, to the server, the network call response generated by the network telephony module.
  • the network telephony module is further configured to: when the operation instruction is an operation command, start a communication device for a network call in the terminal.
  • the terminal further includes a second telephony kit module
  • the receiving module is further configured to receive an operation instruction for the network phone on an operation interface of the instant messaging application;
  • the network telephony module is further configured to compile the operation instruction for the network phone to obtain an operation package of the target format
  • the second telephony kit module is configured to pass the operation encapsulation package to the operating system module, and the operation encapsulation package is delivered by the operating system module to the first telephony kit module,
  • the second telephony kit module belongs to the telephony kit framework module;
  • the first telephony kit module is further configured to interpret the operation encapsulation package delivered by the operating system module to obtain a second engine instruction that is recognized by the network telephony module, the second engine instruction Passed by the first telephony kit module to the network telephony module;
  • the network telephony module is further configured to parse the second engine instruction to obtain an operation response corresponding to the operation instruction for the network phone.
  • the network telephony module is further configured to: when the operation instruction to the network phone is an hang up command, close the call in the terminal for a network call device.
  • the telephony toolkit framework module is configured to write a call record corresponding to the current network call to a system call record after the end of the network call
  • the call record includes call record identification information.
  • the receiving module is further configured to receive a callback operation for the call record in a system call record;
  • the network telephony module is further configured to read the call record identification information in the call record corresponding to the callback operation, and initiate a callback call request, where the callback call request includes the call record identification information,
  • the callback call request is delivered in accordance with a callback path, the callback path starting from the network telephony module, via the second telephony kit module in the telephony kit framework module to the operating system module Go to the first telephony kit module and finally transmit back to the network telephony module;
  • the network telephony module is further configured to generate a network telephony callback request packet, where the network telephony callback request packet includes call record identification information corresponding to the callback operation;
  • the sending module is further configured to send the network telephony callback request packet to the server.
  • a third aspect of the present application provides a processing server, the processing server including a processor and a memory:
  • the memory is configured to store program code and transmit the program code to the processor
  • the processor is operative to perform the method of network telephony processing according to any one of the first aspects of the present application in accordance with the instructions in the program code.
  • a fourth aspect of the present application provides a storage medium for storing a program code for performing the method of network telephony processing according to any one of the first aspects of the present application.
  • a fourth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of network telephony processing according to any of the first aspects of the present application.
  • the method of VoIP processing provided by the embodiment of the present application can be used to compare the VoIP call to the VoIP call.
  • the integration makes the VoIP and the system phone have the same priority, and the VoIP call notification method is the same as the system phone, which effectively avoids missing important VoIP calls.
  • FIG. 1A is a schematic diagram of a notification interface of a network telephone call in a current instant messaging application
  • FIG. 1B is a schematic diagram of another notification interface of a network telephone call in a current instant messaging application
  • 1C is a schematic diagram of an operation interface of a network telephone call in a current instant messaging application
  • FIG. 2 is a schematic diagram of an example of a system for establishing a network telephone communication connection
  • FIG. 3 is a schematic structural diagram of a terminal in an embodiment of the present application.
  • FIG. 4A is a schematic diagram of an embodiment of a method for processing a network telephone according to an embodiment of the present application
  • 4B is a schematic diagram of a display interface of a network phone in the embodiment of the present application.
  • 4C is a schematic diagram of another display interface of the network phone in the embodiment of the present application.
  • 4D is a schematic diagram of another display interface of the network phone in the embodiment of the present application.
  • FIG. 5A is a schematic diagram of another embodiment of a method for processing a network telephone according to an embodiment of the present application.
  • FIG. 5B is a schematic diagram of another display interface of the network phone in the embodiment of the present application.
  • 5C is a schematic diagram of another display interface of the network phone in the embodiment of the present application.
  • 6A is a schematic diagram of another embodiment of a method for processing a network telephone in an embodiment of the present application.
  • 6B is a schematic diagram of another display interface of the network phone in the embodiment of the present application.
  • 6C is a schematic diagram of another display interface of the network phone in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of another embodiment of a method for processing a network telephone in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an embodiment of a terminal in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application.
  • the embodiment of the present application provides a method for processing a network phone, which can integrate the network phone with the system phone, so that the network phone and the system phone have the same priority, and the incoming call notification mode of the network phone is the same as the system phone, effectively avoiding Missing important VoIP calls.
  • the embodiment of the present application also provides a corresponding terminal. The details are described below separately.
  • An Internet phone is an audio call or video call made through an instant messaging application.
  • a system telephone is a call made through an inherent telephone network, such as a telephone that is accessed or called out through a communication network such as mobile, China Unicom, or telecommunications.
  • the information between the terminals using the VoIP call is relayed by the server of the corresponding instant messaging application, that is, the terminal that initiated the call sends the VoIP call request to the corresponding server, and the server sends the call to the called terminal.
  • the terminal 10A that initiates the network telephone call request transmits a network telephone call request to the server 30 via the network 20, and the server 30 forwards the network call request to the terminal 10B, and the terminal 10B according to the user's answering instruction or rejection instruction,
  • the server returns a network call answering response, and the server 30 establishes a call connection according to the answer response, or cancels the call connection.
  • the terminal provided in the embodiment of the present application shown in FIG. 2, as shown in FIG. 3, includes a network telephone (VoIP) module, a telephone kit, a CallKit framework module, and an operating system module.
  • VoIP network telephone
  • the VoIP module can be a module for implementing various instant messaging applications for network calls, such as a WeChat VoIP module.
  • a WeChat VoIP module can be a module for implementing various instant messaging applications for network calls, such as a WeChat VoIP module.
  • the enterprise WeChat is taken as an example.
  • other instant messaging softwares are within the scope of the present application as long as they can implement the functions of the present application.
  • the telephony kit framework module includes a first telephony kit module and a second telephony kit module, wherein the telephony kit framework module can be a VoIP telephony kit framework developed by Apple, and the first telephony kit module can be a VoIP telephony tool.
  • the CXProvider in the package framework, the second telephony toolkit module can be the CXcallController in the phone toolkit framework.
  • the VoIP Telephony Toolkit module which refers to the module used to support VoIP functions in the Apple Telephony Toolkit framework, can support VoIP.
  • CXProvider VoIP phone kit module
  • VoIP phone kit module is used to process the display of the system interface, and to handle the user's operation on the system interface, such as the user clicks on the system interface to hang up, answer, mute and other system buttons.
  • CXCallController used to manage user operations on the APP interface.
  • the operating system module can be IOS 10, and other operating systems that can support the network telephone call function in the embodiments of the present application.
  • the network telephone module can communicate with the telephone toolkit framework module, and integrate the network telephone module with the operating system module through the telephone toolkit framework module, so that the network telephone can be transmitted to the operating system module to system telephone.
  • the form of the show is
  • an embodiment of a method for processing a network telephone provided by an embodiment of the present application includes:
  • the call encapsulation packet is delivered to an operating system module in the terminal.
  • the network phone is displayed in the form of a system phone on the display interface. It can be understood by referring to FIG. 4B to FIG. 4D, as shown in FIG. 4B, and FIG. 4B is the interface of the network phone call when the terminal is in the non-lock screen state, which can be viewed from FIG. 4B. It can be seen that the employee of the company A, Judy, has sent a video call request. Of course, the video call request is an example. In fact, the VoIP call request may be a video call request or an audio call request. This is not specifically limited. The called user can answer by clicking the "Accept" button, or can reject the call request by clicking the "Reject" button.
  • FIG. 4C is an interface of the VoIP call when the called terminal is in the lock screen state.
  • the employee Judy of Company A sends a video call request, and the called user can pass the message. Slide the "slide answer button" to answer the call.
  • FIG. 4B and FIG. 4C are schematic diagrams of a mobile phone interface.
  • the solution of the embodiment of the present application is also applicable to a personal computer (Personal, PC).
  • PC Personal computer
  • FIG. 4D the PC can be installed on the PC.
  • Enterprise WeChat allows network calls to be made on a PC when a VoIP call request is made.
  • the priority of the network telephone is lower than that of the system telephone, and the incoming call reminding method misses the important VoIP call.
  • the embodiment of the present application provides a method for processing the network telephone, and the network telephone and the system can be used.
  • the phone is integrated so that the VoIP has the same priority as the system phone, and the VoIP call notification method is the same as that of the system phone, effectively avoiding the omission of important VoIP calls.
  • the answering or rejecting process in the method for processing a network phone includes:
  • the operational command for the VoIP call request includes an answer operation command or a reject operation command.
  • the operating system module delivers the operation instruction to the first telephony kit module.
  • the first telephony kit module delivers the first engine command to the network telephony module.
  • the step 206 further includes: starting a communication device for the network call in the terminal.
  • the communication device used for the network call may include a camera, a recording device, a microphone, a speaker, and the like.
  • FIG. 5B When the user clicks on the answering operation command, as shown in FIG. 5B, a video call is being displayed on the display interface with the employee Judy of the company A, and the call has been made for 18 seconds, and the video in the video interface is not shown in FIG. 5B.
  • Content but should not be construed as a limitation of the inability to display video content.
  • the user can click the "hang up" button to hang up the call.
  • a system call is made during the network call, as shown in FIG. 5C, when the network call is made, the system call is from Chengdu/Meishan/Ziyang, Sichuan system phone 028-
  • the current network phone is not cut off, but the interface shown in FIG. 5C is displayed, and the user decides whether to end the current network call to answer the system call or reject the current system. phone.
  • the priority of the network phone and the priority of the system phone are the same, and the system phone does not affect the network phone, thereby improving the user experience.
  • another embodiment of the method for processing the network phone provided by the embodiment of the present application includes:
  • the operation instruction may be a hang up instruction after the end of the call, or an initiation instruction when a network call request is initiated.
  • the operating system module delivers the operation package to the first telephony kit module.
  • the operating package package is interpreted by the first telephony toolkit module to obtain a second engine instruction that is recognized by the network telephony module.
  • the first telephony kit module delivers the second engine instruction to the network telephony module.
  • the method when the operation instruction for the network phone is an hang up instruction, the method further includes: closing the communication device for the network call in the terminal.
  • the call record corresponding to the current network phone is written to the system call record by the phone toolkit framework module, and the call record includes call record identification information.
  • the bill interface shown in FIG. 6B is generated. As shown in FIG. 6B, information such as the time of the outgoing call or the incoming call, the duration of the call, and the like are displayed.
  • the call record of the network phone is also written into the system call record.
  • the call record includes fields such as the name of the call record, the duration of the call, the type of the call, and the identity information of the other party.
  • the call record identification information is the identity identification information VID of the call partner, and when the current network call is a group call, the call record identification information is a group. Identifies the GroupID.
  • VoIP calls are divided into 1-to-1 single-person audio and video calls, as well as multi-person VoIP calls.
  • Enterprise WeChat is divided into a single call record and a multi-person call record according to the number of calls. Since the user will initiate a new VoIP call from the system call record at any time in the future, we use the identity identification information of the other party to store the identification information that can represent the call, which can be called the call record identification information.
  • the information that can be written by the single call record includes: the name of the other party, the company, the type of the call and the duration of the call, and the duration of the call.
  • VID For the single call record identification information, write the VID of the other party. Every user who uses Enterprise WeChat will be assigned a VID. When VoIP is initiated, as long as it has the VID of the other party, it can initiate a VoIP audio and video call to the other party.
  • the information that can be written by the multi-person call record includes: the originator of the call, the company, the number of members of the call, the type of the call audio, and the duration of the call.
  • the GroupID of the call is written.
  • all members When making a multi-person call, all members will enter a room assigned in the background, and the ID of the room is the GroupID.
  • the terminal can query the member information in the current room in real time, and whether the call has ended.
  • the terminal When a call is initiated from the system multi-person call record, the terminal will take the GroupID, apply to join the room in the background (the call is not over), or reactivate the room (the call has ended).
  • the callback can be directly performed in the system call record.
  • another embodiment of the method for processing network telephony provided by the embodiment of the present application includes:
  • the callback request is initiated by the network telephony module, where the callback call request includes the call record identification information, and the callback call request is transmitted according to a callback path, where the callback path includes
  • the network telephony module begins, passes through the second telephony kit module in the telephony kit framework module to the operating system module to the first telephony kit module, and finally transmits back to the network telephony module;
  • the VoIP module reads the call record identification information (single person: VID, multi-person: GroupID).
  • the APP initiates a VoIP call request and notifies the IOS system through the CXCallController.
  • the IOS system accepts the call initiation request and feeds back to the VoIP module through the CXProvider to establish a VoIP call.
  • the VoIP module generates a VoIP request packet, and encapsulates the VID or GroupID information into the packet, sends it to the server, and starts a formal VoIP call.
  • the process described above is a process of implementing callback through call records, so that the user does not need to initiate the callback after launching the APP, thereby improving the efficiency of the network call.
  • the answering interface of the VoIP phone and the system phone are consistent, and even in the lock screen interface, the network phone can be answered. Improve the permissions of the VoIP phone to avoid being interrupted by the system call during the VoIP call.
  • a network call record can be formed in the system, and the user can directly initiate a VoIP call from the system dialed call record.
  • an embodiment of the terminal 50 provided by the embodiment of the present application includes:
  • the receiving module 501 is configured to receive a network phone call request sent by the server;
  • the network telephony module 502 is configured to compile the network telephony call request received by the receiving module 501 to obtain a call encapsulation package in a target format, where the target format is recognized by the telephony toolkit framework module in the terminal. Format
  • the first telephony kit module 503 is configured to receive the incoming call encapsulation packet delivered by the network telephony module 502, and identify the incoming call encapsulation packet, and after identifying the incoming call encapsulation packet, being a call instruction, to the
  • the operating system module in the terminal delivers the incoming call package, and the first telephone toolkit module belongs to a telephone toolkit framework module;
  • An operating system module 504 configured to receive the incoming call package delivered by the first telephony kit module 503;
  • the display module 505 is configured to display the network phone in a display form of the system phone on the display interface of the terminal according to the incoming call package package delivered to the operating system module 504.
  • the terminal provided by the embodiment of the present application can integrate the network telephone with the system telephone, and the call reminder method may miss the important VoIP call.
  • the VoIP phone has the same priority as the system phone, and the VoIP call notification method is the same as the system phone, which effectively avoids missing important VoIP calls.
  • the terminal 50 further includes a sending module 506.
  • the operating system module 504 is further configured to receive an operation instruction for the network phone call request, where the operation instruction is transmitted by the operating system module to the first phone toolkit module;
  • the first telephony kit module 503 is further configured to interpret the operation instruction to obtain a first engine instruction that is recognized by the network telephony module, where the first engine instruction is used by the first phone a toolkit module is passed to the network telephony module;
  • the network telephony module 502 is further configured to parse the first engine instruction to obtain a network call response corresponding to the network telephony call request;
  • the sending module 506 is configured to send the network call response generated by the network telephony module 502 to the server.
  • the network telephony module 502 is further configured to: when the operation instruction is an operation command, start a communication device for a network call in the terminal.
  • the terminal 50 further includes a second telephony kit module 507.
  • the receiving module 501 is further configured to receive an operation instruction for the network phone on an operation interface of the instant messaging application;
  • the network telephony module 502 is further configured to compile the operation instruction for the network phone to obtain an operation package of the target format;
  • the second telephony toolkit module 507 is configured to deliver the operation encapsulation package to the operating system module, and the operation encapsulation package is delivered by the operating system module 504 to the first telephony toolkit module.
  • the second telephony kit module belongs to the telephony kit framework module 510;
  • the first telephony kit module 503 is further configured to interpret the operation encapsulation package delivered by the operating system module to obtain a second engine instruction that is recognized by the network telephony module, the second engine An instruction is transmitted to the network telephony module by the first telephony kit module;
  • the network telephony module 502 is further configured to parse the second engine instruction to obtain an operation response corresponding to the operation instruction for the network phone.
  • the network phone module 502 is further configured to: when the operation instruction to the network phone is an hang up command, turn off the communication device for the network call in the terminal.
  • the phone kit framework module 510 is configured to write a call record corresponding to the current network call to the system call record when the network call ends, the call record includes a call record. Identification information.
  • the receiving module 501 is further configured to receive a callback operation for the call record in a system call record;
  • the network telephony module 502 is further configured to read the call record identification information in the call record corresponding to the callback operation, and initiate a callback call request, where the callback call request includes the call record identification information Retrieving the callback request in accordance with a callback path comprising starting from the network telephony module via a second telephony kit module in the telephony kit framework module to the operating system module And then to the first telephony kit module, and finally transmitted back to the network telephony module;
  • the network telephony module 502 is further configured to generate a network telephony callback request packet, where the network telephony callback request packet includes call record identification information corresponding to the callback operation;
  • the sending module 506 is further configured to send the network telephony callback request packet to the server.
  • the terminal provided by the embodiment of the present application may be a terminal such as a mobile phone, a tablet computer, or a PC.
  • a terminal such as a mobile phone, a tablet computer, or a PC.
  • the following uses a mobile phone as an example to describe the process of the network telephone processing in the embodiment of the present application.
  • FIG. 11 is a block diagram showing a partial structure of a mobile terminal 800 provided by an embodiment of the present application.
  • the mobile terminal includes components such as a camera 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a WiFi module 870, a processor 880, and a power source 890.
  • the mobile terminal structure shown in FIG. 11 does not constitute a limitation of the mobile terminal, and may include more or less components than those illustrated, or combine some components, or different component arrangements.
  • the camera 810 can be used for image acquisition, and the user image is captured during a video call.
  • the memory 820 can be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the mobile terminal by running software programs and modules stored in the memory 820.
  • the memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile terminal (such as audio data, phone book, etc.).
  • memory 820 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 830 can be configured to receive an operation instruction of the user, such as answering or rejecting, and generating a key signal input related to user setting and function control of the mobile terminal 800.
  • the input unit 830 may include a touch panel 831 and other input devices 832.
  • the touch panel 831 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 831 or near the touch panel 831. Operation), and according to a preset program to drive the corresponding connection to the mobile terminal.
  • the touch panel 831 can include two parts: a touch detection mobile terminal and a touch controller.
  • the touch detection mobile terminal detects a touch orientation of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection mobile terminal, and converts the touch information into contact coordinates. And then sent to the processor 880, and can receive the command sent by the processor 880 and execute it.
  • the touch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 830 may also include other input devices 832.
  • other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 840 can be used to display an incoming call interface.
  • the display unit 840 can include an indicator light 841.
  • the indicator light 841 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 831 can cover the indicator light 841. When the touch panel 831 detects a touch operation on or near the touch panel 831, it transmits to the processor 880 to determine the type of the touch event, and then the processor 880 according to the touch event. The type provides a corresponding visual output on the indicator light 841.
  • the touch panel 831 and the indicator light 841 function as two independent components to implement the input and input functions of the mobile terminal, in some embodiments, the touch panel 831 can be integrated with the indicator light 841. And realize the input and output functions of the mobile terminal.
  • Mobile terminal 800 can also include at least one type of sensor 850.
  • An audio circuit 860, a speaker 861, and a microphone 862 can provide an audio interface between the user and the mobile terminal.
  • the audio circuit 860 can transmit the converted electrical data of the received audio data to the speaker 861 for conversion to the sound signal output by the speaker 861; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal by the audio circuit 860. After receiving, it is converted into audio data, and then processed by the audio data output processor 880, transmitted to the mobile terminal 810 via the camera 810, or outputted to the memory 820 for further processing.
  • the WiFi module 870 can be used for communication.
  • Processor 880 is the control center of the mobile terminal, connecting various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in memory 820, and recalling data stored in memory 820.
  • the mobile terminal performs various functions and processing data to perform overall monitoring on the mobile terminal.
  • the processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 880.
  • the mobile terminal 800 also includes a power source 890 (such as a battery) for powering various components.
  • a power source 890 such as a battery
  • the power source can be logically coupled to the processor 880 through a power management system to manage functions such as charging, discharging, and power management through the power management system. .
  • the mobile terminal 800 may further include a radio frequency (RF) circuit, a Bluetooth module, and the like, and details are not described herein.
  • RF radio frequency
  • the processor 880 included in the processing of the network telephone has the following functions:
  • the call encapsulation packet is delivered to an operating system module in the terminal;
  • the method further includes:
  • the network call response is sent to the server.
  • the method further includes: before the sending the network call response to the server, when the operation instruction is an operation operation instruction, the method further includes:
  • a call device for a network call in the terminal is activated.
  • the method further includes:
  • the second engine instruction is parsed by the network telephony module to obtain an operation response corresponding to the operation instruction for the network phone.
  • the method further includes:
  • the communication device for the network call in the terminal is closed.
  • the method further includes:
  • the call record corresponding to the current network call is written to the system call record by the phone kit framework module, and the call record includes call record identification information.
  • the call record identification information is the identity identification information VID of the call partner, and when the current network call is a group call, the call record identifier The information is the group ID GroupID.
  • the method further includes:
  • the mobile phone provided by the embodiment of the present application can be understood by referring to the related description of the terminal in FIG. 2 to FIG. 10, and details are not repeatedly described herein.
  • the embodiment of the present application further provides a storage medium for storing program code for performing any one of the methods of network telephony processing described in the foregoing embodiments.
  • the embodiment of the present application further provides a computer program product comprising instructions, when executed on a computer, causing the computer to perform any one of the methods of network telephony processing described in the foregoing various embodiments.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • wire eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
  • the program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, disk or CD.

Landscapes

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

Abstract

本申请公开了一种网络电话处理的方法,包括:接收服务器发送的网络电话呼叫请求;通过终端中的网络电话模块对网络电话呼叫请求进行编译,以得到目标格式的来电封装包,通过网络电话模块将来电封装包传递给电话工具包框架模块中的第一电话工具包模块,来电封装包被第一电话工具包模块传递给终端中的操作系统模块;根据传递到操作系统模块中的来电封装包,在终端的展示界面上以系统电话的展示形式展示网络电话。本申请实施例提供的网络电话处理的方法,可以将网络电话与系统电话进行整合,从而使网络电话与系统电话具有相同的优先级,而且网络电话的来电通知方式与系统电话相同,有效避免了遗漏重要VoIP来电。本申请还公开了一种网络电话处理的终端。

Description

网络电话处理的方法及终端
本申请要求于2017年04月27日提交中国专利局、申请号为201710288887.2、发明名称为“一种网络电话处理的方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及互联网技术领域,具体涉及网络电话处理。
背景技术
网络电话(Voice over Internet Protocol,VoIP)就是将模拟信号数字化,以数据封包(Data Packet)的形式在IP网络上做实时传递,当前主要指网络音视频通话,如:即时通讯应用中的音频通话或者视频通话都属于网络电话。
系统电话是指通过移动、联通或者电信等通信网络所接入或者呼出的电话。网络电话的优先级没有系统电话的优先级高,当正在进行网络电话时,若有系统电话呼入,会中断当前的网络电话,优先处理系统电话。网络电话的通知方式也不同于系统电话,网络电话是采用推送(push)通知的方式,即时通讯应用未启动时,先在界面上展示通知横幅,即时通讯应用启动后,才会展示有网络电话请求,例如:以微信应用中的网络电话为例,如图1A所示,为有语音邀请时的推送通知界面,如图1B所示,用户点击微信应用,才会出现如图1C所示的网络电话界面。
随着互联网的快速发展,用户对网络电话的依赖度越来越高,很多信息都是通过即时通讯应用来完成,目前这种网络电话提供用户来电的方式,无疑会遗漏重要VoIP来电。
发明内容
为了解决当前即时通讯应用中的网络电话优先级低于系统电话,而且来电提醒方式会遗漏重要VoIP来电的问题,本申请实施例提供一种网络电话处理的方法,可以将网络电话与系统电话进行整合,从而使网络电话与系统电话具有相同的优先级,而且网络电话的来电通知方式与系统电话相同,有效避免了遗漏重要VoIP来电。本申请实施例还提供了相应的终端。
本申请第一方面提供一种网络电话处理的方法,包括:
终端接收服务器发送的网络电话呼叫请求;
所述终端通过网络电话模块对所述网络电话呼叫请求进行编译,以得到目标格式的来电封装包,所述目标格式为所述终端中电话工具包框架模块所能识别的格式;
所述终端通过所述网络电话模块将所述来电封装包传递给所述电话工具包框架模块中的第一电话工具包模块;
所述终端通过所述第一电话工具包模块识别出所述来电封装包中包括呼叫指令后,将所述来电封装包传递给操作系统模块;
所述终端根据传递到所述操作系统模块中的来电封装包,在展示界面上以系统电话的展示形式展示所述网络电话。
在本申请第一方面的一种可能的实现方式中,所述终端通过所述操作系统模块接收针对所述网络电话呼叫请求的操作指令,所述操作指令被所述操作系统模块传递给所述第一电话工具包模块;
所述终端通过所述第一电话工具包模块对所述操作指令进行解译,以得到所述网络电话模块所能识别的第一引擎指令,所述第一引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
所述终端通过所述网络电话模块解析所述第一引擎指令,以得到与所述网络电话呼叫请求对应的网络呼叫响应;
所述终端向所述服务器发送所述网络呼叫响应。
在本申请第一方面的一种可能的实现方式中,当所述操作指令为接听操作指令时,所述向所述服务器发送所述网络呼叫响应之前,所述方法还包括:
所述终端启动用于网络通话的通话设备。
在本申请第一方面的一种可能的实现方式中,在本申请第一方面的一种可能的实现方式中,所述方法还包括:
所述终端接收在即时通讯应用的操作界面上对所述网络电话的操作指令;
所述终端通过所述网络电话模块将所述对网络电话的操作指令进行编译,以得到所述目标格式的操作封装包;
所述终端通过所述电话工具包框架模块中的第二电话工具包模块将所述操作封装包传递给所述操作系统模块,所述操作封装包被所述操作系统模块传递给所述第一电话工具包模块;
所述终端通过所述第一电话工具包模块对所述操作封装包进行解译,以得到所述网络电话模块所能识别的第二引擎指令,所述第二引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
所述终端通过所述网络电话模块解析所述第二引擎指令,以得到与所述对网络电话的操作指令对应的操作响应。
在本申请第一方面的一种可能的实现方式中,当所述对网络电话的操作指令为挂断指令时,所述方法还包括:
所述终端关闭用于网络通话的通话设备。
在本申请第一方面的一种可能的实现方式中,所述方法还包括:
当本次网络电话结束后,所述终端通过所述电话工具包框架模块向系统通话记录写入与所述本次网络电话对应的通话记录,所述通话记录包括通话记录标识信息。
在本申请第一方面的一种可能的实现方式中,当所述本次网络电话为单人通话时,所述通话记录标识信息为通话对方的身份标识信息VID,当所述本次网络电话为群组通话时,所述通话记录标识信息为群组标识GroupID。
在本申请第一方面的一种可能的实现方式中,所述方法还包括:
所述终端接收在系统通话记录中针对所述通话记录的回拨操作;
所述终端通过所述网络电话模块读取所述回拨操作所对应的通话记录中的通话记录标识信息;
所述终端通过所述网络电话模块发起回拨呼叫请求,所述回拨呼叫请求中包括所述通话记录标识信息,所述回拨呼叫请求按照回拨路径进行传递,所述回拨路径包括从所述网络电话模块开始,经所述电话工具包框架模块中的第二电话工具包模块到所述操作系统模块再到所述第一电话工具包模块,最后传输回所述网络电话模块;
所述终端通过网络电话模块生成网络电话回拨请求包,所述网络电话回拨请求包中包括所述回拨操作对应的通话记录标识信息;
所述终端向所述服务器发送所述网络电话回拨请求包。
本申请第二方面提供一种终端,包括:
接收模块,用于接收服务器发送的网络电话呼叫请求;
网络电话模块,用于对所述接收模块接收的所述网络电话呼叫请求进行编译,以得到目标格式的来电封装包,所述目标格式为所述终端中电话工具包框架模块所能识别的格 式;
第一电话工具包模块,用于接收所述网络电话模块传递来的所述来电封装包,并识别所述来电封装包,当识别所述来电封装包,是呼叫指令后,向所述终端中的操作系统模块传递所述来电封装包,所述第一电话工具包模块属于电话工具包框架模块;
操作系统模块,用于接收所述第一电话工具包模块传递来的所述来电封装包;
展示模块,用于根据传递到所述操作系统模块中的来电封装包,在所述终端的展示界面上以系统电话的展示形式展示所述网络电话。
在本申请第二方面的一种可能的实现方式中,所述终端还包括发送模块,
所述操作系统模块,还用于接收针对所述网络电话呼叫请求的操作指令,所述操作指令被所述操作系统模块传递给所述第一电话工具包模块;
所述第一电话工具包模块,还用于对所述操作指令进行解译,以得到所述网络电话模块所能识别的第一引擎指令,所述第一引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
所述网络电话模块,还用于解析所述第一引擎指令,以得到与所述网络电话呼叫请求对应的网络呼叫响应;
所述发送模块,用于向所述服务器发送所述网络电话模块生成的所述网络呼叫响应。
在本申请第二方面的一种可能的实现方式中,所述网络电话模块,还用于当所述操作指令为接听操作指令时,启动所述终端中用于网络通话的通话设备。
在本申请第二方面的一种可能的实现方式中,所述终端还包括第二电话工具包模块,
所述接收模块,还用于接收在即时通讯应用的操作界面上对所述网络电话的操作指令;
所述网络电话模块,还用于将所述对网络电话的操作指令进行编译,以得到所述目标格式的操作封装包;
所述第二电话工具包模块,用于将所述操作封装包传递给所述操作系统模块,所述操作封装包被所述操作系统模块传递给所述第一电话工具包模块,所述第二电话工具包模块属于所述电话工具包框架模块;
所述第一电话工具包模块,还用于对所述操作系统模块传递来的操作封装包进行解译,以得到所述网络电话模块所能识别的第二引擎指令,所述第二引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
所述网络电话模块,还用于解析所述第二引擎指令,以得到与所述对网络电话的操作指令对应的操作响应。
在本申请第二方面的一种可能的实现方式中,所述网络电话模块,还用于当所述对网络电话的操作指令为挂断指令时,关闭所述终端中用于网络通话的通话设备。
在本申请第二方面的一种可能的实现方式中,所述电话工具包框架模块,用于当本次网络电话结束后,向系统通话记录写入与所述本次网络电话对应的通话记录,所述通话记录包括通话记录标识信息。
在本申请第二方面的一种可能的实现方式中,所述接收模块,还用于接收在系统通话记录中针对所述通话记录的回拨操作;
所述网络电话模块,还用于读取所述回拨操作所对应的通话记录中的通话记录标识信息,并发起回拨呼叫请求,所述回拨呼叫请求中包括所述通话记录标识信息,所述回拨呼叫请求按照回拨路径进行传递,所述回拨路径包括从所述网络电话模块开始,经所述电话工具包框架模块中的第二电话工具包模块到所述操作系统模块再到所述第一电话工具包模块,最后传输回所述网络电话模块;
所述网络电话模块,还用于生成网络电话回拨请求包,所述网络电话回拨请求包中包括所述回拨操作对应的通话记录标识信息;
所述发送模块,还用于向所述服务器发送所述网络电话回拨请求包。
本申请第三方面提供一种处理服务器,所述处理服务器包括处理器以及存储器:
所述存储器用于存储程序代码,并将所述程序代码传输给所述处理器;
所述处理器用于根据所述程序代码中的指令执行本申请第一方面中任一项所述的网络电话处理的方法。
本申请第四方面提供一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行本申请第一方面中任一项所述的网络电话处理的方法。
本申请第四方面提供一种包括指令的计算机程序产品,当其在计算机上运行时,使得所述计算机执行本申请第一方面中任一项所述的网络电话处理的方法。
与现有技术中即时通讯应用中的网络电话优先级低于系统电话,而且来电提醒方式会遗漏重要VoIP来电相比,本申请实施例提供的网络电话处理的方法,可以将网络电话与系统电话进行整合,从而使网络电话与系统电话具有相同的优先级,而且网络电话的来电通知方式与系统电话相同,有效避免了遗漏重要VoIP来电。
附图说明
图1A是当前即时通讯应用中有网络电话呼入的一通知界面示意图;
图1B是当前即时通讯应用中有网络电话呼入的另一通知界面示意图;
图1C是当前即时通讯应用中有网络电话呼入的一操作界面示意图;
图2是建立网络电话通信连接的一系统示例示意图;
图3是本申请实施例中终端的一结构示意图;
图4A是本申请实施例中网络电话处理的方法的一实施例示意图;
图4B是本申请实施例中网络电话的一展示界面示意图;
图4C是本申请实施例中网络电话的另一展示界面示意图;
图4D是本申请实施例中网络电话的另一展示界面示意图;
图5A是本申请实施例中网络电话处理的方法的另一实施例示意图;
图5B是本申请实施例中网络电话的另一展示界面示意图;
图5C是本申请实施例中网络电话的另一展示界面示意图;
图6A是本申请实施例中网络电话处理的方法的另一实施例示意图;
图6B是本申请实施例中网络电话的另一展示界面示意图;
图6C是本申请实施例中网络电话的另一展示界面示意图;
图7是本申请实施例中网络电话处理的方法的另一实施例示意图;
图8是本申请实施例中终端的一实施例示意图;
图9是本申请实施例中终端的另一实施例示意图;
图10是本申请实施例中终端的另一实施例示意图;
图11是本申请实施例中终端的另一实施例示意图。
具体实施方式
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
本申请实施例提供一种网络电话处理的方法,可以将网络电话与系统电话进行整合,从而使网络电话与系统电话具有相同的优先级,而且网络电话的来电通知方式与系统电话 相同,有效避免了遗漏重要VoIP来电。本申请实施例还提供了相应的终端。以下分别进行详细说明。
网络电话就是指通过即时通讯应用所进行的音频通话或者视频通话。
系统电话就是通过固有的电话网络所进行的通话,如:通过移动、联通或者电信等通信网络所接入或者呼出的电话。
使用网络电话进行通话的终端之间的信息都是由相应即时通讯应用的服务器进行中转的,也就是说发起通话的终端将网络电话呼叫请求发送到对应的服务器,服务器再发送给被呼叫终端。如图2所示,发起网络电话呼叫请求的终端10A通过网络20向服务器30发送网络电话呼叫请求,服务器30将该网络呼叫请求转发给终端10B,终端10B根据用户的接听指示或者拒绝指示,向服务器返回网络电话接听响应,服务器30再根据该接听响应建立通话连接,或者取消通话连接。
图2所示的本申请实施例所提供的终端,如图3所示,包括网络电话(VoIP)模块,电话工具包CallKit框架模块和操作系统模块。
该网络电话模块可以是能实现网络通话的各种即时通讯应用的模块,例如:微信网络电话模块。本申请多个实施例中都以企业微信为例进行的说明,实际上其他即时通讯软件只要能实现本申请的功能,都属于本申请思想的范围。
电话工具包框架模块包括第一电话工具包模块和第二电话工具包模块,其中,电话工具包框架模块可以为苹果公司开发的VoIP电话工具包框架,第一电话工具包模块可以为VoIP电话工具包框架中的CXProvider,第二电话工具包模块可以为电话工具包框架中的CXcallController。
VoIP电话工具包模块,指的是苹果电话工具包框架中,用于支持VoIP功能的模块,可以支持VoIP。
CXProvider,VoIP电话工具包模块中,用于处理系统界面的显示,以及处理用户在系统界面上的操作,如用户在系统界面上点击挂断、接听、静音等系统按钮的操作。
CXCallController,用于管理用户在APP界面的操作。
操作系统模块可以为IOS10,以及其他可以支持本申请实施例中网络电话通话功能的操作系统。
本申请实施例中,网络电话模块可以与电话工具包框架模块通信,通过电话工具包框架模块将网络电话模块与操作系统模块进行整合,从而使网络电话可以传递到操作系统 模块中,以系统电话的形式展示。
如图4A所示,从被叫终端的角度来看,本申请实施例提供的网络电话处理的方法的一实施例包括:
101、接收服务器发送的网络电话呼叫请求。
102、通过终端中的网络电话模块对所述网络电话呼叫请求进行编译,以得到目标格式的来电封装包,所述目标格式为所述终端中电话工具包框架模块所能识别的格式。
103、通过所述网络电话模块将所述来电封装包传递给所述电话工具包框架模块中的第一电话工具包模块。
104、通过所述第一电话工具包模块识别出所述来电封装包中包括呼叫指令后,将所述来电封装包传递给所述终端中的操作系统模块。
105、根据传递到所述操作系统模块中的来电封装包,在所述终端的展示界面上以系统电话的展示形式展示所述网络电话。
网络电话在展示界面上以系统电话的形式展示可以参阅图4B至图4D进行理解,如图4B所示,图4B为终端处于非锁屏状态时的网络电话呼叫的界面,从图4B中可以看出,A公司的员工Judy发来了视频通话请求,当然,这里是以视频通话请求为例,实际上网络电话呼叫请求可以是视频通话请求,也可以是音频通话请求,本申请实施例中对此不作具体限定。被叫用户可以通过点击“接受”按钮接听,也可以通过点击“拒绝”按钮拒绝本次通话请求。
如图4C所示,图4C为被呼叫的终端处于锁屏状态时的网络电话呼叫的界面,从图4C中可以看出,A公司的员工Judy发来了视频通话请求,被叫用户可以通过滑动“滑动接听按钮”来接听本次通话。
图4B和图4C都是以手机界面为例的示意图,实际上,本申请实施例的方案还适用于个人计算机(Personal,PC),如图4D所示,PC上可以安装本申请实施例的企业微信,让有网络电话呼叫请求进入时,可以在PC上实现网络通话。
与现有技术中即时通讯应用中的网络电话优先级低于系统电话,而且来电提醒方式会遗漏重要VoIP来电相比,本申请实施例提供一种网络电话处理的方法,可以将网络电话与系统电话进行整合,从而使网络电话与系统电话具有相同的优先级,而且网络电话的来电通知方式与系统电话相同,有效避免了遗漏重要VoIP来电。
被呼叫的终端显示图4B、图4C或图4D所示的展示界面后,用户会在展示界面上点击 接听或者拒绝按钮,进而完成接听或者拒绝流程。如图5A所示,本申请实施例所提供的网络电话处理的方法中的接听或者拒绝流程包括:
201、通过所述操作系统模块接收针对所述网络电话呼叫请求的操作指令。
该针对所述网络电话呼叫请求的操作指令包括接听操作指令或者拒绝操作指令。
202、所述操作系统模块传递所述操作指令给所述第一电话工具包模块。
203、通过所述第一电话工具包模块对所述操作指令进行解译,以得到所述网络电话模块所能识别的第一引擎指令。
204、第一电话工具包模块传递所述第一引擎指令给所述网络电话模块。
205、通过所述网络电话模块解析所述第一引擎指令,以得到与所述网络电话呼叫请求对应的网络呼叫响应。
206、向所述服务器发送所述网络呼叫响应。
本申请实施例中,当所述操作指令为接听操作指令时,步骤206之前还包括:启动所述终端中用于网络通话的通话设备。
用于网络通话的通话设备可以包括摄像头、录音设备、话筒和扬声器等。
当用户点击的是接听操作指令时,如图5B所示,会在显示界面上显示正在与A公司的员工Judy进行视频通话,目前已经通话18秒,图5B中未画出视频界面中的视频内容,但不应将其理解为是不能显示视频内容的限定。视频结束后,用户可以点击“挂断”按钮挂断本次通话。
本申请实施例中,若在进行网络通话时,有系统电话呼入,如图5C所示的界面,当在进行网络通话时,有系统电话来自成都/眉山/资阳,四川的系统电话028-85225111呼入,本申请实施例中并不会切断当前的网络电话,而是会显示如图5C所示的界面,由用户来决定是否结束当前网络电话转而接听系统电话,还是拒绝当前的系统电话。
本申请实施例中,网络电话的优先级和系统电话的优先级是一样的,不会因为系统电话影响了网络电话,提高了用户体验。
本申请实施例中,当网络通话结束要挂断网络电话,或者要发起网络通话请求时,如图6A所示,本申请实施例提供的网络电话处理的方法的另一实施例包括:
301、接收在即时通讯应用的操作界面上对所述网络电话的操作指令。
该操作指令可以是通话结束后的挂断指令,或者发起网络通话请求时的发起指令。
302、通过所述网络电话模块将所述对网络电话的操作指令进行编译,以得到所述目 标格式的操作封装包。
303、通过所述电话工具包框架模块中的第二电话工具包模块将所述操作封装包传递给所述操作系统模块。
304、所述操作系统模块传递所述操作封装包给所述第一电话工具包模块。
305、通过所述第一电话工具包模块对所述操作封装包进行解译,以得到所述网络电话模块所能识别的第二引擎指令。
306、所述第一电话工具包模块传递所述第二引擎指令给所述网络电话模块。
307、通过所述网络电话模块解析所述第二引擎指令,以得到与所述对网络电话的操作指令对应的操作响应。
本申请实施例中,当所述对网络电话的操作指令为挂断指令时,所述方法还包括:关闭所述终端中用于网络通话的通话设备。
通话结束时会关闭摄像头、听筒、话筒、麦克风和扬声器等通话设备。
本申请实施例中,当本次网络电话结束后,通过所述电话工具包框架模块向系统通话记录写入与所述本次网络电话对应的通话记录,所述通话记录包括通话记录标识信息。
如图6B所示,本次通话结束后,会产生图6B所示的话单界面,如图6B所示,会显示呼出电话或者呼入电话的时间、通话时长等信息。
如图6C所示,本次网络电话的通话记录还会写入系统通话记录中。
通话记录包括通话记录名称、通话时长、通话类型以及对方身份标识信息等字段。当所述本次网络电话为单人通话时,所述通话记录标识信息为通话对方的身份标识信息VID,当所述本次网络电话为群组通话时,所述通话记录标识信息为群组标识GroupID。
由于VoIP通话分为1对1的单人音视频通话,以及多人VoIP通话。企业微信在写入通话记录时,根据通话人数区分为单人通话记录和多人通话记录。由于未来用户会随时从系统通话记录中发起新的VoIP通话,因此我们利用对方身份标识信息存储了能代表通话的标识信息,可以称作通话记录标识信息。
单人通话记录可以写入的信息包括:通话对方的姓名、所在公司、通话音视频类型和通话时长等。
对于单人的通话记录标识信息,写入对方的VID。每个使用企业微信的用户,都会被分配一个VID。发起VoIP时,只要拥有对方的VID,便可以向对方发起VoIP音视频通话。
多人通话记录可以写入的信息包括:通话的发起者、公司、通话成员人数、通话音 视频类型和通话时长等。
对于多人的通话记录标识信息,写入了这次通话的GroupID。在进行多人通话时,所有成员会进入一个后台分配的房间,房间的ID就是GroupID。通过GroupID,终端可以实时查询当前房间内的成员信息,通话是否已经结束等字段。当从系统多人通话记录发起通话时,终端会带着GroupID,向后台申请加入房间(通话未结束),或者重新激活房间(通话已结束)。
本申请实施例中,因网络通话也会写入系统通话记录中,因此可以直接在系统通话记录中进行回拨。
如图7所示,本申请实施例所提供的网络电话处理的方法的另一实施例包括:
401、接收在系统通话记录中针对所述通话记录的回拨操作。
402、通过所述网络电话模块读取所述回拨操作所对应的通话记录中的通话记录标识信息。
403、通过所述网络电话模块发起回拨呼叫请求,所述回拨呼叫请求中包括所述通话记录标识信息,所述回拨呼叫请求按照回拨路径进行传递,所述回拨路径包括从所述网络电话模块开始,经所述电话工具包框架模块中的第二电话工具包模块到所述操作系统模块再到所述第一电话工具包模块,最后传输回所述网络电话模块;
404、通过网络电话模块生成网络电话回拨请求包,所述网络电话回拨请求包中包括所述回拨操作对应的通话记录标识信息;
405、向所述服务器发送所述网络电话回拨请求包。
以企业微信为例:
用户点击某条企业微信通话记录时,系统会唤醒企业微信,并跳转进入企业微信APP内。
网络电话模块读取通话记录标识信息(单人:VID,多人:GroupID)。
APP发起VoIP通话请求,并通过CXCallController通知IOS系统。
IOS系统接受通话发起请求,并通过CXProvider反馈给VoIP模块,建立起VoIP通话。
网络电话模块生成VoIP请求包,并将VID或者GroupID信息封入包内,发送给服务器,开始正式的VoIP通话。
以上所描述的过程是通过通话记录实现回拨的过程,这样,不需要用户启动APP后再发起去回拨,提高了网络通话的效率。
本申请实施例中,VoIP电话的接听界面和系统电话保持一致,即便在锁屏界面中,也能接听网络电话。提高了网络电话的权限,避免在VoIP通话过程被系统通话打断。在系统中可以形成网络通话记录,用户可以从系统拨号通话记录中直接发起VoIP通话。
以上所描述的是网络电话处理的方法,下面结合附图介绍本申请实施例中的终端。
如图8所示,本申请实施例提供的终端50的一实施例包括:
接收模块501,用于接收服务器发送的网络电话呼叫请求;
网络电话模块502,用于对所述接收模块501接收的所述网络电话呼叫请求进行编译,以得到目标格式的来电封装包,所述目标格式为所述终端中电话工具包框架模块所能识别的格式;
第一电话工具包模块503,用于接收所述网络电话模块502传递来的所述来电封装包,并识别所述来电封装包,当识别所述来电封装包,是呼叫指令后,向所述终端中的操作系统模块传递所述来电封装包,所述第一电话工具包模块属于电话工具包框架模块;
操作系统模块504,用于接收所述第一电话工具包模块503传递来的所述来电封装包;
展示模块505,用于根据传递到所述操作系统模块504中的来电封装包,在所述终端的展示界面上以系统电话的展示形式展示所述网络电话。
与现有技术中即时通讯应用中的网络电话优先级低于系统电话,而且来电提醒方式会遗漏重要VoIP来电相比,本申请实施例提供的终端,可以将网络电话与系统电话进行整合,从而使网络电话与系统电话具有相同的优先级,而且网络电话的来电通知方式与系统电话相同,有效避免了遗漏重要VoIP来电。
可选地,参阅图9,本申请实施例提供的终端的另一实施例中,所述终端50还包括发送模块506,
所述操作系统模块504,还用于接收针对所述网络电话呼叫请求的操作指令,所述操作指令被所述操作系统模块传递给所述第一电话工具包模块;
所述第一电话工具包模块503,还用于对所述操作指令进行解译,以得到所述网络电话模块所能识别的第一引擎指令,所述第一引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
所述网络电话模块502,还用于解析所述第一引擎指令,以得到与所述网络电话呼叫请求对应的网络呼叫响应;
所述发送模块506,用于向所述服务器发送所述网络电话模块502生成的所述网络呼 叫响应。
可选地,本申请实施例提供的终端的另一实施例中,
所述网络电话模块502,还用于当所述操作指令为接听操作指令时,启动所述终端中用于网络通话的通话设备。
可选地,参阅图10,本申请实施例提供的终端的另一实施例中,所述终端50还包括第二电话工具包模块507,
所述接收模块501,还用于接收在即时通讯应用的操作界面上对所述网络电话的操作指令;
所述网络电话模块502,还用于将所述对网络电话的操作指令进行编译,以得到所述目标格式的操作封装包;
所述第二电话工具包模块507,用于将所述操作封装包传递给所述操作系统模块,所述操作封装包被所述操作系统模块504传递给所述第一电话工具包模块,所述第二电话工具包模块属于所述电话工具包框架模块510;
所述第一电话工具包模块503,还用于对所述操作系统模块传递来的操作封装包进行解译,以得到所述网络电话模块所能识别的第二引擎指令,所述第二引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
所述网络电话模块502,还用于解析所述第二引擎指令,以得到与所述对网络电话的操作指令对应的操作响应。
可选地,本申请实施例提供的终端的另一实施例中,
所述网络电话模块502,还用于当所述对网络电话的操作指令为挂断指令时,关闭所述终端中用于网络通话的通话设备。
如图10所示,所述电话工具包框架模块510,用于当本次网络电话结束后,向系统通话记录写入与所述本次网络电话对应的通话记录,所述通话记录包括通话记录标识信息。
可选地,本申请实施例提供的终端的另一实施例中,
所述接收模块501,还用于接收在系统通话记录中针对所述通话记录的回拨操作;
所述网络电话模块502,还用于读取所述回拨操作所对应的通话记录中的通话记录标识信息,并发起回拨呼叫请求,所述回拨呼叫请求中包括所述通话记录标识信息,所述回拨呼叫请求按照回拨路径进行传递,所述回拨路径包括从所述网络电话模块开始,经所述电话工具包框架模块中的第二电话工具包模块到所述操作系统模块再到所述第一电话工 具包模块,最后传输回所述网络电话模块;
所述网络电话模块502,还用于生成网络电话回拨请求包,所述网络电话回拨请求包中包括所述回拨操作对应的通话记录标识信息;
所述发送模块506,还用于向所述服务器发送所述网络电话回拨请求包。
本申请实施例提供的终端可以是手机、平板电脑、PC等终端,下面以手机为例,介绍本申请实施例的网络电话处理的过程。
如图11所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。
图11示出的是与本申请实施例提供的移动终端800的部分结构的框图。参考图11,移动终端包括:摄像头810、存储器820、输入单元830、显示单元840、传感器850、音频电路860、WiFi模块870、处理器880、以及电源890等部件。本领域技术人员可以理解,图11中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图11对移动终端的各个构成部件进行具体的介绍:
摄像图810可用于图像采集,视频通话时采集用户图像。
存储器820可用于存储软件程序以及模块,处理器880通过运行存储在存储器820的软件程序以及模块,从而执行移动终端的各种功能应用以及数据处理。存储器820可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元830可用于接收用户的操作指令,如:接听或者拒绝,以及产生与移动终端800的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括触控面板831以及其他输入设备832。触控面板831,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上或在触控面板831附近的操作),并根据预先设定的程式驱动相应的连接移动终端。可选的,触控面板831可包括触摸检测移动终端和触摸控制器两个部分。其中,触摸检测移动终端检测用户的触 摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测移动终端上接收触摸信息,并将它转换成触点坐标,再送给处理器880,并能接收处理器880发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元840可用于显示来电界面。显示单元840可包括指示灯841,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置指示灯841。进一步的,触控面板831可覆盖指示灯841,当触控面板831检测到在其上或附近的触摸操作后,传送给处理器880以确定触摸事件的类型,随后处理器880根据触摸事件的类型在指示灯841上提供相应的视觉输出。虽然在图11中,触控面板831与指示灯841是作为两个独立的部件来实现移动终端的输入和输入功能,但是在某些实施例中,可以将触控面板831与指示灯841集成而实现移动终端的输入和输出功能。
移动终端800还可包括至少一种传感器850。
音频电路860、扬声器861,传声器862可提供用户与移动终端之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器861,由扬声器861转换为声音信号输出;另一方面,传声器862将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器880处理后,经摄像头810以发送给比如另一移动终端,或者将音频数据输出至存储器820以便进一步处理。
WiFi模块870可以用于通信。
处理器880是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器880可包括一个或多个处理单元;优选的,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。
移动终端800还包括给各个部件供电的电源890(比如电池),优选的,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及 功耗管理等功能。
尽管未示出,移动终端800还可以包括射频(Radio Frequency,RF)电路、蓝牙模块等,在此不再赘述。
在本申请实施例中,该终端在网络电话处理时所包括的处理器880还具有以下功能:
接收服务器发送的网络电话呼叫请求;
通过终端中的网络电话模块对所述网络电话呼叫请求进行编译,以得到目标格式的来电封装包,所述目标格式为所述终端中电话工具包框架模块所能识别的格式;
通过所述网络电话模块将所述来电封装包传递给所述电话工具包框架模块中的第一电话工具包模块;
通过所述第一电话工具包模块识别出所述来电封装包中包括呼叫指令后,将所述来电封装包传递给所述终端中的操作系统模块;
根据传递到所述操作系统模块中的来电封装包,在所述终端的展示界面上以系统电话的展示形式展示所述网络电话。
可选地,所述方法还包括:
通过所述操作系统模块接收针对所述网络电话呼叫请求的操作指令,所述操作指令被所述操作系统模块传递给所述第一电话工具包模块;
通过所述第一电话工具包模块对所述操作指令进行解译,以得到所述网络电话模块所能识别的第一引擎指令,所述第一引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
通过所述网络电话模块解析所述第一引擎指令,以得到与所述网络电话呼叫请求对应的网络呼叫响应;
向所述服务器发送所述网络呼叫响应。
可选地,当所述操作指令为接听操作指令时,所述向所述服务器发送所述网络呼叫响应之前,所述方法还包括:
启动所述终端中用于网络通话的通话设备。
可选地,所述方法还包括:
接收在即时通讯应用的操作界面上对所述网络电话的操作指令;
通过所述网络电话模块将所述对网络电话的操作指令进行编译,以得到所述目标格式的操作封装包;
通过所述电话工具包框架模块中的第二电话工具包模块将所述操作封装包传递给所述操作系统模块,所述操作封装包被所述操作系统模块传递给所述第一电话工具包模块;
通过所述第一电话工具包模块对所述操作封装包进行解译,以得到所述网络电话模块所能识别的第二引擎指令,所述第二引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
通过所述网络电话模块解析所述第二引擎指令,以得到与所述对网络电话的操作指令对应的操作响应。
可选地,当所述对网络电话的操作指令为挂断指令时,所述方法还包括:
关闭所述终端中用于网络通话的通话设备。
可选地,所述方法还包括:
当本次网络电话结束后,通过所述电话工具包框架模块向系统通话记录写入与所述本次网络电话对应的通话记录,所述通话记录包括通话记录标识信息。
可选地,当所述本次网络电话为单人通话时,所述通话记录标识信息为通话对方的身份标识信息VID,当所述本次网络电话为群组通话时,所述通话记录标识信息为群组标识GroupID。
可选地,所述方法还包括:
接收在系统通话记录中针对所述通话记录的回拨操作;
通过所述网络电话模块读取所述回拨操作所对应的通话记录中的通话记录标识信息;
通过所述网络电话模块发起回拨呼叫请求,所述回拨呼叫请求中包括所述通话记录标识信息,所述回拨呼叫请求按照回拨路径进行传递,所述回拨路径包括从所述网络电话模块开始,经所述电话工具包框架模块中的第二电话工具包模块到所述操作系统模块再到所述第一电话工具包模块,最后传输回所述网络电话模块;
通过网络电话模块生成网络电话回拨请求包,所述网络电话回拨请求包中包括所述回拨操作对应的通话记录标识信息;
向所述服务器发送所述网络电话回拨请求包。
本申请实施例提供的手机可以参阅图2至图10部分终端的相关描述进行理解,本处不再重复赘述。
本申请实施例还提供一种存储介质,用于存储程序代码,该程序代码用于执行前述 各个实施例所述的网络电话处理的方法中的任意一种实施方式。
本申请实施例还提供一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行前述各个实施例所述的网络电话处理的方法中的任意一种实施方式。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。
以上对本申请实施例所提供的网络电话处理的方法以及终端进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (18)

  1. 一种网络电话处理的方法,包括:
    终端接收服务器发送的网络电话呼叫请求;
    所述终端通过网络电话模块对所述网络电话呼叫请求进行编译,以得到目标格式的来电封装包,所述目标格式为所述终端中电话工具包CallKit框架模块所能识别的格式;
    所述终端通过所述网络电话模块将所述来电封装包传递给所述电话工具包框架模块中的第一电话工具包模块;
    所述终端通过所述第一电话工具包模块识别出所述来电封装包中包括呼叫指令后,将所述来电封装包传递给操作系统模块;
    所述终端根据传递到所述操作系统模块中的来电封装包,在展示界面上以系统电话的展示形式展示所述网络电话。
  2. 根据权利要求1所述的方法,所述方法还包括:
    所述终端通过所述操作系统模块接收针对所述网络电话呼叫请求的操作指令,所述操作指令被所述操作系统模块传递给所述第一电话工具包模块;
    所述终端通过所述第一电话工具包模块对所述操作指令进行解译,以得到所述网络电话模块所能识别的第一引擎指令,所述第一引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
    所述终端通过所述网络电话模块解析所述第一引擎指令,以得到与所述网络电话呼叫请求对应的网络呼叫响应;
    所述终端向所述服务器发送所述网络呼叫响应。
  3. 根据权利要求2所述的方法,当所述操作指令为接听操作指令时,所述向所述服务器发送所述网络呼叫响应之前,所述方法还包括:
    所述终端启动用于网络通话的通话设备。
  4. 根据权利要求1-3任一项所述的方法,所述方法还包括:
    所述终端接收在即时通讯应用的操作界面上对所述网络电话的操作指令;
    所述终端通过所述网络电话模块将所述对网络电话的操作指令进行编译,以得到所述目标格式的操作封装包;
    所述终端通过所述电话工具包框架模块中的第二电话工具包模块将所述操作封装包传递给所述操作系统模块,所述操作封装包被所述操作系统模块传递给所述第一电话工具 包模块;
    所述终端通过所述第一电话工具包模块对所述操作封装包进行解译,以得到所述网络电话模块所能识别的第二引擎指令,所述第二引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
    所述终端通过所述网络电话模块解析所述第二引擎指令,以得到与所述对网络电话的操作指令对应的操作响应。
  5. 根据权利要求4所述的方法,当所述对网络电话的操作指令为挂断指令时,所述方法还包括:
    所述终端关闭用于网络通话的通话设备。
  6. 根据权利要求2-5任一所述的方法,所述方法还包括:
    当本次网络电话结束后,所述终端通过所述电话工具包框架模块向系统通话记录写入与所述本次网络电话对应的通话记录,所述通话记录包括通话记录标识信息。
  7. 根据权利要求6所述的方法,当所述本次网络电话为单人通话时,所述通话记录标识信息为通话对方的身份标识信息VID,当所述本次网络电话为群组通话时,所述通话记录标识信息为群组标识GroupID。
  8. 根据权利要求7所述的方法,所述方法还包括:
    所述终端接收在系统通话记录中针对所述通话记录的回拨操作;
    所述终端通过所述网络电话模块读取所述回拨操作所对应的通话记录中的通话记录标识信息;
    所述终端通过所述网络电话模块发起回拨呼叫请求,所述回拨呼叫请求中包括所述通话记录标识信息,所述回拨呼叫请求按照回拨路径进行传递,所述回拨路径包括从所述网络电话模块开始,经所述电话工具包框架模块中的第二电话工具包模块到所述操作系统模块再到所述第一电话工具包模块,最后传输回所述网络电话模块;
    所述终端通过网络电话模块生成网络电话回拨请求包,所述网络电话回拨请求包中包括所述回拨操作对应的通话记录标识信息;
    所述终端向所述服务器发送所述网络电话回拨请求包。
  9. 一种终端,包括:
    接收模块,用于接收服务器发送的网络电话呼叫请求;
    网络电话模块,用于对所述接收模块接收的所述网络电话呼叫请求进行编译,以得 到目标格式的来电封装包,所述目标格式为所述终端中电话工具包框架模块所能识别的格式;
    第一电话工具包模块,用于接收所述网络电话模块传递来的所述来电封装包,并识别所述来电封装包,当识别所述来电封装包中包括呼叫指令后,向所述终端中的操作系统模块传递所述来电封装包,所述第一电话工具包模块属于电话工具包框架模块;
    操作系统模块,用于接收所述第一电话工具包模块传递来的所述来电封装包;
    展示模块,用于根据传递到所述操作系统模块中的来电封装包,在所述终端的展示界面上以系统电话的展示形式展示所述网络电话。
  10. 根据权利要求9所述的终端,所述终端还包括发送模块,
    所述操作系统模块,还用于接收针对所述网络电话呼叫请求的操作指令,所述操作指令被所述操作系统模块传递给所述第一电话工具包模块;
    所述第一电话工具包模块,还用于对所述操作指令进行解译,以得到所述网络电话模块所能识别的第一引擎指令,所述第一引擎指令被所述第一电话工具包模块传递给所述网络电话模块;
    所述网络电话模块,还用于解析所述第一引擎指令,以得到与所述网络电话呼叫请求对应的网络呼叫响应;
    所述发送模块,用于向所述服务器发送所述网络电话模块生成的所述网络呼叫响应。
  11. 根据权利要求10所述的终端,所述网络电话模块,还用于当所述操作指令为接听操作指令时,启动所述终端中用于网络通话的通话设备。
  12. 根据权利要求9-11任一项所述的终端,所述终端还包括第二电话工具包模块,
    所述接收模块,还用于接收在即时通讯应用的操作界面上对所述网络电话的操作指令;
    所述网络电话模块,还用于将所述对网络电话的操作指令进行编译,以得到所述目标格式的操作封装包;
    所述第二电话工具包模块,用于将所述操作封装包传递给所述操作系统模块,所述操作封装包被所述操作系统模块传递给所述第一电话工具包模块,所述第二电话工具包模块属于所述电话工具包框架模块;
    所述第一电话工具包模块,还用于对所述操作系统模块传递来的操作封装包进行解译,以得到所述网络电话模块所能识别的第二引擎指令,所述第二引擎指令被所述第一电 话工具包模块传递给所述网络电话模块;
    所述网络电话模块,还用于解析所述第二引擎指令,以得到与所述对网络电话的操作指令对应的操作响应。
  13. 根据权利要求12所述的终端,所述网络电话模块,还用于当所述对网络电话的操作指令为挂断指令时,关闭所述终端中用于网络通话的通话设备。
  14. 根据权利要求10-13任一项所述的终端,所述电话工具包框架模块,用于当本次网络电话结束后,向系统通话记录写入与所述本次网络电话对应的通话记录,所述通话记录包括通话记录标识信息。
  15. 根据权利要求14所述的终端,所述接收模块,还用于接收在系统通话记录中针对所述通话记录的回拨操作;
    所述网络电话模块,还用于读取所述回拨操作所对应的通话记录中的通话记录标识信息,并发起回拨呼叫请求,所述回拨呼叫请求中包括所述通话记录标识信息,所述回拨呼叫请求按照回拨路径进行传递,所述回拨路径包括从所述网络电话模块开始,经所述电话工具包框架模块中的第二电话工具包模块到所述操作系统模块再到所述第一电话工具包模块,最后传输回所述网络电话模块;
    所述网络电话模块,还用于生成网络电话回拨请求包,所述网络电话回拨请求包中包括所述回拨操作对应的通话记录标识信息;
    所述发送模块,还用于向所述服务器发送所述网络电话回拨请求包。
  16. 一种处理服务器,所述处理服务器包括处理器以及存储器:
    所述存储器用于存储程序代码,并将所述程序代码传输给所述处理器;
    所述处理器用于根据所述程序代码中的指令执行权利要求1-8任一项所述的网络电话处理的方法。
  17. 一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行权利要求1-8任一项所述的网络电话处理的方法。
  18. 一种包括指令的计算机程序产品,当其在计算机上运行时,使得所述计算机执行权利要求1-8任一项所述的网络电话处理的方法。
PCT/CN2018/081081 2017-04-27 2018-03-29 网络电话处理的方法及终端 WO2018196548A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710288887.2A CN108809894B (zh) 2017-04-27 2017-04-27 一种网络电话处理的方法及终端
CN201710288887.2 2017-04-27

Publications (1)

Publication Number Publication Date
WO2018196548A1 true WO2018196548A1 (zh) 2018-11-01

Family

ID=63918826

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/081081 WO2018196548A1 (zh) 2017-04-27 2018-03-29 网络电话处理的方法及终端

Country Status (2)

Country Link
CN (1) CN108809894B (zh)
WO (1) WO2018196548A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543366A (zh) * 2020-04-17 2021-10-22 青岛海信移动通信技术股份有限公司 移动终端及其通话方法、通话服务器、通话系统
EP4344164A1 (en) * 2022-09-23 2024-03-27 Beijing Xiaomi Mobile Software Co., Ltd. Call processing method, storage medium, and electronic device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113497782A (zh) * 2020-03-19 2021-10-12 北京小米移动软件有限公司 通话方法及装置、存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459711A (zh) * 2008-12-31 2009-06-17 英保达资讯(天津)有限公司 具有广告播放功能的网络电话
US20150351075A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Delivery of push notifications to an inactive computing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459711A (zh) * 2008-12-31 2009-06-17 英保达资讯(天津)有限公司 具有广告播放功能的网络电话
US20150351075A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Delivery of push notifications to an inactive computing device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MASONFU: "iOS Call Kit for VOIP", JIANSHU, 17 October 2016 (2016-10-17), XP055528934, Retrieved from the Internet <URL:https://www.jianshu.com/p/3bf73a293535> *
OLSONXIA: "Introduction to the use of CallKit", JIANSHU, 7 July 2016 (2016-07-07), Retrieved from the Internet <URL:https://www.jianshu.com/p/2bf4f186dfd9> *
WOODBEAR009: "i0S10 Callkit Framework integration summary", CSDN, 30 November 2016 (2016-11-30), Retrieved from the Internet <URL:https://blog.csdn.net/zhaochen_009/article/details/53410288?locationNum=12&fps=1> *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543366A (zh) * 2020-04-17 2021-10-22 青岛海信移动通信技术股份有限公司 移动终端及其通话方法、通话服务器、通话系统
CN113543366B (zh) * 2020-04-17 2024-05-28 青岛海信移动通信技术有限公司 移动终端及其通话方法、通话服务器、通话系统
EP4344164A1 (en) * 2022-09-23 2024-03-27 Beijing Xiaomi Mobile Software Co., Ltd. Call processing method, storage medium, and electronic device

Also Published As

Publication number Publication date
CN108809894B (zh) 2021-04-27
CN108809894A (zh) 2018-11-13

Similar Documents

Publication Publication Date Title
US20220353216A1 (en) System and method for enabling voice and video communications using a messaging application
US7869579B2 (en) Selectable replay of buffered conversation in a VOIP session
CN103916829B (zh) 一种消息的桌面通知方法及装置
CN105163366B (zh) 无线网络连接方法和装置
US20070133523A1 (en) Replay caching for selectively paused concurrent VOIP conversations
US20080181141A1 (en) Enhanced voicemail processing
JP4894065B2 (ja) 伝言システム、伝言システム制御方法、及びプログラム
WO2018196548A1 (zh) 网络电话处理的方法及终端
KR20130112885A (ko) 음성-가능 응용프로그램에 입력을 제공하는 방법 및 장치
CN105263182B (zh) 设备控制方法、装置及终端
CN105893129A (zh) 终端中应用程序的处理方法及装置
WO2015081697A1 (zh) 一种终端及终端的录音方法
CN106101456A (zh) 一种呼叫联系人的方法及装置
CN104506703B (zh) 语音留言、语音留言播放方法及装置
WO2017166607A1 (zh) 基于耳机的录音控制方法、装置、电子设备及存储介质
CN104917905B (zh) 陌生来电的处理方法、终端及服务器
CN110945467B (zh) 一种免打扰方法和终端
CN104917909A (zh) 基于通话的留言方法、装置、终端及服务器
CN110896376A (zh) 消息提醒方法、消息发送方法及相关装置、设备
CN104333641B (zh) 通话方法及装置
CN104735271A (zh) 一种智能多媒体电话终端处理语音业务的方法及终端
WO2021142875A1 (zh) 视频通话切换方法、存储介质及终端
US20070217396A1 (en) Method and apparatus for making VoIP connection through network
CN106357610A (zh) 通信方法及装置
CN104363166A (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: 18791978

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: 18791978

Country of ref document: EP

Kind code of ref document: A1