[go: up one dir, main page]

CN106657533B - Call processing method and device - Google Patents

Call processing method and device Download PDF

Info

Publication number
CN106657533B
CN106657533B CN201611168471.9A CN201611168471A CN106657533B CN 106657533 B CN106657533 B CN 106657533B CN 201611168471 A CN201611168471 A CN 201611168471A CN 106657533 B CN106657533 B CN 106657533B
Authority
CN
China
Prior art keywords
terminal
call
audio data
call connection
user
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
CN201611168471.9A
Other languages
Chinese (zh)
Other versions
CN106657533A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611168471.9A priority Critical patent/CN106657533B/en
Publication of CN106657533A publication Critical patent/CN106657533A/en
Application granted granted Critical
Publication of CN106657533B publication Critical patent/CN106657533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/56Arrangements for indicating or recording the called number at the calling subscriber's set
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/57Arrangements for indicating or recording the number of the calling subscriber at the called subscriber's set
    • H04M1/571Blocking transmission of caller identification to called party
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/57Arrangements for indicating or recording the number of the calling subscriber at the called subscriber's set
    • H04M1/573Line monitoring circuits for detecting caller identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/57Arrangements for indicating or recording the number of the calling subscriber at the called subscriber's set
    • H04M1/575Means for retrieving and displaying personal data about calling party
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/68Circuit arrangements for preventing eavesdropping
    • H04M1/70Lock-out or secrecy arrangements in party-line systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure is directed to a kind of call handling method and devices, this method comprises: Xiang Suoshu first terminal returns to the first close-talking response in response to the first call request that first terminal is sent, are connected with the first call established between the first terminal;The second call request is sent to second terminal, and receives the second close-talking response that the second terminal returns, with the second call connection established between the second terminal;By the first call connection and the second call connection, the audio data between the second terminal and the first terminal is forwarded.The technical solution can make the user of first terminal in the case where not knowing the number of second terminal, converse with the user of second terminal, and the telephone number of the user of second terminal is prevented to be leaked.

Description

通话处理方法及装置Call processing method and device

技术领域technical field

本公开涉及通信技术领域,尤其涉及通话处理方法及装置。The present disclosure relates to the technical field of communications, and in particular, to a call processing method and device.

背景技术Background technique

随着现在通信技术的发展,使用移动终端进行通话的人越来越多。用户在想要和对方用户通话时,需要知道对方用户的电话号码,用户拨打该电话号码呼叫对方用户,在对方用户接通该呼叫时,该用户才能与对方用户通话。With the development of current communication technologies, more and more people use mobile terminals to make calls. When the user wants to talk to the other user, he needs to know the other party's phone number, the user dials the phone number to call the other party, and the user can only talk to the other party when the other party connects the call.

发明内容Contents of the invention

本公开实施例提供通话处理方法及装置。所述技术方案如下:Embodiments of the present disclosure provide a call processing method and device. Described technical scheme is as follows:

根据本公开实施例的第一方面,提供一种通话处理方法,包括:According to a first aspect of an embodiment of the present disclosure, a call processing method is provided, including:

响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接;In response to the first call request sent by the first terminal, return a first call response to the first terminal, so as to establish a first call connection with the first terminal;

向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接;sending a second call request to the second terminal, and receiving a second call response returned by the second terminal, so as to establish a second call connection with the second terminal;

通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。Forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例可以通过第一通话连接和所述第二通话连接传输第二终端与第一终端之间的音频数据,使得第一终端的用户可以在不知道第二终端的号码的情况下,与第二终端的用户进行通话,防止第二终端的用户的电话号码被泄露。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment can transmit audio data between the second terminal and the first terminal through the first call connection and the second call connection, so that the first terminal's The user can communicate with the user of the second terminal without knowing the number of the second terminal, so as to prevent the phone number of the user of the second terminal from being leaked.

在一个实施例中,所述通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据,包括:In an embodiment, the forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection includes:

通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;和/或receiving the first audio data sent by the first terminal through the first call connection, and forwarding the first audio data to the second terminal through the second call connection; and/or

通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。receiving the second audio data sent by the second terminal through the second call connection, and forwarding the second audio data to the first terminal through the first call connection.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例可以通过第二通话连接向第二终端转发第一终端发送的第一音频数据,并通过第一通话连接向第一终端转发第二终端发送的第二音频数据,使得第一终端的用户可以在不知道第二终端的号码的情况下,与第二终端的用户进行通话,防止第二终端的用户的电话号码被泄露。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment can forward the first audio data sent by the first terminal to the second terminal through the second call connection, and forward the first audio data sent by the first terminal to the first terminal through the first call connection The second audio data sent by the second terminal enables the user of the first terminal to communicate with the user of the second terminal without knowing the number of the second terminal, so as to prevent the phone number of the user of the second terminal from being leaked.

在一个实施例中,在通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据之前,所述方法还包括:In one embodiment, before forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection, the method further includes:

通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。Receive a call acceptance instruction sent by the second terminal through the second call connection, where the call acceptance instruction is used to instruct to forward the audio data between the second terminal and the first terminal.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例可以在接收到第二终端发送的接受通话指令,知晓第二终端的用户同意与第一终端的用户通话时,才通过第一通话连接和第二通话连接转发第二终端与第一终端之间的音频数据,使第一终端的用户与第二终端的用户进行通话,方便第二终端的用户自主选择通话对象。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In this embodiment, the user of the second terminal may only pass the call acceptance instruction sent by the second terminal and know that the user of the second terminal agrees to talk with the user of the first terminal. The audio data between the second terminal and the first terminal is forwarded by the first call connection and the second call connection, so that the user of the first terminal can communicate with the user of the second terminal, and it is convenient for the user of the second terminal to independently select a call partner.

在一个实施例中,在建立与所述第二终端之间的第二通话连接后,所述方法还包括:In one embodiment, after establishing the second call connection with the second terminal, the method further includes:

接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据;receiving a hangup instruction, where the hangup instruction is used to indicate the end of the call with the first terminal and the call with the second terminal, and forwarding the call between the second terminal and the first terminal between audio data;

响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据。In response to the hang up instruction, end the call with the first terminal and the call with the second terminal, and forward the audio data between the second terminal and the first terminal.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例可以在结束本终端与第一终端之间的通话以及本终端与第二终端之间的通话后,才通过第一通话连接和第二通话连接转发第二终端与第一终端之间的音频数据,防止第一终端的用户和第二终端的用户之间的对话被监听。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In this embodiment, the first call connection can be made after the call between the terminal and the first terminal and the call between the terminal and the second terminal are ended. Connecting with the second call forwards the audio data between the second terminal and the first terminal, preventing the conversation between the user of the first terminal and the user of the second terminal from being monitored.

在一个实施例中,响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据,包括:In one embodiment, in response to the hang up instruction, end the call with the first terminal and the call with the second terminal, and forward the call between the second terminal and the first terminal Audio data between, including:

当接收到所述挂断指令后,获取本端的虚拟地址;After receiving the hang up instruction, obtain the virtual address of the local end;

结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。ending the call between the local end and the first terminal and the call between the local end and the second terminal, and forwarding the audio data between the second terminal and the first terminal through the virtual address .

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例可以通过本端的虚拟地址转发所述第二终端与所述第一终端之间的音频数据,使第一终端的用户和第二终端的用户可以在本端挂断通话后还能进行通话。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment can forward the audio data between the second terminal and the first terminal through the virtual address of the local end, so that the user of the first terminal and the second terminal The user of the second terminal can still make a call after hanging up the call at the local end.

根据本公开实施例的第二方面,提供一种通话处理装置,包括:According to a second aspect of an embodiment of the present disclosure, a call processing device is provided, including:

第一建立模块,用于响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接;A first establishing module, configured to return a first call response to the first terminal in response to the first call request sent by the first terminal, so as to establish a first call connection with the first terminal;

第二建立模块,用于向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接;A second establishing module, configured to send a second call request to a second terminal, and receive a second call response returned by the second terminal, so as to establish a second call connection with the second terminal;

转发模块,用于通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。A forwarding module, configured to forward the audio data between the second terminal and the first terminal through the first call connection and the second call connection.

在一个实施例中,所述转发模块还包括:In one embodiment, the forwarding module also includes:

第一转发子模块,用于通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;和/或A first forwarding submodule, configured to receive the first audio data sent by the first terminal through the first call connection, and forward the first audio data to the second terminal through the second call connection ;and / or

第二转发子模块,用于通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。The second forwarding submodule is configured to receive the second audio data sent by the second terminal through the second call connection, and forward the second audio data to the first terminal through the first call connection .

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

第一接收模块,用于通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。A first receiving module, configured to receive a call acceptance instruction sent by the second terminal through the second call connection, where the call acceptance instruction is used to instruct to forward the audio between the second terminal and the first terminal data.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

第二接收模块,用于在建立与所述第二终端之间的第二通话连接后,接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据;The second receiving module is configured to receive a hangup instruction after the second call connection with the second terminal is established, and the hangup instruction is used to indicate the end of the call with the first terminal and the end of the call with the first terminal. A call between the second terminal, and forwarding audio data between the second terminal and the first terminal;

响应模块,用于响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据。A response module, configured to end the call with the first terminal and the call with the second terminal in response to the hang-up instruction, and forward the call between the second terminal and the first terminal between audio data.

在一个实施例中,所述响应模块,包括:In one embodiment, the response module includes:

获取子模块,用于当接收到所述挂断指令后,获取本端的虚拟地址;The obtaining submodule is used to obtain the virtual address of the local end after receiving the hangup instruction;

结束通话子模块,用于结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。Ending the call sub-module, configured to end the call between the local end and the first terminal and the call between the local end and the second terminal, and forward the call between the second terminal and the second terminal through the virtual address. Audio data between one terminal.

根据本公开实施例的第三方面,提供一种通话处理装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a call processing device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接;In response to the first call request sent by the first terminal, return a first call response to the first terminal, so as to establish a first call connection with the first terminal;

向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接;sending a second call request to the second terminal, and receiving a second call response returned by the second terminal, so as to establish a second call connection with the second terminal;

通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。Forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的通话处理方法的流程图。Fig. 1 is a flowchart showing a call processing method according to an exemplary embodiment.

图2是根据一示例性实施例示出的通话处理方法的流程图。Fig. 2 is a flowchart showing a call processing method according to an exemplary embodiment.

图3是根据一示例性实施例示出的通话处理方法的流程图。Fig. 3 is a flowchart showing a call processing method according to an exemplary embodiment.

图4是根据一示例性实施例示出的通话处理装置的框图。Fig. 4 is a block diagram of a call processing device according to an exemplary embodiment.

图5是根据一示例性实施例示出的通话处理装置的框图。Fig. 5 is a block diagram of a call processing device according to an exemplary embodiment.

图6是根据一示例性实施例示出的通话处理装置的框图。Fig. 6 is a block diagram of a call processing device according to an exemplary embodiment.

图7是根据一示例性实施例示出的通话处理装置的框图。Fig. 7 is a block diagram of a call processing device according to an exemplary embodiment.

图8是根据一示例性实施例示出的通话处理装置的框图。Fig. 8 is a block diagram of a call processing device according to an exemplary embodiment.

图9是根据一示例性实施例示出的通话处理装置的框图。Fig. 9 is a block diagram of a call processing device according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

相关技术中,用户A要想通过用户B电话联系到用户C时,用户A需要向用户B打电话询问到用户C的电话号码,然后用户A再拨打用户C的电话号码,拨通之后才可以联系到用户C,否则不能电话联系到用户C。在该过程中,用户B需要将用户C的电话号码告知用户A,这样用户A才能电话联系到用户C。In related technologies, when user A wants to contact user C through user B, user A needs to call user B to inquire about user C's phone number, and then user A dials user C's phone number again. Contact user C, otherwise user C cannot be contacted by phone. In this process, user B needs to inform user A of user C's phone number, so that user A can call user C.

为了解决上述问题,在用户A使用第一终端与用户B的终端之间建立第一通话连接,用户B可使用终端拨打用户C的电话,另建立用户B的终端与用户C的第二终端之间的第二通话连接,如此,用户B的终端可以通过第一通话连接和所述第二通话连接转发第二终端与第一终端之间的音频数据,用户A不需要知道用户C的电话号码,就可以和用户C通话,防止用户C的电话号码被泄露。In order to solve the above problems, a first call connection is established between user A using the first terminal and user B's terminal, user B can use the terminal to dial user C's phone, and establish a connection between user B's terminal and user C's second terminal In this way, the terminal of user B can forward the audio data between the second terminal and the first terminal through the first call connection and the second call connection, and user A does not need to know the phone number of user C , you can talk to user C to prevent user C's phone number from being leaked.

图1是根据一示例性实施例示出的一种通话处理方法的流程图,如图1所示,该通话处理方法用于终端等设备中,包括以下步骤101至103:Fig. 1 is a flow chart of a call processing method according to an exemplary embodiment. As shown in Fig. 1, the call processing method is used in devices such as terminals, and includes the following steps 101 to 103:

在步骤101中,响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接。In step 101, in response to a first call request sent by a first terminal, a first call response is returned to the first terminal, so as to establish a first call connection with the first terminal.

在步骤102中,向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接。In step 102, a second call request is sent to the second terminal, and a second call response returned by the second terminal is received, so as to establish a second call connection with the second terminal.

在步骤103中,通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。In step 103, forward the audio data between the second terminal and the first terminal through the first call connection and the second call connection.

在该实施例中,示例的,用户A想要电话联系用户C,但是用户A不知道用户C的电话,此时,用户A可以使用第一终端如终端A拨打自己的联系人用户B的终端B的号码,终端A呼叫终端B时,会向终端B发送第一通话请求,终端B接收到该第一通话请求后会在终端B的显示屏上显示出与终端A的通话界面,用户B看到终端B上的显示的与终端A的通话界面时,想要与用户A通话就会点击接通按键,终端B检测到用户点击接通按键的操作后,就会向终端A返回第一通话请求对应的第一通话响应,如此,终端B和终端A就建立了第一通话连接;此时,用户A和用户B就可以使用各自的终端进行通话了。In this embodiment, for example, user A wants to call user C, but user A does not know user C's phone number. At this time, user A can use a first terminal such as terminal A to dial the terminal of user B, his contact B’s number, when terminal A calls terminal B, it will send a first call request to terminal B, and terminal B will display the call interface with terminal A on the display screen of terminal B after receiving the first call request, and user B When seeing the call interface with terminal A displayed on terminal B, if you want to talk to user A, you will click the connect button. After terminal B detects that the user clicks the connect button, it will return the first call to terminal A. The first call response corresponding to the call request. In this way, terminal B and terminal A establish the first call connection; at this time, user A and user B can use their respective terminals to make a call.

在该实施例中,用户A和用户B进行通话时,提出想要与用户C通话,此时,用户B不需要将用户C的电话号码告知用户A,用户B可以使用自己的终端B拨打用户C的第二终端如终端C的电话号码,呼叫终端C,此时终端B会向终端C发送第二通话请求,终端C接收到该第二通话请求后会在终端C的显示屏上显示出与终端B的通话界面,用户C看到终端C上的显示的与终端B的通话界面时,想要与用户B通话就会点击接通按键,终端C检测到用户点击接通按键的操作后,就会向终端B返回第二通话请求对应的第二通话响应,如此,终端B和终端C就建立了第二通话连接。In this embodiment, when user A talks to user B, he proposes to talk to user C. At this time, user B does not need to inform user A of user C's phone number, and user B can use his own terminal B to call user C. The second terminal of C, such as the phone number of terminal C, calls terminal C. At this time, terminal B will send a second call request to terminal C, and terminal C will display on the display screen of terminal C after receiving the second call request. In the call interface with terminal B, when user C sees the call interface with terminal B displayed on terminal C, if he wants to talk to user B, he will click the connect button. After terminal C detects that the user clicks the connect button , a second call response corresponding to the second call request will be returned to terminal B, so that terminal B and terminal C establish a second call connection.

在该实施例中,终端B在建立与终端A之间的第一通话连接,与终端C之间的第二通话连接后,用户A的语音信息由终端A采集后通过第一通话连接和第二通话连接传输至终端C,由终端C播放给用户C,或者,用户C的话语由终端C采集后通过第二通话连接和第一通话连接传输至终端A,由终端A播放给用户A,如此,用户A和用户C可实现通过第一通话连接和第二通话连接进行通话。In this embodiment, after terminal B establishes the first call connection with terminal A and the second call connection with terminal C, the voice information of user A is collected by terminal A and passed through the first call connection and the second call connection. The second call connection is transmitted to the terminal C, and the terminal C plays it to the user C, or, the speech of the user C is collected by the terminal C and then transmitted to the terminal A through the second call connection and the first call connection, and the terminal A plays it to the user A, In this way, user A and user C can implement a call through the first call connection and the second call connection.

需要说明的是,本实施例中,终端B和终端C之间在建立连接的过程中,可保持终端A和终端B之间的通信链路处于连通状态,进而,在终端B和终端C建立通话连接之后,也即在终端B和终端C能够实现通信之后,可以间接实现终端A和终端C之间的数据交互。It should be noted that in this embodiment, during the process of establishing a connection between terminal B and terminal C, the communication link between terminal A and terminal B can be kept in a connected state, and then, when terminal B and terminal C are established After the call is connected, that is, after the terminal B and the terminal C can communicate, the data interaction between the terminal A and the terminal C can be realized indirectly.

另外,可选的,在终端A和终端C之间能够进行数据交互后,终端A和终端C之间的数据交互,可包括:终端A和终端B之间进行语音传输,并将该语音通过终端B转发给终端C。其中,可选的,终端B可以对该语音进行处理,例如,加密、解密、编码、解码等。比如,为了保护终端A或者C的个人信息不被泄露,终端B可以对终端A或者C发送来的语音,进行变声处理。In addition, optionally, after data interaction between terminal A and terminal C is possible, the data interaction between terminal A and terminal C may include: performing voice transmission between terminal A and terminal B, and transmitting the voice through Terminal B forwards to terminal C. Wherein, optionally, terminal B may process the voice, for example, encrypt, decrypt, encode, decode, and so on. For example, in order to protect the personal information of terminal A or C from being leaked, terminal B may perform voice-changing processing on the voice sent by terminal A or C.

本实施例可以通过第一通话连接和所述第二通话连接传输第二终端与第一终端之间的音频数据,使得第一终端的用户可以在不知道第二终端的号码的情况下,与第二终端的用户进行通话,防止第二终端的用户的电话号码被泄露。In this embodiment, the audio data between the second terminal and the first terminal can be transmitted through the first call connection and the second call connection, so that the user of the first terminal can communicate with the second terminal without knowing the number of the second terminal The user of the second terminal makes a call to prevent the phone number of the user of the second terminal from being leaked.

在一种可能的实施方式中,步骤103可以实施为以下步骤A1和/或步骤A2。In a possible implementation manner, step 103 may be implemented as the following step A1 and/or step A2.

在步骤A1中,通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端。In step A1, the first audio data sent by the first terminal is received through the first call connection, and the first audio data is forwarded to the second terminal through the second call connection.

在步骤A2中,通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。In step A2, receiving the second audio data sent by the second terminal through the second call connection, and forwarding the second audio data to the first terminal through the first call connection.

在该实施例中,按照上述示例,终端B在建立与终端A之间的第一通话连接,与终端C之间的第二通话连接后,通过所述第一通话连接和所述第二通话连接,转发第二终端即终端C与第一终端即终端A之间的音频数据可以包括:终端A采集到用户A的语音生成第一音频数据后,可以通过第一通话连接所对应的第一通信链路将第一音频数据发送给终端B,终端B通过第一通信链路接收到终端A发送的第一音频数据后,可以通过第二通话连接对应的第二通信链路将第一音频数据转发给终端C,终端C播放该第一音频数据,如此,用户C就可以接收到用户A的语音。In this embodiment, according to the above example, after terminal B establishes the first call connection with terminal A and the second call connection with terminal C, through the first call connection and the second call connection Connecting and forwarding the audio data between the second terminal, that is, terminal C, and the first terminal, that is, terminal A may include: after terminal A collects the voice of user A to generate the first audio data, it may connect to the corresponding first terminal through the first call. The communication link sends the first audio data to terminal B. After terminal B receives the first audio data sent by terminal A through the first communication link, it can send the first audio data through the second communication link corresponding to the second call connection. The data is forwarded to terminal C, and terminal C plays the first audio data, so that user C can receive user A's voice.

或者,终端C采集到用户C的语音生成第二音频数据后,可以通过第二通话连接对应的第二通信链路将该第二音频数据发送给终端B,终端B通过第二通信链路接收到终端C发送的第二音频数据后,可以通过第一通话连接对应的第一通信链路将第二音频数据转发给终端A,终端A播放该第二音频数据,如此,用户A就可以接收到用户C的语音。Alternatively, after terminal C collects the voice of user C to generate the second audio data, it can send the second audio data to terminal B through the second communication link corresponding to the second call connection, and terminal B receives the second audio data through the second communication link After receiving the second audio data sent by terminal C, the second audio data can be forwarded to terminal A through the first communication link corresponding to the first call connection, and terminal A plays the second audio data, so that user A can receive to user C's voice.

或者,终端B通过第一通信链路接收终端A发送的第一音频数据,并通过第二通信链路将第一音频数据转发给终端C,同时,终端B通过第二通话链路接收终端C发送的第二音频数据,并通过第一通话链路将第二音频数据转发给终端A,这样,用户A就可以实现与用户C的通话。Alternatively, terminal B receives the first audio data sent by terminal A through the first communication link, and forwards the first audio data to terminal C through the second communication link, and at the same time, terminal B receives terminal C through the second call link send the second audio data, and forward the second audio data to terminal A through the first call link, so that user A can communicate with user C.

本实施例可以通过第二通话连接向第二终端转发第一终端发送的第一音频数据,并通过第一通话连接向第一终端转发第二终端发送的第二音频数据,使得第一终端的用户可以在不知道第二终端的号码的情况下,向第二终端的用户说话,或者听第二终端的用户说话,或者与第二终端的用户进行对话,防止第二终端的用户的电话号码被泄露。In this embodiment, the first audio data sent by the first terminal may be forwarded to the second terminal through the second call connection, and the second audio data sent by the second terminal may be forwarded to the first terminal through the first call connection, so that the first terminal's The user can speak to the user of the second terminal, or listen to the user of the second terminal, or have a conversation with the user of the second terminal without knowing the number of the second terminal, preventing the user of the second terminal from calling the phone number of the user of the second terminal. was leaked.

在一种可能的实施方式中,上述通话处理方法还可以包括步骤B1。In a possible implementation manner, the above call processing method may further include step B1.

在步骤B1中,通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。In step B1, a call acceptance instruction sent by the second terminal is received through the second call connection, and the call acceptance instruction is used to instruct forwarding of audio data between the second terminal and the first terminal.

在该实施例中,按照上述示例,终端B在建立与终端C之间的第二通话连接后,用户B就可以与用户C进行通话,用户B可以告知用户C:用户A想与用户C通话,若用户C同意与用户A通话,用户C可以点击终端C上的通话界面上的接受第三方通话按键,终端C检测到用户C点击接受第三方通话按键的操作后,就可以向终端B发送接受通话指令,该接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据;终端B接收待该接受通话指令后就知晓用户C同意与用户A通话,此时,终端B就可以通过第一通话连接和第二通话连接,转发第二终端与第一终端之间的音频数据,使用户A和用户C可以通话。In this embodiment, according to the above example, after terminal B establishes the second call connection with terminal C, user B can talk to user C, and user B can inform user C that user A wants to talk to user C , if user C agrees to talk with user A, user C can click the accept third-party call button on the call interface on terminal C. After terminal C detects that user C clicks to accept the operation of the third-party call button, it can send a Accepting the call instruction, which is used to instruct to forward the audio data between the second terminal and the first terminal; terminal B knows that user C agrees to talk with user A after receiving the call acceptance instruction, and at this time , terminal B can forward the audio data between the second terminal and the first terminal through the first call connection and the second call connection, so that user A and user C can talk.

在这里需要说明的是,若用户C不同意与用户A通话,用户C就可以与用户B通话后挂断电话,断开该第二通话连接。It should be noted here that if user C does not agree to talk with user A, user C can hang up the phone after talking with user B, and disconnect the second call connection.

另外,可选的,终端B在转发终端A向终端C发送的数据之前,可以首先向终端C发送一个请求消息,该请求消息用于请求终端C接收终端A发送的数据;终端C在接收到终端B发送的请求消息之后,确定是否同意接收终端A发送的数据,并且将确定结果返回给终端B;终端B根据终端C的确定结果,将终端A发送的数据转发给终端C,或者,不会将终端A发送的数据转发给终端C。In addition, optionally, before forwarding the data sent by terminal A to terminal C, terminal B may first send a request message to terminal C, and the request message is used to request terminal C to receive the data sent by terminal A; After the request message sent by terminal B, determine whether to agree to receive the data sent by terminal A, and return the determination result to terminal B; terminal B forwards the data sent by terminal A to terminal C according to the determination result of terminal C, or does not The data sent by terminal A will be forwarded to terminal C.

可选的,终端B可以通过以下方式向终端C发送请求消息:终端B的第一预设按键接收用户的触发指令,该触发指令用于指定终端C并指示向终端C发送请求;或者,终端A发送的语音信息中携带有请求将数据转发给终端C的指令,终端B对终端A发送的语音信息进行解析,得到该指令,并按照该指令发送请求消息。Optionally, terminal B may send a request message to terminal C in the following manner: the first preset button of terminal B receives a trigger instruction from the user, and the trigger instruction is used to designate terminal C and instruct to send a request to terminal C; or, terminal The voice information sent by A carries an instruction requesting to forward the data to terminal C. Terminal B analyzes the voice information sent by terminal A, obtains the instruction, and sends a request message according to the instruction.

其中,可选的,终端C可以是终端A指定的目的终端,或者,终端C是终端B指定的目的终端,或者,终端C也可以是随机的目的终端。Wherein, optionally, terminal C may be a destination terminal specified by terminal A, or terminal C may be a destination terminal specified by terminal B, or terminal C may also be a random destination terminal.

可选的,终端C在接收到终端B发送的请求消息之后,可以通过以下方式确定是否同意接收终端A发送的数据:终端C在接收到请求消息之后,对接收到该请求消息进行提醒(例如,可以一并显示“同意”和“拒绝”虚拟按键),用户根据提醒信息,人为选定是否同意接收终端A发送的数据;或者,终端B和终端C之间可以预先建立约定,例如,默认认为终端B转发的数据是可信任的,因此,可以默认同意转发,而不需要用户确定。Optionally, after receiving the request message sent by terminal B, terminal C may determine whether to agree to receive the data sent by terminal A in the following manner: after receiving the request message, terminal C reminds the request message received (for example , can display "Agree" and "Reject" virtual buttons together), the user can manually select whether to agree to receive the data sent by Terminal A according to the reminder information; or, an agreement can be established in advance between Terminal B and Terminal C, for example, the default It is considered that the data forwarded by terminal B is trustworthy, therefore, the forwarding can be agreed by default without the user's determination.

本实施例可以在接收到第二终端发送的接受通话指令,知晓第二终端的用户同意与第一终端的用户通话时,才通过第一通话连接和第二通话连接转发第二终端与第一终端之间的音频数据,使第一终端的用户与第二终端的用户进行通话,方便第二终端的用户自主选择通话对象。In this embodiment, after receiving the call acceptance instruction sent by the second terminal and knowing that the user of the second terminal agrees to talk with the user of the first terminal, the communication between the second terminal and the first call is forwarded through the first call connection and the second call connection. The audio data between the terminals enables the user of the first terminal to communicate with the user of the second terminal, which is convenient for the user of the second terminal to independently select a call partner.

在一种可能的实施方式中,上述通话处理方法还可以在步骤102后包括步骤C1和步骤C2。In a possible implementation manner, the above call processing method may further include step C1 and step C2 after step 102 .

在步骤C1中,接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据。In step C1, a hang-up instruction is received, the hang-up instruction is used to indicate the end of the call with the first terminal and the call with the second terminal, and forward the connection between the second terminal and the second terminal. audio data between the first terminals.

在步骤C2中,响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据。In step C2, in response to the hang up instruction, end the call with the first terminal and the call with the second terminal, and forward the call between the second terminal and the first terminal between audio data.

在该实施例中,按照上述示例,终端B在建立与终端C之间的第二通话连接后,为了方便用户A和用户C通话,防止用户B听到用户A和用户C的对话,用户B可点击终端B上显示的通话界面上的挂断按键,如此,终端B就接收到用户B输入的挂断指令,此时,终端B会响应于该挂断指令,结束本终端即终端B与终端A之间的通话以及终端B与终端C之间的通话,此时,用于数据传输的第一通话连接对应的第一通信链路和第二通话连接对应的第二通信链路还保持连通;该挂断指令还用于指示转发所述第二终端与所述第一终端之间的音频数据,即终端B结束与终端A之间的通话以及与终端C之间的通话后,终端B可以通过所述第一通话连接对应的第一通信链路和所述第二通话连接对应的第二通信链路,转发第二终端与第一终端之间的音频数据,使用户A和用户C实现通话。In this embodiment, according to the above example, after terminal B establishes the second call connection with terminal C, in order to facilitate the conversation between user A and user C and prevent user B from hearing the conversation between user A and user C, user B You can click the hang-up button on the call interface displayed on terminal B, so that terminal B receives the hang-up command input by user B. At this time, terminal B will respond to the hang-up command and end the terminal, that is, terminal B and For the call between terminals A and the call between terminal B and terminal C, at this time, the first communication link corresponding to the first call connection and the second communication link corresponding to the second call connection for data transmission are still maintained connected; the hang up instruction is also used to instruct to forward the audio data between the second terminal and the first terminal, that is, after terminal B ends the call with terminal A and the call with terminal C, the terminal B can forward the audio data between the second terminal and the first terminal through the first communication link corresponding to the first call connection and the second communication link corresponding to the second call connection, so that user A and user A C realizes the call.

本实施例可以在结束本终端与第一终端之间的通话以及本终端与第二终端之间的通话后,通过第一通话连接和第二通话连接转发第二终端与第一终端之间的音频数据,防止第一终端的用户和第二终端的用户之间的对话被监听。In this embodiment, after the call between the terminal and the first terminal and the call between the terminal and the second terminal are ended, the call between the second terminal and the first terminal can be forwarded through the first call connection and the second call connection. Audio data, preventing the conversation between the user of the first terminal and the user of the second terminal from being intercepted.

在一种可能的实施方式中,上述通话处理方法中的步骤C2还可以实现为步骤C21和步骤C22。In a possible implementation manner, step C2 in the above call processing method may also be implemented as step C21 and step C22.

在步骤C21中,当接收到所述挂断指令后,获取本端的虚拟地址。In step C21, after receiving the hang up instruction, obtain the virtual address of the local end.

在步骤C22中,结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。In step C22, end the call between the local end and the first terminal and the call between the local end and the second terminal, and forward the second terminal and the first terminal through the virtual address audio data between.

在该实施例中,第一通话连接为终端A的地址与终端B的地址之间的连接,第二通话连接为终端B的地址与终端C的地址之间的连接。In this embodiment, the first call connection is a connection between the address of terminal A and the address of terminal B, and the second call connection is a connection between the address of terminal B and the address of terminal C.

当终端B接收到挂断指令而挂断之后,可获取本端的虚拟地址,通过该虚拟地址实现与终端A和终端C的通信。其中,该虚拟地址包括但不仅限于IP地址、其他网络虚拟地址等用于唯一标识终端B的地址的信息。After terminal B receives the hang-up command and hangs up, it can obtain the virtual address of the terminal, and realize communication with terminal A and terminal C through the virtual address. Wherein, the virtual address includes but not limited to IP address, other network virtual addresses and other information used to uniquely identify the address of terminal B.

在该实施例中,若终端A、终端B和终端C是带有SIM(Subscriber IdentityModule,客户识别模块)卡的终端时,这些终端的地址为IP(Internet Protocol,网络协议)地址;IP地址是一直存在的,示例的,终端A可以将第一音频数据发送给终端B的IP地址处,如此,终端B可以获取到该第一音频数据,并根据终端C的IP地址,将该第一音频数据发送至终端C,由终端C播放给用户C听。In this embodiment, if terminal A, terminal B and terminal C are terminals with SIM (Subscriber Identity Module, customer identification module) cards, the addresses of these terminals are IP (Internet Protocol, network protocol) addresses; the IP addresses are It has always existed, for example, terminal A can send the first audio data to the IP address of terminal B, so that terminal B can obtain the first audio data, and according to the IP address of terminal C, send the first audio data The data is sent to terminal C, and terminal C plays it for user C to listen to.

若终端A、终端B和终端C是可以拨打网络电话的终端时,这些终端的地址为服务器为终端分配的虚拟地址,在终端B接收到挂断指令后,分配给终端B的虚拟地址仍然存在,终端B可以获取该虚拟地址,终端C可以将第二音频数据发送至该虚拟地址处,终端B从该虚拟地址处获取该第二音频数据,并根据终端A的虚拟地址,将该第二音频数据发送给终端A。If Terminal A, Terminal B, and Terminal C are terminals that can make Internet calls, the addresses of these terminals are the virtual addresses assigned by the server to the terminals. After Terminal B receives the hangup command, the virtual address assigned to Terminal B still exists , terminal B can obtain the virtual address, terminal C can send the second audio data to the virtual address, terminal B obtains the second audio data from the virtual address, and according to the virtual address of terminal A, the second Audio data is sent to Terminal A.

本实施例可以通过本端的虚拟地址转发所述第二终端与所述第一终端之间的音频数据,使第一终端的用户和第二终端的用户可以在本端挂断通话后进行通话,避免了第三方监听,更具隐私性。In this embodiment, the audio data between the second terminal and the first terminal can be forwarded through the virtual address of the local terminal, so that the user of the first terminal and the user of the second terminal can talk after the local terminal hangs up the call, Avoid third-party monitoring, more privacy.

下面通过几个实施例详细介绍实现过程。The implementation process will be described in detail below through several embodiments.

图2是根据一示例性实施例示出的一种通话处理方法的流程图,如图2所示,该方法可以由终端等设备实现,包括步骤201至204。Fig. 2 is a flow chart showing a call processing method according to an exemplary embodiment. As shown in Fig. 2 , the method may be implemented by devices such as terminals, and includes steps 201 to 204.

在步骤201中,响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接。In step 201, in response to a first call request sent by a first terminal, a first call response is returned to the first terminal, so as to establish a first call connection with the first terminal.

在步骤202中,向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接。In step 202, a second call request is sent to the second terminal, and a second call response returned by the second terminal is received, so as to establish a second call connection with the second terminal.

在步骤203中,通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。In step 203, a call acceptance instruction sent by the second terminal is received through the second call connection, and the call acceptance instruction is used to instruct forwarding of audio data between the second terminal and the first terminal.

在步骤204中,通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。In step 204, receiving the first audio data sent by the first terminal through the first call connection, and forwarding the first audio data to the second terminal through the second call connection; The second call connection receives the second audio data sent by the second terminal, and forwards the second audio data to the first terminal through the first call connection.

图3是根据一示例性实施例示出的一种通话处理方法的流程图,如图3所示,该方法可以由终端等设备实现,包括步骤301至305。Fig. 3 is a flow chart showing a call processing method according to an exemplary embodiment. As shown in Fig. 3 , the method may be implemented by devices such as terminals, and includes steps 301 to 305.

在步骤301中,响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接。In step 301, in response to a first call request sent by a first terminal, a first call response is returned to the first terminal, so as to establish a first call connection with the first terminal.

在步骤302中,向第二终端发送第二通话请求,并接收所述第二终端返回的所述第二通话响应,以建立与所述第二终端之间的第二通话连接。In step 302, a second call request is sent to a second terminal, and the second call response returned by the second terminal is received, so as to establish a second call connection with the second terminal.

在步骤303中,在建立与所述第二终端之间的第二通话连接后,接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据。In step 303, after the second call connection with the second terminal is established, a hang-up instruction is received, and the hang-up instruction is used to indicate the end of the call with the first terminal and with the call between the second terminal and forward the audio data between the second terminal and the first terminal.

在步骤304中,当接收到所述挂断指令后,获取本端的虚拟地址。In step 304, after receiving the hangup instruction, obtain the virtual address of the local end.

在步骤305中,结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。In step 305, end the call between the local end and the first terminal and the call between the local end and the second terminal, and forward the second terminal and the first terminal through the virtual address audio data between.

在步骤306中,通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。In step 306, receiving the first audio data sent by the first terminal through the first call connection, and forwarding the first audio data to the second terminal through the second call connection; The second call connection receives the second audio data sent by the second terminal, and forwards the second audio data to the first terminal through the first call connection.

下述为本公开装置实施例,可以用于执行本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure.

图4是根据一示例性实施例示出的一种通话处理装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图4所示,该通话处理装置包括:第一建立模块401、第二建立模块402和转发模块403;其中:Fig. 4 is a block diagram showing a call processing device according to an exemplary embodiment, and the device may be implemented as part or all of an electronic device through software, hardware or a combination of the two. As shown in Figure 4, the call processing device includes: a first establishing module 401, a second establishing module 402 and a forwarding module 403; wherein:

第一建立模块401,用于响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接。The first establishing module 401 is configured to, in response to the first call request sent by the first terminal, return a first call response to the first terminal, so as to establish a first call connection with the first terminal.

第二建立模块402,用于向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接。The second establishing module 402 is configured to send a second call request to the second terminal, and receive a second call response returned by the second terminal, so as to establish a second call connection with the second terminal.

转发模块403,用于通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。The forwarding module 403 is configured to forward the audio data between the second terminal and the first terminal through the first call connection and the second call connection.

作为一种可能的实施例,上述公开的通话处理装置还可以把转发模块403配置成包括第一转发子模块4031和第二转发子模块4032,图5是涉及上述通话处理装置的框图,其中:As a possible embodiment, the call processing device disclosed above may also configure the forwarding module 403 to include a first forwarding submodule 4031 and a second forwarding submodule 4032. FIG. 5 is a block diagram related to the above call processing device, wherein:

第一转发子模块4031,用于通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;和/或The first forwarding submodule 4031 is configured to receive the first audio data sent by the first terminal through the first call connection, and forward the first audio data to the second terminal through the second call connection. terminal; and/or

第二转发子模块4032,用于通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。The second forwarding submodule 4032 is configured to receive the second audio data sent by the second terminal through the second call connection, and forward the second audio data to the first call connection through the first call connection. terminal.

作为一种可能的实施例,上述公开的通话处理装置还可以配置成包括第一接收模块404,图6是涉及上述通话处理装置的框图,其中:As a possible embodiment, the above disclosed call processing device may also be configured to include a first receiving module 404. FIG. 6 is a block diagram related to the above call processing device, wherein:

第一接收模块404,用于通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。The first receiving module 404 is configured to receive a call acceptance instruction sent by the second terminal through the second call connection, where the call acceptance instruction is used to instruct forwarding of the call between the second terminal and the first terminal audio data.

作为一种可能的实施例,上述公开的通话处理装置还可以配置成包括第二接收模块405和响应模块406,图7是涉及上述通话处理装置的框图,其中:As a possible embodiment, the call processing device disclosed above may also be configured to include a second receiving module 405 and a response module 406. FIG. 7 is a block diagram related to the above call processing device, wherein:

第二接收模块405,用于在建立与所述第二终端之间的第二通话连接后,接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据;The second receiving module 405 is configured to receive a hangup instruction after the second call connection with the second terminal is established, the hangup instruction is used to indicate the end of the call with the first terminal and communicate with the second terminal, and forward audio data between the second terminal and the first terminal;

响应模块406,用于响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据。A response module 406, configured to end the call with the first terminal and the call with the second terminal in response to the hang-up instruction, and forward the call between the second terminal and the first terminal audio data between.

作为一种可能的实施例,上述公开的通话处理装置还可以把响应模块406配置成包括获取子模块4061和结束通话子模块4062,图8是涉及上述通话处理装置的框图,其中:As a possible embodiment, the call processing device disclosed above may also configure the response module 406 to include an acquisition submodule 4061 and an end call submodule 4062. FIG. 8 is a block diagram related to the above call processing device, wherein:

获取子模块4061,用于当接收到所述挂断指令后,获取本端的虚拟地址;An acquisition submodule 4061, configured to acquire the virtual address of the local end after receiving the hangup instruction;

结束通话子模块4062,用于结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。End call sub-module 4062, configured to end the call between the local end and the first terminal and the call between the local end and the second terminal, and forward the call between the second terminal and the second terminal through the virtual address. Audio data between first terminals.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图9是根据一示例性实施例示出的一种通话处理装置的框图,该装置适用于终端设备。例如,装置900可以是移动电话,游戏控制台,电脑、平板设备,个人数字助理等。Fig. 9 is a block diagram showing a call processing apparatus according to an exemplary embodiment, and the apparatus is applicable to a terminal device. For example, apparatus 900 may be a mobile phone, game console, computer, tablet device, personal digital assistant, or the like.

装置900可以包括以下一个或多个组件:处理组件901,存储器902,电源组件903,多媒体组件904,音频组件905,输入/输出(I/O)接口906,传感器组件907,以及通信组件908。Apparatus 900 may include one or more of the following components: processing component 901, memory 902, power supply component 903, multimedia component 904, audio component 905, input/output (I/O) interface 906, sensor component 907, and communication component 908.

处理组件901通常控制装置900的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件901可以包括一个或多个处理器920来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件901可以包括一个或多个模块,便于处理组件901和其他组件之间的交互。例如,处理组件901可以包括多媒体模块,以方便多媒体组件904和处理组件901之间的交互。The processing component 901 generally controls the overall operations of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 901 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 901 may include one or more modules to facilitate interaction between processing component 901 and other components. For example, the processing component 901 may include a multimedia module to facilitate interaction between the multimedia component 904 and the processing component 901 .

存储器902被配置为存储各种类型的数据以支持在装置900的操作。这些数据的示例包括用于在装置900上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器902可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 902 is configured to store various types of data to support operations at the device 900 . Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and the like. The memory 902 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件903为装置900的各种组件提供电力。电源组件903可以包括电源管理系统,一个或多个电源,及其他与为装置900生成、管理和分配电力相关联的组件。The power supply component 903 provides power to various components of the device 900 . Power components 903 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 900 .

多媒体组件904包括在所述装置900和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件904包括一个前置摄像头和/或后置摄像头。当装置900处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 904 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 904 includes a front camera and/or a rear camera. When the device 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件905被配置为输出和/或输入音频信号。例如,音频组件905包括一个麦克风(MIC),当装置900处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器902或经由通信组件908发送。在一些实施例中,音频组件905还包括一个扬声器,用于输出音频信号。The audio component 905 is configured to output and/or input audio signals. For example, the audio component 905 includes a microphone (MIC) configured to receive external audio signals when the device 900 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 902 or sent via communication component 908 . In some embodiments, the audio component 905 also includes a speaker for outputting audio signals.

I/O的接口906为处理组件901和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 906 provides an interface between the processing component 901 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件907包括一个或多个传感器,用于为装置900提供各个方面的状态评估。例如,传感器组件907可以检测到装置900的打开/关闭状态,组件的相对定位,例如所述组件为装置900的显示器和小键盘,传感器组件907还可以检测装置900或装置900一个组件的位置改变,用户与装置900接触的存在或不存在,装置900方位或加速/减速和装置900的温度变化。传感器组件907可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件907还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件907还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 907 includes one or more sensors for providing status assessments of various aspects of device 900 . For example, the sensor component 907 can detect the open/closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor component 907 can also detect a change in the position of the device 900 or a component of the device 900 , the presence or absence of user contact with the device 900 , the device 900 orientation or acceleration/deceleration and the temperature change of the device 900 . The sensor assembly 907 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 907 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 907 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件908被配置为便于装置900和其他设备之间有线或无线方式的通信。装置900可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件908经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件908还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 908 is configured to facilitate wired or wireless communication between the apparatus 900 and other devices. The device 900 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 908 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 908 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置900可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 900 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器902,上述指令可由装置900的处理器920执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 902 including instructions, which can be executed by the processor 920 of the device 900 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

该非临时性计算机可读存储介质,当所述存储介质中的指令由装置900的处理器执行时,使得装置900能够执行上述通话处理方法,所述方法包括:The non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the device 900, enables the device 900 to execute the above call processing method, the method comprising:

响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接;In response to the first call request sent by the first terminal, return a first call response to the first terminal, so as to establish a first call connection with the first terminal;

向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接;sending a second call request to the second terminal, and receiving a second call response returned by the second terminal, so as to establish a second call connection with the second terminal;

通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。Forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

所述通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据,包括:The forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection includes:

通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;和/或receiving the first audio data sent by the first terminal through the first call connection, and forwarding the first audio data to the second terminal through the second call connection; and/or

通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。receiving the second audio data sent by the second terminal through the second call connection, and forwarding the second audio data to the first terminal through the first call connection.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

在通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据之前,所述方法还包括:Before forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection, the method further includes:

通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。Receive a call acceptance instruction sent by the second terminal through the second call connection, where the call acceptance instruction is used to instruct to forward the audio data between the second terminal and the first terminal.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

在建立与所述第二终端之间的第二通话连接后,所述方法还包括:After establishing the second call connection with the second terminal, the method further includes:

接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据;receiving a hangup instruction, where the hangup instruction is used to indicate the end of the call with the first terminal and the call with the second terminal, and forwarding the call between the second terminal and the first terminal between audio data;

响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据。In response to the hang up instruction, end the call with the first terminal and the call with the second terminal, and forward the audio data between the second terminal and the first terminal.

所述存储介质中的指令还可以包括:The instructions in the storage medium may also include:

响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据,包括:In response to the hang-up instruction, ending the call with the first terminal and the call with the second terminal, and forwarding the audio data between the second terminal and the first terminal, include:

当接收到所述挂断指令后,获取本端的虚拟地址;After receiving the hang up instruction, obtain the virtual address of the local end;

结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。ending the call between the local end and the first terminal and the call between the local end and the second terminal, and forwarding the audio data between the second terminal and the first terminal through the virtual address .

本公开还提供了一种通话处理装置,包括:The present disclosure also provides a call processing device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接;In response to the first call request sent by the first terminal, return a first call response to the first terminal, so as to establish a first call connection with the first terminal;

向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接;sending a second call request to the second terminal, and receiving a second call response returned by the second terminal, so as to establish a second call connection with the second terminal;

通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。Forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection.

所述处理器还可以被配置为:The processor can also be configured to:

所述通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据,包括:The forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection includes:

通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;和/或receiving the first audio data sent by the first terminal through the first call connection, and forwarding the first audio data to the second terminal through the second call connection; and/or

通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。receiving the second audio data sent by the second terminal through the second call connection, and forwarding the second audio data to the first terminal through the first call connection.

所述处理器还可以被配置为:The processor can also be configured to:

在通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据之前,所述方法还包括:Before forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection, the method further includes:

通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。Receive a call acceptance instruction sent by the second terminal through the second call connection, where the call acceptance instruction is used to instruct to forward the audio data between the second terminal and the first terminal.

所述处理器还可以被配置为:The processor can also be configured to:

在建立与所述第二终端之间的第二通话连接后,所述方法还包括:After establishing the second call connection with the second terminal, the method further includes:

接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据;receiving a hangup instruction, where the hangup instruction is used to indicate the end of the call with the first terminal and the call with the second terminal, and forwarding the call between the second terminal and the first terminal between audio data;

响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据。In response to the hang up instruction, end the call with the first terminal and the call with the second terminal, and forward the audio data between the second terminal and the first terminal.

所述处理器还可以被配置为:The processor can also be configured to:

响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据,包括:In response to the hang-up instruction, ending the call with the first terminal and the call with the second terminal, and forwarding the audio data between the second terminal and the first terminal, include:

当接收到所述挂断指令后,获取本端的虚拟地址;After receiving the hang up instruction, obtain the virtual address of the local end;

结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。ending the call between the local end and the first terminal and the call between the local end and the second terminal, and forwarding the audio data between the second terminal and the first terminal through the virtual address .

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1.一种通话处理方法,其特征在于,包括:1. A call processing method, characterized in that, comprising: 响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接;In response to the first call request sent by the first terminal, return a first call response to the first terminal, so as to establish a first call connection with the first terminal; 向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接;sending a second call request to the second terminal, and receiving a second call response returned by the second terminal, so as to establish a second call connection with the second terminal; 接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据;receiving a hangup instruction, where the hangup instruction is used to indicate the end of the call with the first terminal and the call with the second terminal, and forwarding the call between the second terminal and the first terminal between audio data; 响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话;Ending the call with the first terminal and the call with the second terminal in response to the hang up instruction; 通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。Forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection. 2.根据权利要求1所述的方法,其特征在于,所述通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据,包括:2. The method according to claim 1, wherein the audio data between the second terminal and the first terminal is forwarded through the first call connection and the second call connection, include: 通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;和/或receiving the first audio data sent by the first terminal through the first call connection, and forwarding the first audio data to the second terminal through the second call connection; and/or 通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。receiving the second audio data sent by the second terminal through the second call connection, and forwarding the second audio data to the first terminal through the first call connection. 3.根据权利要求1或2所述的方法,其特征在于,在通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据之前,所述方法还包括:3. The method according to claim 1 or 2, characterized in that, forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection Previously, the method further included: 通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。Receive a call acceptance instruction sent by the second terminal through the second call connection, where the call acceptance instruction is used to instruct to forward the audio data between the second terminal and the first terminal. 4.根据权利要求1所述的方法,其特征在于,响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据,包括:4. The method according to claim 1, characterized in that, in response to the hang up instruction, end the call with the first terminal and the call with the second terminal, and forward the The audio data between the second terminal and the first terminal includes: 当接收到所述挂断指令后,获取本端的虚拟地址;After receiving the hang up instruction, obtain the virtual address of the local end; 结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。ending the call between the local end and the first terminal and the call between the local end and the second terminal, and forwarding the audio data between the second terminal and the first terminal through the virtual address . 5.一种通话处理装置,其特征在于,包括:5. A call processing device, characterized in that it comprises: 第一建立模块,用于响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接;A first establishing module, configured to return a first call response to the first terminal in response to the first call request sent by the first terminal, so as to establish a first call connection with the first terminal; 第二建立模块,用于向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接;A second establishing module, configured to send a second call request to a second terminal, and receive a second call response returned by the second terminal, so as to establish a second call connection with the second terminal; 第二接收模块,用于在建立与所述第二终端之间的第二通话连接后,接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据;The second receiving module is configured to receive a hangup instruction after the second call connection with the second terminal is established, and the hangup instruction is used to indicate the end of the call with the first terminal and the end of the call with the first terminal. A call between the second terminal, and forwarding audio data between the second terminal and the first terminal; 响应模块,用于响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话;a response module, configured to end the call with the first terminal and the call with the second terminal in response to the hang-up instruction; 转发模块,用于通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。A forwarding module, configured to forward the audio data between the second terminal and the first terminal through the first call connection and the second call connection. 6.根据权利要求5所述的装置,其特征在于,所述转发模块还包括:6. The device according to claim 5, wherein the forwarding module further comprises: 第一转发子模块,用于通过所述第一通话连接接收所述第一终端发送的第一音频数据,并通过所述第二通话连接将所述第一音频数据转发给所述第二终端;和/或A first forwarding submodule, configured to receive the first audio data sent by the first terminal through the first call connection, and forward the first audio data to the second terminal through the second call connection ;and / or 第二转发子模块,用于通过所述第二通话连接接收所述第二终端发送的第二音频数据,并通过所述第一通话连接将所述第二音频数据转发给所述第一终端。The second forwarding submodule is configured to receive the second audio data sent by the second terminal through the second call connection, and forward the second audio data to the first terminal through the first call connection . 7.根据权利要求5或6所述的装置,其特征在于,所述装置还包括:7. The device according to claim 5 or 6, characterized in that the device further comprises: 第一接收模块,用于通过所述第二通话连接接收所述第二终端发送的接受通话指令,所述接受通话指令用于指示转发所述第二终端与所述第一终端之间的音频数据。A first receiving module, configured to receive a call acceptance instruction sent by the second terminal through the second call connection, where the call acceptance instruction is used to instruct to forward the audio between the second terminal and the first terminal data. 8.根据权利要求5所述的装置,其特征在于,所述响应模块,包括:8. The device according to claim 5, wherein the response module comprises: 获取子模块,用于当接收到所述挂断指令后,获取本端的虚拟地址;The obtaining submodule is used to obtain the virtual address of the local end after receiving the hangup instruction; 结束通话子模块,用于结束本端与所述第一终端之间的通话以及本端与所述第二终端之间的通话,并通过所述虚拟地址转发所述第二终端与所述第一终端之间的音频数据。Ending the call sub-module, configured to end the call between the local end and the first terminal and the call between the local end and the second terminal, and forward the call between the second terminal and the second terminal through the virtual address. Audio data between one terminal. 9.一种通话处理装置,其特征在于,包括:9. A call processing device, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 响应于第一终端发送的第一通话请求,向所述第一终端返回第一通话响应,以建立与所述第一终端之间的第一通话连接;In response to the first call request sent by the first terminal, return a first call response to the first terminal, so as to establish a first call connection with the first terminal; 向第二终端发送第二通话请求,并接收所述第二终端返回的第二通话响应,以建立与所述第二终端之间的第二通话连接;sending a second call request to the second terminal, and receiving a second call response returned by the second terminal, so as to establish a second call connection with the second terminal; 接收挂断指令,所述挂断指令用于指示结束与所述第一终端之间的通话以及与所述第二终端之间的通话,并转发所述第二终端与所述第一终端之间的音频数据;receiving a hangup instruction, where the hangup instruction is used to indicate the end of the call with the first terminal and the call with the second terminal, and forwarding the call between the second terminal and the first terminal between audio data; 响应于所述挂断指令,结束与所述第一终端之间的通话以及与所述第二终端之间的通话;Ending the call with the first terminal and the call with the second terminal in response to the hang up instruction; 通过所述第一通话连接和所述第二通话连接,转发所述第二终端与所述第一终端之间的音频数据。Forwarding the audio data between the second terminal and the first terminal through the first call connection and the second call connection. 10.一种计算机可读存储介质,存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现权利要求1至4任一项所述方法中的步骤。10. A computer-readable storage medium storing computer instructions, wherein the steps in the method according to any one of claims 1 to 4 are implemented when the computer instructions are executed by a processor.
CN201611168471.9A 2016-12-16 2016-12-16 Call processing method and device Active CN106657533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611168471.9A CN106657533B (en) 2016-12-16 2016-12-16 Call processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611168471.9A CN106657533B (en) 2016-12-16 2016-12-16 Call processing method and device

Publications (2)

Publication Number Publication Date
CN106657533A CN106657533A (en) 2017-05-10
CN106657533B true CN106657533B (en) 2019-10-15

Family

ID=58823689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611168471.9A Active CN106657533B (en) 2016-12-16 2016-12-16 Call processing method and device

Country Status (1)

Country Link
CN (1) CN106657533B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887198A (en) * 2021-02-18 2021-06-01 联想(北京)有限公司 Processing method and processing device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933459A (en) * 2006-10-25 2007-03-21 阿里巴巴公司 Telephone redialing method and system
CN101854616A (en) * 2010-05-31 2010-10-06 中兴通讯股份有限公司 Media negotiation method in call forwarding and call forwarding application server
CN102833432A (en) * 2012-08-20 2012-12-19 华为终端有限公司 Method, device and system for forwarding incoming calls
CN103024684A (en) * 2011-09-23 2013-04-03 普天信息技术研究院有限公司 Implementation method of single call service
CN103974216A (en) * 2014-04-01 2014-08-06 联想(北京)有限公司 Information processing method and electronic equipment
CN104168550A (en) * 2014-08-26 2014-11-26 深圳市中兴移动通信有限公司 Method for communication through multi-terminal interaction, multi-card terminal and interactive terminal
CN104378748A (en) * 2013-08-15 2015-02-25 中兴通讯股份有限公司 Method for call transfer on mobile terminal and mobile terminal
CN105472769A (en) * 2014-09-12 2016-04-06 宇龙计算机通信科技(深圳)有限公司 Communication method and system
CN105516635A (en) * 2015-10-28 2016-04-20 努比亚技术有限公司 Video call system, device and method
CN105682056A (en) * 2015-12-30 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Call control method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8085742B2 (en) * 2007-01-31 2011-12-27 Research In Motion Limited Call forwarding methods and apparatus for mobile communication devices which operate in WWANS and WLANS

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933459A (en) * 2006-10-25 2007-03-21 阿里巴巴公司 Telephone redialing method and system
CN101854616A (en) * 2010-05-31 2010-10-06 中兴通讯股份有限公司 Media negotiation method in call forwarding and call forwarding application server
CN103024684A (en) * 2011-09-23 2013-04-03 普天信息技术研究院有限公司 Implementation method of single call service
CN102833432A (en) * 2012-08-20 2012-12-19 华为终端有限公司 Method, device and system for forwarding incoming calls
CN104378748A (en) * 2013-08-15 2015-02-25 中兴通讯股份有限公司 Method for call transfer on mobile terminal and mobile terminal
CN103974216A (en) * 2014-04-01 2014-08-06 联想(北京)有限公司 Information processing method and electronic equipment
CN104168550A (en) * 2014-08-26 2014-11-26 深圳市中兴移动通信有限公司 Method for communication through multi-terminal interaction, multi-card terminal and interactive terminal
CN105472769A (en) * 2014-09-12 2016-04-06 宇龙计算机通信科技(深圳)有限公司 Communication method and system
CN105516635A (en) * 2015-10-28 2016-04-20 努比亚技术有限公司 Video call system, device and method
CN105682056A (en) * 2015-12-30 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Call control method, device and system

Also Published As

Publication number Publication date
CN106657533A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN104684106B (en) The method and device of network connection
CN105915521B (en) Multi-party call management method, device and terminal
CN105472698A (en) Wireless network access method and device
CN105704655A (en) Media data sharing method and media data sharing device between terminals
CN105704766A (en) Control method and device of double-card mobile terminal
CN105872020A (en) Access method of virtual desktop and mobile terminal
CN106101456A (en) A kind of method and device of call contact
CN106714125B (en) Method and device for setting call forwarding number
CN106412481B (en) Reminding method, device and terminal based on VoLTE video calling
CN106453982A (en) Method and apparatus for dialing telephone number, fixed telephone and mobile terminal
CN106255075A (en) The processing method and processing device of communication event, electronic equipment
CN106101600A (en) The method of attachment of video calling and device
CN107864460A (en) Call transferring method, device and equipment
CN106550482B (en) Communication connection establishing method and device and electronic equipment
CN108028810B (en) Method and device for establishing service connection
CN109040651A (en) The method and device of video communication
CN105100352A (en) Method and device for acquiring contact information
CN107819836A (en) The remapping method and device of facility information
CN106657533B (en) Call processing method and device
CN109068085B (en) Call processing method and device
CN110224991A (en) Depending on the networked terminals means of communication and device
CN105657199A (en) Method and device for establishing talking connection and switching equipment
CN110945941B (en) Identification sending method, identification receiving method, information sending method and device
CN106533866A (en) Relay configuration method and device
CN114615647A (en) Call control method, device and storage medium

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