CN108809894B - Method and terminal for processing network telephone - Google Patents

Method and terminal for processing network telephone Download PDF

Info

Publication number
CN108809894B
CN108809894B CN201710288887.2A CN201710288887A CN108809894B CN 108809894 B CN108809894 B CN 108809894B CN 201710288887 A CN201710288887 A CN 201710288887A CN 108809894 B CN108809894 B CN 108809894B
Authority
CN
China
Prior art keywords
module
telephone
call
network telephone
network
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710288887.2A
Other languages
Chinese (zh)
Other versions
CN108809894A (en
Inventor
周世龙
李斌
罗程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710288887.2A priority Critical patent/CN108809894B/en
Priority to PCT/CN2018/081081 priority patent/WO2018196548A1/en
Publication of CN108809894A publication Critical patent/CN108809894A/en
Application granted granted Critical
Publication of CN108809894B publication Critical patent/CN108809894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The application discloses a method for processing a network telephone, which comprises the following steps: receiving a network telephone call request sent by a server; compiling the network telephone calling request through a network telephone module in the terminal to obtain an incoming call packaging packet in a target format, transmitting the incoming call packaging packet to a first telephone toolkit module in a telephone toolkit frame module through the network telephone module, and transmitting the incoming call packaging packet to an operating system module in the terminal by the first telephone toolkit module; and displaying the network telephone on a display interface of the terminal in a display form of the system telephone according to the incoming call packaging packet transmitted to the operating system module. The method for processing the network telephone can integrate the network telephone and the system telephone, so that the network telephone and the system telephone have the same priority, and the incoming call notification mode of the network telephone is the same as that of the system telephone, thereby effectively avoiding missing important VoIP incoming calls.

Description

Method and terminal for processing network telephone
Technical Field
The application relates to the technical field of internet, in particular to a method and a terminal for processing a network telephone.
Background
A Voice over Internet Protocol (VoIP) is to digitize an analog signal and transmit the signal in real time on an IP network in the form of a Data Packet (Data Packet), which mainly refers to a network audio/video call, such as: the audio call or the video call in the instant messaging application belongs to the internet phone.
The system telephone refers to a telephone which is accessed or called through a communication network such as mobile, communication or telecommunication. The network telephone has no priority higher than that of the system telephone, and when the network telephone is in progress, if the system telephone calls in, the current network telephone is interrupted, and the system telephone is processed preferentially. The notification mode of the internet phone is also different from the system phone, the internet phone adopts a push notification mode, when the instant messaging application is not started, the notification banner is firstly displayed on the interface, and after the instant messaging application is started, the internet phone request is displayed, for example: taking a network phone in the wechat application as an example, as shown in fig. 1A, a push notification interface when there is a voice invitation, as shown in fig. 1B, the user clicks the wechat application, and the network phone interface shown in fig. 1C appears.
With the rapid development of the internet, the dependence of users on internet phones is higher and higher, much information is completed through instant messaging application, and at present, important VoIP calls can be missed undoubtedly in a mode that the internet phones provide the user calls.
Disclosure of Invention
In order to solve the problems that the priority of a network telephone in the current instant messaging application is lower than that of a system telephone and an important VoIP incoming call is missed in an incoming call reminding mode, the embodiment of the application provides a network telephone processing method which can integrate the network telephone and the system telephone so that the network telephone and the system telephone have the same priority, and the incoming call informing mode of the network telephone is the same as that of the system telephone, so that missing of the important VoIP incoming call is effectively avoided. The embodiment of the application also provides a corresponding terminal.
The first aspect of the present application provides a method for processing a network telephone, including:
receiving a network telephone call request sent by a server;
compiling the network telephone calling request through a network telephone module in the terminal to obtain an incoming call packaging packet with a target format, wherein the target format is a format which can be identified by a telephone tool packet frame module in the terminal;
transmitting the incoming call encapsulation packet to a first telephone toolkit module in the telephone toolkit frame module through the network telephone module;
after recognizing that the incoming call encapsulation packet comprises a call instruction through the first telephone toolkit module, transmitting the incoming call encapsulation packet to an operating system module in the terminal;
and displaying the network telephone on a display interface of the terminal in a display form of a system telephone according to the incoming call packaging packet transmitted to the operating system module.
A second aspect of the present application provides a terminal, comprising:
the receiving module is used for receiving the network telephone calling request sent by the server;
the network telephone module is used for compiling the network telephone calling request received by the receiving module to obtain an incoming call packaging packet with a target format, and the target format is a format which can be identified by a telephone tool packet framework module in the terminal;
the first telephone toolkit module is used for receiving the incoming call packaging packet transmitted by the network telephone module, identifying the incoming call packaging packet, transmitting the incoming call packaging packet to an operating system module in the terminal after identifying the incoming call packaging packet as a call instruction, and belongs to a telephone toolkit frame module;
the operating system module is used for receiving the incoming call packaging packet transmitted by the first telephone toolkit module;
and the display module is used for displaying the network telephone on a display interface of the terminal in a display form of the system telephone according to the incoming call packaging packet transmitted to the operating system module.
Compared with the prior art that the priority of the internet phone in the instant messaging application is lower than that of the system phone, and important VoIP calls can be missed in the incoming call reminding mode, the method for processing the internet phone provided by the embodiment of the application can integrate the internet phone and the system phone, so that the internet phone and the system phone have the same priority, and the incoming call informing mode of the internet phone is the same as that of the system phone, so that missing of the important VoIP calls is effectively avoided.
Drawings
Fig. 1A is a schematic diagram of a notification interface for incoming network phone calls in a current instant messaging application;
fig. 1B is a schematic diagram of another notification interface for incoming network phone calls in the current instant messaging application;
fig. 1C is a schematic diagram of an operation interface of a current instant messaging application with an incoming network phone call;
FIG. 2 is a schematic diagram of an exemplary system for establishing a voice over internet protocol 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 in the embodiment of the present application;
FIG. 4B is a schematic diagram of a display interface of the network telephone according to the embodiment of the present application;
FIG. 4C is a schematic diagram of another display interface of the network telephone in the embodiment of the present application;
FIG. 4D is a schematic diagram of another display interface of the network telephone in the embodiment of the present application;
fig. 5A is a schematic diagram of another embodiment of a method for processing a network telephone in the embodiment of the present application;
FIG. 5B is a schematic diagram of another display interface of the network telephone in the embodiment of the present application;
FIG. 5C is a schematic diagram of another display interface of the network telephone in the embodiment of the present application;
fig. 6A is a schematic diagram of another embodiment of a method for processing a network telephone in the embodiment of the present application;
FIG. 6B is a schematic diagram of another display interface of the network telephone in the embodiment of the present application;
FIG. 6C is a schematic diagram of another display interface of the network telephone in the embodiment of the present application;
fig. 7 is a schematic diagram of another embodiment of the method for processing the internet phone in the embodiment of the present application;
fig. 8 is a schematic diagram of an embodiment of a terminal in the embodiment of the present application;
fig. 9 is a schematic diagram of another embodiment of the terminal in the embodiment of the present application;
fig. 10 is a schematic diagram of another embodiment of the terminal in the embodiment of the present application;
fig. 11 is a schematic diagram of another embodiment of the terminal in the embodiment of the present application.
Detailed Description
Embodiments of the present application will now be described with reference to the accompanying drawings, and it is to be understood that the described embodiments are merely illustrative of some, but not all, embodiments of the present application. As can be appreciated by those skilled in the art, as technology develops, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
The embodiment of the application provides a method for processing the network telephone, which can integrate the network telephone and the system telephone, so that the network telephone and the system telephone have the same priority, and the incoming call notification mode of the network telephone is the same as that of the system telephone, thereby effectively avoiding missing important VoIP incoming calls. The embodiment of the application also provides a corresponding terminal. The following are detailed below.
The internet phone refers to an audio call or a video call performed through an instant messaging application.
The system telephone is a call made through a native telephone network, such as: a telephone connected or called through a communication network such as mobile, universal or telecommunication.
The information between the terminals using the network telephone for communication is transferred by the corresponding instant communication application through the server, that is, the network telephone call request of the terminal initiating the communication is sent to the corresponding server, and then the server sends the network telephone call request to the called terminal. As shown in fig. 2, the terminal 10A initiating the network telephone call request sends the network telephone call request to the server 30 through the network 20, the server 30 forwards the network call request to the terminal 10B, the terminal 10B returns a network telephone answering response to the server according to the answering indication or rejection indication of the user, and the server 30 establishes a call connection or cancels the call connection according to the answering response.
The terminal provided by the embodiment of the present application shown in fig. 2, as shown in fig. 3, includes a voice over internet protocol (VoIP) module, a phone toolkit CallKit framework module and an operating system module.
The network telephone module can be a module of various instant messaging applications which can realize network calls, such as: WeChat network phone module. In the embodiments of the present application, the enterprise WeChat is taken as an example for explanation, and actually, other instant messaging software is within the scope of the idea of the present application as long as the functions of the present application can be realized.
The phone toolkit frame module comprises a first phone toolkit module and a second phone toolkit module, wherein the phone toolkit frame module can be a VoIP phone toolkit frame developed by apple Inc., the first phone toolkit module can be CXprovider in the VoIP phone toolkit frame, and the second phone toolkit module can be CXcallcontroller in the phone toolkit frame.
The VoIP phone toolkit module refers to a module for supporting VoIP function in an apple phone toolkit framework, and can support VoIP.
The CXProvider, VoIP phone toolkit module is used for processing the display of the system interface and processing the user operations on the system interface, such as the user operations of clicking system buttons on the system interface, hanging up, answering, muting, and the like.
And the CXCallController is used for managing the operation of the user on the APP interface.
The operating system module may be IOS10, and other operating systems that may support the voice over internet protocol function in the embodiments of the present application.
In the embodiment of the application, the network telephone module can communicate with the telephone toolkit frame module, and the network telephone module and the operating system module are integrated through the telephone toolkit frame module, so that the network telephone can be transmitted to the operating system module and displayed in a system telephone mode.
As shown in fig. 4A, from the perspective of the called terminal, an embodiment of the method for processing a network telephone provided in the embodiment of the present application includes:
101. and receiving a network telephone call request sent by the server.
102. And compiling the network telephone calling request through a network telephone module in the terminal to obtain an incoming call packaging packet in a target format, wherein the target format is a format which can be identified by a telephone tool packet frame module in the terminal.
103. And transmitting the incoming call packaging packet to a first telephone tool pack module in the telephone tool pack frame module through the network telephone module.
104. And after recognizing that the incoming call encapsulation packet comprises a call instruction through the first telephone toolkit module, transmitting the incoming call encapsulation packet to an operating system module in the terminal.
105. And displaying the network telephone on a display interface of the terminal in a display form of a system telephone according to the incoming call packaging packet transmitted to the operating system module.
The network telephone is displayed on the display interface in the form of a system telephone, which can be understood by referring to fig. 4B to 4D, as shown in fig. 4B, fig. 4B is an interface of a network telephone call when the terminal is in a non-screen-locked state, and as can be seen from fig. 4B, a video call request is sent by an employee Judy of company a. The called user can answer the call through the 'accept' button or reject the call request through the 'reject' button.
As shown in fig. 4C, fig. 4C is an interface of the internet phone call when the called terminal is in the screen-locked state, and as can be seen from fig. 4C, the employee Judy of company a sends a video call request, and the called user can answer the call by sliding the "sliding answer button".
Fig. 4B and 4C are schematic diagrams each taking a mobile phone interface as an example, and actually, the solution of the embodiment of the present application is also applicable to a Personal Computer (PC), and as shown in fig. 4D, an enterprise WeChat of the embodiment of the present application may be installed on the PC, so that when a network phone call request enters, a network call may be implemented on the PC.
Compared with the prior art that the priority of the internet phone in the instant messaging application is lower than that of the system phone, and important VoIP calls can be missed in the incoming call reminding mode, the method for processing the internet phone can integrate the internet phone and the system phone, so that the internet phone and the system phone have the same priority, and the incoming call notification mode of the internet phone is the same as that of the system phone, so that the missing of the important VoIP calls is effectively avoided.
After the called terminal displays the display interface shown in fig. 4B, 4C or 4D, the user clicks an answer or reject button on the display interface, thereby completing an answer or reject flow. As shown in fig. 5A, the answering or rejecting process in the method for processing a network phone provided by the embodiment of the present application includes:
201. receiving an operation instruction for the network telephone call request through the operation system module.
The operation instruction aiming at the network telephone call request comprises an answering operation instruction or a rejecting operation instruction.
202. And the operating system module transmits the operating instruction to the first telephone toolkit module.
203. And the first telephone tool kit module is used for interpreting the operation instruction to obtain a first engine instruction which can be identified by the network telephone module.
204. The first telephone toolkit module transmits the first engine instruction to the network telephone module.
205. And analyzing the first engine instruction through the network telephone module to obtain a network call response corresponding to the network telephone call request.
206. And sending the network call response to the server.
In this embodiment of the application, when the operation instruction is an answering operation instruction, step 206 further includes: and starting the communication equipment used for network communication in the terminal.
The communication device for network communication may include a camera, a recording device, a microphone, a speaker, and the like.
When the user clicks the answer operation instruction, as shown in fig. 5B, it is displayed on the display interface that a video call is being made with employee Judy of company A, the call is now made for 18 seconds, and the video content in the video interface is not shown in fig. 5B, but it should not be understood as a limitation that the video content cannot be displayed. After the video is finished, the user can click a hang-up button to hang up the call.
In the embodiment of the present application, if a system telephone calls when the network call is performed, as in the interface shown in fig. 5C, the system telephone comes from the system telephone 028-85225111 in chang/meishan/senyang, and the current network telephone is not cut off in the embodiment of the present application, but the interface shown in fig. 5C is displayed, so that the user determines whether to end the current network telephone to answer the system telephone or reject the current network telephone.
In the embodiment of the application, the priority of the network telephone is the same as that of the system telephone, so that the network telephone is not influenced by the system telephone, and the user experience is improved.
In this embodiment of the present application, when a network call is ended and a network call is to be hung up, or a network call request is to be initiated, as shown in fig. 6A, another embodiment of a method for processing a network call provided in this embodiment of the present application includes:
301. and receiving an operation instruction of the network telephone on an operation interface of the instant messaging application.
The operation instruction may be a hang-up instruction after the call is ended, or an initiation instruction when a network call request is initiated.
302. And compiling the operation instruction of the network telephone through the network telephone module to obtain the operation packaging packet in the target format.
303. Passing the operation wrapper packet to the operating system module through a second one of the phone wrapper frame modules.
304. The operating system module transmits the operation encapsulation package to the first phone toolkit module.
305. And the operation packaging packet is interpreted by the first telephone tool packet module to obtain a second engine instruction which can be identified by the network telephone module.
306. The first telephone toolkit module transmits the second engine instruction to the network telephone module.
307. And analyzing the second engine instruction through the network telephone module to obtain an operation response corresponding to the operation instruction of the network telephone.
In this embodiment of the present application, when the operation instruction for the network telephone is a hang-up instruction, the method further includes: and closing the call equipment used for the network call in the terminal.
When the call is finished, the call equipment such as a camera, a receiver, a microphone, a loudspeaker and the like can be closed.
In the embodiment of the application, after the network telephone is finished, a call record corresponding to the network telephone is written into a system call record through the telephone tool kit frame module, wherein the call record comprises call record identification information.
As shown in fig. 6B, after the call is ended, a call ticket interface shown in fig. 6B is generated, and as shown in fig. 6B, information such as time of outgoing call or incoming call, call duration, and the like can be realized.
As shown in fig. 6C, the call record of the current internet phone is also written into the system call record.
The call record comprises fields such as call record name, call duration, call type, and identification information of the other party. When the network telephone is a single-person call, the call record identification information is identification information VID of the call opposite side, and when the network telephone is a group call, the call record identification information is group identification GroupID.
Since the VoIP calls are divided into 1-to-1 single audio and video calls and multi-person VoIP calls. When the enterprise WeChat writes the call records, the enterprise WeChat is divided into single call records and multi-person call records according to the number of call persons. Since a user will initiate a new VoIP call from the system call record at any time in the future, identification information capable of representing the call is stored by using the identification information of the other party, which may be referred to as call record identification information.
The information that the single call record can be written into includes: the name, company, audio and video type and time of call of the other party.
And writing the VID of the opposite party into the call record identification information of the single person. Each user using the enterprise WeChat is assigned a VID. When the VoIP is initiated, the VoIP audio-video call can be initiated to the opposite side as long as the VID of the opposite side is possessed.
The information that the multi-person call record can be written includes: the number of the call initiator, the company, the number of the call members, the type of the call audio and video, the call duration and the like.
For the call record identification information of a plurality of people, the GroupID of the call is written. When a multi-person conversation is carried out, all members can enter a room distributed in the background, and the ID of the room is the GroupID. Through the GroupID, the terminal can inquire the member information in the current room in real time, whether the call is ended or not and other fields. When a call is initiated from the system multi-person call record, the terminal will apply for joining the room to the background (the call is not ended) or reactivate the room (the call is ended) with the GroupID.
In the embodiment of the application, because the network call is also written into the system call record, the call back can be directly carried out in the system call record.
As shown in fig. 7, another embodiment of the method for processing a network telephone provided in the embodiment of the present application includes:
401. and receiving a callback operation aiming at the call record in the system call record.
402. And reading the call record identification information in the call record corresponding to the callback operation through the network telephone module.
403. Initiating a call back request through the network telephone module, wherein the call back request comprises the identification information of the call record, and the call back request is transmitted according to a call back path, and the call back path comprises the steps of starting from the network telephone module, passing through a second telephone toolkit module in the telephone toolkit frame module, reaching the operating system module, then reaching the first telephone toolkit module, and finally transmitting back to the network telephone module;
404. generating a network telephone callback request packet through a network telephone module, wherein the network telephone callback request packet comprises call record identification information corresponding to the callback operation;
405. and sending the network telephone callback request packet to the server.
Take enterprise WeChat as an example:
when a user clicks a certain enterprise WeChat communication record, the system can awaken the enterprise WeChat and jump into an enterprise WeChat APP.
The network telephone module reads the identification information of the call records (one person: VID, many persons: GroupID).
The APP initiates a VoIP call request and informs the IOS system through CXCallController.
The IOS system receives the call initiation request and feeds back the call initiation request to the VoIP module through the CXProvider to establish the VoIP call.
The network telephone module generates a VoIP request packet, seals VID or GroupID information into the packet, sends the packet to the server, and starts formal VoIP conversation.
The above-described process is a process of implementing callback through the call record, so that the user does not need to initiate callback again after starting the APP, and the efficiency of network call is improved.
In the embodiment of the application, the answering interface of the VoIP phone is consistent with the system phone, and the network phone can be answered even in the screen locking interface. The permission of the network telephone is improved, and interruption of system communication in the VoIP communication process is avoided. A network call record may be formed in the system and a user may initiate a VoIP call directly from the system dial-up call record.
The above description is a method for processing a network telephone, and the terminal in the embodiment of the present application is described below with reference to the drawings.
As shown in fig. 8, an embodiment of a terminal 50 provided in the present application includes:
a receiving module 501, configured to receive a network telephone call request sent by a server;
the network telephone module 502 is configured to compile the network telephone call request received by the receiving module 501 to obtain an incoming call encapsulation packet in a target format, where the target format is a format that can be identified by a telephone toolkit framework module in the terminal;
a first phone toolkit module 503, configured to receive the incoming call encapsulation packet transmitted by the network phone module 502, identify the incoming call encapsulation packet, and transmit the incoming call encapsulation packet to an operating system module in the terminal after identifying the incoming call encapsulation packet as a call instruction, where the first phone toolkit module belongs to a phone toolkit frame module;
an operating system module 504, configured to receive the incoming call encapsulation packet transmitted by the first phone toolkit module 503;
a display module 505, configured to display the internet phone in a display form of a system phone on a display interface of the terminal according to the incoming call encapsulation packet transmitted to the operating system module 504.
Compared with the prior art that the priority of the network telephone in the instant messaging application is lower than that of the system telephone, and important VoIP calls can be missed in the incoming call reminding mode, the terminal provided by the embodiment of the application can integrate the network telephone and the system telephone, so that the network telephone and the system telephone have the same priority, and the incoming call informing mode of the network telephone is the same as that of the system telephone, so that the missing of the important VoIP calls is effectively avoided.
Optionally, referring to fig. 9, in another embodiment of the terminal provided in this embodiment of the present application, the terminal 50 further includes a sending module 506,
the operating system module 504 is further configured to receive an operating instruction for the network telephone call request, where the operating instruction is passed to the first telephone toolkit module by the operating system module;
the first phone toolkit module 503 is further configured to interpret the operation instruction to obtain a first engine instruction that can be recognized by the network phone module, where the first engine instruction is passed to the network phone module by the first phone toolkit module;
the network phone module 502 is further configured to parse the first engine instruction to obtain a network call response corresponding to the network phone call request;
the sending module 506 is configured to send the network call response generated by the network telephone module 502 to the server.
Optionally, in another embodiment of the terminal provided in the embodiment of the present application,
the network telephone module 502 is further configured to start a call device for network call in the terminal when the operation instruction is an answering operation instruction.
Optionally, referring to fig. 10, in another embodiment of the terminal provided in this application embodiment, the terminal 50 further includes a second telephone toolkit module 507,
the receiving module 501 is further configured to receive an operation instruction for the network telephone on an operation interface of an instant messaging application;
the network telephone module 502 is further configured to compile the operation instruction for the network telephone to obtain the operation encapsulation packet in the target format;
the second phone toolkit module 507 is configured to pass the operation encapsulation package to the operating system module, where the operation encapsulation package is passed by the operating system module 504 to the first phone toolkit module, and the second phone toolkit module belongs to the phone toolkit framework module 510;
the first phone toolkit module 503 is further configured to interpret the operation encapsulation package transmitted by the operating system module to obtain a second engine instruction that can be recognized by the network phone module, where the second engine instruction is transmitted to the network phone module by the first phone toolkit module;
the network phone 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.
Optionally, in another embodiment of the terminal provided in the embodiment of the present application,
the network telephone module 502 is further configured to close a call device used for network call in the terminal when the operation instruction for the network telephone is a hang-up instruction.
As shown in fig. 10, the phone kit frame module 510 is configured to write a call record corresponding to the current internet phone into a system call record after the current internet phone is finished, where the call record includes call record identification information.
Optionally, in another embodiment of the terminal provided in the embodiment of the present application,
the receiving module 501 is further configured to receive a call back operation for the call record in a system call record;
the network telephone module 502 is further configured to read call record identification information in a call record corresponding to the callback operation, and initiate a callback call request, 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 a path from the network telephone module, to the operating system module through a second telephone toolkit module in the telephone toolkit frame module, to the first telephone toolkit module, and finally transmitted back to the network telephone module;
the network telephone module 502 is further configured to generate a network telephone callback request packet, where the network telephone callback request packet includes call record identification information corresponding to the callback operation;
the sending module 506 is further configured to send the network phone callback request packet to the server.
The terminal provided by the embodiment of the application can be a mobile phone, a tablet computer, a PC and other terminals, and the following takes the mobile phone as an example to introduce the process of the network telephone processing of the embodiment of the application.
As shown in fig. 11, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application.
Fig. 11 is a block diagram illustrating a partial structure of a mobile terminal 800 according to an embodiment of the present disclosure. Referring to fig. 11, the mobile terminal includes: camera 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, WiFi module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 11 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 11:
the camera image 810 can be used for image capture, and capturing user images during a video call.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the mobile terminal by operating the 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 program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 820 may include high speed random access memory, and may 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 may be used to receive operation instructions of a user, such as: listen or reject, and generate key signal inputs related to user settings and function controls of the mobile terminal 800. Specifically, 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 of a user (e.g., operations of the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger or a stylus pen) thereon or nearby, and drive a corresponding connected mobile terminal according to a preset program. Alternatively, the touch panel 831 may include two portions of a touch detection mobile terminal and a touch controller. The touch detection mobile terminal detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing mobile terminal, converts it into touch point coordinates, and then sends the touch point coordinates to the processor 880, and can receive and execute commands sent from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display an incoming call interface. The Display unit 840 may include an indicator Light 841, and the indicator Light 841 may be optionally configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, touch panel 831 can cover indicator 841, and when touch panel 831 detects a touch operation thereon or nearby, it can transmit to processor 880 to determine the type of touch event, and then processor 880 can provide a corresponding visual output on indicator 841 according to the type of touch event. Although the touch panel 831 and the indicator light 841 are implemented as two separate components in fig. 11 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 831 and the indicator light 841 may be integrated to implement the input and output functions of the mobile terminal.
The mobile terminal 800 may also include at least one sensor 850.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between the user and the mobile terminal. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and converted into audio data, and then the audio data is processed by the audio data output processor 880 and transmitted to, for example, another mobile terminal via the camera 810, or the audio data is output to the memory 820 for further processing.
WiFi module 870 may be used for communication.
The processor 880 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile terminal. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The mobile terminal 800 further includes a power supply 890 (e.g., a battery) for supplying power to the various components, which may be logically connected to the processor 880 via a power management system that may be configured to manage charging, discharging, and power consumption.
Although not shown, the mobile terminal 800 may further include a Radio Frequency (RF) circuit, a bluetooth module, and the like, which will not be described herein.
In the embodiment of the present application, the processor 880 included in the terminal during the network telephone processing further has the following functions:
receiving a network telephone call request sent by a server;
compiling the network telephone calling request through a network telephone module in the terminal to obtain an incoming call packaging packet with a target format, wherein the target format is a format which can be identified by a telephone tool packet frame module in the terminal;
transmitting the incoming call encapsulation packet to a first telephone toolkit module in the telephone toolkit frame module through the network telephone module;
after recognizing that the incoming call encapsulation packet comprises a call instruction through the first telephone toolkit module, transmitting the incoming call encapsulation packet to an operating system module in the terminal;
and displaying the network telephone on a display interface of the terminal in a display form of a system telephone according to the incoming call packaging packet transmitted to the operating system module.
Optionally, the method further comprises:
receiving, by the operating system module, an operating instruction for the network telephone call request, the operating instruction being passed to the first telephone toolkit module by the operating system module;
the operation instruction is interpreted by the first telephone toolkit module to obtain a first engine instruction which can be identified by the network telephone module, and the first engine instruction is transmitted to the network telephone module by the first telephone toolkit module;
analyzing the first engine instruction through the network telephone module to obtain a network call response corresponding to the network telephone call request;
and sending the network call response to the server.
Optionally, when the operation instruction is an answering operation instruction, before the sending the network call response to the server, the method further includes:
and starting the communication equipment used for network communication in the terminal.
Optionally, the method further comprises:
receiving an operation instruction of the network telephone on an operation interface of the instant messaging application;
compiling the operation instruction of the network telephone through the network telephone module to obtain an operation packaging packet in the target format;
passing the operation wrapper package to the operating system module through a second one of the phone wrapper frame modules, the operation wrapper package passed by the operating system module to the first phone wrapper module;
the operation encapsulation package is interpreted by the first telephone toolkit module to obtain a second engine instruction which can be identified by the network telephone module, and the second engine instruction is transmitted to the network telephone module by the first telephone toolkit module;
and analyzing the second engine instruction through the network telephone module to obtain an operation response corresponding to the operation instruction of the network telephone.
Optionally, when the operation instruction for the network telephone is a hang-up instruction, the method further includes:
and closing the call equipment used for the network call in the terminal.
Optionally, the method further comprises:
after the network telephone is finished, writing a call record corresponding to the network telephone into a system call record through the telephone tool kit frame module, wherein the call record comprises call record identification information.
Optionally, when the current network telephone is a single-person call, the call record identification information is identification information VID of a call counterpart, and when the current network telephone is a group call, the call record identification information is a group identification GroupID.
Optionally, the method further comprises:
receiving a call back operation aiming at the call record in a system call record;
reading the call record identification information in the call record corresponding to the callback operation through the network telephone module;
initiating a call back request through the network telephone module, wherein the call back request comprises the identification information of the call record, and the call back request is transmitted according to a call back path, and the call back path comprises the steps of starting from the network telephone module, passing through a second telephone toolkit module in the telephone toolkit frame module, reaching the operating system module, then reaching the first telephone toolkit module, and finally transmitting back to the network telephone module;
generating a network telephone callback request packet through a network telephone module, wherein the network telephone callback request packet comprises call record identification information corresponding to the callback operation;
and sending the network telephone callback request packet to the server.
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 repeated description is omitted here.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
The method and the terminal for processing the internet phone provided by the embodiment of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the embodiment of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. A method of voice over internet protocol processing, comprising:
receiving a network telephone call request sent by a server, wherein the network telephone call request is a video call request or a voice call request;
compiling the network telephone call request through a network telephone module in the terminal to obtain an incoming call encapsulation packet with a target format, wherein the target format is a format which can be identified by a telephone toolkit CallKit framework module in the terminal;
transmitting the incoming call encapsulation packet to a first telephone toolkit module in the telephone toolkit frame module through the network telephone module;
after recognizing that the incoming call encapsulation packet comprises a call instruction through the first telephone toolkit module, transmitting the incoming call encapsulation packet to an operating system module in the terminal;
displaying the network telephone on a display interface of the terminal in a display form of a system telephone according to the incoming call encapsulation packet transmitted to the operating system module, and displaying the type of the network telephone as video or voice on the display interface;
when the network call is carried out, if a system telephone calls in, displaying a rejection button and an end and answer button on the display interface to accept an operation instruction that a user ends the network telephone and then answers the system telephone or reject the operation instruction of the system telephone;
after the network telephone is finished, writing a call record corresponding to the network telephone into a system call record through the telephone tool kit frame module, wherein the call record comprises call record identification information and the type of the network telephone; when the network telephone is a group call, the call record identification information is a group identification GroupID; when the network telephone is a single-person call, the call record identification information is the identification information VID distributed to the call opposite side by the instant messaging application in which the network telephone module is located;
when a group call is initiated through the system call record, inquiring whether the call corresponding to the GroupID is finished or not through the GroupID, and if the call corresponding to the GroupID is not finished, applying for joining a room corresponding to the GroupID to a background; if the call corresponding to the GroupID is finished, applying to a background to reactivate the room corresponding to the GroupID; the GroupID is also used for inquiring the member information in the room corresponding to the GroupID in real time.
2. The method of claim 1, further comprising:
receiving, by the operating system module, an operating instruction for the network telephone call request, the operating instruction being passed to the first telephone toolkit module by the operating system module;
the operation instruction is interpreted by the first telephone toolkit module to obtain a first engine instruction which can be identified by the network telephone module, and the first engine instruction is transmitted to the network telephone module by the first telephone toolkit module;
analyzing the first engine instruction through the network telephone module to obtain a network call response corresponding to the network telephone call request;
and sending the network call response to the server.
3. The method according to claim 2, wherein when the operation instruction is a listening operation instruction, before the sending the network call response to the server, the method further comprises:
and starting the communication equipment used for network communication in the terminal.
4. The method of claim 3, further comprising:
receiving an operation instruction of the network telephone on an operation interface of the instant messaging application;
compiling the operation instruction of the network telephone through the network telephone module to obtain an operation packaging packet in the target format;
passing the operation wrapper package to the operating system module through a second one of the phone wrapper frame modules, the operation wrapper package passed by the operating system module to the first phone wrapper module;
the operation encapsulation package is interpreted by the first telephone toolkit module to obtain a second engine instruction which can be identified by the network telephone module, and the second engine instruction is transmitted to the network telephone module by the first telephone toolkit module;
and analyzing the second engine instruction through the network telephone module to obtain an operation response corresponding to the operation instruction of the network telephone.
5. The method according to claim 4, wherein when the operation instruction to the network telephone is a hang-up instruction, the method further comprises:
and closing the call equipment used for the network call in the terminal.
6. The method of claim 2, further comprising:
receiving a call back operation aiming at the call record in a system call record;
reading the call record identification information in the call record corresponding to the callback operation through the network telephone module;
initiating a call back request through the network telephone module, wherein the call back request comprises the identification information of the call record, and the call back request is transmitted according to a call back path, and the call back path comprises the steps of starting from the network telephone module, passing through a second telephone toolkit module in the telephone toolkit frame module, reaching the operating system module, then reaching the first telephone toolkit module, and finally transmitting back to the network telephone module;
generating a network telephone callback request packet through a network telephone module, wherein the network telephone callback request packet comprises call record identification information corresponding to the callback operation;
and sending the network telephone callback request packet to the server.
7. A terminal for implementing voice over internet protocol processing, comprising:
the receiving module is used for receiving a network telephone calling request sent by the server, wherein the network telephone calling request is a video call request or a voice call request;
the network telephone module is used for compiling the network telephone calling request received by the receiving module to obtain an incoming call packaging packet with a target format, and the target format is a format which can be identified by a telephone tool packet framework module in the terminal;
the first telephone toolkit module is used for receiving the incoming call packaging packet transmitted by the network telephone module, identifying the incoming call packaging packet, and transmitting the incoming call packaging packet to an operating system module in the terminal after identifying that the incoming call packaging packet comprises a call instruction, wherein the first telephone toolkit module belongs to a telephone toolkit frame module;
the operating system module is used for receiving the incoming call packaging packet transmitted by the first telephone toolkit module;
the display module is used for displaying the network telephone on a display interface of the terminal in a display form of the system telephone according to the incoming call packaging packet transmitted to the operating system module, and displaying the type of the network telephone as video or voice on the display interface; when the network call is carried out, if a system telephone calls in, displaying a rejection button and an end and answer button on the display interface to accept an operation instruction that a user ends the network telephone and then answers the system telephone or reject the operation instruction of the system telephone;
the telephone tool kit frame module is used for writing a call record corresponding to the network telephone into a system call record after the network telephone is finished, wherein the call record comprises call record identification information and the type of the network telephone; when the network telephone is a group call, the call record identification information is a group identification GroupID; when the network telephone is a single-person call, the call record identification information is the identification information VID distributed to the call opposite side by the instant messaging application in which the network telephone module is located;
the terminal is further configured to, when a group call is initiated through the system call record, query whether the call corresponding to the GroupID has ended through the GroupID, and if the call corresponding to the GroupID has not ended, apply for joining a room corresponding to the GroupID to a background; if the call corresponding to the GroupID is finished, applying to a background to reactivate the room corresponding to the GroupID; the GroupID is also used for inquiring the member information in the room corresponding to the GroupID in real time.
8. The terminal of claim 7, wherein the terminal further comprises a transmitting module,
the operating system module is further used for receiving an operating instruction aiming at the network telephone call request, and the operating instruction is transmitted to the first telephone toolkit module by the operating system module;
the first telephone toolkit module is further used for interpreting the operation instruction to obtain a first engine instruction which can be identified by the network telephone module, and the first engine instruction is transmitted to the network telephone module by the first telephone toolkit module;
the network telephone module is also used for analyzing the first engine instruction to obtain a network call response corresponding to the network telephone call request;
the sending module is used for sending the network call response generated by the network telephone module to the server.
9. The terminal of claim 8,
and the network telephone module is also used for starting the communication equipment for network communication in the terminal when the operation instruction is an answering operation instruction.
10. The terminal of claim 9, further comprising a second phone toolkit module,
the receiving module is also used for receiving an operation instruction of the network telephone on an operation interface of the instant messaging application;
the network telephone module is also used for compiling the operation instruction of the network telephone to obtain the operation packaging packet in the target format;
the second telephone toolkit module is used for transmitting the operation packaging packet to the operating system module, the operation packaging packet is transmitted to the first telephone toolkit module by the operating system module, and the second telephone toolkit module belongs to the telephone toolkit frame module;
the first telephone toolkit module is further used for interpreting the operation encapsulation package transmitted by the operating system module to obtain a second engine instruction which can be identified by the network telephone module, and the second engine instruction is transmitted to the network telephone module by the first telephone toolkit module;
the network telephone module is also used for analyzing the second engine instruction to obtain an operation response corresponding to the operation instruction of the network telephone.
11. The terminal of claim 10,
and the network telephone module is also used for closing the communication equipment used for network communication in the terminal when the operation instruction for the network telephone is a hang-up instruction.
12. The terminal of claim 8,
the receiving module is further configured to receive a call back operation for the call record in a system call record;
the network telephone module is further configured to read call record identification information in a call record corresponding to the callback operation, and initiate a callback call request, 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 a path from the network telephone module, to the operating system module through a second telephone toolkit module in the telephone toolkit frame module, to the first telephone toolkit module, and finally transmitted back to the network telephone module;
the network telephone module is also used for generating a network telephone callback request packet, and the network telephone callback request packet comprises call record identification information corresponding to the callback operation;
the sending module is further configured to send the network telephone callback request packet to the server.
13. A storage medium in which a software program and a module are stored; the software program and modules when executed implement a method of voice over internet protocol processing as claimed in any one of claims 1 to 6.
CN201710288887.2A 2017-04-27 2017-04-27 Method and terminal for processing network telephone Active CN108809894B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710288887.2A CN108809894B (en) 2017-04-27 2017-04-27 Method and terminal for processing network telephone
PCT/CN2018/081081 WO2018196548A1 (en) 2017-04-27 2018-03-29 Network telephone processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710288887.2A CN108809894B (en) 2017-04-27 2017-04-27 Method and terminal for processing network telephone

Publications (2)

Publication Number Publication Date
CN108809894A CN108809894A (en) 2018-11-13
CN108809894B true CN108809894B (en) 2021-04-27

Family

ID=63918826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710288887.2A Active CN108809894B (en) 2017-04-27 2017-04-27 Method and terminal for processing network telephone

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113497782A (en) * 2020-03-19 2021-10-12 北京小米移动软件有限公司 Call method and device and storage medium
CN113543366A (en) * 2020-04-17 2021-10-22 青岛海信移动通信技术股份有限公司 Mobile terminal, call method thereof, call server and call system
CN117768444A (en) * 2022-09-23 2024-03-26 北京小米移动软件有限公司 Call processing method and device, storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459711A (en) * 2008-12-31 2009-06-17 英保达资讯(天津)有限公司 Network telephone having advertisement playing function
US9277530B2 (en) * 2014-05-30 2016-03-01 Apple Inc. Delivery of push notifications to an inactive computing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
iOS Call Kit for VOIP;MasonFu;《简书》;http://www.jianshu.com/p/3bf73a293535;20161017;第1-4页 *

Also Published As

Publication number Publication date
WO2018196548A1 (en) 2018-11-01
CN108809894A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN103916829B (en) A kind of desktop Notification Method of message and device
WO2016134630A1 (en) Method and device for recognizing malicious call
US10951557B2 (en) Information interaction method and terminal
CN108063908A (en) A kind of video call method, device and mobile terminal
CN108809894B (en) Method and terminal for processing network telephone
WO2020103070A1 (en) Method and apparatus for processing application program, and electronic device
CN106101456A (en) A kind of method and device of call contact
CN103957330A (en) Method, device and system for processing calling busying
CN110945467B (en) Disturbance-free method and terminal
CN106161749A (en) A kind of malicious call recognition methods, and device
CN104917905B (en) Processing method, terminal and the server of Stranger Calls
CN106657645A (en) Call request processing method and device, calling method and device, and related terminal
CN105100484A (en) Method, device and system for ending voice call
CN106412481B (en) Reminding method, device and terminal based on VoLTE video calling
CN106357610A (en) Communication method and device
CN104333641B (en) Call method and device
CN106231072A (en) The control method of prompting message, device and terminal unit
CN111369994B (en) Voice processing method and electronic equipment
CN104780256A (en) Address book management method and device and intelligent terminal
CN103916538A (en) Call control method and related device
KR20150088532A (en) Apparatus for providing service during call and method for using the apparatus
CN105554325A (en) Blacklist number processing method and mobile terminal
CN105824513A (en) Message processing method and apparatus
CN110012155A (en) A kind of call recording method, terminal and computer readable storage medium
CN110062107A (en) A kind of content display method and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant