[go: up one dir, main page]

CN107005554B - Voice service sharing method, device and system - Google Patents

Voice service sharing method, device and system Download PDF

Info

Publication number
CN107005554B
CN107005554B CN201580064062.1A CN201580064062A CN107005554B CN 107005554 B CN107005554 B CN 107005554B CN 201580064062 A CN201580064062 A CN 201580064062A CN 107005554 B CN107005554 B CN 107005554B
Authority
CN
China
Prior art keywords
calling
sharing
equipment
called
identifier
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
CN201580064062.1A
Other languages
Chinese (zh)
Other versions
CN107005554A (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.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107005554A publication Critical patent/CN107005554A/en
Application granted granted Critical
Publication of CN107005554B publication Critical patent/CN107005554B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides voice service sharing methods, devices and systems, wherein a voice data transmission channel is established between a sharing terminal device and a calling device, and the voice data transmission channel is used for exchanging voice data between the sharing terminal device and the calling device, so that the calling device can share the voice service in the sharing terminal device, and thus, the calling device can use the telephone charge balance of an SIM card in the sharing terminal device, and further avoid waste of the telephone charge balance.

Description

语音业务共享方法、设备及系统Voice service sharing method, device and system

技术领域technical field

本发明实施例涉及通信技术,尤其涉及一种语音业务共享方法、设备及系统。Embodiments of the present invention relate to communication technologies, and in particular, to a voice service sharing method, device, and system.

背景技术Background technique

当今社会,拨打电话、接听电话早已融入人们的日常生活,成为人与人之间交流沟通的重要手段。随着手机的普及,这项便利的沟通方式更是越发的普及。In today's society, making and answering calls has long been integrated into people's daily lives and has become an important means of communication between people. With the popularity of mobile phones, this convenient way of communication has become more and more popular.

其中,利用手机进行通信的前提是:手机中必需有一张入网的客户识别模块(Subscriber Identity Module,以下简称:SIM)卡。运营商通过SIM卡来识别手机用户,插入SIM卡(有话费余额)的手机才可以拨打、接听电话。Wherein, the premise of using the mobile phone for communication is: the mobile phone must have a Subscriber Identity Module (Subscriber Identity Module, hereinafter referred to as: SIM) card for accessing the network. The operator identifies the mobile phone user through the SIM card, and the mobile phone with the SIM card inserted (with the balance of the call charge) can make and receive calls.

现有技术中,在同一时间,一张SIM卡只能被一台手机使用。若一SIM卡在月末有话费余额,除非把该SIM卡装到其他人的手机上,才能共享多余的话费给其他人使用,否则将会导致话费余额的浪费。In the prior art, at the same time, one SIM card can only be used by one mobile phone. If a SIM card has a balance of calls at the end of the month, unless the SIM card is installed on other people's mobile phones, the excess calls can be shared for others to use, otherwise the balance of calls will be wasted.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种语音业务共享方法、设备及系统,以克服SIM卡中话费余额的浪费问题。Embodiments of the present invention provide a voice service sharing method, device, and system, so as to overcome the problem of wasting the call balance in the SIM card.

第一方面,本发明实施例提供一种语音业务共享系统,包括:共享端设备、呼叫设备和被呼叫设备,其中,所述呼叫设备位于由所述共享端设备建立的语音业务共享网络的范围内;In a first aspect, an embodiment of the present invention provides a voice service sharing system, including: a sharing end device, a calling device, and a called device, wherein the calling device is located in the range of a voice service sharing network established by the sharing end device Inside;

所述呼叫设备,用于向所述共享端设备发送呼叫请求,所述呼叫请求携带所述呼叫设备的标识、所述被呼叫设备的标识和所述语音业务共享网络的标识;the calling device, configured to send a call request to the sharing terminal device, where the call request carries the identity of the calling device, the identity of the called device and the identity of the voice service sharing network;

所述共享端设备,用于接收所述呼叫请求;若所述共享端设备已存储的共享设备表中包含所述呼叫设备的标识,与所述呼叫设备建立语音数据传输通道;及,根据所述被呼叫设备的标识呼叫所述被呼叫设备,在接收到所述被呼叫设备的应答之后,通过所述语音数据传输通道与所述呼叫设备交换语音数据。The sharing end device is configured to receive the call request; if the shared device table stored by the sharing end device includes the identifier of the calling device, establish a voice data transmission channel with the calling device; and, according to the The identifier of the called device calls the called device, and after receiving the response of the called device, the voice data is exchanged with the calling device through the voice data transmission channel.

第二方面,本发明实施例提供一种语音业务共享方法,包括:In a second aspect, an embodiment of the present invention provides a voice service sharing method, including:

共享端设备接收呼叫设备发送的呼叫请求,所述呼叫请求携带呼叫设备的标识、被呼叫设备的标识和语音业务共享网络的标识,所述呼叫设备位于由所述共享端设备建立的所述语音业务共享网络的范围内;The sharing end device receives a call request sent by the calling device, and the call request carries the identity of the calling device, the identity of the called device and the identity of the voice service sharing network, and the calling device is located in the voice service established by the sharing end device. within the scope of the business sharing network;

若所述共享端设备已存储的共享设备表中包含所述呼叫设备的标识,所述共享端设备与所述呼叫设备建立语音数据传输通道;If the shared device table stored by the shared end device includes the identifier of the calling device, the shared end device establishes a voice data transmission channel with the calling device;

所述共享端设备根据所述被呼叫设备的标识呼叫所述被呼叫设备,在接收到所述被呼叫设备的应答之后,通过所述语音数据传输通道与所述呼叫设备交换语音数据。The sharing end device calls the called device according to the identifier of the called device, and after receiving a response from the called device, exchanges voice data with the calling device through the voice data transmission channel.

结合第二方面,在第二方面的第一种可能的实现方式中,所述方法还包括:所述共享端设备周期发送广播消息,所述广播消息中携带所述共享端设备建立的所述语音业务共享网络的标识信息。With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: the sharing end device periodically sends a broadcast message, and the broadcast message carries the information established by the sharing end device. The identification information of the voice service sharing network.

结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述共享端设备发送所述广播消息之后,所述方法还包括:With reference to the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, after the sharing end device sends the broadcast message, the method further includes:

所述共享端设备接收所述呼叫设备发送的入网请求,所述入网请求包括所述呼叫设备的标识;receiving, by the sharing end device, a network access request sent by the calling device, where the network access request includes an identifier of the calling device;

所述共享端设备对所述入网请求进行鉴权;The shared terminal device authenticates the network access request;

所述共享端设备发送接受所述呼叫设备入网的鉴权结果给所述呼叫设备;The shared end device sends an authentication result of accepting the network access of the calling device to the calling device;

所述共享端设备添加所述呼叫设备的标识至所述共享设备表。The shared end device adds the identity of the calling device to the shared device table.

结合第二方面、第二方面的第一种至第二种可能的实现方式中任意一种,在第二方面的第三种可能的实现方式中,所述共享端设备在接收到所述被呼叫设备的应答之后,所述方法还包括:With reference to the second aspect and any one of the first to second possible implementation manners of the second aspect, in a third possible implementation manner of the second aspect, the sharing end device receives the received After the answering of the calling device, the method further includes:

若所述共享端设备在预设时间内未接收到所述呼叫设备发送的第一心跳信号,所述共享端设备断开与所述呼叫设备的通信连接;或者,If the sharing end device does not receive the first heartbeat signal sent by the calling device within a preset time, the sharing end device disconnects the communication connection with the calling device; or,

若所述共享端设备在所述预设时间内接收到所述呼叫设备发送的第一心跳信号,所述共享端设备发送第二心跳信号给所述呼叫设备,所述第二心跳信号为所述第一心跳信号的应答信号。If the sharing end device receives the first heartbeat signal sent by the calling device within the preset time, the sharing end device sends a second heartbeat signal to the calling device, and the second heartbeat signal is the The response signal of the first heartbeat signal.

结合第二方面、第二方面的第一种至第三种可能的实现方式中任意一种,在第二方面的第四种可能的实现方式中,所述共享端设备在接收到所述被呼叫设备的应答之后,所述方法还包括:With reference to the second aspect and any one of the first to third possible implementation manners of the second aspect, in a fourth possible implementation manner of the second aspect, the sharing end device receives the received After the answering of the calling device, the method further includes:

若所述共享端设备检测到所述被呼叫设备挂断或通话信号中断,发送第一通知给所述呼叫设备,所述第一通知用于指示所述呼叫设备进行挂断;或者,If the sharing end device detects that the called device hangs up or the call signal is interrupted, it sends a first notification to the calling device, where the first notification is used to instruct the calling device to hang up; or,

若所述共享端设备检测到所述呼叫设备挂断或通话信号中断,发送第二通知给所述被呼叫设备,所述第二通知用于指示所述被呼叫设备进行挂断。If the sharing end device detects that the calling device hangs up or the call signal is interrupted, it sends a second notification to the called device, where the second notification is used to instruct the called device to hang up.

第三方面,本发明实施例提供一种终端设备,包括:In a third aspect, an embodiment of the present invention provides a terminal device, including:

接收模块,用于接收呼叫设备发送的呼叫请求,所述呼叫请求携带所述呼叫设备的标识、所述终端设备的标识和语音业务共享网络的标识,所述呼叫设备位于由所述终端设备建立的所述语音业务共享网络的范围内;A receiving module, configured to receive a call request sent by a calling device, where the call request carries the identity of the calling device, the identity of the terminal device and the identity of the voice service sharing network, and the calling device is located in a location established by the terminal device. within the scope of the said voice service sharing network;

判断模块,用于判断所述终端设备已存储的共享设备表中是否包含所述呼叫设备的标识;a judging module for judging whether the stored shared device table of the terminal device contains the identifier of the calling device;

处理模块,用于基于所述判断模块输出的所述共享设备表中包含所述呼叫设备的标识的判断结果,与所述呼叫设备建立语音数据传输通道;根据所述被呼叫设备的标识呼叫所述被呼叫设备,在所述接收模块接收到所述被呼叫设备的应答之后,通过所述语音数据传输通道与所述呼叫设备交换语音数据。The processing module is configured to establish a voice data transmission channel with the calling device based on the judgment result that the shared device table output by the judgment module contains the identity of the calling device; call the calling device according to the identity of the called device. The called device, after the receiving module receives a response from the called device, exchanges voice data with the calling device through the voice data transmission channel.

结合第三方面,在第三方面的第一种可能的实现方式中,所述终端设备还包括第一发送模块,所述第一发送模块用于:With reference to the third aspect, in a first possible implementation manner of the third aspect, the terminal device further includes a first sending module, where the first sending module is configured to:

周期发送广播消息,所述广播消息中携带所述终端设备建立的所述语音业务共享网络的标识信息。A broadcast message is periodically sent, and the broadcast message carries the identification information of the voice service sharing network established by the terminal device.

结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述接收模块,还用于接收所述呼叫设备发送的入网请求,所述入网请求包括所述呼叫设备的标识;With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the receiving module is further configured to receive a network access request sent by the calling device, where the network access request includes the identity of the calling device;

所述处理模块,还用于对所述入网请求进行鉴权;The processing module is further configured to authenticate the network access request;

所述第一发送模块,还用于发送接受所述呼叫设备入网的鉴权结果给所述呼叫设备;The first sending module is further configured to send an authentication result of accepting the network access of the calling device to the calling device;

所述处理模块,还用于添加所述呼叫设备的标识至所述共享设备表。The processing module is further configured to add the identifier of the calling device to the shared device table.

结合第三方面、第三方面的第一种至第二种可能的实现方式中任意一种,在第三方面的第三种可能的实现方式中,所述处理模块还用于若所述接收模块在预设时间内未接收到所述呼叫设备发送的第一心跳信号,则断开与所述呼叫设备的通信连接。With reference to the third aspect and any one of the first to second possible implementation manners of the third aspect, in a third possible implementation manner of the third aspect, the processing module is further configured to receive If the module does not receive the first heartbeat signal sent by the calling device within a preset time, it disconnects the communication connection with the calling device.

结合第三方面、第三方面的第一种至第二种可能的实现方式中任意一种,在第三方面的第四种可能的实现方式中,所述终端设备还包括:第二发送模块;With reference to the third aspect and any one of the first to second possible implementation manners of the third aspect, in a fourth possible implementation manner of the third aspect, the terminal device further includes: a second sending module ;

所述第二发送模块,用于若所述接收模块在预设时间内接收到所述呼叫设备发送的第一心跳信号,发送第二心跳信号给所述呼叫设备,所述第二心跳信号为所述第一心跳信号的应答信号。The second sending module is configured to send a second heartbeat signal to the calling device if the receiving module receives the first heartbeat signal sent by the calling device within a preset time, where the second heartbeat signal is: The response signal of the first heartbeat signal.

结合第三方面、第三方面的第一种至第四种可能的实现方式中任意一种,在第三方面的第五种可能的实现方式中,所述终端设备还包括第三发送模块,With reference to the third aspect and any one of the first to fourth possible implementations of the third aspect, in a fifth possible implementation of the third aspect, the terminal device further includes a third sending module,

所述处理模块,还用于检测所述被呼叫设备或所述呼叫设备是否挂断或通话信号中断;当检测到所述被呼叫设备挂断或通话信号中断时,触发所述第三发送模块发送第一通知给所述呼叫设备;或者,当检测到所述呼叫设备挂断或通话信号中断时,触发所述第三发送模块发送第二通知给所述被呼叫设备。The processing module is further configured to detect whether the called device or the calling device is hung up or the call signal is interrupted; when it is detected that the called device is hung up or the call signal is interrupted, the third sending module is triggered Send a first notification to the calling device; or, when it is detected that the calling device hangs up or the call signal is interrupted, trigger the third sending module to send a second notification to the called device.

第四方面,本发明实施例提供一种终端设备,包括:In a fourth aspect, an embodiment of the present invention provides a terminal device, including:

接收器,用于接收呼叫设备发送的呼叫请求,所述呼叫请求携带所述呼叫设备的标识、所述终端设备的标识和语音业务共享网络的标识,所述呼叫设备位于由所述终端设备建立的所述语音业务共享网络的范围内;A receiver, configured to receive a call request sent by a calling device, where the call request carries the identity of the calling device, the identity of the terminal device, and the identity of the voice service sharing network, and the calling device is located in a location established by the terminal device. within the scope of the said voice service sharing network;

判断器,用于判断所述终端设备已存储的共享设备表中是否包含所述呼叫设备的标识;a judger, used for judging whether the identifier of the calling device is included in the shared device table stored by the terminal device;

处理器,用于基于所述判断器输出的所述共享设备表中包含所述呼叫设备的标识的判断结果,与所述呼叫设备建立语音数据传输通道;根据所述被呼叫设备的标识呼叫所述被呼叫设备,在所述接收器接收到所述被呼叫设备的应答之后,通过所述语音数据传输通道与所述呼叫设备交换所述语音数据。The processor is configured to establish a voice data transmission channel with the calling device based on the judgment result that the shared device table output by the judging device contains the identity of the calling device; call the calling device according to the identity of the called device. The called device, after the receiver receives a response from the called device, exchanges the voice data with the calling device through the voice data transmission channel.

结合第四方面,在第四方面的第一种可能的实现方式中,所述终端设备还包括第一发送器,所述第一发送器用于:With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the terminal device further includes a first transmitter, where the first transmitter is configured to:

周期发送广播消息,所述广播消息中携带所述终端设备建立的所述语音业务共享网络的标识信息。A broadcast message is periodically sent, and the broadcast message carries the identification information of the voice service sharing network established by the terminal device.

结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述接收器,还用于接收所述呼叫设备发送的入网请求,所述入网请求包括所述呼叫设备的标识;With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the receiver is further configured to receive a network access request sent by the calling device, where the network access request includes the identity of the calling device;

所述处理器,还用于对所述入网请求进行鉴权;The processor is further configured to authenticate the network access request;

所述第一发送器,还用于发送接受所述呼叫设备入网的鉴权结果给所述呼叫设备;The first transmitter is further configured to send the authentication result of accepting the network access of the calling device to the calling device;

所述处理器,还用于添加所述呼叫设备的标识至所述共享设备表。The processor is further configured to add the identifier of the calling device to the shared device table.

结合第四方面、第四方面的第一种至第二种可能的实现方式中任意一种,在第四方面的第三种可能的实现方式中,所述处理器还用于:With reference to the fourth aspect and any one of the first to second possible implementation manners of the fourth aspect, in a third possible implementation manner of the fourth aspect, the processor is further configured to:

若所述接收器在预设时间内未接收到所述呼叫设备发送的第一心跳信号,则断开与所述呼叫设备的通信连接。If the receiver does not receive the first heartbeat signal sent by the calling device within a preset time, disconnect the communication connection with the calling device.

结合第四方面、第四方面的第一种至第二种可能的实现方式中任意一种,在第四方面的第四种可能的实现方式中,所述终端设备还包括:第二发送器;With reference to the fourth aspect and any one of the first to second possible implementation manners of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the terminal device further includes: a second transmitter ;

所述第二发送器,用于若所述接收器在预设时间内接收到所述呼叫设备发送的第一心跳信号,发送第二心跳信号给所述呼叫设备,所述第二心跳信号为所述第一心跳信号的应答信号。The second transmitter is configured to send a second heartbeat signal to the calling device if the receiver receives the first heartbeat signal sent by the calling device within a preset time, where the second heartbeat signal is: The response signal of the first heartbeat signal.

结合第四方面、第四方面的第一种至第四种可能的实现方式中任意一种,在第四方面的第五种可能的实现方式中,所述终端设备还包括第三发送器,With reference to the fourth aspect and any one of the first to fourth possible implementation manners of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the terminal device further includes a third transmitter,

所述处理器,还用于检测所述被呼叫设备或所述呼叫设备是否挂断或通话信号中断;当检测到所述被呼叫设备挂断或通话信号中断时,触发所述第三发送器发送第一通知给所述呼叫设备;或者,当检测到所述呼叫设备挂断或通话信号中断时,触发所述第三发送器发送第二通知给所述被呼叫设备。The processor is further configured to detect whether the called device or the calling device hangs up or the call signal is interrupted; when it is detected that the called device hangs up or the call signal is interrupted, trigger the third transmitter Send a first notification to the calling device; or, when it is detected that the calling device hangs up or the call signal is interrupted, trigger the third transmitter to send a second notification to the called device.

本发明实施例语音业务共享方法、设备及系统,本发明实施例通过在共享端设备与呼叫设备之间建立语音数据传输通道,该语音数据传输通道用于交换共享端设备与呼叫设备之间的语音数据,从而实现呼叫设备对共享端设备中语音业务的共享,这样,呼叫设备即可以使用共享端设备中SIM卡的话费余额,进而避免话费余额的浪费。The voice service sharing method, device, and system in the embodiments of the present invention establish a voice data transmission channel between the sharing end device and the calling device, and the voice data transmission channel is used to exchange the communication between the sharing end device and the calling device. In this way, the calling device can use the call balance of the SIM card in the shared terminal device, thereby avoiding the waste of the call balance.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1为本发明语音业务共享方法实施例一的流程图;1 is a flowchart of Embodiment 1 of a voice service sharing method according to the present invention;

图2为本发明语音业务共享方法实施例二的流程图;2 is a flowchart of Embodiment 2 of a voice service sharing method according to the present invention;

图3为本发明语音业务共享方法实施例三的流程图;3 is a flowchart of Embodiment 3 of a voice service sharing method according to the present invention;

图4为本发明语音业务共享方法的一应用场景示例图;4 is an example diagram of an application scenario of the voice service sharing method of the present invention;

图5为本发明语音业务共享方法实施例四的流程图;5 is a flowchart of Embodiment 4 of a voice service sharing method according to the present invention;

图6为本发明语音业务共享方法的另一应用场景示例图;Fig. 6 is another application scenario example diagram of the voice service sharing method of the present invention;

图7为本发明语音业务共享方法实施例五的流程图;7 is a flowchart of Embodiment 5 of a voice service sharing method according to the present invention;

图8为本发明终端设备实施例一的结构示意图;FIG. 8 is a schematic structural diagram of Embodiment 1 of a terminal device according to the present invention;

图9为本发明终端设备实施例二的结构示意图;FIG. 9 is a schematic structural diagram of Embodiment 2 of a terminal device according to the present invention;

图10为本发明终端设备实施例三的结构示意图;FIG. 10 is a schematic structural diagram of Embodiment 3 of a terminal device according to the present invention;

图11为本发明终端设备实施例四的结构示意图。FIG. 11 is a schematic structural diagram of Embodiment 4 of a terminal device according to the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

每个手机,至少配有一张SIM卡。SIM卡有一个序列号,即集成电路卡识别码(Integrate circuit card identity,以下简称:ICCID)。ICCID固化在SIM卡中,为SIM卡的唯一识别号码。ICCID共有20位数字组成,其编码格式为:XXXXXX 0MFSS YYGXX XXXXX。前六位表示运营商代码:如中国移动的为:898600。在申请入网时,运营商为SIM卡绑定一个手机号。Every mobile phone has at least one SIM card. The SIM card has a serial number, that is, an integrated circuit card identity (Integrate circuit card identity, hereinafter referred to as: ICCID). The ICCID is fixed in the SIM card and is the unique identification number of the SIM card. ICCID consists of 20 digits in total, and its encoding format is: XXXXXX 0MFSS YYGXX XXXXX. The first six digits represent the operator code: such as China Mobile's: 898600. When applying for network access, the operator binds a mobile phone number to the SIM card.

在同一时间,由于一张SIM卡不能被多台手机共享使用,因此,导致该SIM卡中多余话费的浪费。另外,当前的智能手机普遍带有移动热点功能。当智能手机的移动热点功能处于开通状态时,该智能手机可以与其它智能手机共享网络流量。因此,本发明实施例提供一种语音业务共享方法、设备及系统,可实现智能手机和智能终端设备间的语音业务共享。At the same time, because one SIM card cannot be shared by multiple mobile phones, it leads to a waste of extra call charges in the SIM card. In addition, current smartphones generally have a mobile hotspot function. When the mobile hotspot function of a smartphone is turned on, the smartphone can share network traffic with other smartphones. Therefore, the embodiments of the present invention provide a voice service sharing method, device and system, which can realize voice service sharing between smart phones and smart terminal devices.

这里,先对下文出现的客户端设备,共享端设备等术语进行解释。Here, the following terms such as client device and shared end device are explained first.

语音业务共享网络(Voice Service Sharing Network,以下简称:VSSN):是一个网络协议(Internet Protocol,以下简称:IP)局域网内的虚拟网络,只有加入VSSN的智能终端设备才能共享语音业务。Voice Service Sharing Network (Voice Service Sharing Network, hereinafter referred to as VSSN): It is a virtual network in an Internet Protocol (Internet Protocol, hereinafter referred to as: IP) local area network. Only intelligent terminal devices that join the VSSN can share voice services.

共享设备表:记录加入VSSN的智能终端设备的信息,该信息可以包含介质访问控制(Media Access Control,以下简称:MAC)地址和智能终端设备的名称等信息,本发明不予限制。Shared device table: records the information of the intelligent terminal device added to the VSSN, the information may include information such as Media Access Control (Media Access Control, hereinafter referred to as: MAC) address and the name of the intelligent terminal device, which is not limited in the present invention.

共享端设备:可以插入SIM卡的智能终端设备(如手机)。在本发明中,共享端设备可以把SIM卡的语音业务共享给VSSN内客户端设备使用,也可以将来电转接给VSSN内的其他智能终端设备。Shared terminal device: an intelligent terminal device (such as a mobile phone) that can be inserted into a SIM card. In the present invention, the sharing terminal device can share the voice service of the SIM card to the client device in the VSSN for use, and can also transfer incoming calls to other intelligent terminal devices in the VSSN.

客户端设备:带语音通话功能的智能终端设备,其中,该智能终端设备可以带SIM卡也可不带SIM卡。本发明中,客户端设备除了使用共享端设备的SIM卡语音业务外,带SIM卡的客户端设备也可以把来电转接给VSSN内的其他智能终端设备。此客户端设备不局限于手机,还可以是平板电脑,笔记本电脑,个人数字助理(Personal Digital Assistant,以下简称:PDA)等设备。Client device: an intelligent terminal device with a voice call function, wherein the intelligent terminal device may or may not have a SIM card. In the present invention, in addition to using the SIM card voice service of the shared terminal device, the client device with the SIM card can also transfer incoming calls to other intelligent terminal devices in the VSSN. The client device is not limited to a mobile phone, but can also be a tablet computer, a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA for short) and other devices.

其中,下文中出现的呼叫设备和被呼叫设备仅为相对概念,二者可以对换,即具有语音通话功能的智能终端设备既可以为呼叫设备,也就可以为被呼叫设备,例如,一台手机既可以为呼叫方,也可以为被呼叫方。Among them, the calling device and the called device appearing in the following are only relative concepts, and the two can be interchanged, that is, an intelligent terminal device with a voice call function can be either a calling device or a called device. For example, a A mobile phone can be both the calling party and the called party.

本发明提供一种语音业务共享系统,包括:共享端设备、呼叫设备和被呼叫设备,其中,呼叫设备位于由共享端设备建立的语音业务共享网络的范围内。The present invention provides a voice service sharing system, comprising: a sharing end device, a calling device and a called device, wherein the calling device is located within the range of a voice service sharing network established by the sharing end device.

具体地,呼叫设备用于向所述共享端设备发送呼叫请求,该呼叫请求携带所述呼叫设备的标识、所述被呼叫设备的标识和所述语音业务共享网络的标识。共享端设备用于接收上述呼叫请求;若共享端设备已存储的共享设备表中包含呼叫设备的标识,与呼叫设备建立语音数据传输通道;及,根据所述被呼叫设备的标识呼叫被呼叫设备,在接收到被呼叫设备的应答之后,通过语音数据传输通道与呼叫设备交换语音数据。Specifically, the calling device is configured to send a call request to the sharing terminal device, where the call request carries the identity of the calling device, the identity of the called device and the identity of the voice service sharing network. The sharing end device is used to receive the above-mentioned calling request; if the shared device table stored by the sharing end device includes the identity of the calling device, establish a voice data transmission channel with the calling device; and, call the called device according to the identity of the called device , after receiving the response of the called device, exchange voice data with the calling device through the voice data transmission channel.

本实施例的语音业务共享系统,可以用于执行以下所提及的方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The voice service sharing system in this embodiment can be used to implement the technical solutions of the method embodiments mentioned below, and the implementation principles and technical effects thereof are similar, and are not repeated here.

以下通过具体的实施例详细说明共享端设备一侧所执行的语音业务共享方法。The voice service sharing method performed on the side of the sharing terminal device will be described in detail below through specific embodiments.

图1为本发明语音业务共享方法实施例一的流程图。本发明实施例提供一种语音业务共享方法,该方法可以由任意执行语音业务共享方法的设备来执行,该设备可以通过软件和/或硬件实现。本实施例中,该设备可以为任一具有语音通话功能的智能终端设备。如图1所示,该方法包括:FIG. 1 is a flowchart of Embodiment 1 of a voice service sharing method according to the present invention. An embodiment of the present invention provides a voice service sharing method, and the method can be executed by any device that executes the voice service sharing method, and the device can be implemented by software and/or hardware. In this embodiment, the device may be any intelligent terminal device with a voice call function. As shown in Figure 1, the method includes:

S101、共享端设备接收呼叫设备发送的呼叫请求,该呼叫请求携带呼叫设备的标识、被呼叫设备的标识和语音业务共享网络的标识,呼叫设备位于由共享端设备建立的语音业务共享网络的范围内。S101. The sharing end device receives a call request sent by the calling device, where the call request carries the identity of the calling device, the identity of the called device and the identity of the voice service sharing network, and the calling device is located in the range of the voice service sharing network established by the sharing end device Inside.

其中,共享端设备可以作为访问接入点(Access Point,以下简称:AP),开通语音业务共享功能,使得接入该共享端设备的其它智能终端设备可以使用该共享端设备的语音业务。呼叫设备可以理解为具有语音通话功能的任一智能终端设备,且该呼叫设备位于由共享端设备建立的语音业务共享网络的范围内。Wherein, the sharing terminal device can be used as an access point (Access Point, hereinafter referred to as: AP) to enable the voice service sharing function, so that other intelligent terminal devices accessing the sharing terminal device can use the voice service of the sharing terminal device. The calling device can be understood as any intelligent terminal device with a voice call function, and the calling device is located within the range of the voice service sharing network established by the sharing terminal device.

具体地,呼叫设备欲拨打电话,首先,呼叫设备向共享端设备发送呼叫请求,以请求共享语音业务,该呼叫请求携带被呼叫设备的标识,例如,被呼叫设备的电话号码等唯一识别被呼叫设备的标识。对应地,共享端设备接收该呼叫请求。Specifically, when the calling device wants to make a call, first, the calling device sends a call request to the sharing end device to request the shared voice service, and the call request carries the identifier of the called device, such as the phone number of the called device to uniquely identify the called device. The identification of the device. Correspondingly, the sharing end device receives the call request.

S102、若共享端设备已存储的共享设备表中包含呼叫设备的标识,共享端设备与呼叫设备建立语音数据传输通道。S102. If the shared device table stored in the shared end device includes the identifier of the calling device, the shared end device establishes a voice data transmission channel with the calling device.

具体地,共享端设备中存储共享设备表,以便于共享端设备对接入其的智能终端设备的管理。Specifically, a shared device table is stored in the sharing end device, so that the sharing end device can manage the intelligent terminal devices connected thereto.

共享端设备从上述呼叫请求中获取被呼叫设备的标识,在已存储的共享设备表中搜索呼叫设备的标识,根据搜索结果判断共享设备表中是否包含所述呼叫设备的标识。若包含,执行S103;否则,流程结束。The sharing end device obtains the identifier of the called device from the above call request, searches the stored sharing device table for the identifier of the calling device, and determines whether the sharing device table contains the identifier of the calling device according to the search result. If yes, execute S103; otherwise, the process ends.

共享端设备基于所述共享设备表中包含所述呼叫设备的标识的判断结果,与所述呼叫设备建立语音数据传输通道。例如,共享端设备与呼叫设备需协商通信数据的加密密匙等。The sharing end device establishes a voice data transmission channel with the calling device based on the judgment result that the shared device table contains the identifier of the calling device. For example, the sharing end device and the calling device need to negotiate the encryption key of the communication data.

其中,语音数据传输通道是一个双向的通道,语音数据例如通过IP局域网传输,可使用超文本传送协议(HTTP-Hypertext transfer protocol,以下简称:HTTP协议)。语音数据传输通道传输的数据类型包括:实时通话生成的语音数据。The voice data transmission channel is a bidirectional channel. For example, the voice data is transmitted through an IP local area network, and a hypertext transfer protocol (HTTP-Hypertext transfer protocol, hereinafter referred to as HTTP protocol) can be used. The data types transmitted by the voice data transmission channel include: voice data generated by real-time calls.

S103、共享端设备根据被呼叫设备的标识呼叫该被呼叫设备,在接收到该被呼叫设备的应答之后,通过上述语音数据传输通道与上述呼叫设备交换语音数据。S103. The sharing end device calls the called device according to the identifier of the called device, and after receiving the response of the called device, exchanges voice data with the calling device through the voice data transmission channel.

具体地,共享端设备根据被呼叫设备的标识拨打被呼叫设备的电话号码,若被呼叫设备未接通,则共享端设备通知呼叫设备;若被呼叫设备接通,则共享端设备通过语音数据传输通道与呼叫设备交换语音数据。Specifically, the sharing end device dials the phone number of the called device according to the identity of the called device. If the called device is not connected, the sharing end device notifies the calling device; if the called device is connected, the sharing end device passes the voice data. The transmission channel exchanges voice data with the calling device.

例如,语音数据包括第一语音数据和第二语音数据,其中,第一语音数据为呼叫设备发送给共享端设备的语音数据,第二语音数据为被呼叫设备发送给共享端设备的语音数据。对于共享端设备通过语音数据传输通道与呼叫设备交换语音数据,本领域技术人员可以理解为:共享端设备在语音数据传输通道发送第二语音数据给呼叫设备;以及,共享端设备在语音数据传输通道接收呼叫设备发送的第一语音数据,从而,实现呼叫设备对共享端设备中语音业务的共享。For example, the voice data includes first voice data and second voice data, wherein the first voice data is voice data sent by the calling device to the sharing device, and the second voice data is voice data sent by the called device to the sharing device. For the sharing end device to exchange voice data with the calling device through the voice data transmission channel, those skilled in the art can understand that: the sharing end device sends the second voice data to the calling device through the voice data transmission channel; The channel receives the first voice data sent by the calling device, thereby realizing the sharing of the voice service in the sharing end device by the calling device.

本发明实施例通过在共享端设备与呼叫设备之间建立语音数据传输通道,该语音数据传输通道用于交换共享端设备与呼叫设备之间的语音数据,从而实现呼叫设备对共享端设备中语音业务的共享,这样,呼叫设备即可以使用共享端设备中SIM卡的话费余额,进而避免话费余额的浪费。In the embodiment of the present invention, a voice data transmission channel is established between the sharing end device and the calling device. In this way, the calling device can use the call charge balance of the SIM card in the shared terminal device, thereby avoiding the waste of the call charge balance.

上述提及VSSN及共享设备表,以下通过具体的实施例说明VSSN及共享设备表的建立。The VSSN and the shared device table are mentioned above, and the establishment of the VSSN and the shared device table is described below through specific embodiments.

图2为本发明语音业务共享方法实施例二的流程图。在上述实施例的基础上,如图2所示,语音业务共享方法还可以包括:FIG. 2 is a flowchart of Embodiment 2 of a voice service sharing method according to the present invention. On the basis of the foregoing embodiment, as shown in FIG. 2 , the voice service sharing method may further include:

S201、共享端设备周期发送广播消息,该广播消息中携带共享端设备建立的语音业务共享网络的标识信息。S201. The sharing terminal device periodically sends a broadcast message, where the broadcast message carries the identification information of the voice service sharing network established by the sharing terminal device.

该实施例以IP局域网举例说明。共享端设备在IP局域网上建立一个VSSN,其中,每个VSSN对应唯一的VSSN标识(ID)信息,这个ID信息可以根据共享端设备的唯一识别信息,比如移动设备国际身份码(International Mobile Equipment Identity,以下简称:IMEI),和时间通过预设算法生成的唯一值,其中,该时间为共享端设备开通语音业务共享功能的时间,也就是说共享端设备在打开语音业务共享功能时会记录下该打开时间。这里的预设算法可以有多种类型,例如,哈希算法等。This embodiment is illustrated by taking an IP local area network as an example. The shared end device establishes a VSSN on the IP local area network, wherein each VSSN corresponds to unique VSSN identification (ID) information. This ID information can be based on the unique identification information of the shared end device, such as the International Mobile Equipment Identity Code (International Mobile Equipment Identity). , hereinafter referred to as: IMEI), and the unique value generated by the preset algorithm, wherein, the time is the time when the sharing end device enables the voice service sharing function, that is to say, the sharing end device will record the time when the voice service sharing function is turned on. The opening time. The preset algorithm here can be of various types, for example, a hash algorithm and so on.

处于上述VSSN内的客户端设备主动扫描上述广播消息。可选地,客户端设备可能扫描到至少两个广播消息,此时,客户端设备需接收其持有者选择将要加入的VSSN的操作,也就是说,客户端设备的持有者根据语音业务共享网络的标识信息,选择将要加入的VSSN;客户端设备发送携带该客户端设备和密码等验证信息的入网请求给共享端设备,请求接入该选择的VSSN。该过程类似于加入无线保真(Wi-Fi)网络,在此处不予赘述。The client device in the above-mentioned VSSN actively scans the above-mentioned broadcast message. Optionally, the client device may scan at least two broadcast messages. At this time, the client device needs to receive the operation of the owner of the client device to select the VSSN to be joined. The identification information of the network is shared, and the VSSN to be joined is selected; the client device sends a network access request carrying the authentication information such as the client device and the password to the sharing end device, requesting to access the selected VSSN. The process is similar to joining a Wireless Fidelity (Wi-Fi) network and will not be repeated here.

以下步骤,S202至S205相对于图1所示实施例进行说明,发生在共享端设备接收呼叫设备发送的呼叫请求之前。The following steps, S202 to S205, will be described with respect to the embodiment shown in FIG. 1, and they occur before the sharing end device receives the call request sent by the calling device.

S202、共享端设备接收呼叫设备发送的入网请求,该入网请求包括呼叫设备的标识。S202. The sharing end device receives a network access request sent by the calling device, where the network access request includes an identifier of the calling device.

其中,呼叫设备为上述客户端设备中的其中之一。Wherein, the calling device is one of the above-mentioned client devices.

S203、共享端设备对上述入网请求进行鉴权。S203, the sharing terminal device authenticates the above network access request.

具体地,共享端设备从上述入网请求中获取密码等验证信息,判断该验证信息与已存储的验证信息是否一致。若一致,执行S204;若不一致,共享端设备拒绝该呼叫设备对其语音业务的共享。Specifically, the sharing terminal device obtains verification information such as a password from the above-mentioned network access request, and determines whether the verification information is consistent with the stored verification information. If they are consistent, execute S204; if not, the sharing end device rejects the calling device from sharing its voice service.

S204、共享端设备发送接受呼叫设备入网的鉴权结果给呼叫设备。S204, the sharing end device sends the authentication result of accepting the network access of the calling device to the calling device.

执行S204,以使呼叫设备接收到该接受呼叫设备入网的鉴权结果后,接入该共享端设备开通的VSSN。Step S204 is performed, so that the calling device accesses the VSSN opened by the sharing end device after receiving the authentication result of the network access of the calling device.

S205、共享端设备添加呼叫设备的标识至共享设备表。S205, the shared end device adds the identifier of the calling device to the shared device table.

共享端设备维护一共享设备表,该共享设备表中记录了加入此VSSN的设备的信息,例如,加入此VSSN的设备名称及标识等,加入此VSSN的设备包括上述呼叫设备。The shared end device maintains a shared device table, which records the information of the devices that join the VSSN, such as the names and identifiers of the devices that join the VSSN, and the devices that join the VSSN include the above-mentioned calling devices.

在上述实施例的基础上,在共享端设备在接收到被呼叫设备的应答之后,即在语音通话期间,语音业务共享方法还可以包括:若共享端设备在预设时间内未接收到呼叫设备发送的第一心跳信号,共享端设备断开与呼叫设备的通信连接;或者,若所述共享端设备在预设时间内接收到所述呼叫设备发送的第一心跳信号,共享端设备发送第二心跳信号给呼叫设备,其中,第二心跳信号为第一心跳信号的应答信号。On the basis of the above embodiment, after the sharing end device receives the response from the called device, that is, during the voice call, the voice service sharing method may further include: if the sharing end device does not receive the calling device within a preset time The first heartbeat signal sent by the sharing end device disconnects the communication connection with the calling device; or, if the sharing end device receives the first heartbeat signal sent by the calling device within a preset time, the sharing end device sends the first heartbeat signal sent by the calling device. The second heartbeat signal is sent to the calling device, wherein the second heartbeat signal is a response signal of the first heartbeat signal.

该实施例中,语音数据传输通道传输的数据类型还可以包括:第一心跳信号和第二心跳信号,用来判断语音数据传输通道是否中断。其中,预设时间的长短可根据实际需求进行设定,本发明不予限制。本发明实施例通过第一心跳信号和/或第二心跳信号保证语音业务共享,增强互联双方的通信可靠性。In this embodiment, the data type transmitted by the voice data transmission channel may further include: a first heartbeat signal and a second heartbeat signal, which are used to determine whether the voice data transmission channel is interrupted. The length of the preset time can be set according to actual needs, which is not limited in the present invention. In the embodiment of the present invention, the voice service sharing is ensured by the first heartbeat signal and/or the second heartbeat signal, and the communication reliability of the interconnected parties is enhanced.

进一步地,共享端设备在接收到被呼叫设备的应答之后,即在语音通话期间,该语音业务共享方法还可以包括:若共享端设备检测到被呼叫设备挂断或通话信号中断时,发送第一通知给呼叫设备,该第一通知用于指示所述呼叫设备进行挂断;或者,若共享端设备检测到呼叫设备挂断或通话信号中断时,发送第二通知给被呼叫设备,该第二通知用于指示所述被呼叫设备进行挂断。该实施例可保证通话的有效性。Further, after the sharing end device receives the response of the called device, that is, during the voice call, the voice service sharing method may further include: if the sharing end device detects that the called device hangs up or the call signal is interrupted, sending the first a notification to the calling device, the first notification is used to instruct the calling device to hang up; or, if the sharing end device detects that the calling device hangs up or the call signal is interrupted, it sends a second notification to the called device, the first notification The second notification is used to instruct the called device to hang up. This embodiment can ensure the validity of the call.

另外,本发明实施例的语音业务共享方法还可以实现来电转接功能。智能手机转接来电给其他智能终端设备,使用户可以在多个智能终端设备中选择其一的接听来电。In addition, the voice service sharing method according to the embodiment of the present invention can also implement a call forwarding function. The smart phone transfers incoming calls to other smart terminal devices, so that the user can choose one of the multiple smart terminal devices to answer the incoming call.

图3为本发明语音业务共享方法实施例三的流程图。本发明实施例提供一种语音业务共享方法,该方法可以由任意执行语音业务共享方法的设备来执行,该设备可以通过软件和/或硬件实现。本实施例中,该设备可以为任一具有语音通话功能的智能终端设备。如图3所示,该方法包括:FIG. 3 is a flowchart of Embodiment 3 of a voice service sharing method according to the present invention. An embodiment of the present invention provides a voice service sharing method, and the method can be executed by any device that executes the voice service sharing method, and the device can be implemented by software and/or hardware. In this embodiment, the device may be any intelligent terminal device with a voice call function. As shown in Figure 3, the method includes:

S301、被呼叫设备接收呼叫设备的呼叫请求,该呼叫请求携带呼叫设备的标识和被呼叫设备的标识。S301. The called device receives a call request of the calling device, where the call request carries the identifier of the calling device and the identifier of the called device.

该步骤中,被呼叫设备可以是上述共享端设备,其中,共享端设备为共享语音业务的设备。此时,共享端设备接收的呼叫请求转接给VSSN中的任一智能终端设备,如图4所示。图4中,共享端设备42开通语音业务共享功能,建立VSSN 40;共享端设备42接收呼叫设备41的呼叫请求,即共享端设备42为该实施例中的被呼叫设备;然后,共享端设备42执行S302,广播该呼叫请求给VSSN 40内的客户端设备,例如客户端设备43、客户端设备44和客户端设备45。In this step, the called device may be the above-mentioned sharing end device, wherein the sharing end device is a device that shares voice services. At this time, the call request received by the sharing end device is forwarded to any intelligent terminal device in the VSSN, as shown in FIG. 4 . In FIG. 4, the sharing end device 42 enables the voice service sharing function and establishes the VSSN 40; the sharing end device 42 receives the call request from the calling device 41, that is, the sharing end device 42 is the called device in this embodiment; then, the sharing end device 42 42 executes S302, and broadcasts the call request to the client devices in the VSSN 40, such as the client device 43, the client device 44 and the client device 45.

被呼叫设备也可以是上述客户端设备,本发明不予限制。其中,呼叫设备的标识例如为呼叫设备的电话号码等信息。当被呼叫设备是上述客户端设备时,具体实施例参考如图5所示实施例。The called device may also be the above-mentioned client device, which is not limited in the present invention. The identifier of the calling device is, for example, information such as the phone number of the calling device. When the called device is the above-mentioned client device, the specific embodiment refers to the embodiment shown in FIG. 5 .

S302、被呼叫设备广播呼叫请求。S302. The called device broadcasts a call request.

具体地,在IP局域网中,被呼叫设备广播上述呼叫请求,例如,呼叫设备的电话号码等。Specifically, in the IP local area network, the called device broadcasts the above call request, for example, the phone number of the calling device.

对应地,该IP局域网内的客户端设备扫描到上述呼叫请求,检测该呼叫请求中的VSSN的标识信息与该客户端设备加入的VSSN的标识信息是否一致,若一致,则提醒该客户端设备的持有者是否需要转接来电;若不一致,则忽略呼叫请求。Correspondingly, the client device in the IP local area network scans the above-mentioned call request, detects whether the identification information of the VSSN in the call request is consistent with the identification information of the VSSN added by the client device, and if it is consistent, then reminds the client device. Whether the holder needs to transfer the call; if not, ignore the call request.

若该客户端设备的持有者选择转接来电,则该客户端设备接收该持有者的选择操作,生成转接请求发送给被呼叫端设备,该转接请求携带该客户端设备(即转接端设备)的信息。If the owner of the client device chooses to transfer the incoming call, the client device receives the selection operation of the owner, generates a transfer request and sends it to the called end device, and the transfer request carries the client device (ie transfer end equipment).

S303、被呼叫设备接收转接端设备发送的转接请求,该转接请求携带转接端设备的信息,转接请求为上述呼叫请求的响应消息,该转接端设备与被呼叫设备处于同一个语音业务共享网络。S303. The called device receives a transfer request sent by the transfer terminal device, the transfer request carries information of the transfer terminal device, the transfer request is a response message of the above call request, and the transfer terminal device and the called device are in the same A shared network for voice services.

如图4所示的应用场景中,转接端设备为客户端设备43、客户端设备44和客户端设备45中的一个。In the application scenario shown in FIG. 4 , the switching terminal device is one of the client device 43 , the client device 44 and the client device 45 .

S304、被呼叫设备判断已存储的共享设备表中是否包含转接端设备的信息。S304: The called device determines whether the stored shared device table contains information about the forwarding end device.

S305、被呼叫设备基于共享设备表中包含转接端设备的信息的判断结果,与转接端设备建立语音数据传输通道。S305, the called device establishes a voice data transmission channel with the transfer end device based on the judgment result that the shared device table contains the information of the transfer end device.

S306、被呼叫设备连通所述转接端设备,在语音数据传输通道与转接端设备交换语音数据。S306. The called device is connected to the transfer end device, and exchanges voice data with the transfer end device on the voice data transmission channel.

该实施例中,S304至S306的具体描述可参考S102至S103,此处不再赘述。In this embodiment, for the specific description of S304 to S306, reference may be made to S102 to S103, which will not be repeated here.

参考图1和图3,两个实施例的区别在于:图3所示实施例中,被呼叫设备用于转接呼叫设备的来电给其它智能终端设备,或其它智能终端设备将其接收的呼叫请求转接给该被呼叫设备。Referring to FIG. 1 and FIG. 3 , the difference between the two embodiments is: in the embodiment shown in FIG. 3 , the called device is used to transfer the incoming call of the calling device to other intelligent terminal devices, or the calls received by other intelligent terminal devices. The request is forwarded to the called device.

此方式可及时将呼叫设备的呼叫请求(即来电)通知给VSSN内的每一台客户端设备,一旦呼叫请求被转接给某一台客户端设备(转接端设备),共享端设备停止广播该呼叫请求,也就是说呼叫请求只能转接给一台转接端设备。This method can notify each client device in the VSSN of the call request (ie incoming call) of the calling device in time. Once the call request is transferred to a client device (transfer end device), the shared end device stops. Broadcast the call request, that is to say, the call request can only be transferred to one transfer terminal device.

本发明实施例通过在被呼叫设备与转接端设备之间建立语音数据传输通道,该语音数据传输通道用于交换转接端设备与被呼叫设备之间的语音数据,从而将被呼叫设备接入的呼叫请求转接给转接端设备,实现转接端设备对被呼叫设备中语音业务的共享,这样,可以增加来电转接的灵活性和便利性。In the embodiment of the present invention, a voice data transmission channel is established between the called device and the switching terminal device, and the voice data transmission channel is used to exchange the voice data between the switching terminal device and the called device, thereby connecting the called device to the called device. The incoming call request is transferred to the transfer terminal device, so that the voice service in the called device can be shared by the transfer terminal device, so that the flexibility and convenience of incoming call transfer can be increased.

在上述实施例中,共享端设备连通转接端设备之后,语音业务共享方法还可以包括:若被呼叫设备在预设时间内未接收到转接端设备发送的第一心跳信号,被呼叫设备断开与转接端设备的通信连接;或者,若被呼叫设备在预设时间内接收到转接端设备发送的第一心跳信号,被呼叫设备发送第二心跳信号给转接端设备,第二心跳信号为第一心跳信号的应答信号。In the above embodiment, after the sharing end device is connected to the transfer end device, the voice service sharing method may further include: if the called device does not receive the first heartbeat signal sent by the transfer end device within a preset time, the called device Disconnect the communication connection with the transfer end device; or, if the called device receives the first heartbeat signal sent by the transfer end device within a preset time, the called device sends the second heartbeat signal to the transfer end device, and the first heartbeat signal is sent to the transfer end device. The second heartbeat signal is a response signal of the first heartbeat signal.

该实施例中,语音数据传输通道传输的数据类型还可以包括:第一心跳信号和第二心跳信号,用来判断语音数据传输通道是否中断。其中,预设时间的长短可根据实际需求进行设定,本发明不予限制。本发明实施例通过第一心跳信号和/或第二心跳信号保证语音业务共享,增强互联双方的通信可靠性。In this embodiment, the data type transmitted by the voice data transmission channel may further include: a first heartbeat signal and a second heartbeat signal, which are used to determine whether the voice data transmission channel is interrupted. The length of the preset time can be set according to actual needs, which is not limited in the present invention. In the embodiment of the present invention, the voice service sharing is ensured by the first heartbeat signal and/or the second heartbeat signal, and the communication reliability of the interconnected parties is enhanced.

图5为本发明语音业务共享方法实施例四的流程图。在如图3所示实施例的基础上,该实施例中,被呼叫设备为客户端设备。如图5所示,S301之前,语音业务共享方法还可以包括:FIG. 5 is a flowchart of Embodiment 4 of a voice service sharing method according to the present invention. Based on the embodiment shown in FIG. 3 , in this embodiment, the called device is a client device. As shown in Figure 5, before S301, the voice service sharing method may further include:

S501、被呼叫设备向共享端设备请求共享设备表,其中,共享端设备为共享语音业务的设备。S501. The called device requests a sharing device list from a sharing end device, where the sharing end device is a device that shares a voice service.

S502、被呼叫设备接收共享设备发送的共享设备表。S502. The called device receives the shared device table sent by the shared device.

图5所示实施例与图3所示实施例的区别在于:在图3所示实施例中,被呼叫设备为共享端设备,参考图4所示场景,该共享端设备42将呼叫设备41发起的呼叫请求转接给VSSN40内的客户端设备;在图5所示实施例中,被呼叫设备为客户端设备,参考图6所示场景,客户端设备62将呼叫设备61发起的呼叫请求转接给VSSN 60内的客户端设备63或客户端设备64,其中,VSSN 60是由共享端设备65建立的,客户端设备62所在区域的位于VSSN 60之内。The difference between the embodiment shown in FIG. 5 and the embodiment shown in FIG. 3 is that in the embodiment shown in FIG. 3 , the called device is the sharing end device. Referring to the scenario shown in FIG. 4 , the sharing end device 42 sends the calling device 41 The initiated call request is forwarded to the client device in the VSSN 40; in the embodiment shown in FIG. 5, the called device is the client device. Referring to the scenario shown in FIG. 6, the client device 62 transfers the call request initiated by the calling device 61. It is transferred to the client device 63 or the client device 64 in the VSSN 60 , where the VSSN 60 is established by the shared end device 65 , and the area where the client device 62 is located is located within the VSSN 60 .

以下通过两种场景说明本发明实施例的应用。The following describes the application of the embodiments of the present invention through two scenarios.

例如在户外场景中:共享端手机作为AP热点,客户端手机连接此AP热点,共享端手机打开语音业务共享功能给客户端手机使用。For example, in an outdoor scenario: the mobile phone of the shared end is used as an AP hotspot, the mobile phone of the client end is connected to the hotspot of the AP, and the mobile phone of the shared end of the voice service sharing function is enabled for the mobile phone of the client end.

结合图7对本发明实施例进一步进行说明。图7示出客户端手机与共享端手机、之间的交互。The embodiment of the present invention will be further described with reference to FIG. 7 . FIG. 7 shows the interaction between the client mobile phone and the sharing terminal mobile phone.

S70、共享端手机打开移动热点功能,建立一个IP局域网。S70, the mobile phone of the shared terminal enables the mobile hotspot function, and establishes an IP local area network.

S71、客户端手机无线连接共享端手机,加入上述IP局域网。S71, the client mobile phone wirelessly connects to the sharing terminal mobile phone, and joins the above IP local area network.

S72、共享端手机打开语音通话业务共享功能,在IP局域网内建立VSSN。S72, the sharing terminal mobile phone enables the voice call service sharing function, and establishes a VSSN in the IP local area network.

S73、客户端手机通过验证加入VSSN。S73, the client mobile phone joins the VSSN through verification.

S74、共享端手机在共享设备表中加入客户端手机的信息。S74, the mobile phone of the shared terminal adds the information of the mobile phone of the client to the shared device table.

S75、客户端手机发送被呼叫方电话号码给共享端手机。S75, the client mobile phone sends the phone number of the called party to the shared terminal mobile phone.

S76、共享端手机在共享设备表中核对是否包含客户端手机的信息。S76, the mobile phone of the shared terminal checks whether the information of the mobile phone of the client terminal is included in the shared device table.

若共享设备表中包含客户端手机的信息,则执行S77;否则,流程结束。If the shared device table contains the information of the client mobile phone, execute S77; otherwise, the process ends.

S77、共享端手机拨打被呼叫方电话号码。S77. The mobile phone of the shared terminal dials the phone number of the called party.

共享端手机与被呼叫方接通后执行S78。S78 is executed after the mobile phone of the shared terminal is connected with the called party.

S78、共享端手机通过语音数据传输通道与客户端手机交换语音数据。S78, the shared terminal mobile phone exchanges voice data with the client mobile phone through a voice data transmission channel.

S79、通话结束,共享端手机和客户端手机断开语音数据传输通道。S79, the call ends, and the sharing terminal mobile phone and the client mobile phone disconnect the voice data transmission channel.

又例如在家庭场景中,支持语音业务共享功能的共享端设备和客户端设备连接家庭路由器。相较于上一实施例,局域网路由器不再是手机,而是家庭路由器,设备接入局域网的方式也不再限于Wi-Fi,还可以通过网线接入。客户端设备除了利用语音业务共享功能拨打电话外,还可以利用来电转接功能转接电话。For another example, in a home scenario, the sharing end device and the client device supporting the voice service sharing function are connected to the home router. Compared with the previous embodiment, the local area network router is no longer a mobile phone, but a home router, and the way for devices to access the local area network is no longer limited to Wi-Fi, and can also be accessed through a network cable. In addition to using the voice service sharing function to make calls, the client device can also use the call transfer function to transfer calls.

另外,本发明实施例中VSSN的建立可以在局域网范围内,如果能将局域网的覆盖面积放大,例如Wi-Fi信号变强,传输距离变大,那么本发明实施例将能作用于更多的人群。在理论上,VSSN可以建立在因特网(Internet)上,此发明不受距离限制。In addition, the establishment of the VSSN in the embodiment of the present invention can be within the scope of the local area network. If the coverage area of the local area network can be enlarged, for example, the Wi-Fi signal becomes stronger and the transmission distance becomes larger, then the embodiment of the present invention will be able to act on more crowd. In theory, VSSN can be established on the Internet (Internet), and this invention is not limited by distance.

以上所述实施例仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进或替代,这些改进和替代也应视为本发明的保护范围。The above-mentioned embodiments are only preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, some improvements or substitutions can be made without departing from the principles of the present invention. These improvements and Substitution should also be considered as the protection scope of the present invention.

图8为本发明终端设备实施例一的结构示意图。如图8所示,终端设备80包括:接收模块81、判断模块82和处理模块83。FIG. 8 is a schematic structural diagram of Embodiment 1 of a terminal device according to the present invention. As shown in FIG. 8 , the terminal device 80 includes: a receiving module 81 , a judging module 82 and a processing module 83 .

其中,接收模块81用于接收呼叫设备发送的呼叫请求,该呼叫请求携带呼叫设备的标识、终端设备80的标识和语音业务共享网络的标识,所述呼叫设备位于由终端设备80建立的语音业务共享网络的范围内。判断模块82用于判断终端设备80已存储的共享设备表中是否包含呼叫设备的标识。处理模块83用于基于判断模块82输出的共享设备表中包含呼叫设备的标识的判断结果,与呼叫设备建立语音数据传输通道;根据被呼叫设备的标识呼叫被呼叫设备,在接收模块81接收到被呼叫设备的应答之后,通过所述语音数据传输通道与呼叫设备交换语音数据。The receiving module 81 is configured to receive a call request sent by the calling device, where the call request carries the identity of the calling device, the identity of the terminal device 80 and the identity of the voice service sharing network, and the calling device is located in the voice service established by the terminal device 80. within the range of the shared network. The judging module 82 is configured to judge whether the shared device table stored in the terminal device 80 contains the identifier of the calling device. The processing module 83 is used to establish a voice data transmission channel with the calling device based on the judgment result that the shared device table output by the judgment module 82 contains the identification of the calling device; according to the identification of the called device, the called device is called, and the receiving module 81 receives the After the called device answers, voice data is exchanged with the calling device through the voice data transmission channel.

本实施例的终端设备,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The terminal device in this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and details are not repeated here.

在上述实施例的基础上,终端设备80还可以包括第一发送模块(未示出)。第一发送模块可以用于:周期发送广播消息,该广播消息中携带终端设备80建立的语音业务共享网络的标识信息。On the basis of the above embodiments, the terminal device 80 may further include a first sending module (not shown). The first sending module may be configured to: periodically send a broadcast message, where the broadcast message carries the identification information of the voice service sharing network established by the terminal device 80 .

进一步地,接收模块81还可以用于:接收呼叫设备发送的入网请求,该入网请求包括呼叫设备的标识。该实施例中,处理模块83还可以用于对入网请求进行鉴权。发送模块还可以用于发送接受呼叫设备入网的鉴权结果给呼叫设备。处理模块83还可以用于添加呼叫设备的标识至共享设备表。Further, the receiving module 81 may also be configured to: receive a network access request sent by the calling device, where the network access request includes the identifier of the calling device. In this embodiment, the processing module 83 may also be used to authenticate the network access request. The sending module can also be used to send the authentication result of accepting the network access of the calling device to the calling device. The processing module 83 can also be used to add the identity of the calling device to the shared device table.

在上述基础上,其中,接收模块81还可以用于在处理模块83接收到被呼叫设备的应答之后,接收呼叫设备发送的第一心跳信号。Based on the above, the receiving module 81 may also be configured to receive the first heartbeat signal sent by the calling device after the processing module 83 receives the response from the called device.

处理模块83还可以用于:若接收模块81在预设时间内未接收到呼叫设备发送的第一心跳信号,则断开与所述呼叫设备的通信连接。The processing module 83 may also be configured to: if the receiving module 81 does not receive the first heartbeat signal sent by the calling device within a preset time, disconnect the communication connection with the calling device.

在上述实施例中,终端设备80还可以包括:第二发送模块(未示出)。该第二发送模块用于若接收模块81在预设时间内接收到所述呼叫设备发送的第一心跳信号,发送第二心跳信号给呼叫设备,该第二心跳信号为上述第一心跳信号的应答信号。In the above embodiment, the terminal device 80 may further include: a second sending module (not shown). The second sending module is configured to send a second heartbeat signal to the calling device if the receiving module 81 receives the first heartbeat signal sent by the calling device within a preset time, and the second heartbeat signal is the first heartbeat signal above. response signal.

该实施例中,语音数据传输通道传输的数据类型还可以包括:第一心跳信号和第二心跳信号,用来判断语音数据传输通道是否中断。其中,预设时间的长短可根据实际需求进行设定,本发明不予限制。本发明实施例通过心跳信号(第一心跳信号和/或第二心跳信号)保证语音业务共享,增强互联双方的通信可靠性。In this embodiment, the data type transmitted by the voice data transmission channel may further include: a first heartbeat signal and a second heartbeat signal, which are used to determine whether the voice data transmission channel is interrupted. The length of the preset time can be set according to actual needs, which is not limited in the present invention. In the embodiment of the present invention, the voice service sharing is ensured by the heartbeat signal (the first heartbeat signal and/or the second heartbeat signal), and the communication reliability of the interconnected parties is enhanced.

可选地,终端设备80还可以包括第三发送模块(未示出)。该实施例中,处理模块83还可以用于检测被呼叫设备或呼叫设备是否挂断或通话信号中断;当检测到被呼叫设备挂断或通话信号中断时,触发第三发送模块发送第一通知给呼叫设备;或者,当检测到呼叫设备挂断或通话信号中断时,触发第三发送模块发送第二通知给被呼叫设备。该实施例可保证通话的有效性。Optionally, the terminal device 80 may further include a third sending module (not shown). In this embodiment, the processing module 83 can also be used to detect whether the called device or the calling device hangs up or the call signal is interrupted; when it is detected that the called device hangs up or the call signal is interrupted, the third sending module is triggered to send the first notification to the calling device; or, when it is detected that the calling device hangs up or the call signal is interrupted, the third sending module is triggered to send a second notification to the called device. This embodiment can ensure the validity of the call.

图9为本发明终端设备实施例二的结构示意图。如图9所示,终端设备90包括:接收模块91、发送模块92和处理模块94。FIG. 9 is a schematic structural diagram of Embodiment 2 of a terminal device according to the present invention. As shown in FIG. 9 , the terminal device 90 includes: a receiving module 91 , a sending module 92 and a processing module 94 .

其中,接收模块91用于接收呼叫设备的呼叫请求,该呼叫请求携带呼叫设备的标识和终端设备90的标识。发送模块92用于广播呼叫请求。接收模块91还用于接收转接端设备发送的转接请求,该转接请求携带所述转接端设备的信息,转接请求为呼叫请求的响应消息,该转接端设备与终端设备90处于同一个语音业务共享网络。处理模块94用于判断终端设备90已存储的共享设备表中是否包含转接端设备的信息;基于共享设备表中包含转接端设备的信息的判断结果,与转接端设备建立语音数据传输通道;连通转接端设备,在语音数据传输通道与转接端设备交换语音数据。The receiving module 91 is configured to receive a call request from the calling device, where the call request carries the identity of the calling device and the identity of the terminal device 90 . The sending module 92 is used for broadcasting a call request. The receiving module 91 is further configured to receive a transfer request sent by the transfer terminal device, the transfer request carrying the information of the transfer terminal device, and the transfer request is a response message of the call request. The transfer terminal device and the terminal device 90 are in the same voice service sharing network. The processing module 94 is used for judging whether the information of the switching terminal equipment is included in the shared equipment table stored by the terminal equipment 90; based on the judgment result that the information of the switching terminal equipment is included in the shared equipment table, the voice data transmission is established with the switching terminal equipment. The channel; connects the switching end device, and exchanges voice data with the switching end device in the voice data transmission channel.

本实施例的终端设备,可以用于执行图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The terminal device in this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 3 , and its implementation principle and technical effect are similar, and details are not repeated here.

在上述基础上,接收模块91还可以用于:接收转接端设备发送的第一心跳信号。处理模块94还可以用于:若接收模块91在预设时间内未接收到转接端设备发送的第一心跳信号,断开与转接端设备的通信连接。可选地,发送模块92还可以用于:若接收模块91在预设时间内接收到转接端设备发送的第一心跳信号,发送第二心跳信号给转接端设备,第二心跳信号为第一心跳信号的应答信号。On the basis of the above, the receiving module 91 can also be used for: receiving the first heartbeat signal sent by the switching terminal device. The processing module 94 may also be configured to: if the receiving module 91 does not receive the first heartbeat signal sent by the switching terminal device within a preset time, disconnect the communication connection with the switching terminal device. Optionally, the sending module 92 can also be used to: if the receiving module 91 receives the first heartbeat signal sent by the switching terminal equipment within the preset time, send the second heartbeat signal to the switching terminal equipment, and the second heartbeat signal is The response signal of the first heartbeat signal.

该实施例中,语音数据传输通道传输的数据类型还可以包括:第一心跳信号和第二心跳信号,用来判断语音数据传输通道是否中断。其中,预设时间的长短可根据实际需求进行设定,本发明不予限制。本发明实施例通过心跳信号(第一心跳信号和/或第二心跳信号)保证语音业务共享,增强互联双方的通信可靠性。In this embodiment, the data type transmitted by the voice data transmission channel may further include: a first heartbeat signal and a second heartbeat signal, which are used to determine whether the voice data transmission channel is interrupted. The length of the preset time can be set according to actual needs, which is not limited in the present invention. In the embodiment of the present invention, the voice service sharing is ensured by the heartbeat signal (the first heartbeat signal and/or the second heartbeat signal), and the communication reliability of the interconnected parties is enhanced.

一种实施例中,终端设备90为共享端设备。其中,共享端设备为共享语音业务的设备。In one embodiment, the terminal device 90 is a shared end device. Wherein, the shared end device is a device that shares voice services.

另一种实施例中,终端设备90为客户端设备。发送模块92还可以用于:向共享端设备请求共享设备表,共享端设备为共享语音业务的设备。接收模块91还可以用于:接收共享设备发送的共享设备表。In another embodiment, the terminal device 90 is a client device. The sending module 92 can also be used for: requesting a sharing device list from the sharing end device, where the sharing end device is a device for sharing voice services. The receiving module 91 can also be used for: receiving the shared device table sent by the shared device.

图10为本发明终端设备实施例三的结构示意图。如图10所示,终端设备100包括:接收器110、判断器120和处理器130。FIG. 10 is a schematic structural diagram of Embodiment 3 of a terminal device according to the present invention. As shown in FIG. 10 , the terminal device 100 includes: a receiver 110 , a determiner 120 and a processor 130 .

其中,接收器110用于接收呼叫设备发送的呼叫请求,该呼叫请求携带呼叫设备的标识、终端设备100的标识和语音业务共享网络的标识,所述呼叫设备位于由终端设备100建立的语音业务共享网络的范围内。判断器120用于判断终端设备100已存储的共享设备表中是否包含呼叫设备的标识。处理器130用于基于判断器120输出的共享设备表中包含呼叫设备的标识的判断结果,与呼叫设备建立语音数据传输通道;根据所述被呼叫设备的标识呼叫被呼叫设备,在接收器110接收到所述被呼叫设备的应答之后,通过所述语音数据传输通道与呼叫设备交换语音数据。The receiver 110 is configured to receive a call request sent by the calling device, where the call request carries the identity of the calling device, the identity of the terminal device 100 and the identity of the voice service sharing network, and the calling device is located in the voice service established by the terminal device 100. within the range of the shared network. The determiner 120 is configured to determine whether the shared device table stored in the terminal device 100 contains the identifier of the calling device. The processor 130 is configured to establish a voice data transmission channel with the calling device based on the judgment result that the shared device table output by the judging device 120 contains the identity of the calling device; call the called device according to the identity of the called device, at the receiver 110 After receiving the response of the called device, the voice data is exchanged with the calling device through the voice data transmission channel.

本实施例的终端设备,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The terminal device in this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and details are not repeated here.

进一步地,终端设备100还可以包括第一发送器(未示出)。该第一发送器可以用于:周期发送广播消息,该广播消息中携带终端设备100建立的语音业务共享网络的标识信息。Further, the terminal device 100 may further include a first transmitter (not shown). The first transmitter may be configured to: periodically send a broadcast message, where the broadcast message carries the identification information of the voice service sharing network established by the terminal device 100 .

更进一步地,接收器110还可以用于:接收呼叫设备发送的入网请求,该入网请求包括呼叫设备的标识。该实施例中,处理器130还可以用于对入网请求进行鉴权。发送器还可以用于发送接受呼叫设备入网的鉴权结果给呼叫设备。处理器130还可以用于添加呼叫设备的标识至共享设备表。Furthermore, the receiver 110 may be further configured to: receive a network access request sent by the calling device, where the network access request includes the identifier of the calling device. In this embodiment, the processor 130 may also be used to authenticate the network access request. The transmitter can also be used to send the authentication result of accepting the network access of the calling device to the calling device. The processor 130 may also be configured to add the identity of the calling device to the shared device table.

在上述实施例中,接收器110还用于在处理器130接通被呼叫设备之后,接收呼叫设备发送的第一心跳信号。In the above embodiment, the receiver 110 is further configured to receive the first heartbeat signal sent by the calling device after the processor 130 connects the called device.

一种应用场景中,处理器130还可以用于:若接收器110在预设时间内未接收到所述呼叫设备发送的第一心跳信号,则断开与所述呼叫设备的通信连接。In an application scenario, the processor 130 may also be configured to: if the receiver 110 does not receive the first heartbeat signal sent by the calling device within a preset time, disconnect the communication connection with the calling device.

另一种应用场景中,终端设备100还可以包括:第二发送器(未示出)。该第二发送器用于若接收器110在预设时间内接收到所述呼叫设备发送的第一心跳信号,发送第二心跳信号给呼叫设备,第二心跳信号为第一心跳信号的应答信号。In another application scenario, the terminal device 100 may further include: a second transmitter (not shown). The second transmitter is configured to send a second heartbeat signal to the calling device if the receiver 110 receives the first heartbeat signal sent by the calling device within a preset time, where the second heartbeat signal is a response signal of the first heartbeat signal.

该实施例中,语音数据传输通道传输的数据类型还可以包括:第一心跳信号和第二心跳信号,用来判断语音数据传输通道是否中断。其中,预设时间的长短可根据实际需求进行设定,本发明不予限制。本发明实施例通过心跳信号(第一心跳信号和/或第二心跳信号)保证语音业务共享,增强互联双方的通信可靠性。In this embodiment, the data type transmitted by the voice data transmission channel may further include: a first heartbeat signal and a second heartbeat signal, which are used to determine whether the voice data transmission channel is interrupted. The length of the preset time can be set according to actual needs, which is not limited in the present invention. In the embodiment of the present invention, the voice service sharing is ensured by the heartbeat signal (the first heartbeat signal and/or the second heartbeat signal), and the communication reliability of the interconnected parties is enhanced.

可选地,终端设备还可以包括第三发送器(未示出)。处理器130还可以用于检测被呼叫设备或呼叫设备是否挂断或通话信号中断;当检测到被呼叫设备挂断或通话信号中断时,触发第三发送器发送第一通知给呼叫设备;或者,当检测到呼叫设备挂断或通话信号中断时,触发第三发送器发送第二通知给被呼叫设备。该实施例可保证通话的有效性。Optionally, the terminal device may further include a third transmitter (not shown). The processor 130 can also be used to detect whether the called device or the calling device hangs up or the call signal is interrupted; when it is detected that the called device hangs up or the call signal is interrupted, trigger the third transmitter to send the first notification to the calling device; or , when it is detected that the calling device hangs up or the call signal is interrupted, the third transmitter is triggered to send a second notification to the called device. This embodiment can ensure the validity of the call.

图11为本发明终端设备实施例四的结构示意图。如图11所示,终端设备200包括:接收器210、发送器220、和处理器240。FIG. 11 is a schematic structural diagram of Embodiment 4 of a terminal device according to the present invention. As shown in FIG. 11 , the terminal device 200 includes: a receiver 210 , a transmitter 220 , and a processor 240 .

其中,接收器210用于接收呼叫设备的呼叫请求,该呼叫请求携带呼叫设备的标识和终端设备200的标识。发送器220用于广播呼叫请求。接收器210还用于接收转接端设备发送的转接请求,该转接请求携带所述转接端设备的信息,转接请求为呼叫请求的响应消息,该转接端设备与终端设备200处于同一个语音业务共享网络。处理器240用于判断终端设备200已存储的共享设备表中是否包含转接端设备的信息;基于共享设备表中包含转接端设备的信息的判断结果,与转接端设备建立语音数据传输通道;连通转接端设备,在语音数据传输通道与转接端设备交换语音数据。The receiver 210 is configured to receive a call request from the calling device, where the call request carries the identity of the calling device and the identity of the terminal device 200 . The transmitter 220 is used to broadcast the call request. The receiver 210 is further configured to receive a transfer request sent by the transfer terminal device, where the transfer request carries the information of the transfer terminal device, and the transfer request is a response message of the call request. The transfer terminal device communicates with the terminal device 200. are in the same voice service sharing network. The processor 240 is used for judging whether the shared device table stored by the terminal device 200 contains the information of the switching terminal equipment; based on the judgment result that the information of the switching terminal equipment is contained in the shared equipment table, establishes a voice data transmission with the switching terminal equipment The channel; connects the switching end device, and exchanges voice data with the switching end device in the voice data transmission channel.

本实施例的终端设备,可以用于执行图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The terminal device in this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 3 , and its implementation principle and technical effect are similar, and details are not repeated here.

在上述基础上,接收器210还可以用于:接收转接端设备发送的第一心跳信号。处理器240还可以用于:若接收器210在预设时间内未接收到转接端设备发送的第一心跳信号,断开与转接端设备的通信连接。可选地,发送器220还可以用于:若接收器210在预设时间内接收到转接端设备发送的第一心跳信号,发送第二心跳信号给转接端设备,第二心跳信号为第一心跳信号的应答信号。Based on the above, the receiver 210 can also be used to: receive the first heartbeat signal sent by the switching terminal device. The processor 240 may also be configured to: if the receiver 210 does not receive the first heartbeat signal sent by the switching terminal device within a preset time, disconnect the communication connection with the switching terminal device. Optionally, the transmitter 220 can also be used to: if the receiver 210 receives the first heartbeat signal sent by the switching terminal equipment within a preset time, send the second heartbeat signal to the switching terminal equipment, and the second heartbeat signal is The response signal of the first heartbeat signal.

该实施例中,语音数据传输通道传输的数据类型还可以包括:第一心跳信号和第二心跳信号,用来判断语音数据传输通道是否中断。其中,预设时间的长短可根据实际需求进行设定,本发明不予限制。本发明实施例通过心跳信号(第一心跳信号和/或第二心跳信号)保证语音业务共享,增强互联双方的通信可靠性。In this embodiment, the data type transmitted by the voice data transmission channel may further include: a first heartbeat signal and a second heartbeat signal, which are used to determine whether the voice data transmission channel is interrupted. The length of the preset time can be set according to actual needs, which is not limited in the present invention. In the embodiment of the present invention, the voice service sharing is ensured by the heartbeat signal (the first heartbeat signal and/or the second heartbeat signal), and the communication reliability of the interconnected parties is enhanced.

一种实施例中,终端设备200为共享端设备。其中,共享端设备为共享语音业务的设备。In one embodiment, the terminal device 200 is a shared terminal device. Wherein, the shared end device is a device that shares voice services.

另一种实施例中,终端设备200为客户端设备。发送器220还可以用于:向共享端设备请求共享设备表,共享端设备为共享语音业务的设备。接收器210还可以用于:接收共享设备发送的共享设备表。In another embodiment, the terminal device 200 is a client device. The transmitter 220 may also be used for: requesting a sharing device list from the sharing end device, where the sharing end device is a device for sharing voice services. The receiver 210 can also be used for: receiving the shared device list sent by the shared device.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (15)

  1. The sharing system of the voice service is characterized by comprising sharing end equipment, calling equipment and called equipment, wherein the calling equipment is positioned in the range of a voice service sharing network established by the sharing end equipment;
    the calling device is configured to send a call request to the sharing device, where the call request carries an identifier of the calling device, an identifier of the called device, and an identifier of the voice service sharing network;
    the sharing terminal device is used for receiving the call request; if the shared device table stored by the shared device contains the identifier of the calling device, establishing a voice data transmission channel with the calling device; calling the called device according to the identification of the called device, and exchanging voice data with the calling device through the voice data transmission channel after receiving the response of the called device;
    the sharing end device is further configured to periodically send broadcast messages, where the broadcast message carries identification information of the voice service sharing network established by the sharing end device.
  2. 2, voice service sharing method, comprising:
    the method comprises the steps that a sharing terminal device receives a calling request sent by a calling device, wherein the calling request carries an identifier of the calling device, an identifier of a called device and an identifier of a voice service sharing network, and the calling device is located in the range of the voice service sharing network established by the sharing terminal device;
    if the shared device table stored by the shared device contains the identifier of the calling device, the shared device and the calling device establish a voice data transmission channel;
    the sharing terminal equipment calls the called equipment according to the identification of the called equipment, and exchanges voice data with the calling equipment through the voice data transmission channel after receiving the response of the called equipment;
    the method further comprises the following steps:
    the sharing end device periodically sends broadcast messages, and the broadcast messages carry the identification information of the voice service sharing network established by the sharing end device.
  3. 3. The method according to claim 2, wherein after the shared peer device sends the broadcast message, the method further comprises:
    the sharing terminal equipment receives a network access request sent by the calling equipment, wherein the network access request comprises an identifier of the calling equipment;
    the sharing terminal equipment authenticates the network access request;
    the sharing terminal equipment sends an authentication result of receiving the calling equipment to access the network to the calling equipment;
    and the sharing end equipment adds the identification of the calling equipment to the sharing equipment table.
  4. 4. The method according to claim 2 or 3, wherein after the sharing end device receives the response of the called device, the method further comprises:
    if the sharing end equipment does not receive the th heartbeat signal sent by the calling equipment within the preset time, the sharing end equipment disconnects the communication connection with the calling equipment, or,
    if the sharing end equipment receives the th heartbeat signal sent by the calling equipment within the preset time, the sharing end equipment sends a second heartbeat signal to the calling equipment, and the second heartbeat signal is a response signal of the th heartbeat signal.
  5. 5. The method according to claim 2 or 3, wherein after the sharing end device receives the response of the called device, the method further comprises:
    if the sharing end device detects that the called device hangs up or the call signal is interrupted, th notification is sent to the calling device, wherein the th notification is used for indicating the calling device to hang up, or,
    and if the sharing end equipment detects that the calling equipment hangs up or the communication signal is interrupted, sending a second notice to the called equipment, wherein the second notice is used for indicating the called equipment to hang up.
  6. The terminal equipment of kinds, characterized by comprising:
    a receiving module, configured to receive a call request sent by a calling device, where the call request carries an identifier of the calling device, an identifier of the terminal device, and an identifier of a voice service sharing network, and the calling device is located in a range of the voice service sharing network established by the terminal device;
    a judging module, configured to judge whether a shared device table stored in the terminal device includes an identifier of the calling device;
    the processing module is used for establishing a voice data transmission channel with the calling equipment based on a judgment result which is output by the judgment module and contains the identification of the calling equipment in the shared equipment table; calling the called device according to the identification of the called device, and exchanging voice data with the calling device through the voice data transmission channel after the receiving module receives the response of the called device;
    the terminal device further comprises an th sending module, wherein the th sending module is used for:
    and periodically sending broadcast messages, wherein the broadcast messages carry identification information of the voice service sharing network established by the terminal equipment.
  7. 7. The terminal device of claim 6,
    the receiving module is further configured to receive a network access request sent by the calling device, where the network access request includes an identifier of the calling device;
    the processing module is further configured to authenticate the network access request;
    the sending module is further configured to send an authentication result of accepting the calling device to access the network to the calling device;
    the processing module is further configured to add the identifier of the calling device to the shared device table.
  8. 8. The terminal device of claim 6 or 7, wherein the processing module is further configured to:
    and if the receiving module does not receive the th heartbeat signal sent by the calling equipment within the preset time, disconnecting the communication connection with the calling equipment.
  9. 9. The terminal device according to claim 6 or 7, wherein the terminal device further comprises: a second sending module;
    the second sending module is configured to send a second heartbeat signal to the calling device if the receiving module receives the th heartbeat signal sent by the calling device within a preset time, where the second heartbeat signal is a response signal of the th heartbeat signal.
  10. 10. The terminal device according to claim 6 or 7, characterized in that the terminal device further comprises a third sending module,
    the processing module is further configured to detect whether the called device or the calling device is hung up or the call signal is interrupted, trigger the third sending module to send th notification to the calling device when detecting that the called device is hung up or the call signal is interrupted, or trigger the third sending module to send a second notification to the called device when detecting that the calling device is hung up or the call signal is interrupted.
  11. The terminal equipment of kinds, characterized by comprising:
    a receiver, configured to receive a call request sent by a calling device, where the call request carries an identifier of the calling device, an identifier of the terminal device, and an identifier of a voice service sharing network, and the calling device is located in a range of the voice service sharing network established by the terminal device;
    a judger for judging whether the shared device table stored in the terminal device contains the identifier of the calling device;
    a processor, configured to establish a voice data transmission channel with the calling device based on a determination result that the shared device table output by the determiner includes the identifier of the calling device; calling the called device according to the identification of the called device, and exchanging the voice data with the calling device through the voice data transmission channel after the receiver receives the response of the called device;
    the terminal device further comprises an th transmitter, the th transmitter being configured to:
    and periodically sending broadcast messages, wherein the broadcast messages carry identification information of the voice service sharing network established by the terminal equipment.
  12. 12. The terminal device of claim 11,
    the receiver is further configured to receive a network access request sent by the calling device, where the network access request includes an identifier of the calling device;
    the processor is further configured to authenticate the network access request;
    the sender, further used for sending the authentication result of accepting the calling device to access the network to the calling device;
    the processor is further configured to add an identifier of the calling device to the shared device table.
  13. 13. The terminal device of claim 11 or 12, wherein the processor is further configured to:
    and if the receiver does not receive the th heartbeat signal sent by the calling equipment within the preset time, disconnecting the communication connection with the calling equipment.
  14. 14. The terminal device according to claim 11 or 12, wherein the terminal device further comprises: a second transmitter;
    the second transmitter is configured to send a second heartbeat signal to the calling device if the receiver receives the th heartbeat signal sent by the calling device within a preset time, where the second heartbeat signal is an answer signal of the th heartbeat signal.
  15. 15. The terminal device according to claim 11 or 12, characterized in that the terminal device further comprises a third transmitter,
    the processor is further configured to detect whether the called device or the calling device hangs up or the call signal is interrupted, trigger the third transmitter to send th notification to the calling device when detecting that the called device hangs up or the call signal is interrupted, or trigger the third transmitter to send a second notification to the called device when detecting that the calling device hangs up or the call signal is interrupted.
CN201580064062.1A 2015-03-04 2015-03-04 Voice service sharing method, device and system Active CN107005554B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/073634 WO2016138645A1 (en) 2015-03-04 2015-03-04 Voice service sharing method, device and system

Publications (2)

Publication Number Publication Date
CN107005554A CN107005554A (en) 2017-08-01
CN107005554B true CN107005554B (en) 2020-01-31

Family

ID=56849125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580064062.1A Active CN107005554B (en) 2015-03-04 2015-03-04 Voice service sharing method, device and system

Country Status (2)

Country Link
CN (1) CN107005554B (en)
WO (1) WO2016138645A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111341344B (en) * 2020-02-25 2024-02-13 烽火通信科技股份有限公司 Method and system for realizing microphone sharing

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8583105B2 (en) * 2008-01-31 2013-11-12 Centurylink Intellectual Property Llc System and method for a personal phone extension

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364923A (en) * 2008-09-17 2009-02-11 深圳华为通信技术有限公司 Sharing method and terminal equipment thereof
US8437339B2 (en) * 2010-04-28 2013-05-07 Hewlett-Packard Development Company, L.P. Techniques to provide integrated voice service management
CN103905483B (en) * 2012-12-26 2019-03-12 腾讯科技(深圳)有限公司 Audio-video sharing method, equipment and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8583105B2 (en) * 2008-01-31 2013-11-12 Centurylink Intellectual Property Llc System and method for a personal phone extension

Also Published As

Publication number Publication date
CN107005554A (en) 2017-08-01
WO2016138645A1 (en) 2016-09-09

Similar Documents

Publication Publication Date Title
US10477030B2 (en) LTE cellular mobile network access system and corresponding communication method
EP1958467B1 (en) Method of enabling a combinational service and communication network implementing the service
US12089040B2 (en) Caller verification in rich communication services (RCS)
JP2018029335A (en) Cellular network sharing system and method for call routing
CN105635945B (en) A device communication method and system based on WI-FI Aware
CN106470194A (en) Networking telephone connection processing method and device
JP2007251450A (en) Adhoc network, terminal equipment, and adhoc network setting method used therefor
US20220408351A1 (en) Voice-over-internet-protocol (voip) communications
JP5212071B2 (en) Communication device and mobile terminal
US9491284B2 (en) Call termination on OTT network
US10193794B2 (en) Multiparty call method and apparatus
CN110740429A (en) mobile communication method, device and equipment
JP2013153438A (en) Method for establishing communication connection over internet between mobile terminals, computer program, and storage medium
CN102307337A (en) System and method for facilitating communications
CN105187677A (en) System And Method For Transferring A Call
CN107005554B (en) Voice service sharing method, device and system
CN106686542B (en) Method and device for call processing
TWI542186B (en) Portable voice routing apparatus, a system, and a method for processing telephony voice communication
CN105933638A (en) Video call method, mobile terminal and network server
JP2009194586A (en) Communication system
TWM521851U (en) Internet telephone system
CN111372204A (en) Discovery method and device
CN104507068B (en) Realize method, user terminal and the machine double number service system of a machine even numbers
KR102646692B1 (en) Service system supporting call change between digital assistant device and terminal, method thereof and non-transitory computer readable medium having computer program recorded thereon
JP5454708B2 (en) Communication 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
TR01 Transfer of patent right

Effective date of registration: 20210423

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Shenzhen Zhixin new information technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211021

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee before: Shenzhen Zhixin new information technology Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address