CN114615647A - Call control method, device and storage medium - Google Patents
Call control method, device and storage medium Download PDFInfo
- Publication number
- CN114615647A CN114615647A CN202210239584.2A CN202210239584A CN114615647A CN 114615647 A CN114615647 A CN 114615647A CN 202210239584 A CN202210239584 A CN 202210239584A CN 114615647 A CN114615647 A CN 114615647A
- Authority
- CN
- China
- Prior art keywords
- virtual call
- party application
- terminal
- added service
- value
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000008569 process Effects 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 claims description 17
- 238000012544 monitoring process Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 description 16
- 238000012545 processing Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/50—Service provisioning or reconfiguring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/30—Connection release
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
本公开涉及一种通话控制方法、装置及存储介质。通话控制方法应用于终端,所述终端的应用层设置有具有虚拟通话功能的第三方应用,所述方法包括:在所述终端通过与之通信连接的IOT设备执行所述第三方应用的虚拟通话功能的过程中,获取所述IOT设备发送的挂断虚拟通话指令;将所述挂断虚拟通话指令发送至虚拟通话增值服务;根据所述挂断虚拟通话指令,所述虚拟通话增值服务向所述第三方应用发送挂断虚拟通话的通知消息,以使所述第三方应用根据所述通知消息,执行挂断虚拟通话的操作。
The present disclosure relates to a call control method, device and storage medium. The call control method is applied to a terminal, and an application layer of the terminal is provided with a third-party application with a virtual call function. In the process of the function, obtain the hang-up virtual call instruction sent by the IOT device; send the hang-up virtual call instruction to the virtual call value-added service; according to the hang-up virtual call instruction, the virtual call value-added service is sent to the The third-party application sends a notification message for hanging up the virtual call, so that the third-party application performs an operation of hanging up the virtual call according to the notification message.
Description
技术领域technical field
本公开涉及终端技术领域,尤其涉及一种通话控制方法、装置及存储介质。The present disclosure relates to the technical field of terminals, and in particular, to a call control method, device and storage medium.
背景技术Background technique
目前,通过物联网(Internet of Things,IoT)设备例如耳机或者车载执行第三方应用的虚拟通话功能的过程中,当用户通过IOT设备挂断虚拟通话时,只是断开IOT设备和终端之间的连接,使得虚拟通话在终端中处于语音外放的状态。At present, in the process of executing the virtual call function of a third-party application through an Internet of Things (Internet of Things, IoT) device such as a headset or a vehicle, when the user hangs up the virtual call through the IOT device, only the connection between the IOT device and the terminal is disconnected. connection, so that the virtual call is in the state of voice broadcasting in the terminal.
由此容易给用户造成一种明明已经执行了挂断操作,但是为什么虚拟通话还在继续的错觉,降低用户使用终端的体验感。As a result, it is easy to create an illusion for the user that the hang-up operation has been performed, but why the virtual call continues, which reduces the user's experience of using the terminal.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本公开提供一种通话控制方法、装置及存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a call control method, device and storage medium.
根据本公开实施例的第一方面,提供一种通话控制方法,应用于终端,所述终端的应用层设置有具有虚拟通话功能的第三方应用,所述方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided a call control method, which is applied to a terminal, where an application layer of the terminal is provided with a third-party application with a virtual call function, and the method includes:
在所述终端通过与之通信连接的IOT设备执行所述第三方应用的虚拟通话功能的过程中,获取所述IOT设备发送的挂断虚拟通话指令;In the process that the terminal executes the virtual call function of the third-party application through the IOT device that is communicatively connected to it, acquiring a hang-up virtual call instruction sent by the IOT device;
将所述挂断虚拟通话指令发送至虚拟通话增值服务,其中,所述虚拟通话增值服务为预先设置在所述终端中、与所述第三方应用处于绑定关系的服务,所述虚拟通话增值服务具有在虚拟通话的过程中,接收所述第三方应用发送的通知消息,以及向所述第三方应用发送所述终端的通知消息的能力;Sending the instruction to hang up the virtual call to a virtual call value-added service, wherein the virtual call value-added service is a service preset in the terminal and in a binding relationship with the third-party application, and the virtual call value-added service is The service has the capability of receiving the notification message sent by the third-party application and sending the notification message of the terminal to the third-party application during the virtual call;
根据所述挂断虚拟通话指令,所述虚拟通话增值服务向所述第三方应用发送挂断虚拟通话的通知消息,以使所述第三方应用根据所述通知消息,执行挂断虚拟通话的操作。According to the instruction to hang up the virtual call, the virtual call value-added service sends a notification message of hanging up the virtual call to the third-party application, so that the third-party application performs the operation of hanging up the virtual call according to the notification message .
可选地,所述方法还包括:Optionally, the method further includes:
所述第三方应用通过所述终端建立虚拟通话时,监听所述终端的连接状态;When the third-party application establishes a virtual call through the terminal, monitor the connection status of the terminal;
在监听到所述终端通信连接有所述IOT设备时,所述第三方应用绑定所述虚拟通话增值服务。When monitoring that the terminal is communicatively connected to the IOT device, the third-party application binds the virtual call value-added service.
可选地,所述第三方应用绑定所述虚拟通话增值服务后,所述方法还包括:Optionally, after the third-party application is bound to the virtual call value-added service, the method further includes:
将预先设置的第一接口和第二接口注册到所述虚拟通话增值服务中,其中,所述第三方应用能够调用所述第一接口,向所述虚拟通话增值服务发送表征所述第三方应用的运行状态的通知消息,所述虚拟通话增值服务能够通过所述第二接口,向所述第三方应用发送所述终端的通知消息;Registering the preset first interface and the second interface in the virtual call value-added service, wherein the third-party application can call the first interface, and send the third-party application to the virtual call value-added service The notification message of the running state of the virtual call value-added service can send the notification message of the terminal to the third-party application through the second interface;
所述根据所述挂断虚拟通话指令,所述虚拟通话增值服务向所述第三方应用发送挂断虚拟通话的通知消息,包括:The virtual call value-added service sends a notification message of hanging up the virtual call to the third-party application according to the instruction to hang up the virtual call, including:
根据所述挂断虚拟通话指令,所述虚拟通话增值服务通过所述第二接口向所述第三方应用发送挂断虚拟通话的通知消息。According to the instruction to hang up the virtual call, the virtual call value-added service sends a notification message of hanging up the virtual call to the third-party application through the second interface.
可选地,在所述终端确定所述第三方应用绑定成功后,所述方法还包括:Optionally, after the terminal determines that the third-party application is successfully bound, the method further includes:
将第三接口注册到所述虚拟通话增值服务中;registering the third interface in the virtual call value-added service;
所述方法还包括:The method also includes:
所述第三方应用调用所述第三接口,向所述虚拟通话增值服务发送对注册的接口解除注册的通知消息。The third-party application invokes the third interface, and sends a notification message for deregistering the registered interface to the virtual call value-added service.
可选地,所述IOT设备为与所述终端通信连接的蓝牙耳机、与所述终端通信连接的车载终端中的任一者。Optionally, the IOT device is any one of a Bluetooth headset communicatively connected to the terminal and a vehicle-mounted terminal communicatively connected to the terminal.
根据本公开实施例的第二方面,提供一种通话控制装置,应用于终端,所述终端的应用层设置有具有虚拟通话功能的第三方应用,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided a call control apparatus, which is applied to a terminal, where an application layer of the terminal is provided with a third-party application with a virtual call function, and the apparatus includes:
获取模块,用于在所述终端通过与之通信连接的IOT设备执行所述第三方应用的虚拟通话功能的过程中,获取所述IOT设备发送的挂断虚拟通话指令;an acquisition module, configured to acquire a hang-up virtual call instruction sent by the IOT device during the process that the terminal executes the virtual call function of the third-party application through the IOT device that is communicatively connected to it;
发送模块,用于将所述挂断虚拟通话指令发送至虚拟通话增值服务,其中,所述虚拟通话增值服务为预先设置在所述终端中、与所述第三方应用处于绑定关系的服务,所述虚拟通话增值服务具有在虚拟通话的过程中,接收所述第三方应用发送的通知消息,以及向所述第三方应用发送所述终端的通知消息的能力;a sending module, configured to send the instruction to hang up the virtual call to a virtual call value-added service, wherein the virtual call value-added service is a service preset in the terminal and in a binding relationship with the third-party application, The virtual call value-added service has the capability of receiving a notification message sent by the third-party application and sending a notification message of the terminal to the third-party application during a virtual call;
提示模块,用于根据所述挂断虚拟通话指令,所述虚拟通话增值服务向所述第三方应用发送挂断虚拟通话的通知消息,以使所述第三方应用根据所述通知消息,执行挂断虚拟通话的操作。a prompt module, configured to send a notification message of hanging up the virtual call to the third-party application according to the instruction to hang up the virtual call, so that the third-party application executes the hang-up operation according to the notification message. The operation of disconnecting the virtual call.
可选地,所述装置还包括:Optionally, the device further includes:
监听模块,用于所述第三方应用通过所述终端建立虚拟通话时,监听所述终端的连接状态;在监听到所述终端通信连接有所述IOT设备时,所述第三方应用绑定所述虚拟通话增值服务。The monitoring module is used for monitoring the connection status of the terminal when the third-party application establishes a virtual call through the terminal; when monitoring that the terminal is communicatively connected to the IOT device, the third-party application binds the terminal. The virtual call value-added services described above.
可选地,所述装置还包括:Optionally, the device further includes:
注册模块,用于所述第三方应用绑定所述虚拟通话增值服务后,将预先设置的第一接口和第二接口注册到所述虚拟通话增值服务中,其中,所述第三方应用能够调用所述第一接口,向所述虚拟通话增值服务发送表征所述第三方应用的运行状态的通知消息,所述虚拟通话增值服务能够通过所述第二接口,向所述第三方应用发送所述终端的通知消息;A registration module, configured to register the preset first interface and the second interface in the virtual call value-added service after the third-party application is bound to the virtual call value-added service, wherein the third-party application can call The first interface sends a notification message representing the running state of the third-party application to the virtual call value-added service, and the virtual call value-added service can send the third-party application the third-party application through the second interface. Terminal notification message;
所述提示模块采用如下方式根据所述挂断虚拟通话指令,所述虚拟通话增值服务向所述第三方应用发送挂断虚拟通话的通知消息,包括:The prompt module adopts the following method to send a notification message of hanging up the virtual call to the third-party application according to the instruction to hang up the virtual call, including:
根据所述挂断虚拟通话指令,所述虚拟通话增值服务通过所述第二接口向所述第三方应用发送挂断虚拟通话的通知消息。According to the instruction to hang up the virtual call, the virtual call value-added service sends a notification message of hanging up the virtual call to the third-party application through the second interface.
可选地,所述注册模块还用于:Optionally, the registration module is also used for:
在所述终端确定所述第三方应用绑定成功后,将第三接口注册到所述虚拟通话增值服务中;After the terminal determines that the third-party application is successfully bound, the third interface is registered in the virtual call value-added service;
所述提示模块还用于:The prompt module is also used to:
所述第三方应用调用所述第三接口,向所述虚拟通话增值服务发送对注册的接口解除注册的通知消息。The third-party application invokes the third interface, and sends a notification message for deregistering the registered interface to the virtual call value-added service.
可选地,所述IOT设备为与所述终端通信连接的蓝牙耳机、与所述终端通信连接的车载终端中的任一者。Optionally, the IOT device is any one of a Bluetooth headset communicatively connected to the terminal and a vehicle-mounted terminal communicatively connected to the terminal.
根据本公开实施例的第三方面,提供一种通话控制装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a call control device, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:通过执行所述指令,执行前述第一方面或者第一方面中任意一示例中通话控制方法。Wherein, the processor is configured to execute the call control method in the first aspect or any example of the first aspect by executing the instruction.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开第一方面所提供的通话控制方法的步骤。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, the program instructions implementing the steps of the call control method provided in the first aspect of the present disclosure when the program instructions are executed by a processor.
本公开的实施例提供的技术方案可以包括以下有益效果:在终端通过与之通信连接的IOT设备执行第三方应用的虚拟通话功能的过程中,获取IOT设备发送的挂断虚拟通话指令,将挂断虚拟通话指令发送至预先设置在终端中、与第三方应用处于绑定关系的虚拟通话增值服务,通过虚拟通话增值服务向第三方应用发送挂断虚拟通话的通知消息,可使得第三方应用根据通知消息,自动挂断虚拟通话,提升用户对终端的使用体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: in the process that the terminal executes the virtual call function of the third-party application through the IOT device communicatively connected with it, the terminal acquires the hang-up virtual call instruction sent by the IOT device, and then hangs up the virtual call. The command to disconnect the virtual call is sent to the virtual call value-added service that is preset in the terminal and is bound to the third-party application. The virtual call value-added service sends a notification message of hanging up the virtual call to the third-party application, which can make the third-party application according to Notification messages, automatically hang up virtual calls, improve the user experience of the terminal.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种通话控制方法的流程图。Fig. 1 is a flow chart of a method for call control according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种通话控制方法的流程图。Fig. 2 is a flow chart of a call control method according to an exemplary embodiment.
图3是根据一示例性实施例示出的应用本公开的通话控制方法的示意流程图。FIG. 3 is a schematic flow chart illustrating a call control method applying the present disclosure according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种通话控制装置的框图。Fig. 4 is a block diagram of a call control apparatus according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种用于通话控制的装置的框图。Fig. 5 is a block diagram of an apparatus for call control according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种通话控制方法的流程图,如图1所示,通话控制方法用于终端中,包括以下步骤。Fig. 1 is a flowchart of a call control method according to an exemplary embodiment. As shown in Fig. 1 , the call control method used in a terminal includes the following steps.
在步骤S11中,在终端通过与之通信连接的IOT设备执行第三方应用的虚拟通话功能的过程中,获取IOT设备发送的挂断虚拟通话指令。In step S11, in the process of executing the virtual call function of the third-party application through the IOT device that is communicatively connected to the terminal, the terminal acquires an instruction to hang up the virtual call sent by the IOT device.
其中,本公开中的第三方应用为具有虚拟通话功能的应用。IOT设备例如可以是与所述终端通信连接的蓝牙耳机,或者是与所述终端通信连接的车载终端。Wherein, the third-party application in the present disclosure is an application with a virtual call function. The IOT device may be, for example, a Bluetooth headset communicatively connected to the terminal, or a vehicle-mounted terminal communicatively connected to the terminal.
本公开中,当用户对与终端通信连接的IOT设备执行了挂断虚拟通话指令后,IOT设备根据与终端的通信协议,将挂断虚拟通话指令发送至终端,终端获取到IOT设备发送的挂断虚拟通话指令后,断开与IOT设备的虚拟通话,并将挂断虚拟通话指令发送至虚拟通话增值服务。In the present disclosure, after the user executes the instruction to hang up the virtual call on the IOT device that is communicatively connected to the terminal, the IOT device sends the instruction to hang up the virtual call to the terminal according to the communication protocol with the terminal, and the terminal obtains the hang-up instruction sent by the IOT device. After disconnecting the virtual call instruction, disconnect the virtual call with the IOT device, and send the virtual call hanging up instruction to the virtual call value-added service.
在步骤S12中,将挂断虚拟通话指令发送至虚拟通话增值服务。In step S12, an instruction to hang up the virtual call is sent to the virtual call value-added service.
其中,虚拟通话增值服务为预先设置在所述终端中,与所述第三方应用处于绑定关系的服务,且虚拟通话增值服务具有在虚拟通话的过程中,接收所述第三方应用发送的通知消息,以及向所述第三方应用发送所述终端的通知消息的能力。The virtual call value-added service is a service that is preset in the terminal and is in a binding relationship with the third-party application, and the virtual call value-added service has the ability to receive a notification sent by the third-party application during the virtual call. message, and the ability to send notification messages of the terminal to the third-party application.
在步骤S13中,根据挂断虚拟通话指令,虚拟通话增值服务向第三方应用发送挂断虚拟通话的通知消息,以使第三方应用根据通知消息,执行挂断虚拟通话的操作。In step S13, according to the instruction to hang up the virtual call, the virtual call value-added service sends a notification message of hanging up the virtual call to the third-party application, so that the third-party application performs the operation of hanging up the virtual call according to the notification message.
在本公开的示例性实施例中,在终端通过与之通信连接的IOT设备执行第三方应用的虚拟通话功能的过程中,获取IOT设备发送的挂断虚拟通话指令,将挂断虚拟通话指令发送至预先设置在终端中、与第三方应用处于绑定关系的虚拟通话增值服务,通过虚拟通话增值服务向第三方应用发送挂断虚拟通话的通知消息,可使得第三方应用根据通知消息,自动挂断虚拟通话,提升用户对终端的使用体验。In the exemplary embodiment of the present disclosure, in the process of executing the virtual call function of the third-party application through the IOT device that is communicatively connected to the terminal, the terminal obtains a hang-up virtual call instruction sent by the IOT device, and sends the hang-up virtual call instruction To the virtual call value-added service preset in the terminal and bound to the third-party application, the notification message of hanging up the virtual call is sent to the third-party application through the virtual call value-added service, so that the third-party application can automatically hang up according to the notification message. Cut off virtual calls and improve user experience of using the terminal.
图2是根据一示例性实施例示出的一种通话控制方法的流程图,如图2所示,通话控制方法用于终端中,包括以下步骤。Fig. 2 is a flowchart of a call control method according to an exemplary embodiment. As shown in Fig. 2 , the call control method used in a terminal includes the following steps.
在步骤S21中,第三方应用通过终端建立虚拟通话时,监听终端的连接状态,在监听到终端通信连接有IOT设备时,第三方应用绑定虚拟通话增值服务。In step S21, when the third-party application establishes a virtual call through the terminal, it monitors the connection status of the terminal, and when monitoring that the terminal is connected to an IOT device in communication, the third-party application binds the value-added service of the virtual call.
在步骤S22中,将预先设置的第一接口和第二接口注册到所述虚拟通话增值服务中。In step S22, the preset first interface and second interface are registered into the virtual call value-added service.
其中,所述第三方应用能够调用所述第一接口,向所述虚拟通话增值服务发送表征所述第三方应用的运行状态的通知消息,所述虚拟通话增值服务能够通过所述第二接口,向所述第三方应用发送所述终端的通知消息。Wherein, the third-party application can call the first interface, and send a notification message representing the running state of the third-party application to the virtual call value-added service, and the virtual call value-added service can pass the second interface, Send a notification message of the terminal to the third-party application.
在步骤S23中,在终端通过与之通信连接的IOT设备执行第三方应用的虚拟通话功能的过程中,获取IOT设备发送的挂断虚拟通话指令。In step S23, in the process of executing the virtual call function of the third-party application through the IOT device that is communicatively connected to the terminal, the terminal acquires an instruction to hang up the virtual call sent by the IOT device.
在步骤S24中,将挂断虚拟通话指令发送至虚拟通话增值服务。In step S24, an instruction to hang up the virtual call is sent to the virtual call value-added service.
在步骤S25中,根据挂断虚拟通话指令,虚拟通话增值服务向第三方应用发送挂断虚拟通话的通知消息,以使第三方应用根据通知消息,执行挂断虚拟通话的操作。In step S25, according to the instruction to hang up the virtual call, the virtual call value-added service sends a notification message of hanging up the virtual call to the third-party application, so that the third-party application performs the operation of hanging up the virtual call according to the notification message.
本公开中,可预先设置一个服务,即虚拟通话增值服务,并设置调用接口的接口标准,在第三方应用监听到终端通信连接有IOT设备时,第三方应用绑定虚拟通话增值服务。In the present disclosure, a service, that is, a virtual call value-added service, can be preset, and an interface standard for calling an interface can be set. When a third-party application monitors that the terminal communication is connected to an IOT device, the third-party application binds the virtual call value-added service.
进而,在所述终端通过与之通信连接的IOT设备执行所述第三方应用的虚拟通话功能的过程中,获取所述IOT设备发送的挂断虚拟通话指令,将所述挂断虚拟通话指令发送至预先设置在所述终端中、与所述第三方应用处于绑定关系的虚拟通话增值服务,通过虚拟通话增值服务向第三方应用发送挂断虚拟通话的通知消息,可使得第三方应用根据所述通知消息,自动挂断虚拟通话,提升用户对终端的使用体验。Further, in the process that the terminal executes the virtual call function of the third-party application through the IOT device that is communicatively connected to it, acquires a hang-up virtual call instruction sent by the IOT device, and sends the hang-up virtual call instruction To the virtual call value-added service that is preset in the terminal and is in a binding relationship with the third-party application, sending a notification message to hang up the virtual call to the third-party application through the virtual call value-added service enables the third-party application to The notification message is displayed, the virtual call is automatically hung up, and the user experience of the terminal is improved.
本公开以下以IOT设备为车载终端为例,对应用本公开的通话控制方法进行说明。In the present disclosure, the call control method applying the present disclosure will be described below by taking the IOT device as an in-vehicle terminal as an example.
例如,车载终端与终端基于蓝牙通信连接,可预先在终端的蓝牙模块中设置虚拟通话增值服务,例如该服务例如可以是HeadsetExtService.java,并设置两个aidl文件,一个是IBluetoothVirtualCall.aidl,用于存放第一接口registerVirtualVoiceCallBack和第三接口unregisterVirtualVoiceCallBack。另一个是为IBluetoothVirtualCallCallback.aidl,用于存放第二接口onhangupcallstate。For example, the vehicle terminal and the terminal are connected based on Bluetooth communication, and a virtual call value-added service can be set in the Bluetooth module of the terminal in advance. For example, the service can be HeadsetExtService.java, and two aidl files are set, one is IBluetoothVirtualCall.aidl, which is used for Store the first interface registerVirtualVoiceCallBack and the third interface unregisterVirtualVoiceCallBack. The other is IBluetoothVirtualCallCallback.aidl, which is used to store the second interface onhangupcallstate.
图3是根据一示例性实施例示出的应用本公开的通话控制方法的示意流程图。在图3中,第三方应用通过终端建立语音链路进行虚拟通话时,监听终端的连接状态,在监听到终端通信连接有IOT设备时,第三方应用绑定虚拟通话增值服务(HeadsetExtService.java)。终端确认第三方应用绑定成功后,将第一接口(registerVirtualVoiceCallBack)、第二接口(onhangupcallstate)和第三接口(unregisterVirtualVoiceCallBack)注册到虚拟通话增值服务(HeadsetExtService.java)中。FIG. 3 is a schematic flow chart illustrating a call control method applying the present disclosure according to an exemplary embodiment. In Figure 3, when a third-party application establishes a voice link through the terminal to conduct a virtual call, it monitors the connection status of the terminal. When monitoring the terminal communication connection with an IOT device, the third-party application binds the virtual call value-added service (HeadsetExtService.java) . After confirming that the third-party application is successfully bound, the terminal registers the first interface (registerVirtualVoiceCallBack), the second interface (onhangupcallstate) and the third interface (unregisterVirtualVoiceCallBack) in the virtual call value-added service (HeadsetExtService.java).
进而,当用户在车载终端的屏幕上针对第三方应用的通话界面进行挂断操作后,车载终端根据与终端的通信协议,将挂断虚拟通话指令发送至终端,终端获取到车载终端发送的挂断虚拟通话指令后,断开与车载终端的虚拟通话,并将挂断虚拟通话指令发送至虚拟通话增值服务(HeadsetExtService.java)。虚拟通话增值服务(HeadsetExtService.java)接收终端发送的挂断虚拟通话指令后,根据挂断虚拟通话指令,通过第二接口(onhangupcallstate)向第三方应用发送挂断虚拟通话的通知消息,以使第三方应用根据通知消息,执行挂断虚拟通话的操作。Furthermore, after the user performs a hang-up operation on the call interface of the third-party application on the screen of the vehicle-mounted terminal, the vehicle-mounted terminal sends a virtual call hang-up instruction to the terminal according to the communication protocol with the terminal, and the terminal obtains the hang-up message sent by the vehicle-mounted terminal. After disconnecting the virtual call instruction, disconnect the virtual call with the in-vehicle terminal, and send the hanging up virtual call instruction to the virtual call value-added service (HeadsetExtService.java). After receiving the virtual call hanging up command sent by the terminal, the virtual call value-added service (HeadsetExtService.java) sends a notification message of hanging up the virtual call to the third-party application through the second interface (onhangupcallstate) according to the hanging virtual call instruction, so that the first The three-party application performs the operation of hanging up the virtual call according to the notification message.
第三方应用在接收到挂断虚拟通话的通知消息后,执行挂断虚拟通话的操作,并调用第三接口(unregisterVirtualVoiceCallBack),向虚拟通话增值服务(HeadsetExtService.java)发送对注册的接口解除注册的通知消息。虚拟通话增值服务(HeadsetExtService.java)接收到第三方应用发送的对注册的接口解除注册的通知消息后,对第一接口、第二接口和第三接口解除注册,第三方应用解除与虚拟通话增值服务(HeadsetExtService.java)的绑定关系。After receiving the notification message of hanging up the virtual call, the third-party application executes the operation of hanging up the virtual call, and calls the third interface (unregisterVirtualVoiceCallBack) to send the virtual call value-added service (HeadsetExtService.java) to unregister the registered interface. notification message. After the virtual call value-added service (HeadsetExtService.java) receives the notification message sent by the third-party application to unregister the registered interface, it unregisters the first interface, the second interface and the third interface, and the third-party application cancels the virtual call value-added service. The binding relationship of the service (HeadsetExtService.java).
图4是根据一示例性实施例示出的一种通话控制装置400的框图。参照图4,通话控制装置应用于终端,所述终端的应用层设置有具有虚拟通话功能的第三方应用,所述装置包括:FIG. 4 is a block diagram of a
获取模块401,用于在所述终端通过与之通信连接的IOT设备执行所述第三方应用的虚拟通话功能的过程中,获取所述IOT设备发送的挂断虚拟通话指令;The obtaining
发送模块402,用于将所述挂断虚拟通话指令发送至虚拟通话增值服务,其中,所述虚拟通话增值服务为预先设置在所述终端中、与所述第三方应用处于绑定关系的服务,所述虚拟通话增值服务具有在虚拟通话的过程中,接收所述第三方应用发送的通知消息,以及向所述第三方应用发送所述终端的通知消息的能力;A sending
提示模块403,用于根据所述挂断虚拟通话指令,所述虚拟通话增值服务向所述第三方应用发送挂断虚拟通话的通知消息,以使所述第三方应用根据所述通知消息,执行挂断虚拟通话的操作。The
可选地,所述装置还包括:Optionally, the device further includes:
监听模块404,用于所述第三方应用通过所述终端建立虚拟通话时,监听所述终端的连接状态;在监听到所述终端通信连接有所述IOT设备时,所述第三方应用绑定所述虚拟通话增值服务。The
可选地,所述装置还包括:Optionally, the device further includes:
注册模块405,用于所述第三方应用绑定所述虚拟通话增值服务后,将预先设置的第一接口和第二接口注册到所述虚拟通话增值服务中,其中,所述第三方应用能够调用所述第一接口,向所述虚拟通话增值服务发送表征所述第三方应用的运行状态的通知消息,所述虚拟通话增值服务能够通过所述第二接口,向所述第三方应用发送所述终端的通知消息;The
所述提示模块403采用如下方式根据所述挂断虚拟通话指令,所述虚拟通话增值服务向所述第三方应用发送挂断虚拟通话的通知消息:The prompting
根据所述挂断虚拟通话指令,所述虚拟通话增值服务通过所述第二接口向所述第三方应用发送挂断虚拟通话的通知消息。According to the instruction to hang up the virtual call, the virtual call value-added service sends a notification message of hanging up the virtual call to the third-party application through the second interface.
可选地,所述注册模块405还用于:Optionally, the
在所述终端确定所述第三方应用绑定成功后,将第三接口注册到所述虚拟通话增值服务中;After the terminal determines that the third-party application is successfully bound, the third interface is registered in the virtual call value-added service;
所述提示模块403还用于:The prompting
所述第三方应用调用所述第三接口,向所述虚拟通话增值服务发送对注册的接口解除注册的通知消息。The third-party application invokes the third interface, and sends a notification message for deregistering the registered interface to the virtual call value-added service.
可选地,所述IOT设备为与所述终端通信连接的蓝牙耳机、与所述终端通信连接的车载终端中的任一者。Optionally, the IOT device is any one of a Bluetooth headset communicatively connected to the terminal and a vehicle-mounted terminal communicatively connected to the terminal.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
本公开还提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开提供的通话控制方法的步骤。The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and when the program instructions are executed by a processor, implement the steps of the call control method provided by the present disclosure.
图5是根据一示例性实施例示出的一种用于通话控制的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 5 is a block diagram of an
参照图5,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。5, the
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的通话控制方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述通话控制方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述通话控制方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a
在另一示例性实施例中,还提供一种计算机程序产品,该计算机程序产品包含能够由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行上述的通话控制方法的代码部分。In another exemplary embodiment, there is also provided a computer program product comprising a computer program executable by a programmable apparatus, the computer program having, when executed by the programmable apparatus, for performing the above The code section of the call control method.
本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210239584.2A CN114615647B (en) | 2022-03-11 | 2022-03-11 | Call control method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210239584.2A CN114615647B (en) | 2022-03-11 | 2022-03-11 | Call control method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114615647A true CN114615647A (en) | 2022-06-10 |
CN114615647B CN114615647B (en) | 2024-11-05 |
Family
ID=81862410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210239584.2A Active CN114615647B (en) | 2022-03-11 | 2022-03-11 | Call control method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114615647B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116016750A (en) * | 2022-12-13 | 2023-04-25 | 北京小米移动软件有限公司 | Call control method and device, storage medium and chip |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6829474B1 (en) * | 1999-08-30 | 2004-12-07 | Nec Corporation | System for providing multimedia value-added services |
KR20060106328A (en) * | 2005-04-07 | 2006-10-12 | 주식회사 인티큐브 | Virtual mobile communication service providing system and method |
CN1852466A (en) * | 2005-09-02 | 2006-10-25 | 华为技术有限公司 | Method and system for realizing virtual-number-like voice increment business |
US20150079961A1 (en) * | 2013-09-13 | 2015-03-19 | Facebook, Inc. | Techniques for phone number and data management |
CN104869258A (en) * | 2015-06-09 | 2015-08-26 | 张维秀 | Automatic hang-up method and device for mobile terminal |
CN110536000A (en) * | 2018-05-23 | 2019-12-03 | 中国移动通信集团浙江有限公司 | A kind of call recording method and system |
CN110620969A (en) * | 2019-09-29 | 2019-12-27 | 歌尔科技有限公司 | Voice call control method and device, wireless earphone and storage medium |
WO2020107491A1 (en) * | 2018-11-30 | 2020-06-04 | 华为技术有限公司 | Wireless audio system, and audio communication method and device |
-
2022
- 2022-03-11 CN CN202210239584.2A patent/CN114615647B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6829474B1 (en) * | 1999-08-30 | 2004-12-07 | Nec Corporation | System for providing multimedia value-added services |
KR20060106328A (en) * | 2005-04-07 | 2006-10-12 | 주식회사 인티큐브 | Virtual mobile communication service providing system and method |
CN1852466A (en) * | 2005-09-02 | 2006-10-25 | 华为技术有限公司 | Method and system for realizing virtual-number-like voice increment business |
US20150079961A1 (en) * | 2013-09-13 | 2015-03-19 | Facebook, Inc. | Techniques for phone number and data management |
CN104869258A (en) * | 2015-06-09 | 2015-08-26 | 张维秀 | Automatic hang-up method and device for mobile terminal |
CN110536000A (en) * | 2018-05-23 | 2019-12-03 | 中国移动通信集团浙江有限公司 | A kind of call recording method and system |
WO2020107491A1 (en) * | 2018-11-30 | 2020-06-04 | 华为技术有限公司 | Wireless audio system, and audio communication method and device |
CN110620969A (en) * | 2019-09-29 | 2019-12-27 | 歌尔科技有限公司 | Voice call control method and device, wireless earphone and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116016750A (en) * | 2022-12-13 | 2023-04-25 | 北京小米移动软件有限公司 | Call control method and device, storage medium and chip |
Also Published As
Publication number | Publication date |
---|---|
CN114615647B (en) | 2024-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159672B (en) | Remote Assistance Methods and Clients | |
WO2016192323A1 (en) | Video communication method and device | |
EP3062487A1 (en) | Method and apparatus for detecting smart device | |
CN109451877B (en) | Unmanned aerial vehicle control method and device, unmanned aerial vehicle and remote control equipment | |
CN109669730B (en) | Process keep-alive method, device, electronic equipment and medium | |
EP3125512A1 (en) | Silent ring indication while listening music over a headset | |
CN107222391A (en) | Group's based reminding method, device and equipment | |
CN106792937B (en) | Method and device for processing call request | |
US20180091328A1 (en) | Prompting method, prompting device and prompting system | |
CN106412481B (en) | Reminding method, device and terminal based on VoLTE video calling | |
CN112640569A (en) | Connection establishment method and device | |
CN104881342B (en) | terminal test method and device | |
CN114615647B (en) | Call control method, device and storage medium | |
EP3280217A1 (en) | Method and device for establishing service connection | |
CN107277422B (en) | Video call method, device and system | |
CN107959974B (en) | Communication processing method, terminal and storage medium | |
CN113726905B (en) | Data acquisition method, device and equipment based on home terminal equipment | |
CN110213531B (en) | Monitoring video processing method and device | |
CN107181669A (en) | The display methods and equipment of the transmission time of chat messages | |
CN116419057A (en) | Shooting method, shooting device and storage medium | |
CN115348570A (en) | Search method, device and storage medium for terminal equipment | |
CN106170038B (en) | Recording method and device | |
CN113114863B (en) | Voice communication method, device, equipment and storage medium | |
WO2022147764A1 (en) | Method and apparatus for accessing unlicensed channel, and device and storage medium | |
EP3276929B1 (en) | Method and device for obtaining a call record |
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 |