Disclosure of Invention
The embodiment of the invention provides a method and a device for establishing a channel between heterogeneous endpoints, which are used for at least solving the problem that the channel for transmitting a media stream cannot be established between endpoints with different structures in the related technology.
According to an embodiment of the present invention, a method for establishing a channel between heterogeneous endpoints is provided, including:
a first endpoint establishes a remote presentation Multiple stream for Telepresence (CLUE) call with a second endpoint through a gateway, wherein the first endpoint and the second endpoint are different heterogeneous endpoints;
after the CLUE call is established, the first endpoint establishes a CLUE channel with the second endpoint through a gateway, wherein the CLUE channel is used for a channel for transmitting CLUE signaling between the first endpoint and the second endpoint;
and the first endpoint establishes a media transmission channel with the second endpoint through a gateway according to the established CLUE channel, wherein the media transmission channel is used for transmitting media streams between the first endpoint and the second endpoint.
Optionally, the establishing, by the first endpoint, a media transmission channel with the second endpoint through the gateway according to the established clee channel includes:
the first end point negotiates with the second end point through the gateway according to a CLUE channel to establish CLUE capability of a media transmission channel;
and the first end point establishes a media transmission channel with the second end point through a gateway according to the negotiated CLUE capability.
Optionally, before the first endpoint negotiates with the second endpoint for establishing a CLUE capability of a media transmission channel according to a CLUE channel through a gateway, the method further includes:
the first endpoint sends a parameter for establishing a CLUE channel to the gateway, wherein the parameter is used for the gateway to respectively establish the CLUE channel with the first endpoint and the second endpoint according to a parameter which is obtained in advance and used for establishing the CLUE channel of the second endpoint; and/or after the gateway receives the parameters for establishing the CLUE channel, the first endpoint establishes the CLUE channel point-to-point with the second endpoint.
Optionally, the creating, by the first endpoint according to the negotiated clee capability, a media transmission channel with the second endpoint through a gateway includes:
the first endpoint completes interaction of media transmission channel parameters with the second endpoint through the gateway, wherein the media transmission channel parameters are used for the gateway to establish media transmission channels with the first endpoint and the second endpoint respectively, and the media transmission channel parameters at least comprise one of the following parameters: IP address, port, media identification to be transmitted, media attributes.
Optionally, after the first endpoint creates a media transmission channel with the second endpoint through a gateway according to the negotiated clee capability, the method further includes:
the first endpoint performs media stream transmission with the second endpoint through the gateway; or,
the first endpoint performs media streaming directly with the second endpoint.
Optionally, the establishing, by the first endpoint, the clee call with the second endpoint through the gateway includes:
the first endpoint exchanges CLUE features supporting CLUE with the second endpoint through the gateway;
and the first endpoint establishes a CLUE call with the second endpoint through the gateway according to the exchanged CLUE characteristics from the second endpoint.
Optionally, the clee signaling includes at least one of: carrying version information, capture information and coding information.
According to another embodiment of the present invention, a method for establishing a channel between heterogeneous endpoints is provided, including:
the gateway establishes a remote presentation multi-code flow control CLUE call between two heterogeneous endpoints;
after the CLUE call is established, the gateway establishes a CLUE channel between the two heterogeneous endpoints, wherein the CLUE channel is used for transmitting CLUE signaling between the two heterogeneous endpoints;
and the gateway establishes a media transmission channel between the two heterogeneous endpoints according to the established CLUE channel, wherein the media transmission channel is used for transmitting the media stream between the two heterogeneous endpoints.
Optionally, the establishing, by the gateway, a clee channel between the two heterogeneous endpoints includes:
the gateway receives parameters which are sent by the two heterogeneous endpoints and used for establishing a CLUE channel;
and the gateway respectively establishes a CLUE channel with the two heterogeneous endpoints according to the parameters.
Optionally, the establishing, by the gateway, a media transmission channel between the two heterogeneous endpoints according to the established clee channel includes:
the gateway negotiates CLUE capacity for establishing a media transmission channel for the two heterogeneous endpoints according to the established CLUE channel;
and the gateway creates a media transmission channel between the two heterogeneous endpoints according to the CLUE capability.
Optionally, the creating, by the gateway, a media transmission channel between the two heterogeneous endpoints according to the clee capability includes:
the gateway establishes media transmission channels with the two endpoints respectively according to media transmission channel parameters carried in the CLUE capability, wherein the media transmission channel parameters at least comprise one of the following parameters: IP address, port, media identification to be transmitted, media attributes.
Optionally, the gateway establishing a remote-presence multi-stream control clee call between the two heterogeneous endpoints includes:
the gateway exchanges CLUE characteristics supporting CLUE for the two heterogeneous endpoints;
and the gateway establishes CLUE calls for the two heterogeneous endpoints according to the CLUE characteristics.
Optionally, the clee signaling includes at least one of: carrying version information, capture information and coding information.
According to another embodiment of the present invention, there is also provided an apparatus for establishing a heterogeneous inter-endpoint channel, applied to a first endpoint, including:
a first call establishing module, configured to establish a remote presence multi-code flow control CLUE call with a second endpoint through a gateway, where the first endpoint and the second endpoint are heterogeneous endpoints that are different from each other;
a first channel establishing module, configured to establish a CLUE channel with the second endpoint through a gateway after a CLUE call is established, where the CLUE channel is a channel for transmitting CLUE signaling between the first endpoint and the second endpoint;
and a second channel establishing module, configured to establish a media transmission channel with the second endpoint through a gateway according to the established CLUE channel, where the media transmission channel is used for media stream transmission between the first endpoint and the second endpoint.
Optionally, the second establishing channel module includes:
a first negotiation unit, configured to negotiate, by the gateway, a clee capability for establishing a media transmission channel with the second endpoint according to a clee channel;
and the first channel creating unit is used for creating a media transmission channel between the first endpoint and the second endpoint through a gateway according to the negotiated CLUE capability.
Optionally, the apparatus further comprises:
a sending module, configured to send a parameter for establishing a clee channel to the gateway, where the parameter is used for the gateway to establish the clee channel with the first endpoint and the second endpoint according to a pre-obtained parameter for establishing the clee channel of the second endpoint; and/or after the gateway receives the parameters for establishing the CLUE channel, the first endpoint establishes the CLUE channel point-to-point with the second endpoint.
Optionally, the first creating channel unit is further configured to complete interaction of media transmission channel parameters through the gateway and the second endpoint, where the media transmission channel parameters are used for the gateway to establish media transmission channels with the first endpoint and the second endpoint respectively, and the media transmission channel parameters at least include one of: IP address, port, media identification to be transmitted, media attributes.
Optionally, the apparatus further comprises:
a media stream transmission module, configured to perform media stream transmission with the second endpoint through the gateway; or directly carrying out media stream transmission with the second endpoint.
Optionally, the call establishing module includes:
a first switching unit, configured to switch a CLUE feature supporting CLUE with the second endpoint through the gateway;
and the first call establishing unit is used for establishing the CLUE call with the second endpoint through the gateway according to the exchanged CLUE characteristics from the second endpoint.
According to another embodiment of the present invention, there is also provided an apparatus for establishing a channel between heterogeneous endpoints, which is applied to a gateway, and includes:
the second call establishing module is used for establishing a remote presentation multi-code flow control CLUE call between two heterogeneous endpoints;
a third channel establishing module, configured to establish a clee channel between the two heterogeneous endpoints after establishing the clee call, where the clee channel is used for a channel for transmitting a clee signaling between the two heterogeneous endpoints;
and a fourth channel establishing module, configured to establish a media transmission channel between the two heterogeneous endpoints according to the established CLUE channel, where the media transmission channel is used for media stream transmission between the two heterogeneous endpoints.
Optionally, the third establishing channel module includes:
a receiving unit, configured to receive parameters used for establishing a clee channel and sent by the two heterogeneous endpoints;
and the channel establishing unit is used for respectively establishing the CLUE channels according to the parameters and the two heterogeneous endpoints.
Optionally, the fourth establishing channel module includes:
a second negotiation unit, configured to negotiate, for the two heterogeneous endpoints, a CLUE capability for establishing a media transmission channel according to the established CLUE channel;
and a second channel creating unit, configured to create a media transmission channel between the two heterogeneous endpoints according to the clee capability.
Optionally, the second creating channel unit is further configured to respectively create media transmission channels with the two endpoints according to media transmission channel parameters carried in the clee capability, where the media transmission channel parameters at least include one of: IP address, port, media identification to be transmitted, media attributes.
Optionally, the second call setup module includes:
a second exchanging unit, configured to exchange a CLUE feature supporting CLUE for the two heterogeneous endpoints;
and the second call establishing unit is used for establishing the CLUE call for the two heterogeneous endpoints according to the CLUE characteristics.
According to the invention, the CLUE capability used for establishing the media transmission channel is negotiated between the heterogeneous endpoints through the gateway according to the CLUE channel, the media transmission channel between the heterogeneous endpoints is established through the gateway according to the negotiated CLUE capability, and the media stream between the two heterogeneous endpoints is transmitted through the established media transmission channel, so that the problem that the channel for transmitting the media stream cannot be established between the endpoints with different structures in the related technology is solved, and the media stream is transmitted between the heterogeneous endpoints.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Fig. 1 is a first flowchart of a method for establishing a channel between heterogeneous endpoints according to an embodiment of the present invention, and as shown in fig. 1, the process includes the following steps:
step S102, a first endpoint establishes a CLUE call with a second endpoint through a gateway, wherein the first endpoint and the second endpoint are different heterogeneous endpoints;
step S104, after the CLUE call is established, the first endpoint establishes a CLUE channel with the second endpoint through the gateway, wherein the CLUE channel is used for a channel for transmitting CLUE signaling between the first endpoint and the second endpoint;
step S106, the first endpoint establishes a media transmission channel with the second endpoint through the gateway according to the established CLUE channel, wherein the media transmission channel is used for the media stream transmission between the first endpoint and the second endpoint.
Optionally, the establishing, by the first endpoint, a media transmission channel with the second endpoint through the gateway according to the established clee channel includes: the first end point negotiates with the second end point through the gateway according to the CLUE channel for establishing CLUE capability of a media transmission channel; and the first endpoint establishes a media transmission channel with the second endpoint through a gateway according to the negotiated CLUE capability.
Optionally, before the first endpoint negotiates with the second endpoint for establishing a CLUE capability of a media transmission channel through the gateway according to the CLUE channel, the first endpoint sends a parameter for establishing the CLUE channel to the gateway, where the parameter is used for the gateway to establish the CLUE channel with the first endpoint and the second endpoint respectively according to a pre-acquired parameter for establishing the CLUE channel of the second endpoint; and/or, after the gateway receives the parameters for establishing the CLUE channel, the first endpoint establishes the CLUE channel point-to-point with the second endpoint.
Optionally, the first endpoint creating, by the gateway, a media transmission channel with the second endpoint according to the negotiated clee capability may include: the first endpoint completes the interaction of media transmission channel parameters with the second endpoint through the gateway, wherein the media transmission channel parameters are used for the gateway to establish media transmission channels with the first endpoint and the second endpoint respectively, and the media transmission channel parameters at least comprise one of the following parameters: IP address, port, media identification to be transmitted, media attributes.
Optionally, after the first endpoint creates a media transmission channel with the second endpoint through a gateway according to the negotiated clee capability, the method further includes:
the first endpoint performs media stream transmission with the second endpoint through the gateway; or,
the first endpoint streams media directly with the second endpoint.
Optionally, the establishing, by the first endpoint, the clee call with the second endpoint through the gateway may include:
the first endpoint exchanges CLUE characteristics supporting CLUE with the second endpoint through the gateway;
the first endpoint establishes a CLUE call with the second endpoint through the gateway according to the exchanged CLUE characteristics from the second endpoint.
Optionally, the clee signaling includes at least one of: carrying version information, capture information and coding information.
An embodiment of the present invention further provides a method for establishing a channel between heterogeneous endpoints, where fig. 2 is a second flowchart of the method for establishing a channel between heterogeneous endpoints according to the embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
step S202, the gateway establishes a remote presentation multi-code flow control CLUE call between two heterogeneous endpoints;
step S204, after the CLUE call is established, the gateway establishes a CLUE channel between the two heterogeneous endpoints, wherein the CLUE channel is used for a channel for transmitting CLUE signaling between the two heterogeneous endpoints;
step S206, the gateway establishes a media transmission channel between the two heterogeneous endpoints according to the established CLUE channel, wherein the media transmission channel is used for media stream transmission between the two heterogeneous endpoints.
Optionally, the gateway establishing the CLUE channel between the two heterogeneous endpoints includes:
the gateway receives parameters which are sent by the two heterogeneous endpoints and used for establishing a CLUE channel;
and the gateway establishes a CLUE channel with the two heterogeneous endpoints respectively according to the parameters.
Optionally, the gateway establishing a media transmission channel between the two heterogeneous endpoints according to the established clee channel includes:
the gateway negotiates CLUE capability for establishing a media transmission channel for the two heterogeneous endpoints according to the established CLUE channel;
and the gateway creates a media transmission channel between the two heterogeneous endpoints according to the CLUE capability.
Optionally, the creating, by the gateway, a media transmission channel between the two heterogeneous endpoints according to the clee capability includes:
the gateway establishes media transmission channels with the two endpoints according to media transmission channel parameters carried in the CLUE capability, wherein the media transmission channel parameters at least comprise one of the following parameters: IP address, port, media identification to be transmitted, media attributes.
Optionally, the gateway establishing the remote-presence multi-stream control clee call between the two heterogeneous endpoints includes:
the gateway exchanges CLUE characteristics supporting CLUE for the two heterogeneous endpoints;
the gateway establishes a CLUE call for the two heterogeneous endpoints based on the CLUE characteristics.
Optionally, the clee signaling includes at least one of: carrying version information, capture information and coding information.
According to another embodiment of the present invention, there is further provided an apparatus for establishing a channel between heterogeneous endpoints, which is applied to a first endpoint, and fig. 3 is a first block diagram of the apparatus for establishing a channel between heterogeneous endpoints according to the embodiment of the present invention, as shown in fig. 3, including:
a first establishing call module 32, configured to establish a remote presence multi-code flow control clee call with a second endpoint through a gateway, where the first endpoint and the second endpoint are heterogeneous endpoints that are different from each other;
a first channel establishing module 34, configured to establish a CLUE channel with the second endpoint through a gateway after the CLUE call is established, where the CLUE channel is a channel for transmitting CLUE signaling between the first endpoint and the second endpoint;
a second establishing channel module 36, configured to establish a media transmission channel with the second endpoint through the gateway according to the established CLUE channel, where the media transmission channel is used for media stream transmission between the first endpoint and the second endpoint.
Optionally, the second setup channel module 36 includes: a first negotiation unit, configured to negotiate, via the gateway, a clee capability for establishing a media transmission channel with the second endpoint according to a clee channel; and the first channel creating unit is used for creating a media transmission channel between the CLUE and the second endpoint through the gateway according to the negotiated CLUE capability.
Fig. 4 is a first block diagram of an apparatus for establishing a channel between heterogeneous endpoints according to a preferred embodiment of the present invention, as shown in fig. 4, the apparatus further includes:
a sending module 42, configured to send a parameter for establishing a clee channel to the gateway, where the parameter is used for the gateway to establish the clee channel with the first endpoint and the second endpoint according to a pre-obtained parameter for establishing the clee channel of the second endpoint; and/or, after the gateway receives the parameters for establishing the CLUE channel, the first endpoint establishes the CLUE channel point-to-point with the second endpoint.
Optionally, the first creating channel unit is further configured to complete interaction of media transmission channel parameters through the gateway and the second endpoint, where the media transmission channel parameters are used for the gateway to establish a media transmission channel with the first endpoint and the second endpoint respectively, and the media transmission channel parameters at least include one of: IP address, port, media identification to be transmitted, media attributes.
Fig. 5 is a block diagram ii of an apparatus for establishing a channel between heterogeneous endpoints according to a preferred embodiment of the present invention, as shown in fig. 5, the apparatus further includes:
a media streaming module 52, configured to perform media streaming with the second endpoint through the gateway; or, the media stream is transmitted directly with the second endpoint.
Optionally, the call establishing module includes: a first switching unit, configured to switch a CLUE feature supporting CLUE with the second endpoint through the gateway; and the first call establishing unit is used for establishing the CLUE call with the second endpoint through the gateway according to the exchanged CLUE characteristics from the second endpoint.
An embodiment of the present invention further provides a device for establishing a channel between heterogeneous endpoints, which is applied to a gateway, and fig. 6 is a block diagram ii of the device for establishing a channel between heterogeneous endpoints according to the embodiment of the present invention, as shown in fig. 6, including:
a second call setup module 62, configured to set up a remote-presence multi-stream control clee call between two heterogeneous endpoints;
a third establishing channel module 64, configured to establish a CLUE channel between the two heterogeneous endpoints after the CLUE call is established, where the CLUE channel is used for a channel for transmitting CLUE signaling between the two heterogeneous endpoints;
a fourth establishing channel module 66, configured to establish a media transmission channel between the two heterogeneous endpoints according to the established CLUE channel, where the media transmission channel is used for media stream transmission between the two heterogeneous endpoints.
Fig. 7 is a block diagram of a third apparatus for establishing a heterogeneous inter-endpoint channel according to a preferred embodiment of the present invention, and as shown in fig. 7, the third module 64 for establishing a channel includes:
a receiving unit 72, configured to receive parameters for establishing a clee channel sent by the two heterogeneous endpoints;
a channel establishing unit 74, configured to respectively establish a CLUE channel with the two heterogeneous endpoints according to the parameter.
Optionally, the fourth establishing channel module 66 includes: a second negotiation unit, configured to negotiate, for the two heterogeneous endpoints, a CLUE capability for establishing a media transmission channel according to the established CLUE channel; and a second creating channel unit, configured to create a media transmission channel between the two heterogeneous endpoints according to the clee capability.
Optionally, the second creating channel unit is further configured to respectively create media transmission channels with the two endpoints according to media transmission channel parameters carried in the capability of the clee, where the media transmission channel parameters at least include one of: IP address, port, media identification to be transmitted, media attributes.
Optionally, the second call setup module includes: a second exchanging unit, configured to exchange a CLUE feature supporting CLUE for the two heterogeneous endpoints; and the second call establishing unit is used for establishing the CLUE call for the two heterogeneous endpoints according to the CLUE characteristics.
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, the gateway controls CLUE channel to negotiate CLUE ability for two heterogeneous endpoints according to remote presentation multi-code flow, wherein the CLUE channel is a pre-established channel between the two heterogeneous endpoints for transmitting CLUE signaling;
s2, the gateway creates a media transport channel between the two heterogeneous endpoints, wherein the media transport channel is used for media stream transmission between the two heterogeneous endpoints.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
In this embodiment, an endpoint information interaction processing method is provided, and fig. 8 is a flowchart of an endpoint information interaction processing method according to an embodiment of the present invention, where as shown in fig. 8, the flowchart includes the following steps:
step S801, the terminal A sends H.225.0 call establishment CLUE control capability to the gateway;
step S802, the endpoint B sends SIP invite SIP to the gateway;
step S803, a CLUE call is established between the terminal A and the terminal B;
step S804, H.245 capability negotiates data application capability;
step S805, H.245 opens a logic channel;
step S806, establishing a terminal A and a terminal BCLUE data channel;
step S807, CLUE message (capture/encode);
step S808, CLUE message (capture/encode);
step S809, H.245 capability negotiates CLUE coding correlation;
step S810, SIP invites CLUE control code;
step S811, H.245 opens a logic channel;
step S812, establishing a media transmission channel between the endpoint a and the endpoint B;
in step S813, media is transmitted between endpoint a and endpoint B.
The two heterogeneous endpoints exchange CLUE features through the gateway to ensure that both endpoints support CLUE and establish CLUE calls through the gateway. The remote presentation endpoint A based on the H.323 adopts H.225.0 calling information, carries CLUE control capability as CLUE characteristic parameters and represents support of CLUE; the SIP-based remote presentation endpoint B adopts SIP invitation information, carries CLUE media characteristic labels as CLUE characteristic parameters and represents support of CLUE.
Two heterogeneous endpoints establish a CLUE channel through the gateway for performing CLUE signaling. The H.323-based remote presentation endpoint A carries data application capability information which is used for carrying relevant parameters for establishing a CLUE channel; SIP-based telepresence endpoint B already carries the relevant parameters for establishing the CLUE tunnel in the call signaling. After receiving the parameters at the two ends, the gateway establishes a point-to-point CLUE channel directly at the two ends, or establishes CLUE channels with the two endpoints respectively.
Two heterogeneous endpoints negotiate CLUE capability through the gateway and create a media transmission channel for media stream transmission. Negotiating CLUE capability through the gateway comprises the following steps: the remote presentation endpoint A based on H.323 sends and receives CLUE messages through a CLUE channel, carries negotiation information such as version, capture and/or coding and the like, and carries CLUE related coding parameters with the gateway through H.245 capability exchange messages; the remote presentation endpoint B based on the SIP sends and receives CLUE messages through a CLUE channel, carries negotiation information such as version, capture and/or coding and the like, and carries CLUE control coding parameters with messages such as SIP invitation and the like between gateways.
Wherein, establishing media stream transmission creates a media transmission channel: h.323 based telepresence endpoint a sends an h.245 open logical channel message according to the clee capability exchange result. SIP-based remote presentation endpoint B carries messages such as ports of the media streaming channel in SIP invite messages and the like. The gateway establishes media transmission channels with the two endpoints respectively based on the media transmission channel parameters (IP address, port, media identifier to be transmitted, media attribute, etc.) of the two heterogeneous endpoints, and then performs actual media stream transmission. The gateway can encode and decode the media stream for the second time, and can only forward without any modification. Or the gateway sends the media transmission channel parameter of the endpoint B to the endpoint A, sends the endpoint A to the endpoint B, and directly transmits the actual media stream between the endpoint A and the endpoint B, wherein the actual media stream does not pass through the gateway.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.