The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting media resources.
With the development of the digital home and the wide digitalization of consumer electronics, a home has more and more home network devices such as digital entertainment devices and household appliances. The home network devices are connected in a wired or a wireless manner to form a home network to implement functions such as content sharing or mutual control.
To implement interworking and control of different types of home network devices, more and more home network devices support the UPnP (Universal Plug and Play, universal plug and play) protocol. In a UPnP system, users implement control over the home network devices through a CP (Control Point, control point) in the home network.
A UPnP AV standard defines AV media resource sharing in the home network, where it is defined that an MS (Media Server, media server) is configured to provide AV media resources, an MR (Media Renderer, media renderer) is configured to decode the AV media resources from the MS, and an MP (Media Player, media player) is configured to play the AV media resources from the MS.
With the continuous development of the digital home and communications technologies, users not only expect to implement sharing of AV media resources within the home network, but also expect to add AV media resources to a multimedia call. For example, during a multimedia call with a TS (Telephony Server, telephony server) such as a mobile phone, a user obtains AV media resources from an MS device at home and plays the AV media resources to a communication peer.
To add AV media resources during the multimedia call, an MR device and a service thereof may be embedded in a mobile phone, and in this way, the mobile phone may receive a control command of a CP through a protocol and an interface defined by the UPnP AV standard, and obtain the AV media resources from the MS device.
When implementing the present invention, the inventors find that the prior art at least has the following problem.
To obtain AV media resources from the MS device, the TS needs to be improved to support the UPnP AV standard, and the implementation is complex.
Embodiments of the present invention provide a method and an apparatus for transmitting media resources, where media resources can be obtained from an MS device without improving a telephony server, and the implementation is simple.
The embodiments of the present invention adopt the following technical solutions.
A method for transmitting media resources, including:
obtaining related information of media resources on a media server;
sending an instruction message including the related information of the media resources to a telephony server, where the instruction message instructs the telephony server to perform session negotiation with a communication peer according to the related information of the media resources to establish a first multimedia session;
obtaining information of a communication interface used by the telephony server to receive the media resources; and
sending an instruction message according to the information of the communication interface, wherein the instruction message instructs the media server to send the media resources to the telephony server, so that the telephony server transmits the media resources to the communication peer through the first multimedia session.
A method for transmitting media resources, including:
receiving a first instruction message from a control point device, where the first instruction message carries related information of media resources on a media server;
performing session negotiation with a communication peer according to the first instruction message to establish a first multimedia session;
obtaining the media resources from the media server; and
transmitting the media resources to the communication peer through the first multimedia session.
A control point device, including:
a first obtaining module, configured to obtain related information of media resources on a media server;
a first instruction module, configured to send an instruction message including the related information of the media resources to a telephony server, wherein the instruction message instructs the telephony server to perform session negotiation with a communication peer according to the related information of the media resources to establish a first multimedia session;
a second obtaining module, configured to obtain information of a communication interface used by the telephony server to receive the media resources; and
a second instruction module, configured to send an instruction message according to the information of the communication interface, wherein the instruction message instructs the media server to send the media resources to the telephony server, so that the telephony server transmits the media resources to the communication peer through the first multimedia session.
A telephony server, including:
a receiving module, configured to receive a first instruction message from a control point device, where the first instruction message carries related information of media resources on a media server;
an establishment module, configured to perform session negotiation with a communication peer according to the first instruction message to establish a first multimedia session;
an obtaining module, configured to obtain the media resources from the media server; and
a transmission module, configured to transmit the media resources to the communication peer through the first multimedia session.
In the method and apparatus for transmitting media resources according to the embodiments of the present invention, the control point device sends, to the telephony server, the instruction message including the related information of the media resources on the media server, wherein the instruction message instructs the telephony server to perform the session negotiation with the communication peer, determines the information of the communication interface used by the telephony server to receive the media resources, sends the instruction message carrying the information of the communication interface to the media server, wherein the instruction message instructs the media server to send the media resources to the telephony server. Compared with the prior art, the control point device is capable of establishing a media session channel between the media server and the telephony server according to the information of the communication interface used by the telephony server to receive the media resources that is obtained from the media server. The telephony server may obtain the media resources from the media server without any improvement, so the implementation is simple.
To describe the technical solutions according to the embodiments of the present invention or in the prior art more clearly, the accompanying drawings used for describing the embodiments or the prior art are introduced below briefly. Apparently, the accompanying drawings in the following descriptions merely show some of the embodiments of the present invention, and persons of ordinary skill in the art can obtain other drawings according to the accompanying drawings without creative efforts.
The technical solutions of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the embodiments to be described are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by persons skilled in the art based on the embodiments of the present invention without paying any creative efforts shall fall within the protection scope of the present invention.
To make advantages of the technical solutions of the present invention more comprehensible, the present invention is described in detail below with reference to the embodiments in combination with the accompanying drawings.
An embodiment provides a method for transmitting media resources. As shown in
101: Obtain related information of media resources on a media server.
102: Send an instruction message including the related information of the media resources to a telephony server, wherein the instruction message instructs the telephony server to perform session negotiation with a communication peer according to the related information of the media resources to establish a first multimedia session.
103: Obtain information of a communication interface used by the telephony server to receive the media resources.
104: Send an instruction message according to the information of the communication interface, wherein the instruction message instructs the media server to send the media resources to the telephony server, so that the telephony server transmits the media resources to the communication peer through the first multimedia session.
In the method for transmitting media resources according to the embodiment of the present invention, a control point device sends, to a telephony server, an instruction message including related information of media resources on a media server, wherein the instruction message instructs the telephony server to perform session negotiation with a communication peer, determines information of a communication interface used by the telephony server to receive the media resources, sends an instruction message carrying the information of the communication interface to the media server, wherein the instruction message instructs the media server to send the media resources to the telephony server. Compared with the prior art, the embodiment of the present invention establishes a media session channel between the media server and the telephony server according to the information of the communication interface used by the telephony server to receive the media resources that is obtained from the media server. The telephony server may obtain the media resources from the media server without any improvement, so the implementation is simple.
An embodiment provides a method for transmitting media resources. As shown in FIG. 2, the method includes the following steps:
201: Receive a first instruction message from a control point device, where the first instruction message carries related information of media resources on a media server.
202: Perform session negotiation with a communication peer according to the first instruction message to establish a first multimedia session.
203: Obtain the media resources from the media server.
204: Transmit the media resources to the communication peer through the first multimedia session.
In the method for transmitting media resources according to the embodiment of the present invention, a telephony server receives a first instruction message carrying related information of media resources on a media server, performs session negotiation with a communication peer according to the first instruction message to establish a first multimedia session, and transmits the media resources obtained from the media server to the communication peer through the first multimedia session. Compared with the prior art, the telephony server may obtain media resources from the media server without any improvement, and transmit the media resources to the communication peer, so the implementation is simple.
An embodiment provides a method for transmitting media resources. In this embodiment, a CP first instructs a TS to perform session negotiation with a WAN (Wide Area Network, wide area network) side communication peer to add media resources, and then establishes media resource transmission between an MS and the TS. The MS transmits media resources to the TS through RTP (Real-time Transport Protocol, real-time transport protocol)/UDP (User Datagram Protocol, user datagram protocol).
In a UPnP AV standard, a protocol combination of RTSP (Real Time Streaming Protocol, real time streaming protocol)/RTP/UDP is supported, that is, an RTSP URI (Universal Resource Identifier, universal resource identifier) is provided to an MR device, and the MR device proactively negotiates with the MS through the RTSP protocol and establishes the media resource transmission based on the RTP/UDP. However, in a UPnP Telephony standard, the CP carries, in a control command, media session parameters in an SDP (Session Description Protocol, session description protocol) format to facilitate the establishment of a media transmission channel between the TS and a TC (Telephony Client, telephony client). Then the TS/TC may directly start transmission of RTP/UDP media resources without interactive signaling such as RTSP and SIP (Session Initiation Protocol, session initiation protocol) signaling.
In this embodiment, the UPnP AV standard is extended, so that the MS can directly and proactively send the RTP/UDP media resources to a destination address/port.
As shown in
301: A CP instructs a TS to establish a multimedia session with a WAN side communication peer.
302: The TS performs session negotiation with the WAN side communication peer.
303: The TS establishes a multimedia session between the TS and the WAN side communication peer.
304: The CP searches an MS for media resources required by a user according to a requirement of the user.
305: The CP obtains related information of the media resources, where the related information may include: storage address information, transport protocol information, a media encoding format, and a size.
Alternatively, steps 304-305 may also be performed before steps 301-303. That is, the CP first searches the MS for media resources according to a request of the TS, and instructs the TS to establish a multimedia session with the WAN side communication peer.
306: The CP sends an instruction message to the TS and instructs the TS to perform session negotiation with the WAN side communication peer to add the media resources, where the instruction message includes the related information of the media resources.
Alternatively, before step 306, the CP may further obtain capabilities of media resources supported by the TS, so as to determine that the TS can support the media encoding format and transport protocol of the media resources, and so on.
307: The TS performs session negotiation with the WAN side communication peer, to determine media session parameters of the media resources added in the multimedia session. Further, the TS determines information of a communication interface SDP#1 required for receiving the media resources from the MS, where the information of the communication interface SDP#1 includes an address/port and an encoding format used by the TS to receive the media resources.
308: The CP obtains the information of the communication interface SDP#1 from the TS.
Specifically, the CP may obtain the information of the communication interface SDP#1 from the TS in the following two manners: 1. the CP receives a unicast or multicast event message sent by the TS, and the event message carries SDP#1; 2. the CP sends, to the TS, a command message for obtaining a communication interface message, and the TS returns a response message to the CP, where the response message carries SDP#1.
309: The CP converts the information of the communication interface SDP#1 into a format supported by the MS, namely, a format supported by the UPnP AV protocol, that is, converts parameters in SDP#1 into parameters in AVTransportParameters.
310: The CP invokes a SetAVTransportParam( ) control command to the MS, where the control command carries the converted information of a communication interface SDP#1, and instructs the MS to send the previously determined media resources to the address/port specified in the control command through RTP/UDP protocol to send the media resources to the TS.
SetAVTransportParam( ) is an additional control command in the UPnP AV standard, and parameters of the control command are shown in the following table:
CurrentParameters are mandatory input parameters, and are used to designate, to the MS, the information of a media transmission session to be established, including information of media resources to be transmitted and information of a receiving end of the media resources. hjCurrentParameters correspond to the AVTransportParamets state variable.
SourceParameters are optional output parameters, and are used for returning some additional information to the CP, including information of a port for receiving an RTCP (RTP Control Protocol, real time transport control protocol) packet in a future session. The same state variable template may be used to describe information returned by the MS. Certainly, different state variables may be defined in practice.
Through the extension of the UPnP AV standard, the MS may receive a command of the CP and directly send RTP media resources to a destination address/port, therefore, the UPnP AV standard is compatible with the Telephony standard. However, the CP still needs to convert the media parameters in the SDP format from the TS into the input parameters in AV action and then send them to the MS, and convert the parameter in an action response from the MS into parameters in the SDP format and then send them to the TS.
311: The MS returns additional information to the CP, including an address/port used by the MS to receive an RTCP packet fed back by the TS.
312: The CP converts the additional information returned by the MS to the information SDP#2 in a format supported by the TS, where SDP#2 is the address/port for receiving the RTCP packet.
313: The CP sends SDP#2 to the TS.
314: The CP sends an instruction message to the MS and instructs the MS to receive a message packet fed back by the TS.
Steps 311-314 may be skipped.
After step 314, the method further includes that: the MS receives, according to the instruction message sent by the CP, the message packet fed back by the TS.
315: Media resource transmission based on the RTP/UDP is started between the MS and the TS, and the media resources are transmitted from the MS to the TS.
316: The TS sends the received media resources to the WAN side communication peer through the established multimedia session.
In the method for transmitting media resources according to the embodiment of the present invention, a CP searches an MS for media resources according to a requirement of a TS, sends an instruction message carrying related information of the media resources to the TS, instructs the TS to perform session negotiation with a communication peer, determines information of a communication interface used by the TS to receive the media resources, sends an instruction message carrying the information of the communication interface to the MS, and instructs the MS to send the media resources to the TS. Compared with the prior art, through the extension of the UPnP AV standard, and protocol comprehension and format conversion of transmission parameters between the TS and MS, a media session channel is established between the MS and the TS, so that the MS can support direct sending of the RTP/UDP media resources to the TS. The TS may obtain the media resources from the MS without any improvement, and send the media resources to the communication peer, so the implementation is simple.
An embodiment provides a method for transmitting media resources. In this embodiment, a CP first instructs a TS to perform session negotiation with a WAN side communication peer to add media resources, and then establishes media resource transmission between an MS and the TS. The MS transmits media resources to the TS through RTP/UDP.
Different from Embodiment 3, in this embodiment, media resource transmission based on the RTP/UDP does not need to be established between the TS and MS by using the RTSP signaling. Instead, the TS is required to support the RTSP and establish an RTSP session between the TS and the MS to negotiate actual media resource transmission based on the RTP/UDP.
As shown in
Steps 401-407 are the same as steps 301-307, which are not described in detail herein again.
408: The CP converts the media resource parameters in the AV format obtained in step 405 into SDP#2 which includes an RTSP URL (Uniform Resource Locator, uniform resource locator) for identifying media resources.
409: The CP invokes a StartMediaTransfer( ) control command to the TS, where the control command carries SDP#2, requiring the TS to establish an RTSP session with the MS.
Alternatively, the RTSP URL may be directly sent to the TS in step 406, and in this case, steps 408-409 may be skipped.
410: The TS sends, to the MS, an RTSP SETUP command which requires the establishment of an RTSP session, and negotiates, via the session, RTP/UDP session parameters of actual media resource transmission.
411: Media resource transmission based on the RTP/UDP is started between the MS and TS, and the media resources are transmitted from the MS to the TS.
412: The TS sends the received media resources to the WAN side communication peer through the established multimedia session.
In the method for transmitting media resources according to the embodiment of the present invention, a CP searches an MS for media resources according to a requirement of a TS, sends an instruction message carrying related information of the media resources to the TS, instructs the TS to perform session negotiation with a communication peer, determines information of a communication interface used by the TS to receive the media resources, and instructs the TS to establish a media resource transmission channel with the MS. The MS sends the media resources to the TS through the channel. Compared with the prior art, the TS only needs to support the RTSP and establishes an RTSP session between the TS and the MS to negotiate media resource transmission based on the RTP/UDP, so that the MS can support direct sending of RTP/UDP media resources to the TS. The TS may obtain media resources from the MS without any improvement, and send the media resources to the communication peer, so that the implementation is simple.
An embodiment provides a method for transmitting media resources. In this embodiment, a CP first instructs a TS to perform session negotiation with a WAN side communication peer to add media resources, and then establishes media resource transmission between an MS and the TS. The MS transmits media resources to the TS through the HTTP/TCP.
A UPnP AV standard supports media resource transmission through the HTTP protocol. That is, a URI for obtaining media resources is provided to an MR, and the MR uses an HTTP GET message to start transmitting the media resources from the MS to the MR. In addition, the UPnP AV standard also supports that the MS proactively “pushes” the media resources to other devices by using the HTTP POST or PUT, so as to send the media resources from a SourceURI (source URI) to a DestinationURI (destination URI). In this embodiment, the CP needs to accomplish the conversion between the SourceURI/DestinationURI and an SDP format.
As shown in
Steps 501-508 are the same as steps 301-308, which are not described in detail herein again.
509: The CP converts the information of the communication interface SDP#1 into a DestinationURI.
510: The CP converts a SourceURI into SDP#2.
The SourceURI is included in the related information of the media resources obtained in step 505.
511: The CP sends SDP#2 to the TS, to confirm that the TS is prepared to start receiving the media resources.
Alternatively, the TS does not need to learn address information of a sender, but only needs to learn reserved resources and wait for an HTTP POST (or PUT) message on a designated port. Therefore, steps 510-511 may be skipped.
512: The CP invokes an ExportResourse (SourceURI, DestinationURL) control command to the MS, where the control command carries a value of the converted SDP#1, and instructs the MS to proactively send, through the HTTP/TCP protocol, media resources determined by the SourceURI to an address/port on the TS specified by the DestiantionURL.
513: Media resource transmission based on the HTTP/TCP is started between the MS and TS, and the media resources are transmitted from the MS to the TS.
514: The TS sends the received media resources to the WAN side communication peer through the established multimedia session.
In the method for transmitting media resources according to the embodiment of the present invention, a CP searches an MS for media resources according to a requirement of a TS, sends an instruction message carrying related information of the media resources to the TS, instructs the TS to perform session negotiation with a communication peer, determines information of a communication interface used by the TS to receive the media resources, sends an instruction message carrying the information of the communication interface to the MS, and instructs the MS to send the media resources to the TS. Compared with the prior art, through the extension of the UPnP AV standard, and protocol comprehension and format conversion of transmission parameters between the TS and MS, a media session channel is established between the MS and the TS, so that the MS can support direct sending of the HTTP/TCP media resources to the TS. The TS may obtain the media resources from the MS without any improvement, and send the media resources to the communication peer, so that the implementation is simple.
An embodiment provides a method for transmitting media resources. In this embodiment, a CP first instructs a TS to perform session negotiation with a WAN side communication peer to add media resources, and then establishes media resource transmission between an MS and the TS. The MS transmits media resources to the TS through the HTTP/TCP.
Different from Embodiment 5, in this embodiment, the CP does not perform conversion between an URI and an SDP. Instead, the support for the URI is added to the TS, that is, the TS provides (or the CP designates) a DestinationURL for receiving media resources.
As shown in
Steps 601-606 are the same as steps 501-506, which are not described in detail herein again.
607: The TS performs session negotiation with the WAN side communication peer to determine media session parameters of the media resources added in the multimedia session. Further, the TS determines information of a communication interface Info#1 required for receiving the media resources from the MS, where the information of the communication interface Info#1 includes the DestinationURL allocated by the TS for receiving the media resources.
Alternatively, the DestiantionURL may be designated by the CP to the TS.
608: The CP obtains the information of the communication interface Info#1 from the TS.
Specifically, the CP may obtain the information of the communication interface Info#1 from the TS in the following two manners: 1. the CP receives a unicast or multicast event message sent by the TS, and the event message carries Info#1; 2. the CP sends a command message for obtaining the communication interface message to the TS, and the TS returns a response message to the CP, where the response message carries Info#1.
609: The CP sends, to the MS, the DestinationURL and a SourceURL required for transmitting the media resources.
The SourceURI is included in the related information of the media resources obtained in step 505.
610: Media resource transmission based on the HTTP/TCP is started between the MS and TS, and the media resources are transmitted from the MS to the TS.
611: The TS sends the received media resources to the WAN side communication peer through the established multimedia session.
In the method for transmitting media resources according to the embodiment of the present invention, a CP searches an MS for media resources according to a requirement of a TS, sends an instruction message carrying related information of the media resources to the TS, instructs the TS to perform session negotiation with a communication peer, determines information of a communication interface used by the TS to receive the media resources, sends an instruction message carrying the information of the communication interface to the MS, and instructs the MS to send the media resources to the TS. Compared with the prior art, through the extension of the UPnP AV standard, and protocol comprehension and format conversion of transmission parameters between the TS and MS, a media session channel is established between the MS and the TS, so that the MS can support direct sending of the HTTP/TCP media resources to the TS. The TS may obtain media resources from the MS without any improvement, and send the media resources to the communication peer, so that the implementation is simple.
An embodiment provides a method for transmitting media resources. In this embodiment, a TC device is added, and a user answers a call between a TS (such as a mobile phone) and a WAN side communication peer on the TC device (such as a television). To play, on the TC, media resources from the MS that are sent to the WAN side communication peer, the CP instructs the TS to send the media resources received from the MS to the TC and the WAN side communication peer at the same time.
As shown in
701: A CP instructs a TS to establish a multimedia session with a WAN side communication side and establish a multimedia session between the TS and a TC.
702: The CP instructs the TC to establish a multimedia session between the TC and the TS.
703: The TS performs session negotiation with the WAN side communication peer.
704: The TS establishes a multimedia session between the TS and the WAN side communication peer.
705: The TS establishes a multimedia session between the TS and the TC.
706: The CP searches an MS for media resources required by a user according to a requirement of the user.
707: The CP obtains related information of the media resources.
708: The CP sends an instruction message to the TS and instructs the TS to perform session negotiation with the WAN side communication peer to add the media resources, where the instruction message includes the related information of the media resources and instructs the TS to send the media resources to the TC.
709: The TS performs session negotiation with the WAN side communication peer, and determines media session parameters of the media resources added in the multimedia session.
710: The CP obtains the media session parameters from the TS.
711: The CP converts the format of media session parameters into a format of AV parameters.
712: The CP instructs the TS to prepare to receive media resources and send the received media resources to the TC.
713: The CP instructs the TC to prepare to receive media resources.
714: The CP instructs the MS to send selected media resources to the TS according to the media session parameters.
715: The MS sends the media resources to the TS.
716: The TS sends the media resources to the TC through the multimedia session between the TS and the TC.
717: The TS sends the media resources to the WAN side communication peer through the multimedia session between the TS and the WAN side communication peer.
In the method for transmitting media resources according to the embodiment of the present invention, a CP searches an MS for media resources according to a requirement of a TS, sends an instruction message carrying related information of the media resources to the TS, instructs the TS to perform session negotiation with a communication peer and the TC, determines information of a communication interface used by the TS to receive the media resources, sends an instruction message carrying the information of the communication interface to the MS, instructs the MS to send the media resources to the TS, and instructs the TS to send the received media resources to the TC. Compared with the prior art, through the extension of the UPnP AV standard, and protocol comprehension and format conversion of transmission parameters between the TS and MS, a media session channel is established between the MS and TS, so that the MS can support direct sending of the RTP/UDP media resources to the TS. The TS may obtain the media resources from the MS without any improvement, and send the media resources to the communication peer and the TC, so that the implementation is simple.
An embodiment provides a method for transmitting media resources. In this embodiment, a TC device is added, and a user answers a call between a TS (such as a mobile phone) and a WAN side communication peer on the TC device (such as a television). Different from the Embodiment 7, to play, on the TC, media resources from an MS sent to the WAN side communication peer, a CP controls media resources in the MS to be sent to the TC and the TS at the same time, that is, the CP establishes a media resource transmission session between the MS and TS, and a media resource transmission session between the MS and TC.
As shown in
Steps 801-807 are the same as steps 701-707, which are not described in detail herein again.
808: The CP sends an instruction message to the TS and instructs the TS to perform session negotiation with the WAN side communication peer to add the media resources, where the instruction message includes the related information of the media resources.
Steps 809-811 are the same as steps 709-711, which are not described in detail herein again.
812: The CP instructs the TS to prepare to receive media resources.
813: The CP instructs the TC to prepare to receive media resources.
814: The CP instructs the MS to send selected media resources to the TS and TC according to the media session parameters.
815: The MS sends the media resources to the TS.
816: The MS sends the media resources to the TC.
817: The TS performs a multimedia session with the TC, where the multimedia session does not include the media resources.
818: The TS sends the media resources to the WAN side communication peer through the multimedia session between the TS and the WAN side communication peer.
In the method for transmitting media resources according to the embodiment of the present invention, a CP searches an MS for media resources according to a requirement of a TS, sends an instruction message carrying related information of the media resources to the TS, instructs the TS to perform session negotiation with a communication peer, determines information of a communication interface used by the TS to receive the media resources, sends an instruction message carrying the information of the communication interface to the MS, and instructs the MS to send the media resources to the TS and TC. Compared with the prior art, through the extension of the UPnP AV standard, and protocol comprehension and format conversion of transmission parameters between the TS and MS, a media session channel is established between the MS and TS, so that the MS can support direct sending of the RTP/UDP media resources to the TS. The TS may obtain the media resources from the MS without any improvement. In addition, the TC may also obtain media resources from the MS, so that the implementation is simple.
An embodiment provides a method for transmitting media resources. In this embodiment, a CP first instructs a TS to perform session negotiation with a WAN side communication peer to add media resources, and then establishes media resource transmission between an MS and the TS. The MS sends the media resources to the TS through HTTP (Hyper Text Transfer Protocol, hyper text transfer protocol)/TCP (Transmission Control Protocol, transmission control protocol).
In this embodiment, the CP converts media resource information (mainly the URL) obtained from the MS into SDP information. The TS proactively establishes a connection (by sending an HTTP GET request) with the MS according to the SDP information and obtains media resources.
As shown in
Steps 901-905 are the same as steps 301-305, which are not described in detail herein again.
906: The CP converts the URL in an AV format in the obtained media resource information into the information SDP#1 in a format supported by the TS.
The URL generally points to a local MS, but may also point to addresses on other devices or networks. That is, the related information of the media resources may be stored on a media server 1, while actual media resources are stored on a media server 2. In this case, the URL of the media resource on the media server may point to the media server 2, and the TS obtains the media resource from the media server 2.
907: The CP sends an instruction message to the TS and instructs the TS to perform session negotiation with the WAN side communication peer to add the media resources, where the instruction message includes SDP#1.
908: The TS performs session negotiation with the WAN side communication peer to add the media resources, and the multimedia session is established successfully.
909: The TS sends an HTTP GET message to the MS according to an address designated by the URL, and establishes a TCP connection with the MS.
910: The MS sends the media resources to the TS through the HTTP/TCP protocol.
911: The TS sends the received media resources to the WAN side communication peer through the established multimedia session.
Certainly, the CP may also send the related information of the media resources to the TS first, and command the TS to establish a multimedia session with the WAN side communication peer. After establishing the multimedia session with the WAN side communication peer, the TS sends SDP information to the CP. The CP translates the URL of the media resources into the SDP and sends it to the TS, and instructs the TS to start obtaining the media resources through the HTTP GET request.
In the method according to the embodiment of the present invention, a CP searches an MS for media resources according to a requirement of a TS, sends an instruction message carrying related information of the media resources, and instructs the TS to perform session negotiation with the communication peer to add the media resources. The TS proactively establishes a connection with the MS according to the URL of the media resource and obtains the media resource. Compared with the prior art, the TS may obtain media resources from the MS without any improvement, and send the media resources to the communication peer, so that the implementation is simple.
An embodiment provides a method for transmitting media resources. Different from Embodiment 1, media resource transmission is established between a telephony server and a media server first, and at the same time (or later), the telephony server is commanded to establish or modify a multimedia session with a communication peer, and send media resources from the media server to the communication peer.
As shown in
1001: Obtain related information of media resources on a media server.
1002: Send the related information of the media resources to a telephony server.
1003: Instruct the media server to send the media resources to the telephony server.
1004: Instruct the telephony server to perform session negotiation with a communication peer according to the related information of the media resources to establish a first multimedia session, so that the telephony server transmits the media resources to the communication peer through the first multimedia session.
The method process described in this embodiment is also applicable to Embodiment 3 to Embodiment 8. For the specific implementation method, references may be made to the above embodiments.
In the method for transmitting media resources according to the embodiment of the present invention, related information of media resources obtained from a media server is sent to a telephony server. First, the media server is instructed to send the media resources to the telephony server, and then the telephony server is instructed to perform session negotiation with a communication peer according to the related information of the media resources to establish a first multimedia session to transmit the media resources. Compared with the prior art, the embodiment of the present invention can establish a media session channel between the media server and the telephony server. The telephony server may obtain media resources from the media server without any improvement, so that the implementation is simple.
An embodiment provides a control point device. As shown in
a first obtaining module 1101, configured to obtain related information of media resources on a media server 111;
a first instruction module 1102, configured to send an instruction message including the related information of the media resources to a telephony server 112, wherein the instruction message instructs the telephony server 112 to perform session negotiation with a communication peer according to the related information of the media resources to establish a first multimedia session;
a second obtaining module 1103, configured to obtain information of a communication interface used by the telephony server 112 to receive the media resources; and
a second instruction module 1104, configured to send the instruction message according to the information of the communication interface, wherein the instruction message instructs the media server 111 to send the media resources to the telephony server 112, so that the telephony server 112 transmits the media resources to the communication peer through the first multimedia session.
The second instruction module 1104 is specifically configured to send an instruction message carrying the information of the communication interface to the media server 111, wherein the instruction message instructs the media server 111 to send the media resources to the telephony server 112 according to the information of the communication interface;
or specifically configured to send an instruction message to the telephony server 112, wherein the instruction message instructs the telephony server 112 to establish a session with the media server 111, so that the media server 111 sends the media resources to the telephony server 112 through the session.
Further, as shown in
a first conversion module 1105, configured to convert the related information of the media resources into a format supported by the telephony server 112;
where the first instruction module 1102 is specifically configured to send, to the telephony server 112, instruction information including the related information of the media resources on which the first conversion module 1105 has performed.
Further, as shown in
a second conversion module 1106, configured to convert the information of the communication interface into a format supported by the media server 111;
where the second instruction module 1104 is specifically configured to send an instruction message according to the information of the communication interface converted by the second conversion module 1106, wherein the instruction message instructs the media server 111 to send the media resources to the telephony server 112.
Further, the first instruction module 1102 is further configured to send an instruction message to the telephony server 112, wherein the instruction message instructs the telephony server 112 to receive the media resources.
Further, the first instruction module 1102 is further configured to instruct the telephony server 112 to establish a second multimedia session with a telephony client; and
instruct the telephony server 112 to send the media resource received from the media server 111 to the telephony client through the second multimedia session.
Further, the second instruction module 1104 is further configured to instruct the media server 111 to establish a multimedia transmission session with the telephony client; and
instruct the media server 111 to send the media resources to the telephony client.
The control point device according to the embodiment of the present invention sends an instruction message including related information of media resources to a telephony server, wherein the instruction message instructs the telephony server to perform session negotiation with a communication peer, determines the information of the communication interface used by the telephony server to receive the media resource, sends an instruction message carrying the information of the communication interface to the media server, wherein the instruction message instructs the media server to send the media resource to the telephony server. Compared with the prior art, through the protocol comprehension and format conversion of transmission parameters between the telephony server and the media server, a media session channel is established between the media server and the telephony server. The telephony server may obtain media resources from the media server without any improvement, and send the media resources to the communication peer, so that the implementation is simple.
An embodiment provides a telephony server. As shown in
a receiving module 1301, configured to receive a first instruction message from a control point device 131, where the first instruction message carries related information of media resources on a media server 132;
an establishment module 1302, configured to perform session negotiation with a communication peer 133 according to the first instruction message to establish a first multimedia session;
an obtaining module 1303, configured to obtain the media resources from the media server 132; and
a transmission module 1304, configured to transmit the media resources to the communication peer 133 through the first multimedia session.
Further, as shown in
a first sending unit 13031, configured to send information of a communication interface for receiving the media resources to the control point device 131, so that the control point device 131 sends a second instruction message to the media server 132 according to the information of the communication interface; and
a first receiving unit 13032, configured to receive, over the communication interface, the media resources sent by the media server 132 according to the second instruction message.
Further, as shown in
a second sending unit 13033, configured to send a request message to the media server 132 to request the media resources; and
a second receiving unit 13034, configured to receive the media resources sent by the media server 132 according to the request message.
In the telephony server according to the embodiment of the present invention, the telephony server receives a first instruction message carrying related information of media resources on a media server, performs session negotiation with a communication peer according to the instruction message to establish a first multimedia session, and transmits the media resources obtained from the media server to the communication peer through the first multimedia session. Compared with the prior art, the telephony server may obtain media resources from the media server without any improvement, and send the media resources to the communication peer, so that the implementation is simple.
The control point device and the telephony server according to the embodiments of the present invention can implement the above method embodiments. The method and apparatus for transmitting media resources according to the embodiments of the present invention are applicable to multimedia sessions, but are not limited thereto.
Persons of ordinary skill in the art should understand that all or a part of the processes of the method according to the embodiments of the present invention may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program is run, the processes of the method according to the embodiments of the present invention are performed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (Read-Only Memory, ROM) or a Random Access Memory (Random Access Memory, RAM).
The above is only the specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any change or replacement that can be easily thought of by persons skilled in the art within the technical scope disclosed by the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201010155439.3 | Apr 2010 | CN | national |
This application is a continuation of International Application No. PCT/CN2011/073248, filed on Apr. 25, 2011, which claims priority to Chinese Patent Application No. 201010155439.3, filed on Apr. 26, 2010, both of which are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2011/073248 | Apr 2011 | US |
Child | 13662042 | US |