WO2018129876A1 - Method for transmitting multimedia data, server and terminal - Google Patents

Method for transmitting multimedia data, server and terminal Download PDF

Info

Publication number
WO2018129876A1
WO2018129876A1 PCT/CN2017/091213 CN2017091213W WO2018129876A1 WO 2018129876 A1 WO2018129876 A1 WO 2018129876A1 CN 2017091213 W CN2017091213 W CN 2017091213W WO 2018129876 A1 WO2018129876 A1 WO 2018129876A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
server
token
capability set
multimedia data
Prior art date
Application number
PCT/CN2017/091213
Other languages
French (fr)
Chinese (zh)
Inventor
刘海洋
邓宇
李小金
李锋
李婧如
姚松平
钟文国
曹帼琼
郭兴民
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780005504.4A priority Critical patent/CN108781217B/en
Publication of WO2018129876A1 publication Critical patent/WO2018129876A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, a server, and a terminal for multimedia data transmission.
  • the terminal device includes a device supporting a voice call, such as a mobile phone, a conference phone, and a wearable device.
  • Multimedia communication includes information transmission in the form of pictures, videos, and the like.
  • multimedia devices are usually required to communicate through multimedia platforms, and the way through social platforms involves registration of social platforms and operations such as adding friends. On the one hand, these operations are cumbersome and take a certain amount of time. On the other hand, since it is necessary to ask the other party's social account, there is a case where the wrong social account is transmitted, resulting in failure of the multimedia communication.
  • the embodiment of the invention provides a method, a server and a terminal for transmitting multimedia data, so as to solve the problem that the multimedia connection cannot be established during the call in the prior art.
  • an embodiment of the present invention provides a method for multimedia data transmission.
  • the method includes: the server receives a first message from the first terminal, where the first message is used to instruct the first terminal to request to send multimedia data to the second terminal by using the server; the server receives the capability set of the second terminal from the second terminal, and the a terminal transmits a capability set of the second terminal; the server receives the multimedia data from the first terminal, and sends the multimedia data to the second terminal; the multimedia data is sent by the first terminal based on the capability set of the first terminal and the capability set of the second terminal to The second terminal.
  • the server exchanges a capability set between the first terminal and the second terminal, so that the first terminal can initiate a call to the second terminal, and the second terminal Perform multimedia data transmission.
  • the first message carries the number of the second terminal; after the server receives the first message from the first terminal, the method further includes: the server generates a token according to the number of the second terminal, and establishes a command a first correspondence between the card and the first terminal; the server receives the token from the second terminal, and establishes a second correspondence between the token and the second terminal.
  • the server sends the capability set of the second terminal to the first terminal, where the server sends the capability set of the second terminal to the first terminal according to the token and the first correspondence.
  • the server receives the multimedia data from the first terminal, and sends the multimedia data to the second terminal, including: the server receives the token and the multimedia data from the first terminal, and according to the token and the second correspondence
  • the second terminal transmits the multimedia data.
  • the first message further carries the identifier of the first terminal; after the server receives the first message from the first terminal, the method further includes: the server generating a command according to the number and the identifier of the second terminal a card, and establishing a token, a first correspondence between the identifier of the first terminal and the first terminal; the server receives the token and the identifier of the second terminal from the second terminal, and establishes a token, an identifier of the second terminal a second correspondence with the second terminal.
  • the server sends the capability set of the second terminal to the first terminal, where the server sends the capability set of the second terminal to the first terminal according to the token and the identifier of the first terminal.
  • the server receives the multimedia data from the first terminal, and sends the multimedia data to the second terminal, including: the server receives the token and the multimedia data from the first terminal, and identifies the token according to the second terminal.
  • the code transmits the multimedia data to the second terminal.
  • the method before the server receives the token from the second terminal, the method further includes: the server sending the token to the second terminal according to the first message.
  • the method before the server receives the first message from the first terminal, the method further includes: the server receiving the capability set of the first terminal from the first terminal, and receiving the capability set of the second terminal from the second terminal.
  • the server receives the capability set of the second terminal to the first terminal.
  • an embodiment of the present invention provides a method for multimedia data transmission.
  • the method includes: the first terminal sends a first message to the server, where the first message is used to instruct the first terminal to request to send multimedia data to the second terminal by using the server; the first terminal receives the capability set of the second terminal from the server, and determines An intersection of a capability set of a terminal and a capability set of the second terminal; the first terminal transmits the multimedia data to the second terminal according to the intersection.
  • the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal, and establish a correspondence between the token and the first terminal, the token And a device for uniquely identifying a multimedia session between the first terminal and the second terminal.
  • the first terminal sends the multimedia data to the server according to the intersection, and the first terminal sends the multimedia data and the token to the server according to the intersection.
  • the first message further carries the identifier of the first terminal, where the first message is further used to instruct the server to generate a token according to the number of the second terminal and the identifier of the first terminal, and establish a token, Correspondence between the identification code of the first terminal and the first terminal.
  • the method before the first terminal receives the capability set of the second terminal from the server, the method further includes: the first terminal sending the token to the second terminal.
  • the method before the first terminal sends the first message to the server, the method further includes: the first terminal sends the capability set of the first terminal to the server; the capability set of the first terminal is used, when the second When the terminal subscribes to the capability set of the first terminal, the server sends the capability set of the first terminal to the second terminal.
  • the method further includes: changing, by the first terminal, the state of the multimedia communication identifier of the first terminal according to the intersection .
  • the method further includes: the first terminal receiving and saving the number of the first terminal from the second terminal.
  • an embodiment of the present invention provides a method for multimedia data transmission.
  • the method includes: the second terminal sends a capability set of the second terminal to the server, where the capability set of the second terminal is used by the server to send to the first terminal, And the first terminal sends the multimedia data to the second terminal; the second terminal receives the multimedia data from the first terminal.
  • the method before the second terminal sends the capability set of the second terminal to the server, the method further includes: the second terminal receives the token from the first terminal; and the second terminal sends the capability of the second terminal to the server.
  • the set includes: the second terminal sends a capability set and a token of the second terminal to the server, where the token is used to establish a correspondence between the server and the second terminal.
  • the method before the second terminal sends the capability set of the second terminal to the server, the method further includes: the second terminal receives the token from the server, and the token is used to instruct the second terminal to send the second to the server.
  • the set of capabilities of the terminal before the second terminal sends the capability set of the second terminal to the server, the method further includes: the second terminal receives the token from the server, and the token is used to instruct the second terminal to send the second to the server.
  • the set of capabilities of the terminal before the second terminal sends the capability set of the second terminal to the server.
  • the capability set of the second terminal is used, when the first terminal subscribes to the capability set of the second terminal, the server sends the capability set of the second terminal to the first terminal.
  • the method further includes: the second terminal receiving and saving the number of the second terminal from the first terminal.
  • an embodiment of the present invention provides a method for multimedia data transmission.
  • the method includes the first server receiving a first message from the first terminal, the message being used to instruct the first terminal to request to send the multimedia data to the second terminal by using the second server.
  • the server receives the capability set of the second terminal from the second terminal, and sends the capability set of the second terminal to the first terminal.
  • the second server receives the multimedia data from the first terminal, and sends the multimedia data to the second terminal, where the multimedia data is sent by the first terminal to the second based on the capability set of the first terminal and the capability set of the second terminal terminal.
  • the first server serves only as a server for transferring multimedia capability information between the first terminal and the second terminal, and the second server is only used as the first terminal and the second terminal.
  • an embodiment of the present invention provides a server.
  • the terminal can implement the functions performed by the server in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the server includes: a communication module and a processing module.
  • the processing module is configured to instruct the communication module to receive the first message from the first terminal, where the first message is used to instruct the first terminal to request to send the multimedia data to the second terminal by using the server, and the communication module is instructed to receive the second terminal from the second terminal.
  • an embodiment of the present invention provides a terminal.
  • the terminal can implement the functions performed by the first terminal in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the terminal includes: a communication module and a processing module.
  • the processing module is configured to instruct the communication module to send a first message to the server, where the first message is used to instruct the terminal to request to send the multimedia data to the second terminal by using the server, and instruct the communication module to receive the capability set of the second terminal from the server, and determine the terminal An intersection of the capability set and the capability set of the second terminal; and instructing the communication module to transmit the multimedia data to the second terminal according to the intersection.
  • an embodiment of the present invention provides a terminal.
  • the terminal can implement the functions performed by the second terminal in the multimedia data transmission method of the above first to fourth aspects, and the function can be implemented by hardware or by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the terminal includes: a communication module and a processing module; the processing module is configured to instruct the communication module to send a capability set of the terminal to the server, where the capability set of the terminal is used by the server to send to the first terminal, and the first terminal The terminal sends the multimedia data; the processing module is further configured to instruct the communication module to receive the multimedia data from the first terminal.
  • an embodiment of the present invention provides a server.
  • the server can implement the functions performed by the server in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the server includes: a processor, a memory, a wireless communication interface, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more
  • the computer program includes instructions that, when executed by the server, cause the server to perform the steps of: acquiring a first message from the first terminal, the first message being used to instruct the first terminal to request to send to the second terminal through the server Multimedia data; and acquiring a capability set of the second terminal from the second terminal, and transmitting the capability set of the second terminal to the first terminal; and acquiring multimedia data from the first terminal, and transmitting the multimedia data to the second terminal;
  • the first terminal sends to the second terminal based on the capability set of the first terminal and the capability set of the second terminal.
  • the first message carries the number of the second terminal; the processor is further configured to: according to the program instruction stored in the memory, perform the following operations: after acquiring the first message from the first terminal, according to the number of the second terminal Generating a token, and establishing a first correspondence between the token and the first terminal; and acquiring a token from the second terminal, and establishing a second correspondence between the token and the second terminal.
  • the processor is configured to: according to the program instructions stored in the memory, to control the wireless communication interface to send the capability set of the second terminal to the first terminal, including: controlling the wireless communication interface according to the token and the first correspondence The relationship sends the capability set of the second terminal to the first terminal.
  • the processor is configured to: according to the program instructions stored in the memory, acquire the multimedia data from the first terminal, and send the multimedia data to the second terminal, including: acquiring the token and the multimedia data from the first terminal. And transmitting the multimedia data to the second terminal according to the token and the second correspondence.
  • the processor is configured to: according to the program instructions stored in the memory, after acquiring the first message from the first terminal, generating a token according to the number and the identification code of the second terminal, and establishing a token And a first correspondence between the identifier of the first terminal and the first terminal; and acquiring the token and the identifier of the second terminal from the second terminal, and establishing the token, the identifier of the second terminal, and the second terminal The second correspondence.
  • the processor is configured to: according to the program instructions stored in the memory, to control the wireless communication interface to send the capability set of the second terminal to the first terminal, including: controlling the wireless communication interface according to the token and the first terminal
  • the identification code sends the capability set of the second terminal to the first terminal.
  • the processor is configured to: according to the program instructions stored in the memory, acquire the multimedia data from the first terminal, and send the multimedia data to the second terminal, including: acquiring the token and the multimedia data from the first terminal. And transmitting the multimedia data to the second terminal according to the token and the identification code of the second terminal.
  • the processor is configured to perform the following operations according to the program instructions stored in the memory: before acquiring the token from the second terminal, controlling the wireless communication interface to transmit the token to the second terminal according to the first message.
  • the processor is configured to perform the following operations based on program instructions stored in the memory: Before acquiring the first message from the first terminal, acquiring the capability set of the first terminal from the first terminal, and acquiring the capability set of the second terminal from the second terminal; and controlling the capability set of the wireless terminal by the first terminal to subscribe to the second terminal At the time, the capability set of the second terminal is sent to the first terminal.
  • an embodiment of the present invention provides a terminal.
  • the terminal can implement the functions performed by the first terminal in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the terminal includes: a processor, a memory, a wireless communication interface, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more The computer program includes instructions that, when executed by the terminal, cause the terminal to perform the steps of: controlling the wireless communication interface to send a first message to the server, the first message being used to instruct the terminal to request to send to the second terminal through the server Multimedia data; and acquiring a capability set of the second terminal from the server, and determining an intersection of the capability set of the terminal and the capability set of the second terminal; and controlling the wireless communication interface to transmit the multimedia data to the second terminal according to the intersection.
  • the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal, and establish a correspondence between the token and the terminal, where the token is used for unique Identifying a multimedia session between the terminal and the second terminal.
  • the processor is configured to: according to the program instructions stored in the memory, to control the wireless communication interface to send the multimedia data to the server according to the intersection, comprising: controlling the wireless communication interface to send the multimedia data and the token to the server according to the intersection.
  • the first message further carries the identifier of the terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal and the identifier of the terminal, and establish a token, an identifier of the terminal, and The correspondence of the terminals.
  • the processor is configured to perform the following operations according to the program instructions stored in the memory: controlling the wireless communication interface to send the token to the second terminal before acquiring the capability set of the second terminal from the server.
  • the processor is configured to: according to the program instructions stored in the memory, control a wireless communication interface to send a capability set of the terminal to the server before controlling the wireless communication interface to send the first message to the server; And when the second terminal subscribes to the capability set of the terminal, the server sends the capability set of the terminal to the second terminal.
  • the processor is configured to perform the following operations according to the program instructions stored in the memory: after determining the intersection of the capability set of the terminal and the capability set of the second terminal, changing the state of the multimedia communication identifier of the terminal according to the intersection.
  • the processor is configured to: according to the program instructions stored in the memory, to acquire and save the number of the terminal from the second terminal after controlling the wireless communication interface to send the first message to the server.
  • the tenth aspect of the present invention provides a terminal.
  • the terminal can implement the functions performed by the second terminal in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the terminal includes a processor, a memory and a wireless communication interface, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more The computer program includes instructions that, when executed by the terminal, cause the terminal to perform the following Step: Control a wireless communication interface to send a capability set of the terminal to the server, the capability set of the terminal is used by the server to send to the first terminal, and the first terminal sends the multimedia data to the terminal; and the multimedia data is acquired from the first terminal.
  • the processor is configured to: according to the program instructions stored in the memory, acquire a token from the first terminal before controlling the wireless communication interface to send the capability set of the terminal to the server; and control the wireless communication interface to the server
  • the capability set of the sending terminal includes: the terminal sends the capability set and the token of the terminal to the server, and the token is used by the server to establish a correspondence between the token and the terminal.
  • the processor is configured to perform the following operations according to the program instructions stored in the memory: the token is obtained from the server, and the token is used to indicate the capability set of the terminal to send the terminal to the server.
  • the capability set of the terminal is used, when the first terminal subscribes to the capability set of the terminal, the server sends the capability set of the terminal to the first terminal.
  • the processor is operative to perform the following operations based on program instructions stored in the memory: the terminal number is obtained and saved from the first terminal.
  • the server when the first terminal initiates a call to the second terminal, the server is first according to the number of the first terminal, the number of the second terminal, or the token.
  • the terminal and the second terminal are associated, so that the first terminal and the second terminal can exchange multimedia capabilities through the server to implement transmission of multimedia data between the first terminal and the second terminal.
  • the first terminal acquires the IP address of the second terminal from the second terminal, thereby implementing multimedia data transmission of the first terminal and the second terminal.
  • the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
  • FIG. 1 is a schematic structural diagram of a communication system according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of communication of a method for transmitting multimedia data according to an embodiment of the present invention
  • FIG. 3(a) and (b) are schematic diagrams showing changes of a display screen of a first terminal according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of communication of another method for transmitting multimedia data according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of communication according to still another method for transmitting multimedia data according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of communication of another method for transmitting multimedia data according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of communication of a method for transmitting multimedia data according to an embodiment of the present invention.
  • FIG. 8(a) and (b) are schematic diagrams showing changes of a display screen of a first terminal according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of communication of another method for discovering multimedia capabilities according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of another server according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a communication system according to an embodiment of the present invention.
  • the communication system includes at least two terminals 101 and 102, and may further include at least one server 110.
  • the terminal 101 and the terminal 102 may directly communicate with each other through the server 110, or may communicate via the server 110.
  • the server 110 may serve only as a relay server for exchanging multimedia capabilities between the terminal 101 and the terminal 102, or as a relay server for exchanging multimedia capabilities and multimedia data between the terminal 101 and the terminal 102.
  • the server 110 may be a network or a cloud server. Only two terminals and one server are shown in the figure, and there may be more terminals and more servers in the embodiment, which is not limited in the embodiment of the present invention.
  • the terminal involved in the embodiment of the present invention may be a device that provides voice and/or data connectivity to the user.
  • the terminal may be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, a portable, pocket-sized, handheld, computer-integrated or in-vehicle mobile device that is connected to the wireless device.
  • Network exchange language and / or data For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (Personal Digital Assistant, PDA) and other equipment.
  • PCS Personal Communication Service
  • SIP Session Initiation Protocol
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistants
  • the server involved in the embodiment of the present invention may be an application server.
  • the client of the application server may be installed on the terminal, and the application server may provide data information for the terminal where the client is installed, or implement information interaction between the terminals.
  • the interaction signaling between the server and the terminal may be a HyperText Transfer Protocol (HTTP)/HyperText Markup Language (HTML) 5.0, or a Session Initiation Protocol (SIP).
  • HTTP HyperText Transfer Protocol
  • HTTP HyperText Markup Language
  • SIP Session Initiation Protocol
  • the method, the server and the terminal for transmitting multimedia data provided by the embodiments of the present invention enable the first terminal and the second terminal to perform multimedia data transmission through the server during the call process and after the call ends, or directly through the server. Perform multimedia data transmission.
  • FIG. 2 is a schematic diagram of communication of a method for transmitting multimedia data according to an embodiment of the present invention.
  • the first terminal and the second terminal are involved, and a Subscriber Identification Module (SIM), a Universal Subscriber Identity Module (USIM), and a Universal Subscriber Identity Module (USIM) may be installed on the first terminal and the second terminal.
  • SIM Subscriber Identification Module
  • USIM Universal Subscriber Identity Module
  • UICC Universal Integrated Circuit Card
  • the first terminal and the second terminal after the card can support the second generation mobile telephone communication technology (2G), the third generation mobile communication technology (3G) or the fourth generation 4rd-Generation mobile communication technology (4G), but the number bound to the terminal cannot be obtained.
  • 2G second generation mobile telephone communication technology
  • 3G third generation mobile communication technology
  • 4G fourth generation 4rd-Generation mobile communication technology
  • a SIM card supporting 2G or 3G is installed in the first terminal and the second terminal. Since the operator does not write the SIM card number in the SIM card, that is, the Mobile Station International Subscriber Directory Number (MSISDN), the terminal loaded in the SIM card cannot read the SIM card. number. It should be noted that, for the case that the first terminal or the second terminal has obtained the number bound to the terminal, the method for transmitting multimedia data provided by this embodiment may also be used. As shown in FIG. 2, this embodiment may include:
  • Step 201 The first terminal sends a push request message to the second terminal, where the message is used to request the server to generate a token. And establishing a correspondence between the token and the first terminal.
  • the token may be used to uniquely identify the multimedia session between the first terminal and the second terminal.
  • the communication between the first terminal and the server, and the communication between the second terminal and the server need to carry the token.
  • the token is invalid.
  • the first terminal sends a push request message to the server to request the server to generate a token to uniquely identify the re-initiated call service.
  • the first terminal and the second terminal can be restricted to perform media data transmission services only during the current call process, so as to improve the security of multimedia communication between the terminals.
  • the first terminal and the second terminal have recorded the multimedia capability of the first terminal and the second terminal in the process of the first terminal and the second terminal establishing the call service for the first time. You can no longer send their own multimedia capability information to the server.
  • the first terminal initiates a call to the second terminal, the first terminal establishes a first connection (eg, an HTTP connection) with the server, and sends a push request message to the second terminal through the first connection.
  • a first connection eg, an HTTP connection
  • the push request message includes an identification code of the first terminal.
  • the identifier of the first terminal is used to identify the first connection, so as to prevent the user holding the first terminal from having one number at the same time and using it in multiple terminals. For example, a user holds a terminal A on which a SIM card A is installed, a terminal B on which a SIM card B is installed, and a terminal C on which a SIM card C is installed, and the SIM card A, the SIM card B, and the SIM card C share a single number.
  • the terminal A When the user initiates a call service to the second terminal by using the terminal A (the first terminal), the terminal A establishes a first connection with the server, and when the server receives the number of the terminal A from the second terminal, and sends the terminal A to the terminal A according to the number of the terminal A.
  • Information since the numbers of Terminal B and Terminal C are the same as those of Terminal A, it will not be possible to determine which terminal should be sent.
  • a user's tablet computer and a car phone share a mobile phone number with the user's mobile phone through a network service, that is, the tablet computer and the car phone phone both bind the user's mobile phone number through a network service, when the user's mobile phone is directed to
  • the mobile phone of the user establishes a first connection with the server, and sends the identification code of the mobile phone to the server through the first connection, when the server receives the number of the mobile phone from the second terminal, and according to the number of the mobile phone
  • the server can determine to send the information to the mobile phone according to the received identification code.
  • the first terminal is a mobile phone.
  • the identifier is an International Mobile Station Equipment Identity (IMEI).
  • IMEI International Mobile Station Equipment Identity
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • Each mobile phone will be given the world's only IMEI after assembly. And the IMEI will be recorded by the manufacturer of the manufacturing from the production of the mobile phone to the delivery.
  • the identifier is an International Mobile Subscriber Identification Number (IMSI).
  • IMSI International Mobile Subscriber Identification Number
  • the IMSI is stored in a SIM card or a USIM card. Each SIM card or USIM card has a unique IMSI, which is a valid identifier for distinguishing mobile users.
  • the identifier is a citizen network electronic identity (eID), and the eID is stored in the embedded UICC card for uniquely identifying each UICC card.
  • the push request message includes the number of the second terminal. It should be noted that, in a subsequent step, the second terminal may receive the number of the second terminal from the server. After acquiring the number bound to the second terminal, the second terminal may transmit the multimedia data to the first terminal or the third terminal by using the method shown in any of FIG. 5-7 and FIG. 9 in the embodiment of the present invention. .
  • the push request message includes a capability set of the first terminal.
  • the server may send the capability set of the first terminal to the second terminal, so that the second terminal may be based on the capability set of the first terminal or The intersection of the capability set of the second terminal and the capability set of the first terminal sends multimedia data to the first terminal.
  • the capability set is a collection of multimedia capabilities supported by the terminal.
  • the data structure of the multimedia capability supported by the first terminal is:
  • MultiMediaCapability represents multimedia capability
  • VideoConferenceSupported represents video call capability, if its value is 0, it means support for video call, if its value is 1, it means that video call is not supported
  • LocationShareSupported means location sharing capability, if its value is 0, it means support Location sharing. If the value is 1, it means that location sharing is not supported.
  • PictureSendSupported indicates the image sending capability. If the value is 0, it means that the location sharing sending picture is supported. If the value is 1, it means that the picture is not supported.
  • Step 202 The server generates a token, establishes a correspondence between the token and the first terminal, and sends the token to the first terminal.
  • the server generates a token according to the number of the second terminal, and establishes a correspondence between the token and the first connection, and sends a push response message to the first terminal, where the message carries the token.
  • the push response message also carries a first push (Beckon) logo.
  • the identifier is used to indicate that the first terminal carries the token in the call signaling sent to the second terminal.
  • Step 203 The first terminal sends call signaling to the second terminal, where the call signaling includes the token.
  • the method may further include: receiving, by the first terminal, a first push (Beckon) identifier from the server.
  • the identifier is used to indicate that the first terminal carries the token in the call signaling sent to the second terminal.
  • the first terminal sends the call signaling to the second terminal, and carries the User to User Signaling (UUS) cell in the call signaling according to the first push identifier, and transmits the token through the UUS cell.
  • the first terminal sends a call setup message (SETUP) to the second terminal, where the call setup message carries the UUS cell, and the UUS cell carries the token.
  • SETUP call setup message
  • step 204 the first terminal receives a call setup response message (SETUP_ACK) from the second terminal, where the message is used to notify the first terminal that the second terminal has received the call setup message.
  • SETUP_ACK call setup response message
  • the number of the first terminal may be included in the call signaling.
  • the second terminal has opened the caller ID service or installed the caller ID display. After the second terminal receives the call signaling sent by the first terminal, the second terminal can display the number of the first terminal.
  • Step 205 The server receives the capability set and the token of the second terminal from the second terminal, and establishes a correspondence between the token and the second terminal.
  • the second terminal establishes a second connection (eg, an HTTP connection) with the server, and sends the token and the capability set of the second terminal to the server through the second connection.
  • the second terminal sends a matching service request message (MatchReq) to the server, where the matching service request message includes the token and the capability set of the second terminal.
  • the matching service request message is used to request matching of the multimedia capability information with the first terminal.
  • the multimedia capability information matching includes: acquiring the first The intersection of the capability set of the terminal and the capability set of the second terminal, or the parameters of the Session Description Protocol (SDP) supported by the first terminal.
  • SDP Session Description Protocol
  • the SDP is used for media negotiation between two session entities, and the parameters of the SDP between the two session entities are agreed.
  • the parameters of the negotiated SDP include IP address, port, media encoding format, and media type (such as audio, video).
  • the matching service request message further includes a number of the first terminal and/or a device identifier of the second terminal.
  • the server establishes a token, a correspondence between the identifier of the second terminal, and the second terminal.
  • the identification code of the second terminal is used to identify the second connection, so as to prevent the user holding the second terminal from having one number at the same time and using it in multiple terminals.
  • the method may further include a step 2051: the server establishes a correspondence between the identifier of the first terminal and the number of the first terminal, and a correspondence between the identifier of the second terminal and the number of the second terminal.
  • the server may send the multimedia data to the second terminal according to the number of the second terminal.
  • Step 206 The server sends the capability set of the second terminal to the first terminal.
  • the server sends a Create Command message to the first terminal, where the message includes a token and a capability set of the second terminal, the message is used to indicate that the first terminal can create a multimedia service.
  • the creating the multimedia service includes: sending, to the second terminal, parameters and multimedia data of the SDP supported by the first terminal, and receiving multimedia data from the second terminal.
  • the create instruction message also includes the token and/or the number of the first terminal.
  • step 2061 may be further included: the first terminal records the number of the first terminal. After acquiring the number bound to the first terminal, the first terminal may transmit the multimedia data to the second terminal or the third terminal by using another method as shown in any of FIG. 4 to FIG. 9 in the embodiment of the present invention. .
  • step 207 the first terminal sends a create command response message to the server.
  • Step 208 The first terminal sends a first forwarding request message to the server, where the message carries the intersection of the capability set of the first terminal and the capability set of the second terminal, and the SDP text information (SDPa) of the first terminal.
  • the SDPa includes a plurality of IP addresses and a plurality of port information that the first terminal can use, a media encoding format, a media type, and the like.
  • the server determines the SDP text information (SDPy) corresponding to the SDPa.
  • the SDP text information includes a session name and an intent, a session duration, a media constituting the session, and information (eg, an address) related to the received media.
  • SDP is a session description format, which is not a transport protocol, and it can only use a different and different transport protocol.
  • the transmission protocol includes a Session Announcement Protocol (SAP), a Session Initiation Protocol (SIP), a Real Time Streaming Protocol (RTSP), and a Multipurpose Internet Mail Extensions. , MIME) protocol email and HyperText Transfer Protocol (HTTP).
  • SAP Session Announcement Protocol
  • SIP Session Initiation Protocol
  • RTSP Real Time Streaming Protocol
  • MIME Multipurpose Internet Mail Extensions.
  • HTTP HyperText Transfer Protocol
  • Mbone multicast backbone
  • the session directory tool is used to advertise multimedia conferences and participate
  • the conference address and the conference-specific tool information required by the participant are transmitted, which is completed by the SDP. After the SDP connects the session, sufficient information is transmitted to the session participants.
  • the SDP information is transmitted using SAP, and the SAP periodically multicasts the notification.
  • the data packet is sent to a known multicast address and port.
  • the data packet is a User Datagram Protocol (UDP) data packet, and the data packet includes an SAP protocol header and a text payload.
  • the text payload is the SDP text message.
  • UDP User Datagram Protocol
  • the method may further include: determining, by the first terminal, a capability set and a second terminal of the first terminal The intersection of the set of capabilities of the end.
  • the state of the multimedia communication identifier of the first terminal may be changed according to the intersection of the first terminal. For example, as shown in FIGS. 3(a) and (b), when the first terminal does not determine the intersection, the "video call” button, the "voice call” button, the “picture send” button, the "video send” button, "file”
  • the Send button and the Location Sharing button are all displayed in gray, that is, the disabled state, and the click button is invalid.
  • the determined intersection indication only supports the voice call, the picture sending, the location sharing service, and does not support other services, and the first terminal display screen corresponds to the supported service.
  • the Voice Call button, the Picture Send button, and the Location Sharing button are displayed in a clickable state, that is, the corresponding service can be performed by clicking a button.
  • Step 209 The server sends a matching service response message (MatchAck) to the second terminal, where the message carries the intersection of the capability set of the first terminal and the capability set of the second terminal, and SDPy.
  • MatchAck matching service response message
  • the corresponding message of the matching service carries the number of the second terminal.
  • step 2091 may be further included: the second terminal records the number of the second terminal. After acquiring the number bound to the second terminal, the second terminal may transmit the multimedia data to the first terminal or the third terminal by using another method as shown in any of FIG. 4 to FIG. 9 in the embodiment of the present invention. .
  • Step 210 The second terminal sends a second forwarding request message to the server, where the message carries SDP text information (SDPb) corresponding to SDPy.
  • SDPb SDP text information
  • the method may further include: determining, by the second terminal, the SDPb.
  • Step 211 The server sends a first forwarding request response message to the second terminal, where the message carries SDP text information (SDPx) corresponding to the SDPb.
  • SDPx SDP text information
  • the method may further include: determining, by the server, SDPx.
  • the information exchanged between the first terminal and the server, and the second terminal and the server may carry a token for the server to use between the first terminal and the second terminal according to the token.
  • the information is relayed.
  • the SDP text information of the server needs to pass through other servers (ie, multimedia for exchanging the first terminal and the second terminal)
  • the server of the data is allocated.
  • the server in this embodiment simultaneously serves as a server for exchanging multimedia capabilities and multimedia data between the first terminal and the second terminal, the SDP text information of the server can be allocated by the server itself.
  • SDP text information consists of many lines of text.
  • the SDP text information includes session information and media information.
  • the session information includes the session name and purpose, and the session activity time. Since the resources participating in the session are restricted, additional information such as the bandwidth information used by the session and the contact information of the session leader is very useful.
  • Media information includes media types such as video and audio; transport protocols such as UDP/IP and H.320; media formats such as H.261 video and MPEG video; multicast address and media transport port (IP multicast session); The remote address (IP unicast session) of the media and transport port used to contact the address.
  • the IP address information of the corresponding terminal may be included in the SDP text information. After acquiring the intersection of the capability set of the first terminal and the capability set of the second terminal, and acquiring the IP address of the first terminal by using the SDPy, the second terminal may directly perform the first terminal according to the intersection and the IP address of the first terminal. Communication, including sending and receiving multimedia data.
  • the first terminal may directly perform the second terminal according to the IP address of the second terminal.
  • Communication including sending and receiving multimedia data.
  • a public network is between the first terminal and the second terminal, and the first terminal may directly send a picture or a picture to the second terminal according to the IP address of the second terminal.
  • Voice messages are all China Mobile Network (CMNET) access points of the telecommunication network.
  • the first terminal sends the capability set, the IP address of the first terminal, and the port number of the first terminal to the second terminal according to the IP address of the second terminal.
  • CMNET China Mobile Network
  • Step 213 The first terminal sends multimedia data to the server.
  • the second terminal may further include: the second terminal sends the multimedia data to the server, and the first terminal receives the multimedia data from the server.
  • the second terminal transmits multimedia data to the server according to the intersection of the capability set of the first terminal received from the server and the capability set of the second terminal and the SDPb, and the first terminal receives the multimedia data from the server.
  • Step 214 The second terminal receives multimedia data from the server.
  • the method for transmitting multimedia data provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, obtains a token from the server, and sends the token to the second terminal, so that the server receives the token from the second terminal. After that, the first terminal and the second terminal can be associated according to the token, thereby implementing multimedia capability data transmission of the first terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
  • FIG. 4 is a schematic diagram of communication of another method for transmitting multimedia data according to an embodiment of the present invention.
  • the first terminal and the second terminal involved in the embodiment of the present invention cannot obtain the number bound to the terminal. It should be noted that, for the case that the first terminal or the second terminal has obtained the number bound to the terminal, the method for transmitting multimedia data provided by this embodiment may also be used.
  • the embodiment of the present invention includes the steps 401 to 404.
  • steps 401-404 refer to the description of the steps 201-204 in the foregoing embodiment, and details are not described herein.
  • Step 405 The second terminal sends the token and the IP address of the second terminal to the server.
  • the first terminal accesses the public network through the internal network, converts the IP address of the intranet of the first terminal into the IP address of the public network, and sends the IP address to the server.
  • the public network refers to the common circuit-switched network, that is, the backbone and branch network of the current network communication, telecommunications, and railway, and the public network is relative to the internal network.
  • the IP address obtained through the terminal of the intranet is the reserved address on the Internet
  • the IP address obtained through the terminal of the public network is the public address of the Internet, which is a non-reserved address.
  • the terminal on the public network and other terminals on the Internet can access each other at will, but the terminal through the intranet may not be able to directly communicate with other terminals on the Internet by using the IP address of the intranet due to the protection of the firewall.
  • the second terminal sends a matching service request message to the server, where the matching service request message includes a token, an IP address of the second terminal, and a capability set of the second terminal.
  • the matching service request message is used to request matching of the multimedia capability information performed by the first terminal.
  • the matching of the multimedia capability information includes: acquiring an intersection of the capability set of the first terminal and the capability set of the second terminal, or acquiring parameters of the SDP supported by the first terminal, and the like.
  • the matching service request message includes the number of the first terminal.
  • the matching service request message includes an identification code of the second terminal.
  • the method further includes: receiving, by the second terminal, the IP address of the first terminal from the server by using the second connection.
  • the IP address of the first terminal is used to indicate that the second terminal receives the multimedia data that is sent by the first terminal, or is used by the second terminal to send the multimedia data to the first terminal according to the IP address of the first terminal.
  • Step 406 The server sends the IP address of the second terminal to the first terminal.
  • the server sends a Create Command message to the first terminal, where the message includes a token and an IP address of the second terminal, where the message is used to indicate that the first terminal can create a multimedia service.
  • the creating the multimedia service includes: sending, to the second terminal, parameters and multimedia data of the SDP supported by the first terminal, and receiving multimedia data from the second terminal.
  • the create instruction message further includes the number of the first terminal.
  • Step 407 The first terminal sends the multimedia data to the second terminal according to the IP address of the second terminal.
  • the second terminal may be set to allow receiving multimedia data transmitted by an unknown IP address.
  • the multimedia data sent by the first terminal may also be received.
  • the second terminal may also be set to not allow receiving multimedia data transmitted by an unknown IP address.
  • the second terminal can receive the multimedia data sent by the first terminal only after knowing the IP address of the first terminal (such as receiving the IP address of the first terminal from the server), otherwise, the self-unknown IP will be The multimedia data sent by the first terminal of the address is intercepted, and the discarding process is performed.
  • the method may further include: the first terminal sends a capability set query request to the second terminal according to the IP address of the second terminal, and the second terminal sends the capability set of the second terminal to the first terminal.
  • the first terminal determines an intersection of the capability set of the first terminal and the capability set of the second terminal.
  • the method may further include: the first terminal sends a parameter query request of the SDP to the second terminal according to the IP address of the second terminal, and the second terminal sends the parameter of the SDP supported by the second terminal to the first terminal. .
  • the first terminal determines an intersection of parameters of the SDP supported by the first terminal and parameters of the SDP supported by the second terminal.
  • the method further includes: the first terminal according to the intersection of the capability set of the first terminal and the second terminal capability set, and the parameter of the SDP supported by the first terminal and the parameter of the SDP supported by the second terminal The intersection of the multimedia data is sent to the second terminal.
  • the method may further include: the second terminal transmitting the multimedia data to the first terminal according to the IP address of the first terminal.
  • the first terminal may perform the steps 408-414 to transfer the multimedia data to the second terminal by using the server.
  • the steps 408-414 reference may be made to the description of the steps 208-214, which are not described herein.
  • the IP address of the second terminal may be a fake IP address.
  • the second terminal is in the internal network, because a firewall with security protection is provided between the internal network and the public network, when the second terminal When the server sends the IP address of the second terminal, the firewall processes the IP address of the second terminal, converts it into a fake IP address, and sends it to the server, so that the first terminal cannot obtain the IP address of the second terminal received from the server.
  • the multimedia data is transmitted to the second terminal.
  • the method for transmitting multimedia data provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, obtains a token from the server, and sends the token to the second terminal, so that the server receives the token from the second terminal. After the first terminal and the second terminal are associated with the token, the IP address of the second terminal is sent to the first terminal, so that the first terminal and the second terminal can be transited through the server, or can be transited through the server. Directly transfer multimedia data. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
  • FIG. 5 is a schematic diagram of communication of another method for transmitting multimedia data according to an embodiment of the present invention.
  • the first terminal has obtained the number of the first terminal, and the second terminal has not obtained the number of the second terminal.
  • the first terminal in the embodiment of the present invention initiates a call service to the third terminal, and the number of the first terminal has been obtained through the server.
  • the first terminal in the embodiment of the present invention once used as the called terminal, and has obtained the number of the first terminal through the server.
  • the operator of the SIM card installed in the first terminal is China Unicom, and China Unicom writes the number of the SIM card in the SIM card.
  • the first terminal can directly access the SIM card.
  • the number of the SIM card is read in the card.
  • the first terminal after installing the SIM card supports 4G.
  • the 4G network server returns the number of the SIM card to the first terminal, so the first terminal can learn the first The number of the terminal.
  • the multimedia data transmission method in this embodiment may also be used. As shown in FIG. 5, this embodiment includes:
  • Step 501 When the first terminal initiates a call to the second terminal, the first terminal sends the number of the first terminal to the server.
  • the method further includes: the first terminal sending the number of the second terminal and/or the IP address of the first terminal to the server.
  • Step 502 The server establishes a correspondence between the number of the first terminal and the first terminal.
  • Step 503 The first terminal sends call signaling to the second terminal, where the call signaling includes the number of the first terminal.
  • Step 504 The second terminal sends the number of the first terminal and the IP address of the second terminal to the server.
  • the server receives the number of the second terminal from the first terminal, and establishes a correspondence between the number of the second terminal and the second terminal.
  • the method may further include: receiving, by the second terminal, the IP address of the first terminal from the server by using the second connection.
  • Step 505 The server sends the IP address of the second terminal to the first terminal according to the number of the first terminal.
  • Step 506 The first terminal sends the multimedia data to the second terminal according to the IP address of the second terminal.
  • step 506 can be referred to step 407 above, and details are not described herein.
  • the method for transmitting multimedia data provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, sends the number of the first terminal to the server and the second terminal, and the server receives the first terminal number and the second from the second terminal. After the IP address of the terminal, the IP address of the second terminal is sent to the first terminal, so that the first terminal and the second terminal can be transited through the server, or the multimedia data can be directly transmitted without transiting through the server. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
  • FIG. 6 is a schematic diagram of communication of a method for multimedia data transmission according to an embodiment of the present invention.
  • the first terminal does not obtain the number of the first terminal, and the second terminal has obtained the number of the second terminal.
  • the multimedia data transmission method in this embodiment may also be used. As shown in FIG. 6, this embodiment includes:
  • Step 601 When the first terminal initiates a call to the second terminal, the first terminal sends the number of the second terminal to the server.
  • the first terminal may send the IP address of the first terminal to the server through the first connection.
  • Step 602 The server establishes a correspondence between the number of the second terminal and the first terminal.
  • Step 603 The first terminal sends call signaling to the second terminal.
  • the number of the first terminal is included in the call signaling.
  • Step 604 The second terminal sends the number of the second terminal and the IP address of the second terminal to the server.
  • the method may further include: the second terminal may receive the IP address of the first terminal from the server by using the second connection.
  • the second terminal sends the number of the first terminal to the server through the second connection.
  • the server receives the number of the second terminal from the first terminal, and establishes a correspondence between the number of the second terminal and the second terminal.
  • Step 605 The server sends the IP address of the second terminal to the first terminal according to the number of the second terminal.
  • Step 606 The first terminal sends the multimedia data to the second terminal according to the IP address of the second terminal.
  • step 606 can be referred to step 607 above, and details are not described herein.
  • the method for transmitting multimedia data provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, sends the number of the second terminal to the server, and the server receives the second terminal number and the IP address of the second terminal from the second terminal. Then, the IP address of the second terminal is sent to the first terminal, so that the first terminal and the second terminal can be transited through the server, or the multimedia data can be directly transmitted without transiting through the server. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
  • FIG. 7 is a schematic diagram of communication of a method for discovering multimedia capabilities according to an embodiment of the present invention.
  • the first terminal and the second terminal involved in the embodiment of the present invention have acquired the number bound to the terminal.
  • this embodiment may include:
  • Step 701 The first terminal sends a first login request message to the server, where the first login request message includes status information of the first terminal.
  • the first terminal establishes a first connection (eg, an HTTP connection) with the server, and sends a first login request message to the server through the first connection.
  • a first connection eg, an HTTP connection
  • the first terminal establishes a heartbeat with the server.
  • the receiving and sending data in the network is implemented by using a pair of sockets (SOCKET, which is used to describe the IP address and port) in the operating system.
  • SOCKET which is used to describe the IP address and port
  • the purpose of creating a heartbeat mechanism is to determine if this socket is available.
  • the heartbeat mechanism is a mechanism in which one end sends a custom structure (heartbeat packet) to the other end, and the other end knows that the socket of the other end is still in use to ensure the validity of the connection. For example, when one end sends a heartbeat packet to the other end and does not receive a reply from the other end within 5 minutes, it can be considered that the other end of the socket is unavailable, that is, the other end has been disconnected at this end.
  • the first login request message includes an identification code of the first terminal and/or a number of the first terminal.
  • Step 702 The second terminal sends a second login request message to the server, where the second login request message includes status information of the second terminal.
  • the second terminal establishes a second connection (eg, an HTTP connection) with the server, and sends a second login request message to the server through the second connection.
  • a second connection eg, an HTTP connection
  • the second login request message includes an identification code of the second terminal and/or a number of the first terminal.
  • the step 702 may be performed before or after the step 701 is performed, which is not limited by the embodiment of the present invention.
  • the first terminal and the second terminal can subscribe to the status information of the other party. For example, the first terminal sends a request for querying the second terminal status information to the server, and the server will The status information of the queried second terminal is sent to the first terminal.
  • the first terminal subscribes to the server for status information of the second terminal, and the server queries the status information of the second terminal, and periodically sends the status information to the first terminal by using a short message or the like.
  • the first terminal logs in to the system application
  • the server automatically queries the status information of the first terminal and the second terminal, and presents the status information to the user of the first terminal by using the system application.
  • the address book in the application is viewed (as shown in FIG. 8(a)), and the multimedia capability information supported by one of the users can be viewed in real time (as shown in FIG. 8(b)
  • the multimedia capability supported by the user, the corresponding button is displayed as a first state, such as white; for a multimedia capability that the user does not support, the corresponding button is displayed as a second state, such as gray.
  • the status information of the terminal includes whether the terminal has the right to receive pictures or voices, whether to support video calls, and the like. It should be noted that the content of the status information and the multimedia capability set may be the same or different. They can all be set according to the user's preferences, and also depend on whether the terminal and the network support the corresponding multimedia capabilities.
  • step 703 the first terminal sends a first login request response message to the server.
  • the second terminal sends a second login request response message to the server.
  • the server may further include: the server establishes a correspondence between the identifier of the first terminal and the first terminal, and a correspondence between the identifier of the second terminal and the second terminal.
  • Step 705 The first terminal sends a push request message to the second terminal, where the message is used to request the server to generate a token and establish a correspondence between the token and the first terminal.
  • the description of step 705 can be referred to the description of step 201 in the foregoing embodiment, and details are not described herein.
  • the capability set carried in the push request message may be the same as or different from the state information of the first terminal in step 701, and may be adjusted according to user settings, terminals, and network status. For example, the status information of the first terminal is displayed to support the video call. When the user replaces the terminal, the terminal cannot support the video call because there is no camera, that is, the capability set of the first terminal does not include supporting the video call.
  • the status information of the first terminal is displayed to support the location sharing.
  • the network status is unstable, the first terminal cannot read the user location information, so the location sharing is not supported, that is, the capability aggregation of the first terminal does not include the support location sharing.
  • Step 706 The server sends a wakeup message to the second terminal, where the message includes a token.
  • the server sends a wake-up message (for example, including a heartbeat packet) to the second terminal according to the heartbeat mechanism to determine whether the server and the second terminal are still in a connected state. If it is still in the connected state, step 707 is performed, and if the connection has been disconnected, steps 202-214 are performed using the method in the embodiment shown in FIG. 2.
  • a wake-up message for example, including a heartbeat packet
  • the wake-up message includes the number of the first terminal.
  • Step 707 The server receives a wakeup response message from the second terminal.
  • Step 708 The server sends a push response message to the first terminal, where the message carries the token.
  • the push response message carries a subsequent pushed identity.
  • the subsequent push identifier is used to indicate that the first terminal does not need to transmit the token in the call signaling sent to the second terminal.
  • Step 709 The first terminal sends call signaling to the second terminal, where the call signaling includes changing the token.
  • the first terminal sends call signaling to the second terminal according to the subsequent push identifier. Since there is no need to transmit a token in call signaling, there is no need to use a UUS cell.
  • the UUS cell is a cell in the signaling of the carrier network. The signaling interaction process can be simplified without using a UUS cell.
  • the implementation of the present invention also includes the steps 710-step 720.
  • the description of the steps 710-720 can be introduced in the embodiment shown in FIG. 2, and is not described here.
  • the server when the first terminal initiates a call to the second terminal, the server generates a token that uniquely identifies the current call according to the number of the second terminal received from the first terminal, and the first The terminal and the second terminal send the token, and associate the first terminal and the second terminal according to the token, thereby implementing the multimedia data transmission of the first terminal and the second terminal to implement the first terminal and the second terminal. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
  • FIG. 9 is a schematic diagram of communication of a method for discovering multimedia capabilities according to an embodiment of the present invention. As shown in FIG. 8, the implementation may include:
  • Step 901 The first terminal sends call signaling to the second terminal, where the call signaling is used to establish a call service and obtain an IP address of the second terminal.
  • the call signaling carries the IP address of the first terminal.
  • Step 902 The first terminal receives an IP address of the second terminal from the second terminal.
  • Step 903 The first terminal sends the multimedia data to the second terminal according to the IP address of the second terminal.
  • the method for discovering multimedia capability provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, acquires the IP address of the second terminal from the second terminal, thereby implementing multimedia data transmission of the first terminal and the second terminal. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
  • FIGS. 1 through 9 The method for multimedia data transmission according to an embodiment of the present invention is described in detail above with reference to FIGS. 1 through 9.
  • a server and a terminal according to an embodiment of the present invention will be described in detail based on FIGS. 10-16.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the server 1000 can include a communication module 1001 and a processing module 1002.
  • Figure 10 only shows a simplified design of the structure of the server.
  • the server structure shown in FIG. 10 does not constitute a limitation to the server, and the server may include more or less components than the illustration 10, for example, the server may further include a storage module for storing corresponding instructions of the communication algorithm. .
  • the processing module 1002 is configured to instruct the communication module 1001 to receive a first message from the first terminal, where the first message is used to instruct the first terminal to request to send multimedia data to the second terminal by using the server, and to indicate that the communication module is from the second
  • the terminal receives the capability set of the second terminal, and sends the capability set of the second terminal to the first terminal; and instructs the communication module to receive the multimedia data from the first terminal, and sends the multimedia data to the second terminal; the multimedia data is based on the first terminal
  • the capability set of the first terminal and the capability set of the second terminal are sent to the second terminal.
  • the first message carries the number of the second terminal; the processing module 1002 is configured to instruct the communication module 1001 to generate a token according to the number of the second terminal after receiving the first message from the first terminal, and establish a token and a first correspondence relationship of the first terminal; and indicating that the communication module 1001 receives the token from the second terminal, and establishes a second correspondence between the token and the second terminal.
  • the processing module 1002 is configured to instruct the communication module 1001 to send the capability set of the second terminal to the first terminal, including: instructing the communication module 1001 to send the capability of the second terminal to the first terminal according to the token and the first correspondence. set.
  • the processing module 1002 is configured to instruct the communication module 1001 to receive multimedia data from the first terminal, and send the multimedia data to the second terminal, including: instructing the communication module 1001 to receive the token and the multimedia data from the first terminal, and The card and the second correspondence send multimedia data to the second terminal.
  • the first message further carries an identifier of the first terminal;
  • the processing module 1002 is configured to indicate the communication module
  • the 1001 After receiving the first message from the first terminal, the 1001 generates a token according to the number and the identification code of the second terminal, and establishes a token, a first correspondence between the identifier of the first terminal and the first terminal, and indicates the communication module 1001. And receiving, by the second terminal, the token and the identifier of the second terminal, and establishing a token, a second terminal, and a second terminal.
  • the processing module 1002 is configured to instruct the communication module 1001 to send the capability set of the second terminal to the first terminal, including: instructing the communication module 1001 to send the second terminal to the first terminal according to the token and the identifier of the first terminal.
  • Ability set instructing the communication module 1001 to send the second terminal to the first terminal according to the token and the identifier of the first terminal.
  • the processing module 1002 is configured to instruct the communication module 1001 to receive multimedia data from the first terminal, and send the multimedia data to the second terminal, including: instructing the communication module 1001 to receive the token and the multimedia data from the first terminal, and The card and the identification code of the second terminal send the multimedia data to the second terminal.
  • the processing module 1002 is configured to instruct the communication module 1001 to instruct the communication module 1001 to send a token to the second terminal according to the first message before receiving the token from the second terminal.
  • the processing module 1002 is configured to instruct the communication module 1001 to receive the capability set of the first terminal from the first terminal and receive the second terminal from the second terminal before receiving the first message from the first terminal.
  • the capability set when the first terminal subscribes to the capability set of the second terminal, instructs the communication module 1001 to send the capability set of the second terminal to the first terminal.
  • the server provided by the embodiment of the present invention may establish a correspondence between the first terminal and the second terminal by generating a token, thereby exchanging multimedia capability information between the first terminal and the second terminal, so that the first terminal and the second terminal Multimedia data transmission between terminals is possible.
  • the server can also serve as a relay server for exchanging multimedia data, and can exchange multimedia capability information and multimedia data between the first terminal and the second terminal.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal 1100 can include a communication module 1101 and a processing module 1102.
  • Figure 11 only shows a simplified design of the structure of the terminal.
  • the terminal structure shown in FIG. 11 does not constitute a limitation to the terminal, and the terminal may include more or less components than the illustration 11, for example, the terminal may further include a storage module for storing instructions corresponding to the communication algorithm. .
  • the processing module 1102 is configured to instruct the communication module 1101 to send a first message to the server, where the first message is used to indicate that the terminal requests to send multimedia data to the second terminal by using the server; and the communication module 1101 is instructed to receive the second terminal from the server. a set of capabilities, and determining an intersection of the capability set of the terminal and the capability set of the second terminal; and the terminal transmitting the multimedia data to the second terminal according to the intersection.
  • the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal, and establish a correspondence between the token and the terminal, where the token is used to uniquely identify the A multimedia session between the terminal and the second terminal.
  • the processing module 1102 is configured to instruct the communication module 1101 to send multimedia data to the server according to the intersection, including: instructing the communication module 1101 to send the multimedia data and the token to the server according to the intersection.
  • the first message further carries an identifier of the terminal, where the first message is further used to instruct the server to generate a token according to the number of the second terminal and the identifier of the terminal, and establish a token, an identifier of the terminal, and The correspondence of the terminal.
  • the processing module 1102 is configured to instruct the communication module 1101 to instruct the communication module 1101 to send a token to the second terminal before receiving the capability set of the second terminal from the server.
  • the processing module 1102 is configured to instruct the communication module 1101 to send the capability set of the terminal to the server before sending the first message to the server; the capability set of the terminal is used when the second terminal subscribes to the terminal When the capability set is set, the server sends the capability set of the terminal to the second terminal.
  • the processing module 1102 is configured to change a state of the multimedia communication identifier of the terminal according to the intersection after determining an intersection of the capability set of the terminal and the capability set of the second terminal.
  • the processing module 1102 is configured to instruct the communication module 1101 to, after sending the first message to the server, instruct the communication module 1101 to receive and save the number of the terminal from the second terminal.
  • the terminal provided by the embodiment of the present invention obtains a token from the server when the call is initiated to the second terminal, and sends the token to the second terminal, so that the server can receive the token from the second terminal, according to the token.
  • the terminal and the second terminal are associated, thereby implementing multimedia capability data transmission of the terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
  • FIG. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal 1200 can include a communication module 1201 and a processing module 1202.
  • Figure 12 only shows a simplified design of the structure of the terminal.
  • the terminal structure shown in FIG. 12 does not constitute a limitation to the terminal, and the terminal may include more or less components than the illustration 12, for example, the terminal may further include a storage module for storing corresponding instructions of the communication algorithm. .
  • the processing module 1202 is configured to instruct the communication module 1201 to send a capability set of the terminal to the server, where the capability set of the terminal is used by the server to send to the first terminal, and the first terminal sends the multimedia data to the terminal; A terminal receives multimedia data.
  • the processing module 1202 is configured to instruct the communication module 1201 to receive the token from the first terminal before transmitting the capability set of the terminal to the server. And the processing module 1202 is configured to instruct the communication module 1201 to send the capability set of the terminal to the server, including: instructing the communication module 1201 to send the capability set and the token of the terminal to the server, where the token is used by the server to establish a correspondence between the token and the terminal. relationship.
  • the processing module 1202 is configured to instruct the communication module 1201 to receive a token from the server before the terminal sends the capability set of the terminal to the server, where the token is used to indicate that the terminal sends the capability set of the terminal to the server.
  • the capability set of the terminal is used, when the first terminal subscribes to the capability set of the terminal, the server sends the capability set of the terminal to the first terminal.
  • the processing module 1202 is further configured to instruct the communication module 1201 to receive and save the number of the terminal from the first terminal.
  • the terminal When the terminal is initiated by the first terminal to the terminal, the terminal provided by the first terminal or the server sends the token to the server, so that the server can associate the first terminal with the token according to the token.
  • the terminal further implements multimedia capability data transmission of the first terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
  • FIG. 13 is a schematic structural diagram of another server according to an embodiment of the present invention.
  • the server The 1300 includes components such as a memory 1301, a processor 1302, and a wireless communication interface 1303.
  • the memory 1301 can be used to store program code and data of the server.
  • the processor 1302 may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), and a field programmable gate array. (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the wireless communication interface is a general term and can include one or more interfaces, and supports communication interaction between network elements such as a terminal and a server, and can be used for sending and receiving messages between network elements such as terminals and servers. It will be understood by those skilled in the art that the server structure illustrated in FIG. 13 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
  • the server can also include a bus 1304.
  • the wireless communication interface 1303, the processor 1302, and the memory 1301 may be connected to each other through a bus 1304.
  • the bus 1304 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture). Referred to as EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus 1304 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 13, but it does not mean that there is only one bus or one type of bus.
  • a memory 1301 is configured to store program instructions
  • a processor 1302 is configured to: according to the program instructions stored in the memory 1301, obtain the first message, where the first message is used to indicate the first Transmitting, by the server, the multimedia data to the second terminal by using the server; acquiring the capability set of the second terminal from the second terminal, and transmitting the capability set of the second terminal to the first terminal; and acquiring the multimedia data from the first terminal, and The second terminal sends the multimedia data; the multimedia data is sent by the first terminal to the second terminal based on the capability set of the first terminal and the capability set of the second terminal.
  • the first message carries the number of the second terminal; the processor 1302 is further configured to: according to the program instruction stored in the memory 1301, perform the following operations: after acquiring the first message from the first terminal, according to the number of the second terminal Generating a token, and establishing a first correspondence between the token and the first terminal; and acquiring a token from the second terminal, and establishing a second correspondence between the token and the second terminal.
  • the processor 1302 is configured to: according to the program instructions stored in the memory 1301, control the wireless communication interface 1303 to send the capability set of the second terminal to the first terminal, including: controlling the wireless communication interface 1303 according to the token and The first correspondence sends the capability set of the second terminal to the first terminal.
  • the processor 1302 is configured to: according to the program instructions stored in the memory 1301, acquire the multimedia data from the first terminal, and send the multimedia data to the second terminal, including: acquiring the token and the multimedia from the first terminal Data, and transmitting multimedia data to the second terminal according to the token and the second correspondence.
  • the server according to claim 27, wherein the processor 1302 is configured to perform the following operations according to the program instructions stored in the memory 1301: after acquiring the first message from the first terminal, according to the number of the second terminal And identifying the code, generating a token, and establishing a token, a first correspondence between the identifier of the first terminal and the first terminal; and acquiring the token and the identifier of the second terminal from the second terminal, and establishing a token, a second correspondence between the identifier of the second terminal and the second terminal.
  • the processor 1302 is configured to perform the following operations according to the program instructions stored in the memory 1301:
  • the wireless communication interface 1303 sends the capability set of the second terminal to the first terminal, including: controlling the wireless communication interface 1303 to send the capability set of the second terminal to the first terminal according to the token and the identification code of the first terminal.
  • the processor 1302 is configured to: according to the program instructions stored in the memory 1301, acquire the multimedia data from the first terminal, and send the multimedia data to the second terminal, including: acquiring the token and the multimedia from the first terminal Data, and transmitting multimedia data to the second terminal according to the token and the identification code of the second terminal.
  • the processor 1302 is configured to perform, according to the program instruction stored in the memory 1301, the control wireless communication interface 1303 to send the token to the second terminal according to the first message before acquiring the token from the second terminal.
  • the processor 1302 is configured to: according to the program instruction stored in the memory 1301, acquire the capability set of the first terminal from the first terminal, and obtain the first terminal from the second terminal before acquiring the first message from the first terminal Obtaining a capability set of the second terminal; and controlling the wireless communication interface 1303 to send the capability set of the second terminal to the first terminal when the first terminal subscribes to the capability set of the second terminal.
  • the server provided by the embodiment of the present invention may establish a correspondence between the first terminal and the second terminal by generating a token, thereby exchanging multimedia capability information between the first terminal and the second terminal, so that the first terminal and the second terminal Multimedia data transmission between terminals is possible.
  • the server can also serve as a relay server for exchanging multimedia data, and can exchange multimedia capability information and multimedia data between the first terminal and the second terminal.
  • FIG. 14 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the terminal includes: a radio frequency (RF) circuit 1410, a memory 1420, an input unit 1430, a display unit 1440, a processor 1450, a wireless local area network (WLAN) module 1460, and a power supply 1470. And components such as the Bluetooth module 1480.
  • RF radio frequency
  • the terminal structure shown in FIG. 14 does not constitute a limitation of the terminal, and may include more or less components than those illustrated, or combine some components, or different component arrangements.
  • the RF circuit 1410 can be used to send and receive information, for example, to connect to a mobile broadband.
  • RF circuit 1410 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 1410 can also forward mobile bandwidth traffic to WLAN module 1460 to forward mobile bandwidth traffic to other terminals via WLAN module 1460.
  • wireless communication can adopt any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code division multiple access (Code).
  • CDMA Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 1420 can be used to store program instructions, and the processor 1450 causes the terminal to execute the above-described method of multimedia data transmission as shown in FIGS. 2-9 by running program instructions stored in the memory 1420.
  • the memory 1420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program or the like required to implement the above method of multimedia data transmission.
  • the storage data area can store list information of the terminal and data generated by the terminal when the method of transmitting the multimedia data described above is executed.
  • the memory 1420 may include a volatile memory, such as a random-access memory (RAM); the memory 1420 may also include a non-volatile memory, such as only Read memory (read-only memory, ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD).
  • RAM random-access memory
  • ROM Read memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the memory 1420 may also include a combination of the above types of memories.
  • the input unit 1430 can be configured to receive numeric or character information input by the user, including an WLAN hotspot command, an instruction to select a terminal sharing the WLAN hotspot, and the like.
  • the input unit 1430 may include a touch panel 1431 and other input devices 1432.
  • the touch panel 1431 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1431 or near the touch panel 1431. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 631 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1450 is provided and can receive commands from the processor 1450 and execute them.
  • the input unit 1430 can implement the touch panel 1431 by using various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1430 may also include other input devices 1432.
  • other input devices 1432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1440 can be used to display information input by the user or information provided to the user as well as various menus of the terminal.
  • the display unit 1440 can include a display screen 1441.
  • the display screen 1441 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1431 may cover the display screen 1441. When the touch panel 1431 detects a touch operation thereon or nearby, the touch panel 1431 transmits to the processor 1450 to determine the type of the touch event, and then the processor 1450 according to the touch event. The type provides a corresponding visual output on display 1441.
  • the touch panel 1431 and the display screen 1441 are used as two independent components to implement the input and input functions of the terminal, in some embodiments, the touch panel 1431 may be integrated with the display 1441. Realize the input and output functions of the terminal.
  • the processor 1450 is the control center of the terminal, which connects various portions of the entire terminal using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1420, and invoking data stored in the memory 1420, The method of multimedia data transmission shown in Figures 2-8.
  • the processor 1450 can include one or more processing units.
  • the processor 1450 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the above described modem processor may also not be integrated into the processor 1450.
  • the WLAN module 1460 can be used to assist users in sending and receiving emails, browsing web pages, and accessing streaming media, etc., which provides users with wireless broadband WLAN Internet access.
  • the WLAN is a short-range wireless transmission technology.
  • the terminal can access the WLAN hotspot through the WLAN module 1460.
  • the WLAN hotspot can be enabled by the WLAN module 1460 to forward the mobile bandwidth service to other terminals.
  • the WLAN module 1460 can also perform Wi-Fi broadcasts and scans to enable wireless communication with other nearby terminals.
  • the terminal also includes a power supply 1470 (such as a battery) for powering various components.
  • a power supply can be logically coupled to the processor 1450 through a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the Bluetooth module 1470 can be a Bluetooth Low Energy (BLE) device, a traditional Bluetooth device, or a dual-mode Bluetooth device supporting legacy Bluetooth and BLE. Bluetooth module 1470 and other terminals The Bluetooth module establishes a BLE or classic Bluetooth connection, and the Bluetooth module 1470 can also perform BR or BLE broadcast and scanning to enable wireless communication with other surrounding terminals.
  • BLE Bluetooth Low Energy
  • the Bluetooth module establishes a BLE or classic Bluetooth connection, and the Bluetooth module 1470 can also perform BR or BLE broadcast and scanning to enable wireless communication with other surrounding terminals.
  • the terminal may further include a camera, a speaker, etc., and details are not described herein again.
  • RF circuit 1410, Bluetooth module 1480, and WLAN module 1460 can be collectively referred to as a wireless communication interface.
  • the wireless communication interface supports communication interaction between the network elements such as the terminal and the server, and can be used for sending and receiving messages between the network elements such as the terminal and the server.
  • the terminal includes a processor 1450, a memory 1420, and a wireless communication interface.
  • the memory 1420 is configured to store program instructions.
  • the processor 1450 is configured to: according to the program instructions stored in the memory 1420, perform the following operations: controlling the wireless communication interface to send a first message to the server, where the first message is used to indicate that the terminal requests to go through the server
  • the second terminal transmits the multimedia data; and acquires a capability set of the second terminal from the server, and determines an intersection of the capability set of the terminal and the capability set of the second terminal; and controls the wireless communication interface to send the multimedia data to the second terminal according to the intersection.
  • the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal, and establish a correspondence between the token and the terminal, where the token is used to uniquely identify the terminal and A multimedia session between the second terminals.
  • the processor 1450 is configured to: according to the program instructions stored in the memory 1420, control the wireless communication interface to send the multimedia data to the server according to the intersection, including: controlling the wireless communication interface to send the multimedia data and the token to the server according to the intersection .
  • the first message further carries an identifier of the terminal, where the first message is further used to instruct the server to generate a token according to the number of the second terminal and the identifier of the terminal, and establish a correspondence between the token, the identifier of the terminal, and the terminal. relationship.
  • the processor 1450 is configured to: according to the program instructions stored in the memory 1420, control the wireless communication interface to send the token to the second terminal before acquiring the capability set of the second terminal from the server.
  • the processor 1450 is configured to: according to the program instructions stored in the memory 1420, control the wireless communication interface to send the capability set of the terminal to the server before controlling the wireless communication interface to send the first message to the server; the capability of the terminal The set is used when the second terminal subscribes to the capability set of the terminal, and the server sends the capability set of the terminal to the second terminal.
  • the processor 1450 is configured to perform, according to the program instructions stored in the memory 1420, after changing the intersection of the capability set of the terminal and the capability set of the second terminal, changing the state of the multimedia communication identifier of the terminal according to the intersection.
  • the processor 1450 is configured to: according to the program instructions stored in the memory 1420, after the control wireless communication interface sends the first message to the server, acquire and save the number of the terminal from the second terminal.
  • the terminal provided by the embodiment of the present invention obtains a token from the server when the call is initiated to the second terminal, and sends the token to the second terminal, so that the server can receive the token from the second terminal, according to the token.
  • the terminal and the second terminal are associated, thereby implementing multimedia capability data transmission of the terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
  • FIG. 15 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the terminal includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a processor 1550, a wireless local area network (WLAN) module 1560, and a power supply 1570. And components such as the Bluetooth module 1580.
  • RF radio frequency
  • the terminal structure shown in FIG. 15 does not constitute a pair.
  • the definition of the terminal may include more or fewer components than illustrated, or some components may be combined, or different component arrangements.
  • the RF circuit 1510 can be used to send and receive information, for example, to connect to a mobile broadband.
  • RF circuit 1510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the RF circuit 1510 can also forward the mobile bandwidth traffic to the WLAN module 1560 to forward the mobile bandwidth traffic to other terminals through the WLAN module 1560.
  • wireless communication can adopt any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code division multiple access (Code).
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • Code division multiple access Code division multiple access
  • CDMA Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 1520 can be used to store program instructions, and the processor 1550 causes the terminal to execute the above-described method of multimedia data transmission as shown in FIGS. 2-9 by running program instructions stored in the memory 1520.
  • the memory 1520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program and the like required to implement the above method of multimedia data transmission.
  • the storage data area can store list information of the terminal and data generated by the terminal when the method of transmitting the multimedia data described above is executed.
  • the memory 1520 may include a volatile memory such as a random-access memory (RAM); the memory 1520 may also include a non-volatile memory, such as only Read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD).
  • RAM random-access memory
  • ROM Read-only memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the memory 1520 may also include a combination of the above types of memories.
  • the input unit 1530 can be configured to receive numeric or character information input by the user, including an WLAN hotspot command, an instruction to select a terminal sharing the WLAN hotspot, and the like.
  • the input unit 1530 may include a touch panel 1531 and other input devices 1532.
  • the touch panel 1531 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1531 or near the touch panel 1531. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 631 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1550 is provided and can receive commands from the processor 1550 and execute them.
  • the input unit 1530 can implement the touch panel 1531 by using various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1530 may also include other input devices 1532.
  • other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1540 can be used to display information input by the user or information provided to the user as well as various menus of the terminal.
  • the display unit 1540 can include a display screen 1541.
  • the display screen 1541 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1531 can cover the display screen 1541. When the touch panel 1531 detects a touch operation thereon or nearby, the touch panel 1531 transmits to the processor 1550 to determine the type of the touch event, and then the processor 1550 according to the touch event. The type provides a corresponding visual output on display screen 1541.
  • the touch panel 1531 The input and input functions of the terminal are implemented as two separate components with the display screen 1541, but in some embodiments, the touch panel 1531 can be integrated with the display screen 1541 to implement input and output functions of the terminal.
  • the processor 1550 is a control center of the terminal that connects various portions of the entire terminal using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1520, and invoking data stored in the memory 1520, The method of multimedia data transmission shown in Figures 2-8.
  • the processor 1550 can include one or more processing units.
  • the processor 1550 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the above described modem processor may also not be integrated into the processor 1550.
  • the WLAN module 1560 can be used to assist users in sending and receiving emails, browsing web pages, and accessing streaming media, etc., which provides users with wireless broadband WLAN Internet access.
  • the WLAN is a short-range wireless transmission technology.
  • the terminal can access the WLAN hotspot through the WLAN module 1560.
  • the WLAN hotspot can be enabled by the WLAN module 1560 to forward the mobile bandwidth service to other terminals.
  • the WLAN module 1560 can also perform Wi-Fi broadcast and scanning to enable wireless communication with other nearby terminals.
  • the terminal also includes a power supply 1570 (such as a battery) for powering various components.
  • a power supply 1570 (such as a battery) for powering various components.
  • the power supply can be logically coupled to the processor 1550 through a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the Bluetooth module 1570 can be a Bluetooth Low Energy (BLE) device, a traditional Bluetooth device, or a dual-mode Bluetooth device supporting legacy Bluetooth and BLE.
  • BLE Bluetooth Low Energy
  • the Bluetooth module 1570 establishes a BLE or classic Bluetooth connection with the Bluetooth modules of other terminals, and the Bluetooth module 1570 can also perform BR or BLE broadcast and scanning to enable wireless communication with other surrounding terminals.
  • the terminal may further include a camera, a speaker, etc., and details are not described herein again.
  • RF circuit 1510, Bluetooth module 1580, and WLAN module 1560 may be collectively referred to as a wireless communication interface.
  • the wireless communication interface supports communication interaction between the network elements such as the terminal and the server, and can be used for sending and receiving messages between the network elements such as the terminal and the server.
  • the terminal includes a processor 1550, a memory 1520, and a wireless communication interface.
  • the memory 1520 is configured to store program instructions.
  • the processor 1550 is configured to: according to the program instructions stored in the memory 1520, perform the following operations: control a wireless communication interface to send a capability set of the terminal to the server, where the capability set of the terminal is used by the server to send to the first And the terminal, and the first terminal sends the multimedia data to the terminal; and acquires the multimedia data from the first terminal.
  • the processor 1550 is configured to: according to the program instructions stored in the memory 1520, acquire a token from the first terminal before controlling the wireless communication interface to send the capability set of the terminal to the server; and control the wireless communication interface to
  • the capability of the server to send the terminal includes: the terminal sends the capability set and the token of the terminal to the server, and the token is used by the server to establish a correspondence between the token and the terminal.
  • the processor 1550 is configured to: according to the program instructions stored in the memory 1520, acquire a token from the server, where the token is used to control the terminal to send the capability set of the terminal to the server.
  • the capability set of the terminal is used, when the first terminal subscribes to the capability set of the terminal, the server sends the capability set of the terminal to the first terminal.
  • the processor 1550 is configured to perform the following operations according to the program instructions stored in the memory 1520: acquiring and saving the number of the terminal from the first terminal.
  • the terminal provided by the embodiment of the present invention, when the first terminal initiates a call to the terminal, from the first terminal or the server After receiving the token, the token is sent to the server, so that the server can associate the first terminal with the terminal according to the token, thereby implementing multimedia capability data transmission of the first terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

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

Abstract

Provided by the embodiments of the present invention are a method for transmitting multimedia data, a server and a terminal. The method comprises: a server receives a first message from a first terminal, the message being used to indicate that the first terminal requests to transmit multimedia data to a second terminal by means of the server; the server receives a capability set of the second terminal from the second terminal and transmits the capability set of the second terminal to the first terminal; the server receives multimedia data from the first terminal and transmits the multimedia data to the second terminal; and the first terminal sends the multimedia data to the second terminal on the basis of a capability set of the first terminal and the capability set of the second terminal. The capability sets of the first terminal and the second terminal are exchanged by means of the server so as to transmit multimedia data between the first terminal and the second terminal.

Description

多媒体数据传输的方法、服务器和终端Method, server and terminal for multimedia data transmission
本申请要求于2017年1月16日提交中国国家知识产权局专利局、申请号为201710032663.5、发明名称为“一种多媒体能力发现的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on January 16, 2017 by the Patent Office of the State Intellectual Property Office of China, application number 201710032663.5, and the invention titled "Method and Equipment for Discovering Multimedia Capabilities". The citations are incorporated herein by reference.
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种多媒体数据传输的方法、服务器和终端。The present invention relates to the field of communications technologies, and in particular, to a method, a server, and a terminal for multimedia data transmission.
背景技术Background technique
随着通信技术的发展,人们在使用终端设备时,不仅仅满足于进行语音通话或者发送文字信息。同时,对多媒体通信的需求越来越大。上述终端设备包括手机、会议电话机、可穿戴设备等支持语音通话的设备。多媒体通信包括图片、视频等形式的信息传输。With the development of communication technologies, people are not only satisfied with making voice calls or sending text messages when using terminal devices. At the same time, the demand for multimedia communication is growing. The terminal device includes a device supporting a voice call, such as a mobile phone, a conference phone, and a wearable device. Multimedia communication includes information transmission in the form of pictures, videos, and the like.
目前,终端设备之间通常需要通过社交平台来进行多媒体通信,而通过社交平台的方式涉及到社交平台的注册以及添加好友等操作。一方面,这些操作比较繁琐,需要耗费一定的时间。另一方面,因需要询问对方社交账号,存在发送错误的社交账号,导致多媒体通信失败的情况。At present, multimedia devices are usually required to communicate through multimedia platforms, and the way through social platforms involves registration of social platforms and operations such as adding friends. On the one hand, these operations are cumbersome and take a certain amount of time. On the other hand, since it is necessary to ask the other party's social account, there is a case where the wrong social account is transmitted, resulting in failure of the multimedia communication.
发明内容Summary of the invention
本发明实施例提供了一种多媒体数据传输的方法、服务器和终端,以解决现有技术中无法在通话过程中建立多媒体连接的问题。The embodiment of the invention provides a method, a server and a terminal for transmitting multimedia data, so as to solve the problem that the multimedia connection cannot be established during the call in the prior art.
第一方面,本发明实施例提供一种多媒体数据传输的方法。该方法包括:服务器从第一终端接收第一消息,第一消息用于指示第一终端请求通过服务器向第二终端发送多媒体数据;服务器从第二终端接收第二终端的能力集,并向第一终端发送第二终端的能力集;服务器从第一终端接收多媒体数据,并向第二终端发送多媒体数据;多媒体数据由第一终端基于第一终端的能力集和第二终端的能力集发送至第二终端。In a first aspect, an embodiment of the present invention provides a method for multimedia data transmission. The method includes: the server receives a first message from the first terminal, where the first message is used to instruct the first terminal to request to send multimedia data to the second terminal by using the server; the server receives the capability set of the second terminal from the second terminal, and the a terminal transmits a capability set of the second terminal; the server receives the multimedia data from the first terminal, and sends the multimedia data to the second terminal; the multimedia data is sent by the first terminal based on the capability set of the first terminal and the capability set of the second terminal to The second terminal.
本发明实施例提供的一种多媒体数据传输的方法,通过服务器交换第一终端和第二终端之间的能力集,使第一终端能够在向第二终端发起呼叫的过程中,与第二终端进行多媒体数据传输。A method for transmitting multimedia data according to an embodiment of the present invention, the server exchanges a capability set between the first terminal and the second terminal, so that the first terminal can initiate a call to the second terminal, and the second terminal Perform multimedia data transmission.
在一个可能的实施例中,第一消息携带第二终端的号码;在服务器从第一终端接收第一消息之后,该方法还包括:服务器根据第二终端的号码,生成令牌,并建立令牌与第一终端的第一对应关系;服务器从第二终端接收令牌,并建立令牌与第二终端的第二对应关系。In a possible embodiment, the first message carries the number of the second terminal; after the server receives the first message from the first terminal, the method further includes: the server generates a token according to the number of the second terminal, and establishes a command a first correspondence between the card and the first terminal; the server receives the token from the second terminal, and establishes a second correspondence between the token and the second terminal.
在一个可能的实施例中,服务器向第一终端发送第二终端的能力集,包括:服务器根据令牌和第一对应关系,向第一终端发送第二终端的能力集。In a possible embodiment, the server sends the capability set of the second terminal to the first terminal, where the server sends the capability set of the second terminal to the first terminal according to the token and the first correspondence.
在一个可能的实施例中,服务器从第一终端接收多媒体数据,并向第二终端发送多媒体数据,包括:服务器从第一终端接收令牌和多媒体数据,并根据令牌和第二对应关系向第二终端发送多媒体数据。 In a possible embodiment, the server receives the multimedia data from the first terminal, and sends the multimedia data to the second terminal, including: the server receives the token and the multimedia data from the first terminal, and according to the token and the second correspondence The second terminal transmits the multimedia data.
在一个可能的实施例中,第一消息还携带第一终端的识别码;在服务器从第一终端接收第一消息之后,该方法还包括:服务器根据第二终端的号码和识别码,生成令牌,并建立令牌、第一终端的识别码与第一终端的第一对应关系;服务器从第二终端接收令牌和第二终端的识别码,并建立令牌、第二终端的识别码与第二终端的第二对应关系。In a possible embodiment, the first message further carries the identifier of the first terminal; after the server receives the first message from the first terminal, the method further includes: the server generating a command according to the number and the identifier of the second terminal a card, and establishing a token, a first correspondence between the identifier of the first terminal and the first terminal; the server receives the token and the identifier of the second terminal from the second terminal, and establishes a token, an identifier of the second terminal a second correspondence with the second terminal.
在一个可能的实施例中,服务器向第一终端发送第二终端的能力集,包括:服务器根据令牌和第一终端的识别码,向第一终端发送第二终端的能力集。In a possible embodiment, the server sends the capability set of the second terminal to the first terminal, where the server sends the capability set of the second terminal to the first terminal according to the token and the identifier of the first terminal.
在一个可能的实施例中,服务器从第一终端接收多媒体数据,并向第二终端发送多媒体数据,包括:服务器从第一终端接收令牌和多媒体数据,并根据令牌和第二终端的识别码,向第二终端发送多媒体数据。In a possible embodiment, the server receives the multimedia data from the first terminal, and sends the multimedia data to the second terminal, including: the server receives the token and the multimedia data from the first terminal, and identifies the token according to the second terminal. The code transmits the multimedia data to the second terminal.
在一个可能的实施例中,在服务器从第二终端接收令牌之前,该方法还包括:服务器根据第一消息,向第二终端发送令牌。In a possible embodiment, before the server receives the token from the second terminal, the method further includes: the server sending the token to the second terminal according to the first message.
在一个可能的实施例中,在服务器从第一终端接收第一消息之前,该方法还包括:服务器从第一终端接收第一终端的能力集,并从第二终端接收第二终端的能力集;当第一终端订阅第二终端的能力集时,服务器向第一终端发送第二终端的能力集。In a possible embodiment, before the server receives the first message from the first terminal, the method further includes: the server receiving the capability set of the first terminal from the first terminal, and receiving the capability set of the second terminal from the second terminal. When the first terminal subscribes to the capability set of the second terminal, the server sends the capability set of the second terminal to the first terminal.
第二方面,本发明实施例提供一种多媒体数据传输的方法。该方法包括:第一终端向服务器发送第一消息,第一消息用于指示第一终端请求通过服务器向第二终端发送多媒体数据;第一终端从服务器接收第二终端的能力集,并确定第一终端的能力集和第二终端的能力集的交集;第一终端根据交集向第二终端发送多媒体数据。In a second aspect, an embodiment of the present invention provides a method for multimedia data transmission. The method includes: the first terminal sends a first message to the server, where the first message is used to instruct the first terminal to request to send multimedia data to the second terminal by using the server; the first terminal receives the capability set of the second terminal from the server, and determines An intersection of a capability set of a terminal and a capability set of the second terminal; the first terminal transmits the multimedia data to the second terminal according to the intersection.
在一个可能的实施例中,第一消息携带第二终端的号码,第一消息还用于指示服务器根据第二终端的号码生成令牌,并建立令牌与第一终端的对应关系,令牌用于唯一标识第一终端和第二终端之间的多媒体会话。In a possible embodiment, the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal, and establish a correspondence between the token and the first terminal, the token And a device for uniquely identifying a multimedia session between the first terminal and the second terminal.
在一个可能的实施例中,第一终端根据交集向服务器发送多媒体数据,包括:第一终端根据交集向服务器发送多媒体数据和令牌。In a possible embodiment, the first terminal sends the multimedia data to the server according to the intersection, and the first terminal sends the multimedia data and the token to the server according to the intersection.
在一个可能的实施例中,第一消息还携带第一终端的识别码,第一消息还用于指示服务器根据第二终端的号码和第一终端的识别码生成令牌,并建立令牌、第一终端的识别码与第一终端的对应关系。In a possible embodiment, the first message further carries the identifier of the first terminal, where the first message is further used to instruct the server to generate a token according to the number of the second terminal and the identifier of the first terminal, and establish a token, Correspondence between the identification code of the first terminal and the first terminal.
在一个可能的实施例中,在第一终端从服务器接收第二终端的能力集之前,该方法还包括:第一终端向第二终端发送令牌。In a possible embodiment, before the first terminal receives the capability set of the second terminal from the server, the method further includes: the first terminal sending the token to the second terminal.
在一个可能的实施例中,在第一终端向服务器发送第一消息之前,该方法还包括:第一终端向服务器发送第一终端的能力集;第一终端的能力集用于,当第二终端订阅第一终端的能力集时,服务器向第二终端发送第一终端的能力集。In a possible embodiment, before the first terminal sends the first message to the server, the method further includes: the first terminal sends the capability set of the first terminal to the server; the capability set of the first terminal is used, when the second When the terminal subscribes to the capability set of the first terminal, the server sends the capability set of the first terminal to the second terminal.
在一个可能的实施例中,在第一终端确定第一终端的能力集和第二终端的能力集的交集之后,该方法还包括:第一终端根据交集改变第一终端的多媒体通信标识的状态。In a possible embodiment, after the first terminal determines the intersection of the capability set of the first terminal and the capability set of the second terminal, the method further includes: changing, by the first terminal, the state of the multimedia communication identifier of the first terminal according to the intersection .
在一个可能的实施例中,在第一终端向服务器发送第一消息之后,该方法还包括:第一终端从第二终端接收并保存第一终端的号码。In a possible embodiment, after the first terminal sends the first message to the server, the method further includes: the first terminal receiving and saving the number of the first terminal from the second terminal.
第三方面,本发明实施例提供一种多媒体数据传输的方法。该方法包括:第二终端向服务器发送第二终端的能力集,第二终端的能力集用于服务器发送给第一终端, 以及第一终端向第二终端发送多媒体数据;第二终端从第一终端接收多媒体数据。In a third aspect, an embodiment of the present invention provides a method for multimedia data transmission. The method includes: the second terminal sends a capability set of the second terminal to the server, where the capability set of the second terminal is used by the server to send to the first terminal, And the first terminal sends the multimedia data to the second terminal; the second terminal receives the multimedia data from the first terminal.
在一个可能的实施例中,在第二终端向服务器发送第二终端的能力集之前,该方法还包括:第二终端从第一终端接收令牌;第二终端向服务器发送第二终端的能力集,包括:第二终端向服务器发送第二终端的能力集和令牌,令牌用于服务器建立令牌与第二终端的对应关系。In a possible embodiment, before the second terminal sends the capability set of the second terminal to the server, the method further includes: the second terminal receives the token from the first terminal; and the second terminal sends the capability of the second terminal to the server. The set includes: the second terminal sends a capability set and a token of the second terminal to the server, where the token is used to establish a correspondence between the server and the second terminal.
在一个可能的实施例中,在第二终端向服务器发送第二终端的能力集之前,该方法还包括:第二终端从服务器接收令牌,令牌用于指示第二终端向服务器发送第二终端的能力集。In a possible embodiment, before the second terminal sends the capability set of the second terminal to the server, the method further includes: the second terminal receives the token from the server, and the token is used to instruct the second terminal to send the second to the server. The set of capabilities of the terminal.
在一个可能的实施例中,第二终端的能力集用于,当第一终端订阅第二终端的能力集时,服务器向第一终端发送第二终端的能力集。In a possible embodiment, the capability set of the second terminal is used, when the first terminal subscribes to the capability set of the second terminal, the server sends the capability set of the second terminal to the first terminal.
在一个可能的实施例中,该方法还包括:第二终端从第一终端接收并保存第二终端的号码。In a possible embodiment, the method further includes: the second terminal receiving and saving the number of the second terminal from the first terminal.
第四方面,本发明实施例提供一种多媒体数据传输的方法。该方法包括:第一服务器从第一终端接收第一消息,该消息用于指示第一终端请求通过第二服务器向第二终端发送多媒体数据。服务器从第二终端接收第二终端的能力集,并向所述第一终端发送所述第二终端的能力集。第二服务器从第一终端接收所述多媒体数据,并向第二终端发送多媒体数据,所述多媒体数据由所述第一终端基于第一终端的能力集和第二终端的能力集发送至第二终端。与上述第一方面不同的是,在此种方法中,第一服务器仅作为第一终端和第二终端之间中转多媒体能力信息的服务器,而第二服务器仅作为第一终端和第二终端之间中转多媒体数据的服务器。In a fourth aspect, an embodiment of the present invention provides a method for multimedia data transmission. The method includes the first server receiving a first message from the first terminal, the message being used to instruct the first terminal to request to send the multimedia data to the second terminal by using the second server. The server receives the capability set of the second terminal from the second terminal, and sends the capability set of the second terminal to the first terminal. The second server receives the multimedia data from the first terminal, and sends the multimedia data to the second terminal, where the multimedia data is sent by the first terminal to the second based on the capability set of the first terminal and the capability set of the second terminal terminal. Different from the above first aspect, in the method, the first server serves only as a server for transferring multimedia capability information between the first terminal and the second terminal, and the second server is only used as the first terminal and the second terminal. A server that relays multimedia data.
第五方面,本发明实施例提供一种服务器。该终端可以实现上述第一至第四方面的多媒体数据传输方法中服务器所执行的功能,功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。In a fifth aspect, an embodiment of the present invention provides a server. The terminal can implement the functions performed by the server in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
在一个可能的设计中,该服务器包括:通信模块和处理模块。处理模块用于指示通信模块在从第一终端接收第一消息,第一消息用于指示第一终端请求通过服务器向第二终端发送多媒体数据;并指示通信模块从第二终端接收第二终端的能力集,并向第一终端发送第二终端的能力集;以及指示通信模块从第一终端接收多媒体数据,并向第二终端发送多媒体数据;多媒体数据由第一终端基于第一终端的能力集和第二终端的能力集发送至第二终端。In one possible design, the server includes: a communication module and a processing module. The processing module is configured to instruct the communication module to receive the first message from the first terminal, where the first message is used to instruct the first terminal to request to send the multimedia data to the second terminal by using the server, and the communication module is instructed to receive the second terminal from the second terminal. a capability set, and sending a capability set of the second terminal to the first terminal; and instructing the communication module to receive the multimedia data from the first terminal and transmitting the multimedia data to the second terminal; the multimedia data is set by the first terminal based on the capability of the first terminal And the capability set of the second terminal is sent to the second terminal.
第六方面,本发明实施例提供一种终端。该终端可以实现上述第一至第四方面的多媒体数据传输方法中第一终端所执行的功能,功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。In a sixth aspect, an embodiment of the present invention provides a terminal. The terminal can implement the functions performed by the first terminal in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
在一个可能的设计中,该终端包括:通信模块和处理模块。处理模块用于指示通信模块向服务器发送第一消息,第一消息用于指示终端请求通过服务器向第二终端发送多媒体数据;并指示通信模块从服务器接收第二终端的能力集,并确定终端的能力集和第二终端的能力集的交集;以及指示通信模块根据交集向第二终端发送多媒体数据。In one possible design, the terminal includes: a communication module and a processing module. The processing module is configured to instruct the communication module to send a first message to the server, where the first message is used to instruct the terminal to request to send the multimedia data to the second terminal by using the server, and instruct the communication module to receive the capability set of the second terminal from the server, and determine the terminal An intersection of the capability set and the capability set of the second terminal; and instructing the communication module to transmit the multimedia data to the second terminal according to the intersection.
第七方面,本发明实施例提供一种终端。该终端可以实现上述第一至第四方面的多媒体数据传输方法中第二终端所执行的功能,功能可以通过硬件实现,也可以通过硬件执行 相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。In a seventh aspect, an embodiment of the present invention provides a terminal. The terminal can implement the functions performed by the second terminal in the multimedia data transmission method of the above first to fourth aspects, and the function can be implemented by hardware or by hardware. The corresponding software implementation. The hardware or software includes one or more modules corresponding to the above functions.
在一个可能的设计中,该终端包括:通信模块和处理模块;处理模块用于指示通信模块向服务器发送终端的能力集,终端的能力集用于服务器发送给第一终端,以及第一终端向终端发送多媒体数据;处理模块还用于指示通信模块从第一终端接收多媒体数据。In a possible design, the terminal includes: a communication module and a processing module; the processing module is configured to instruct the communication module to send a capability set of the terminal to the server, where the capability set of the terminal is used by the server to send to the first terminal, and the first terminal The terminal sends the multimedia data; the processing module is further configured to instruct the communication module to receive the multimedia data from the first terminal.
第八方面,本发明实施例提供一种服务器。该服务器可以实现上述第一至第四方面的多媒体数据传输方法中服务器所执行的功能,功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。In an eighth aspect, an embodiment of the present invention provides a server. The server can implement the functions performed by the server in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
在一个可能的设计中,该服务器包括:处理器、存储器、无线通信接口以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述服务器执行时,使得所述服务器执行以下步骤:从第一终端获取第一消息,第一消息用于指示第一终端请求通过服务器向第二终端发送多媒体数据;以及从第二终端获取第二终端的能力集,并向第一终端发送第二终端的能力集;以及从第一终端获取多媒体数据,并向第二终端发送多媒体数据;多媒体数据由第一终端基于第一终端的能力集和第二终端的能力集发送至第二终端。In one possible design, the server includes: a processor, a memory, a wireless communication interface, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more The computer program includes instructions that, when executed by the server, cause the server to perform the steps of: acquiring a first message from the first terminal, the first message being used to instruct the first terminal to request to send to the second terminal through the server Multimedia data; and acquiring a capability set of the second terminal from the second terminal, and transmitting the capability set of the second terminal to the first terminal; and acquiring multimedia data from the first terminal, and transmitting the multimedia data to the second terminal; The first terminal sends to the second terminal based on the capability set of the first terminal and the capability set of the second terminal.
在一个可能的设计中,第一消息携带第二终端的号码;处理器还用于根据存储器中存储的程序指令执行以下操作:在从第一终端获取第一消息之后,根据第二终端的号码,生成令牌,并建立令牌与第一终端的第一对应关系;以及从第二终端获取令牌,并建立令牌与第二终端的第二对应关系。In a possible design, the first message carries the number of the second terminal; the processor is further configured to: according to the program instruction stored in the memory, perform the following operations: after acquiring the first message from the first terminal, according to the number of the second terminal Generating a token, and establishing a first correspondence between the token and the first terminal; and acquiring a token from the second terminal, and establishing a second correspondence between the token and the second terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:控制无线通信接口向第一终端发送第二终端的能力集,包括:控制无线通信接口根据令牌和第一对应关系,向第一终端发送第二终端的能力集。In one possible design, the processor is configured to: according to the program instructions stored in the memory, to control the wireless communication interface to send the capability set of the second terminal to the first terminal, including: controlling the wireless communication interface according to the token and the first correspondence The relationship sends the capability set of the second terminal to the first terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:从第一终端获取多媒体数据,并向第二终端发送多媒体数据,包括:从第一终端获取令牌和多媒体数据,并根据令牌和第二对应关系向第二终端发送多媒体数据。In a possible design, the processor is configured to: according to the program instructions stored in the memory, acquire the multimedia data from the first terminal, and send the multimedia data to the second terminal, including: acquiring the token and the multimedia data from the first terminal. And transmitting the multimedia data to the second terminal according to the token and the second correspondence.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:在从第一终端获取第一消息之后,根据第二终端的号码和识别码,生成令牌,并建立令牌、第一终端的识别码与第一终端的第一对应关系;以及从第二终端获取令牌和第二终端的识别码,并建立令牌、第二终端的识别码与第二终端的第二对应关系。In a possible design, the processor is configured to: according to the program instructions stored in the memory, after acquiring the first message from the first terminal, generating a token according to the number and the identification code of the second terminal, and establishing a token And a first correspondence between the identifier of the first terminal and the first terminal; and acquiring the token and the identifier of the second terminal from the second terminal, and establishing the token, the identifier of the second terminal, and the second terminal The second correspondence.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:控制无线通信接口向第一终端发送第二终端的能力集,包括:控制无线通信接口根据令牌和第一终端的识别码,向第一终端发送第二终端的能力集。In a possible design, the processor is configured to: according to the program instructions stored in the memory, to control the wireless communication interface to send the capability set of the second terminal to the first terminal, including: controlling the wireless communication interface according to the token and the first terminal The identification code sends the capability set of the second terminal to the first terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:从第一终端获取多媒体数据,并向第二终端发送多媒体数据,包括:从第一终端获取令牌和多媒体数据,并根据令牌和第二终端的识别码,向第二终端发送多媒体数据。In a possible design, the processor is configured to: according to the program instructions stored in the memory, acquire the multimedia data from the first terminal, and send the multimedia data to the second terminal, including: acquiring the token and the multimedia data from the first terminal. And transmitting the multimedia data to the second terminal according to the token and the identification code of the second terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:在从第二终端获取令牌之前,控制无线通信接口根据第一消息,向第二终端发送令牌。In one possible design, the processor is configured to perform the following operations according to the program instructions stored in the memory: before acquiring the token from the second terminal, controlling the wireless communication interface to transmit the token to the second terminal according to the first message.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:在 从第一终端获取第一消息之前,从第一终端获取第一终端的能力集,并从第二终端获取第二终端的能力集;控制无线通信接口当第一终端订阅第二终端的能力集时,向第一终端发送第二终端的能力集。In one possible design, the processor is configured to perform the following operations based on program instructions stored in the memory: Before acquiring the first message from the first terminal, acquiring the capability set of the first terminal from the first terminal, and acquiring the capability set of the second terminal from the second terminal; and controlling the capability set of the wireless terminal by the first terminal to subscribe to the second terminal At the time, the capability set of the second terminal is sent to the first terminal.
第九方面,本发明实施例提供一种终端。该终端可以实现上述第一至第四方面的多媒体数据传输方法中第一终端所执行的功能,功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。In a ninth aspect, an embodiment of the present invention provides a terminal. The terminal can implement the functions performed by the first terminal in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
在一个可能的设计中,该终端包括:处理器、存储器、无线通信接口以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述终端执行时,使得所述终端执行以下步骤:控制无线通信接口向服务器发送第一消息,第一消息用于指示终端请求通过服务器向第二终端发送多媒体数据;并且从服务器获取第二终端的能力集,并确定终端的能力集和第二终端的能力集的交集;以及控制无线通信接口根据交集向第二终端发送多媒体数据。In one possible design, the terminal includes: a processor, a memory, a wireless communication interface, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more The computer program includes instructions that, when executed by the terminal, cause the terminal to perform the steps of: controlling the wireless communication interface to send a first message to the server, the first message being used to instruct the terminal to request to send to the second terminal through the server Multimedia data; and acquiring a capability set of the second terminal from the server, and determining an intersection of the capability set of the terminal and the capability set of the second terminal; and controlling the wireless communication interface to transmit the multimedia data to the second terminal according to the intersection.
在一个可能的设计中,第一消息携带第二终端的号码,第一消息还用于指示服务器根据第二终端的号码生成令牌,并建立令牌与终端的对应关系,令牌用于唯一标识终端和第二终端之间的多媒体会话。In a possible design, the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal, and establish a correspondence between the token and the terminal, where the token is used for unique Identifying a multimedia session between the terminal and the second terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:控制无线通信接口根据交集向服务器发送多媒体数据,包括:控制无线通信接口根据交集向服务器发送多媒体数据和令牌。In one possible design, the processor is configured to: according to the program instructions stored in the memory, to control the wireless communication interface to send the multimedia data to the server according to the intersection, comprising: controlling the wireless communication interface to send the multimedia data and the token to the server according to the intersection.
在一个可能的设计中,第一消息还携带终端的识别码,第一消息还用于指示服务器根据第二终端的号码和终端的识别码生成令牌,并建立令牌、终端的识别码与终端的对应关系。In a possible design, the first message further carries the identifier of the terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal and the identifier of the terminal, and establish a token, an identifier of the terminal, and The correspondence of the terminals.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:在从服务器获取第二终端的能力集之前,控制无线通信接口向第二终端发送令牌。In one possible design, the processor is configured to perform the following operations according to the program instructions stored in the memory: controlling the wireless communication interface to send the token to the second terminal before acquiring the capability set of the second terminal from the server.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:在控制无线通信接口向服务器发送第一消息之前,控制无线通信接口向服务器发送终端的能力集;终端的能力集用于,当第二终端订阅终端的能力集时,服务器向第二终端发送终端的能力集。In one possible design, the processor is configured to: according to the program instructions stored in the memory, control a wireless communication interface to send a capability set of the terminal to the server before controlling the wireless communication interface to send the first message to the server; And when the second terminal subscribes to the capability set of the terminal, the server sends the capability set of the terminal to the second terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:在确定终端的能力集和第二终端的能力集的交集之后,根据交集改变终端的多媒体通信标识的状态。In one possible design, the processor is configured to perform the following operations according to the program instructions stored in the memory: after determining the intersection of the capability set of the terminal and the capability set of the second terminal, changing the state of the multimedia communication identifier of the terminal according to the intersection.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:在控制无线通信接口向服务器发送第一消息之后,从第二终端获取并保存终端的号码。In one possible design, the processor is configured to: according to the program instructions stored in the memory, to acquire and save the number of the terminal from the second terminal after controlling the wireless communication interface to send the first message to the server.
第十方面,本发明实施例提供一种终端。该终端可以实现上述第一至第四方面的多媒体数据传输方法中第二终端所执行的功能,功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。The tenth aspect of the present invention provides a terminal. The terminal can implement the functions performed by the second terminal in the multimedia data transmission method of the first to fourth aspects, and the functions can be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
在一个可能的设计中,该终端包括:处理器、存储器和无线通信接口以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述终端执行时,使得所述终端执行以下 步骤:控制无线通信接口向服务器发送终端的能力集,终端的能力集用于服务器发送给第一终端,以及第一终端向终端发送多媒体数据;以及从第一终端获取多媒体数据。In one possible design, the terminal includes a processor, a memory and a wireless communication interface, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more The computer program includes instructions that, when executed by the terminal, cause the terminal to perform the following Step: Control a wireless communication interface to send a capability set of the terminal to the server, the capability set of the terminal is used by the server to send to the first terminal, and the first terminal sends the multimedia data to the terminal; and the multimedia data is acquired from the first terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:在控制无线通信接口向服务器发送终端的能力集之前,从第一终端获取令牌;以及控制无线通信接口向服务器发送终端的能力集,包括:终端向服务器发送终端的能力集和令牌,令牌用于服务器建立令牌与终端的对应关系。In one possible design, the processor is configured to: according to the program instructions stored in the memory, acquire a token from the first terminal before controlling the wireless communication interface to send the capability set of the terminal to the server; and control the wireless communication interface to the server The capability set of the sending terminal includes: the terminal sends the capability set and the token of the terminal to the server, and the token is used by the server to establish a correspondence between the token and the terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:从服务器获取令牌,令牌用于指示终端向服务器发送终端的能力集。In one possible design, the processor is configured to perform the following operations according to the program instructions stored in the memory: the token is obtained from the server, and the token is used to indicate the capability set of the terminal to send the terminal to the server.
在一个可能的设计中,终端的能力集用于,当第一终端订阅终端的能力集时,服务器向第一终端发送终端的能力集。In a possible design, the capability set of the terminal is used, when the first terminal subscribes to the capability set of the terminal, the server sends the capability set of the terminal to the first terminal.
在一个可能的设计中,处理器用于根据存储器中存储的程序指令执行以下操作:从第一终端获取并保存终端的号码。In one possible design, the processor is operative to perform the following operations based on program instructions stored in the memory: the terminal number is obtained and saved from the first terminal.
本发明实施例提供的一种多媒体数据传输的方法、服务器和终端,通过第一终端向第二终端发起呼叫时,服务器根据第一终端的号码、第二终端的号码或令牌,对第一终端和第二终端进行关联,使第一终端和第二终端可以通过服务器交换多媒体能力,以实现第一终端和第二终端之间多媒体数据的传输。或者,第一终端向第二终端发起呼叫时,第一终端从第二终端获取第二终端的IP地址,进而实现第一终端和第二终端的多媒体数据传输。同时,第一终端和第二终端可以在呼叫过程中和呼叫结束后,直接建立多媒体连接并进行多媒体业务。When the method for the multimedia data transmission, the server, and the terminal provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, the server is first according to the number of the first terminal, the number of the second terminal, or the token. The terminal and the second terminal are associated, so that the first terminal and the second terminal can exchange multimedia capabilities through the server to implement transmission of multimedia data between the first terminal and the second terminal. Or, when the first terminal initiates a call to the second terminal, the first terminal acquires the IP address of the second terminal from the second terminal, thereby implementing multimedia data transmission of the first terminal and the second terminal. At the same time, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
附图说明DRAWINGS
图1为本发明实施例提供的通信***架构示意图;1 is a schematic structural diagram of a communication system according to an embodiment of the present invention;
图2为本发明实施例提供的一种多媒体数据传输的方法的通信示意图;2 is a schematic diagram of communication of a method for transmitting multimedia data according to an embodiment of the present invention;
图3(a)和(b)为本发明实施例提供的第一终端的显示屏变化示意图;3(a) and (b) are schematic diagrams showing changes of a display screen of a first terminal according to an embodiment of the present invention;
图4为本发明实施例提供的另一种多媒体数据传输的方法的通信示意图;4 is a schematic diagram of communication of another method for transmitting multimedia data according to an embodiment of the present invention;
图5为本发明实施例提供的又一种多媒体数据传输的方法的通信示意图;FIG. 5 is a schematic diagram of communication according to still another method for transmitting multimedia data according to an embodiment of the present invention;
图6为本发明实施例提供的再一种多媒体数据传输的方法的通信示意图;FIG. 6 is a schematic diagram of communication of another method for transmitting multimedia data according to an embodiment of the present invention;
图7为本发明实施例提供的还一种多媒体数据传输的方法的通信示意图;FIG. 7 is a schematic diagram of communication of a method for transmitting multimedia data according to an embodiment of the present invention;
图8(a)和(b)为本发明实施例提供的第一终端的显示屏变化示意图;8(a) and (b) are schematic diagrams showing changes of a display screen of a first terminal according to an embodiment of the present invention;
图9为本发明实施例提供的再一种多媒体能力发现的方法的通信示意图;FIG. 9 is a schematic diagram of communication of another method for discovering multimedia capabilities according to an embodiment of the present invention;
图10为本发明实施例提供的一种服务器的结构示意图;FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
图11为本发明实施例提供的一种终端的结构示意图;FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图12为本发明实施例提供的一种终端的结构示意图;FIG. 12 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图13为本发明实施例提供的另一种服务器的结构示意图;FIG. 13 is a schematic structural diagram of another server according to an embodiment of the present disclosure;
图14为本发明实施例提供的另一种终端的结构示意图;FIG. 14 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure;
图15为本发明实施例提供的另一种终端的结构示意图。FIG. 15 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
图1为本发明实施例提供的通信***架构示意图。如图1所示,该通信***包括至少两个终端101和102,可以还包括至少一个服务器110。终端101和终端102可以不同过服务器110而直接进行通信,也可以通过服务器110中转进行通信。服务器110可以仅作为终端101和终端102之间交换多媒体能力的中转服务器,也可以同时作为终端101和终端102之间交换多媒体能力和多媒体数据的中转服务器。同时,服务器110可以为网络或云服务器。图中仅画出了两个终端和一个服务器,实际可以有更多的终端和更多的服务器,本发明实施例对此不作限定。FIG. 1 is a schematic structural diagram of a communication system according to an embodiment of the present invention. As shown in FIG. 1, the communication system includes at least two terminals 101 and 102, and may further include at least one server 110. The terminal 101 and the terminal 102 may directly communicate with each other through the server 110, or may communicate via the server 110. The server 110 may serve only as a relay server for exchanging multimedia capabilities between the terminal 101 and the terminal 102, or as a relay server for exchanging multimedia capabilities and multimedia data between the terminal 101 and the terminal 102. Meanwhile, the server 110 may be a network or a cloud server. Only two terminals and one server are shown in the figure, and there may be more terminals and more servers in the embodiment, which is not limited in the embodiment of the present invention.
本发明实施例中涉及的终端,可以是指向用户提供语音和/或数据连通性的设备。终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(Personal Communication Service,PCS)电话、无绳电话、会话发起协议(Session Initiation Protocol,SIP)话机、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)等设备。The terminal involved in the embodiment of the present invention may be a device that provides voice and/or data connectivity to the user. The terminal may be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, a portable, pocket-sized, handheld, computer-integrated or in-vehicle mobile device that is connected to the wireless device. Network exchange language and / or data. For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (Personal Digital Assistant, PDA) and other equipment.
本发明实施例中涉及的服务器,可以为应用服务器,应用服务器的客户端可以安装在终端上,应用服务器可以为安装有客户端的终端提供数据信息,或者实现终端之间信息的交互。服务器与终端之间的交互信令可以为超文本传输协议(HyperText Transfer Protocol,HTTP)/超级文本标记语言(HyperText Markup Language,HTML)5.0,或会话初始协议(Session Initiation Protocol,SIP)等。The server involved in the embodiment of the present invention may be an application server. The client of the application server may be installed on the terminal, and the application server may provide data information for the terminal where the client is installed, or implement information interaction between the terminals. The interaction signaling between the server and the terminal may be a HyperText Transfer Protocol (HTTP)/HyperText Markup Language (HTML) 5.0, or a Session Initiation Protocol (SIP).
本发明实施例提供的多媒体数据传输的方法、服务器和终端,能够使第一终端和第二终端可以在呼叫过程中和呼叫结束后,通过服务器进行多媒体数据的传输,或者不通过服务器,而直接进行多媒体数据的传输。The method, the server and the terminal for transmitting multimedia data provided by the embodiments of the present invention enable the first terminal and the second terminal to perform multimedia data transmission through the server during the call process and after the call ends, or directly through the server. Perform multimedia data transmission.
图2为本发明实施例提供的一种多媒体数据传输的方法的通信示意图。本发明实施例中涉及第一终端和第二终端,且可以在第一终端和第二终端上安装客户识别模块(Subscriber Identification Module,SIM)、全球用户识别卡(Universal Subscriber Identity Module,USIM)、通用集成电路卡(Universal Integrated Circuit Card,UICC)、嵌入式SIM(eSIM)卡或嵌入式UICC(eUICC)卡等。插卡后的第一终端和第二终端可以支持第二代手机通信技术(2-Generation wireless telephone technology,2G)、第三代移动通信技术(3rd-Generation mobile communication technology,3G)或***移动通信技术(4rd-Generation mobile communication technology,4G),但无法获取与终端绑定的号码。例如,第一终端和第二终端中安装有支持2G或3G的SIM卡。因运营商并未在SIM卡中写入该SIM卡的号码,即移动台国际用户地址号码(Mobile Station International Subscriber Directory Number,MSISDN),所以装入该SIM卡的终端,无法读取SIM卡的号码。需要说明的是,对于第一终端或第二终端,已经获取与终端绑定的号码的情况,也可以采用本实施例提供的多媒体数据传输的方法。如图2所示,该实施例可以包括:FIG. 2 is a schematic diagram of communication of a method for transmitting multimedia data according to an embodiment of the present invention. In the embodiment of the present invention, the first terminal and the second terminal are involved, and a Subscriber Identification Module (SIM), a Universal Subscriber Identity Module (USIM), and a Universal Subscriber Identity Module (USIM) may be installed on the first terminal and the second terminal. Universal Integrated Circuit Card (UICC), embedded SIM (eSIM) card or embedded UICC (eUICC) card. The first terminal and the second terminal after the card can support the second generation mobile telephone communication technology (2G), the third generation mobile communication technology (3G) or the fourth generation 4rd-Generation mobile communication technology (4G), but the number bound to the terminal cannot be obtained. For example, a SIM card supporting 2G or 3G is installed in the first terminal and the second terminal. Since the operator does not write the SIM card number in the SIM card, that is, the Mobile Station International Subscriber Directory Number (MSISDN), the terminal loaded in the SIM card cannot read the SIM card. number. It should be noted that, for the case that the first terminal or the second terminal has obtained the number bound to the terminal, the method for transmitting multimedia data provided by this embodiment may also be used. As shown in FIG. 2, this embodiment may include:
步骤201,第一终端向第二终端发送推送请求消息,该消息用于请求服务器生成令牌 并建立令牌与第一终端的对应关系。Step 201: The first terminal sends a push request message to the second terminal, where the message is used to request the server to generate a token. And establishing a correspondence between the token and the first terminal.
需要说明的是,令牌可以用于唯一标识本次第一终端和第二终端之间的多媒体会话。例如,第一终端与服务器之间,以及第二终端与服务器之间的通信交互都需要携带该令牌,当本次呼叫业务结束后,令牌失效。结束本次呼叫后,第一终端向第二终端再次发起呼叫时,需要向服务器发送推送请求消息,用于请求服务器生成令牌,以唯一标识再次发起的呼叫业务。通过生成令牌唯一标识每次呼叫业务,可以限制第一终端和第二终端只能在当前的通话过程中进行做媒体数据传输业务,以提高终端之间多媒体通信的安全性。同时,因服务器在第一终端和第二终端首次建立呼叫业务的过程中,已经记录第一终端和第二终端的多媒体能力,所以,第一终端和第二终端在后续建立呼叫业务的过程中,可以不再向服务器发送各自的多媒体能力信息。示例性的,当第一终端向第二终端发起呼叫时,第一终端与服务器建立第一连接(例如,HTTP连接),并通过第一连接向第二终端发送推送请求消息。It should be noted that the token may be used to uniquely identify the multimedia session between the first terminal and the second terminal. For example, the communication between the first terminal and the server, and the communication between the second terminal and the server need to carry the token. When the call service ends, the token is invalid. After the call is terminated, the first terminal sends a push request message to the server to request the server to generate a token to uniquely identify the re-initiated call service. By generating a token to uniquely identify each call service, the first terminal and the second terminal can be restricted to perform media data transmission services only during the current call process, so as to improve the security of multimedia communication between the terminals. At the same time, the first terminal and the second terminal have recorded the multimedia capability of the first terminal and the second terminal in the process of the first terminal and the second terminal establishing the call service for the first time. You can no longer send their own multimedia capability information to the server. Exemplarily, when the first terminal initiates a call to the second terminal, the first terminal establishes a first connection (eg, an HTTP connection) with the server, and sends a push request message to the second terminal through the first connection.
示例性的,推送请求消息包括第一终端的识别码。其中,第一终端的识别码用于标识第一连接,以防止持有第一终端的用户存在一个号码同时在多个终端使用的情况。例如,某用户持有安装有SIM卡A的终端A、安装有SIM卡B的终端B和安装有SIM卡C的终端C,且SIM卡A、SIM卡B和SIM卡C共享一个号码。当用户使用终端A(第一终端)向第二终端发起呼叫业务时,终端A与服务器建立第一连接,当服务器从第二终端接收终端A的号码,并根据终端A的号码向终端A发送信息,但因终端B和终端C的号码与终端A相同,将无法确定应该向哪一个终端发送。又例如,某用户的平板电脑和车载电话,通过网络服务与该用户的手机共享一个手机号,即该平板电脑和车载电话均通过网络服务绑定该用户的手机号,当该用户的手机向第二终端发起呼叫业务时,该用户的手机与服务器建立第一连接,并通过第一连接向服务器发送手机的识别码,当服务器从第二终端接收手机的号码,并根据该手机的号码向手机发送信息时,虽然平板电脑和车载装置也共享该手机号,但服务器可以根据已接收的识别码确定向手机发送信息。Exemplarily, the push request message includes an identification code of the first terminal. The identifier of the first terminal is used to identify the first connection, so as to prevent the user holding the first terminal from having one number at the same time and using it in multiple terminals. For example, a user holds a terminal A on which a SIM card A is installed, a terminal B on which a SIM card B is installed, and a terminal C on which a SIM card C is installed, and the SIM card A, the SIM card B, and the SIM card C share a single number. When the user initiates a call service to the second terminal by using the terminal A (the first terminal), the terminal A establishes a first connection with the server, and when the server receives the number of the terminal A from the second terminal, and sends the terminal A to the terminal A according to the number of the terminal A. Information, but since the numbers of Terminal B and Terminal C are the same as those of Terminal A, it will not be possible to determine which terminal should be sent. For another example, a user's tablet computer and a car phone share a mobile phone number with the user's mobile phone through a network service, that is, the tablet computer and the car phone phone both bind the user's mobile phone number through a network service, when the user's mobile phone is directed to When the second terminal initiates the call service, the mobile phone of the user establishes a first connection with the server, and sends the identification code of the mobile phone to the server through the first connection, when the server receives the number of the mobile phone from the second terminal, and according to the number of the mobile phone When the mobile phone sends the information, although the tablet computer and the in-vehicle device share the mobile phone number, the server can determine to send the information to the mobile phone according to the received identification code.
示例性的,第一终端为移动电话,在一种可能的实施方式中,识别码为国际移动设备识别码(International Mobile station Equipment Identity,IMEI)。IMEI由15位数字组成,存储在移动电话的电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)中,每台移动电话在组装完成后都将被赋予全球唯一的IMEI,且该IMEI从移动电话生产到交付使用都将被制造生产的厂商所记录。在另一种可能的实施方式中,识别码为国际移动用户识别码(International Mobile Subscriber Identification Number,IMSI)。IMSI存储在SIM卡或USIM卡中,每一张SIM卡或USIM卡都具有唯一的IMSI,IMSI是区别移动用户的有效标志。在又一种可能的实施方式中,识别码为公民网络电子身份标识(Electronic Identity,eID),eID存储在嵌入式UICC卡中,用于唯一标识每一张UICC卡。示例性的,推送请求消息包括第二终端的号码。需要说明的是,在后续步骤中,第二终端可以从服务器接收第二终端的号码。第二终端在获取与第二终端绑定的号码之后,可以采用本发明实施例中如图5-7和图9中任一附图示出的方法与第一终端或第三终端传输多媒体数据。Exemplarily, the first terminal is a mobile phone. In a possible implementation manner, the identifier is an International Mobile Station Equipment Identity (IMEI). The IMEI consists of 15 digits and is stored in the Electrically Erasable Programmable Read-Only Memory (EEPROM). Each mobile phone will be given the world's only IMEI after assembly. And the IMEI will be recorded by the manufacturer of the manufacturing from the production of the mobile phone to the delivery. In another possible implementation manner, the identifier is an International Mobile Subscriber Identification Number (IMSI). The IMSI is stored in a SIM card or a USIM card. Each SIM card or USIM card has a unique IMSI, which is a valid identifier for distinguishing mobile users. In another possible implementation manner, the identifier is a citizen network electronic identity (eID), and the eID is stored in the embedded UICC card for uniquely identifying each UICC card. Illustratively, the push request message includes the number of the second terminal. It should be noted that, in a subsequent step, the second terminal may receive the number of the second terminal from the server. After acquiring the number bound to the second terminal, the second terminal may transmit the multimedia data to the first terminal or the third terminal by using the method shown in any of FIG. 5-7 and FIG. 9 in the embodiment of the present invention. .
示例性的,推送请求消息包括第一终端的能力集。需要说明的是,在后续步骤中,服务器可以向第二终端发送第一终端的能力集,以使第二终端可以根据第一终端的能力集或 第二终端的能力集与第一终端的能力集的交集向第一终端发送多媒体数据。其中,能力集是终端支持的多媒体能力的集合。例如,第一终端支持的多媒体能力的数据结构为:Exemplarily, the push request message includes a capability set of the first terminal. It should be noted that, in a subsequent step, the server may send the capability set of the first terminal to the second terminal, so that the second terminal may be based on the capability set of the first terminal or The intersection of the capability set of the second terminal and the capability set of the first terminal sends multimedia data to the first terminal. Among them, the capability set is a collection of multimedia capabilities supported by the terminal. For example, the data structure of the multimedia capability supported by the first terminal is:
MultiMediaCapability::=MultiMediaCapability::=
{{
VideoConferenceSupported,VideoConferenceSupported,
LocationShareSupported,LocationShareSupported,
PictureSendSupportedPictureSendSupported
}}
其中,MultiMediaCapability表示多媒体能力;VideoConferenceSupported表示视频通话能力,如果其值为0则表示支持视频通话,如果其值为1则表示不支持视频通话;LocationShareSupported表示位置共享能力,如果其值为0则表示支持位置共享,如果其值为1则表示不支持位置共享;PictureSendSupported表示图片发送能力,如果其值为0则表示支持位置共享发送图片,如果其值为1则表示不支持发送图片。Among them, MultiMediaCapability represents multimedia capability; VideoConferenceSupported represents video call capability, if its value is 0, it means support for video call, if its value is 1, it means that video call is not supported; LocationShareSupported means location sharing capability, if its value is 0, it means support Location sharing. If the value is 1, it means that location sharing is not supported. PictureSendSupported indicates the image sending capability. If the value is 0, it means that the location sharing sending picture is supported. If the value is 1, it means that the picture is not supported.
步骤202,服务器生成令牌,并建立令牌与第一终端的对应关系,以及向第一终端发送该令牌。Step 202: The server generates a token, establishes a correspondence between the token and the first terminal, and sends the token to the first terminal.
示例性的,服务器根据第二终端的号码生成令牌,并建立令牌与第一连接的对应关系,以及向第一终端发送推送响应消息,该消息中携带该令牌。Exemplarily, the server generates a token according to the number of the second terminal, and establishes a correspondence between the token and the first connection, and sends a push response message to the first terminal, where the message carries the token.
示例性的,推送响应消息中还携带首次推送(Beckon)标识。该标识用于指示第一终端在向第二终端发送的呼叫信令中携带令牌。Exemplarily, the push response message also carries a first push (Beckon) logo. The identifier is used to indicate that the first terminal carries the token in the call signaling sent to the second terminal.
步骤203,第一终端向第二终端发送呼叫信令,呼叫信令包括该令牌。Step 203: The first terminal sends call signaling to the second terminal, where the call signaling includes the token.
示例性的,在步骤203之前,还可以包括:第一终端从服务器接收首次推送(Beckon)标识。该标识用于指示第一终端在向第二终端发送的呼叫信令中携带令牌。Exemplarily, before step 203, the method may further include: receiving, by the first terminal, a first push (Beckon) identifier from the server. The identifier is used to indicate that the first terminal carries the token in the call signaling sent to the second terminal.
示例性的,第一终端向第二终端发送呼叫信令,根据首次推送标识,在呼叫信令中携带用户到用户(User to User Signaling,UUS)信元,并通过UUS信元传送令牌。例如,第一终端向第二终端发送呼叫建立消息(SETUP),呼叫建立消息中携带UUS信元,UUS信元承载有令牌。Exemplarily, the first terminal sends the call signaling to the second terminal, and carries the User to User Signaling (UUS) cell in the call signaling according to the first push identifier, and transmits the token through the UUS cell. For example, the first terminal sends a call setup message (SETUP) to the second terminal, where the call setup message carries the UUS cell, and the UUS cell carries the token.
可选的,步骤204,第一终端从第二终端接收呼叫建立响应消息(SETUP_ACK),该消息用于告知第一终端:第二终端已收到呼叫建立消息。需要说明的是,可以在执行下述步骤(步骤205-步骤214)中的任一步骤的同时,之前,或者之后执行步骤204,本发明实施例对此不作限定。Optionally, in step 204, the first terminal receives a call setup response message (SETUP_ACK) from the second terminal, where the message is used to notify the first terminal that the second terminal has received the call setup message. It should be noted that the step 204 is performed before, before, or after any of the following steps (step 205-step 214), which is not limited by the embodiment of the present invention.
示例性的,呼叫信令中可以包括第一终端的号码。例如,第二终端已开通了来电显示业务或加装了来电显示器,当第二终端接收第一终端发送的呼叫信令后,第二终端可以显示第一终端的号码。Exemplarily, the number of the first terminal may be included in the call signaling. For example, the second terminal has opened the caller ID service or installed the caller ID display. After the second terminal receives the call signaling sent by the first terminal, the second terminal can display the number of the first terminal.
步骤205,服务器从第二终端接收第二终端的能力集和令牌,并建立令牌与第二终端的对应关系。Step 205: The server receives the capability set and the token of the second terminal from the second terminal, and establishes a correspondence between the token and the second terminal.
示例性的,第二终端与服务器建立第二连接(例如,HTTP连接),并通过第二连接向服务器发送令牌和第二终端的能力集。示例性的,第二终端向服务器发送匹配业务请求消息(MatchReq),匹配业务请求消息包括令牌和第二终端的能力集。匹配业务请求消息用于请求与第一终端进行多媒体能力信息匹配。其中,多媒体能力信息匹配包括:获取第一 终端的能力集与第二终端的能力集的交集,或获取第一终端支持的会话描述协议(Session Description Protocol,SDP)的参数等。Exemplarily, the second terminal establishes a second connection (eg, an HTTP connection) with the server, and sends the token and the capability set of the second terminal to the server through the second connection. Exemplarily, the second terminal sends a matching service request message (MatchReq) to the server, where the matching service request message includes the token and the capability set of the second terminal. The matching service request message is used to request matching of the multimedia capability information with the first terminal. The multimedia capability information matching includes: acquiring the first The intersection of the capability set of the terminal and the capability set of the second terminal, or the parameters of the Session Description Protocol (SDP) supported by the first terminal.
SDP用于两个会话实体之间的媒体协商,并两个会话实体之间的SDP的参数达成一致。协商的SDP的参数包括IP地址、端口,媒体编码格式和媒体类型(如音频、视频)等。The SDP is used for media negotiation between two session entities, and the parameters of the SDP between the two session entities are agreed. The parameters of the negotiated SDP include IP address, port, media encoding format, and media type (such as audio, video).
示例性的,匹配业务请求消息还包括第一终端的号码和/或第二终端的设备识别码。Exemplarily, the matching service request message further includes a number of the first terminal and/or a device identifier of the second terminal.
示例性的,服务器建立令牌、第二终端的识别码与第二终端的对应关系。其中,第二终端的识别码用于标识第二连接,以防止持有第二终端的用户存在一个号码同时在多个终端使用的情况。Exemplarily, the server establishes a token, a correspondence between the identifier of the second terminal, and the second terminal. The identification code of the second terminal is used to identify the second connection, so as to prevent the user holding the second terminal from having one number at the same time and using it in multiple terminals.
示例性的,在步骤205中还可以包括步骤2051:服务器建立第一终端的识别码与第一终端的号码的对应关系,以及第二终端的识别码与第二终端的号码的对应关系。当第一终端的用户通过服务器根据第二终端的号码发送多媒体数据时,服务器可以根据第二终端的号码向第二终端发送多媒体数据。Exemplarily, in step 205, the method may further include a step 2051: the server establishes a correspondence between the identifier of the first terminal and the number of the first terminal, and a correspondence between the identifier of the second terminal and the number of the second terminal. When the user of the first terminal sends the multimedia data according to the number of the second terminal by the server, the server may send the multimedia data to the second terminal according to the number of the second terminal.
步骤206,服务器向第一终端发送第二终端的能力集。Step 206: The server sends the capability set of the second terminal to the first terminal.
示例性的,服务器向第一终端发送创建指令消息(Create Command),该消息包括令牌和第二终端的能力集,该消息用于指示第一终端可以创建多媒体业务。其中,创建多媒体业务包括:向第二终端发送第一终端支持的SDP的参数和多媒体数据,以及从第二终端接收多媒体数据等。Exemplarily, the server sends a Create Command message to the first terminal, where the message includes a token and a capability set of the second terminal, the message is used to indicate that the first terminal can create a multimedia service. The creating the multimedia service includes: sending, to the second terminal, parameters and multimedia data of the SDP supported by the first terminal, and receiving multimedia data from the second terminal.
示例性的,创建指令消息还包括令牌和/或第一终端的号码。Illustratively, the create instruction message also includes the token and/or the number of the first terminal.
示例性的,在步骤206之后,还可以包括步骤2061:第一终端记录第一终端的号码。第一终端在获取与第一终端绑定的号码之后,可以采用本发明实施例中的如图4-图9中任一附图其他示出的方法与第二终端或第三终端传输多媒体数据。Exemplarily, after step 206, step 2061 may be further included: the first terminal records the number of the first terminal. After acquiring the number bound to the first terminal, the first terminal may transmit the multimedia data to the second terminal or the third terminal by using another method as shown in any of FIG. 4 to FIG. 9 in the embodiment of the present invention. .
可选的,步骤207,第一终端向服务器发送创建指令响应消息。Optionally, in step 207, the first terminal sends a create command response message to the server.
步骤208,第一终端向服务器发送第一转发请求消息,该消息携带第一终端的能力集与第二终端的能力集的交集以及第一终端的SDP文本信息(SDPa)。其中,SDPa包括第一终端可以使用的多个IP地址和多个端口信息,以及媒体编码格式和媒体类型等。服务器确定与SDPa相应的SDP文本信息(SDPy)。其中,SDP文本信息包括会话名称和意图、会话持续时间、构成会话的媒体和有关接收媒体的信息(如,地址)等。Step 208: The first terminal sends a first forwarding request message to the server, where the message carries the intersection of the capability set of the first terminal and the capability set of the second terminal, and the SDP text information (SDPa) of the first terminal. The SDPa includes a plurality of IP addresses and a plurality of port information that the first terminal can use, a media encoding format, a media type, and the like. The server determines the SDP text information (SDPy) corresponding to the SDPa. The SDP text information includes a session name and an intent, a session duration, a media constituting the session, and information (eg, an address) related to the received media.
需要说明的是,SDP是一种会话描述格式,它不属于传输协议,且它只能使用适当的不同的传输协议。所述传输协议包括会话通知协议(Session Announcement Protocol,SAP)、会话初始协议(Session Initiation Protocol,SIP)、实时流协议(Real Time Streaming Protocol,RTSP)、多用途互联网邮件扩展((Multipurpose Internet Mail Extensions,MIME)协议的电子邮件以及超文本传输协议(HyperText Transfer Protocol,HTTP)。例如,在因特网的组播骨干网(multicast backbone,Mbone)中,会话目录工具被用于通告多媒体会议,并为参与者传送会议地址和参与者所需的会议特定工具信息,这由SDP完成。SDP连接好会话后,传送足够的信息给会话参与者。SDP信息的发送利用了SAP,SAP周期性地组播通知数据包到已知组播地址和端口处。其中的数据包是用户数据报协议(User Datagram Protocol,UDP)数据包,数据包中包含SAP协议头和文本有效载荷(text payload),此处的文本有效载荷即为SDP文本信息。It should be noted that SDP is a session description format, which is not a transport protocol, and it can only use a different and different transport protocol. The transmission protocol includes a Session Announcement Protocol (SAP), a Session Initiation Protocol (SIP), a Real Time Streaming Protocol (RTSP), and a Multipurpose Internet Mail Extensions. , MIME) protocol email and HyperText Transfer Protocol (HTTP). For example, in the Internet's multicast backbone (Mbone), the session directory tool is used to advertise multimedia conferences and participate The conference address and the conference-specific tool information required by the participant are transmitted, which is completed by the SDP. After the SDP connects the session, sufficient information is transmitted to the session participants. The SDP information is transmitted using SAP, and the SAP periodically multicasts the notification. The data packet is sent to a known multicast address and port. The data packet is a User Datagram Protocol (UDP) data packet, and the data packet includes an SAP protocol header and a text payload. The text payload is the SDP text message.
示例性的,在步骤208之前,还可以包括:第一终端确定第一终端的能力集与第二终 端的能力集的交集。此时,第一终端的可以根据该交集改变第一终端的多媒体通信标识的状态。例如,如图3(a)和(b)所示,当第一终端未确定交集时,“视频通话”按钮、“语音通话”按钮、“图片发送”按钮、“视频发送”按钮,“文件发送”按钮,“位置共享”按钮均显示为灰色,即禁止状态,此时点击按钮无效。当第一终端接收第二终端的能力集后,因确定的交集指示只支持语音通话、图片发送、位置共享业务,且不支持其他业务,第一终端显示屏上与所支持业务相对应的“语音通话”按钮、“图片发送”按钮和“位置共享”按钮显示为可点击状态,即可以通过点击按钮进行相应业务。Exemplarily, before step 208, the method may further include: determining, by the first terminal, a capability set and a second terminal of the first terminal The intersection of the set of capabilities of the end. At this time, the state of the multimedia communication identifier of the first terminal may be changed according to the intersection of the first terminal. For example, as shown in FIGS. 3(a) and (b), when the first terminal does not determine the intersection, the "video call" button, the "voice call" button, the "picture send" button, the "video send" button, "file" The Send button and the Location Sharing button are all displayed in gray, that is, the disabled state, and the click button is invalid. After the first terminal receives the capability set of the second terminal, the determined intersection indication only supports the voice call, the picture sending, the location sharing service, and does not support other services, and the first terminal display screen corresponds to the supported service. The Voice Call button, the Picture Send button, and the Location Sharing button are displayed in a clickable state, that is, the corresponding service can be performed by clicking a button.
步骤209,服务器向第二终端发送匹配业务响应消息(MatchAck),该消息中携带第一终端的能力集与第二终端的能力集的交集以及SDPy。Step 209: The server sends a matching service response message (MatchAck) to the second terminal, where the message carries the intersection of the capability set of the first terminal and the capability set of the second terminal, and SDPy.
示例性的,匹配业务相应消息中携带第二终端的号码。Exemplarily, the corresponding message of the matching service carries the number of the second terminal.
示例性的,在步骤209之后,还可以包括步骤2091:第二终端记录第二终端的号码。第二终端在获取与第二终端绑定的号码之后,可以采用本发明实施例中的如图4-图9中任一附图其他示出的方法与第一终端或第三终端传输多媒体数据。Exemplarily, after step 209, step 2091 may be further included: the second terminal records the number of the second terminal. After acquiring the number bound to the second terminal, the second terminal may transmit the multimedia data to the first terminal or the third terminal by using another method as shown in any of FIG. 4 to FIG. 9 in the embodiment of the present invention. .
步骤210,第二终端向服务器发送第二转发请求消息,该消息携带与SDPy相应的SDP文本信息(SDPb)。Step 210: The second terminal sends a second forwarding request message to the server, where the message carries SDP text information (SDPb) corresponding to SDPy.
示例性的,在步骤210之前,还可以包括:第二终端确定SDPb。Exemplarily, before step 210, the method may further include: determining, by the second terminal, the SDPb.
步骤211,服务器向第二终端发送第一转发请求响应消息,该消息中携带与SDPb相应的SDP文本信息(SDPx)。Step 211: The server sends a first forwarding request response message to the second terminal, where the message carries SDP text information (SDPx) corresponding to the SDPb.
示例性的,在步骤211之前,还可以包括:服务器确定SDPx。Exemplarily, before step 211, the method may further include: determining, by the server, SDPx.
需要说明的是,1)在第一终端与服务器,以及第二终端与服务器之间交互的信息中,可以均携带有令牌,用于服务器根据令牌对第一终端和第二终端之间的信息进行中转。It should be noted that: 1) the information exchanged between the first terminal and the server, and the second terminal and the server may carry a token for the server to use between the first terminal and the second terminal according to the token. The information is relayed.
2)当本实施例中的服务器仅作为交换第一终端和第二终端的多媒体能力的服务器时,上述服务器的SDP文本信息需要通过其他服务器(即用于交换第一终端和第二终端的多媒体数据的服务器)进行分配。而当本实施例中的服务器同时作为第一终端和第二终端之间交换多媒体能力和多媒体数据的服务器时,服务器的SDP文本信息可以由该服务器自己进行分配。2) When the server in this embodiment is only used as a server for exchanging multimedia capabilities of the first terminal and the second terminal, the SDP text information of the server needs to pass through other servers (ie, multimedia for exchanging the first terminal and the second terminal) The server of the data is allocated. When the server in this embodiment simultaneously serves as a server for exchanging multimedia capabilities and multimedia data between the first terminal and the second terminal, the SDP text information of the server can be allocated by the server itself.
3)SDP文本信息由许多文本行组成,文本行的格式为<类型>=<值>,<类型>是一个字母,<值>是结构化的文本串,其格式依<类型>而定。SDP文本信息中包括会话信息和媒体信息。其中,会话信息包括会话名和目的,以及会话活动时间。由于参与会话的资源是受限制的,因此包括会话使用的带宽信息和会话负责人的联系信息等附加信息是非常有用的。而媒体信息包括媒体类型,例如视频和音频;传输协议,例如UDP/IP和H.320;媒体格式,例如H.261视频和MPEG视频;多播地址和媒体传输端口(IP多播会话);用于联系地址的媒体和传输端口的远端地址(IP单播会话)。因SDP文本信息中可以包括对应终端的IP地址信息。第二终端在获取第一终端的能力集和第二终端的能力集的交集,以及通过SDPy获取第一终端的IP地址后,可以直接根据该交集和第一终端的IP地址与第一终端进行通信,包括发送和接收多媒体数据。同样的,第一终端在确定第一终端的能力集和第二终端的能力集的交集,以及通过SDPx获取第二终端的IP地址后,可以直接根据第二终端的IP地址与第二终端进行通信,包括发送和接收多媒体数据。例如,第一终端和第二终端之间是公网,第一终端可以根据第二终端的IP地址直接向第二终端发送图片或 语音消息。又例如,第一终端和第二终端上网使用的接入点均为电信网络的***互联网(China Mobile Network,CMNET)接入点。第一终端根据第二终端的IP地址向第二终端发送能力集、第一终端的IP地址以及第一终端的端口号。3) SDP text information consists of many lines of text. The format of the text line is <type>=<value>, <type> is a letter, and <value> is a structured text string whose format depends on <type>. The SDP text information includes session information and media information. The session information includes the session name and purpose, and the session activity time. Since the resources participating in the session are restricted, additional information such as the bandwidth information used by the session and the contact information of the session leader is very useful. Media information includes media types such as video and audio; transport protocols such as UDP/IP and H.320; media formats such as H.261 video and MPEG video; multicast address and media transport port (IP multicast session); The remote address (IP unicast session) of the media and transport port used to contact the address. The IP address information of the corresponding terminal may be included in the SDP text information. After acquiring the intersection of the capability set of the first terminal and the capability set of the second terminal, and acquiring the IP address of the first terminal by using the SDPy, the second terminal may directly perform the first terminal according to the intersection and the IP address of the first terminal. Communication, including sending and receiving multimedia data. Similarly, after determining the intersection of the capability set of the first terminal and the capability set of the second terminal, and acquiring the IP address of the second terminal by using the SDPx, the first terminal may directly perform the second terminal according to the IP address of the second terminal. Communication, including sending and receiving multimedia data. For example, a public network is between the first terminal and the second terminal, and the first terminal may directly send a picture or a picture to the second terminal according to the IP address of the second terminal. Voice messages. For another example, the access points used by the first terminal and the second terminal to access the Internet are all China Mobile Network (CMNET) access points of the telecommunication network. The first terminal sends the capability set, the IP address of the first terminal, and the port number of the first terminal to the second terminal according to the IP address of the second terminal.
步骤213,第一终端向服务器发送多媒体数据。Step 213: The first terminal sends multimedia data to the server.
示例性的,在执行步骤213的同时,或之前,或之后,还可以包括:第二终端向服务器发送多媒体数据,第一终端从服务器接收多媒体数据。例如,第二终端根据从服务器接收的第一终端的能力集与第二终端的能力集的交集以及SDPb,向服务器发送多媒体数据,第一终端从服务器接收多媒体数据。Exemplarily, at the same time as, before, or after the step 213, the second terminal may further include: the second terminal sends the multimedia data to the server, and the first terminal receives the multimedia data from the server. For example, the second terminal transmits multimedia data to the server according to the intersection of the capability set of the first terminal received from the server and the capability set of the second terminal and the SDPb, and the first terminal receives the multimedia data from the server.
步骤214,第二终端从服务器接收多媒体数据。Step 214: The second terminal receives multimedia data from the server.
本发明实施例提供的多媒体数据传输的方法,通过第一终端向第二终端发起呼叫时,从服务器取得令牌,并向第二终端发送该令牌,使服务器从第二终端接收该令牌后,能够根据该令牌关联第一终端和第二终端,进而实现第一终端和第二终端的多媒体能力数据传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,通过服务器进行多媒体数据的传输。The method for transmitting multimedia data provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, obtains a token from the server, and sends the token to the second terminal, so that the server receives the token from the second terminal. After that, the first terminal and the second terminal can be associated according to the token, thereby implementing multimedia capability data transmission of the first terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
图4为本发明实施例提供的另一种多媒体数据传输的方法的通信示意图。本发明实施例中涉及的第一终端和第二终端,无法获取与终端绑定的号码。需要说明的是,对于第一终端或第二终端,已经获取与终端绑定的号码的情况,也可以采用本实施例提供的多媒体数据传输的方法。FIG. 4 is a schematic diagram of communication of another method for transmitting multimedia data according to an embodiment of the present invention. The first terminal and the second terminal involved in the embodiment of the present invention cannot obtain the number bound to the terminal. It should be noted that, for the case that the first terminal or the second terminal has obtained the number bound to the terminal, the method for transmitting multimedia data provided by this embodiment may also be used.
本发明实施例包括步骤401-步骤404,对步骤401-404的描述,请参见上述实施例中对步骤201-204的描述,在此不作赘述。The embodiment of the present invention includes the steps 401 to 404. For the description of the steps 401-404, refer to the description of the steps 201-204 in the foregoing embodiment, and details are not described herein.
步骤405,第二终端向服务器发送令牌和第二终端的IP地址。Step 405: The second terminal sends the token and the IP address of the second terminal to the server.
示例性的,第一终端通过内网接入公网,将第一终端内网的IP地址转换为公网的IP地址后,发送给服务器。需要说明的是,公网是指普通电路交换网,即现在的网通,电信,铁通等架设的骨干及分支网络,公网是相对于内网而言的。通过内网上网的终端得到的IP地址是因特网上的保留地址,而通过公网上网的终端得到的IP地址是因特网的公用地址,是非保留的地址。通过公网上网的终端和因特网上的其他终端可随意互相访问,但通过内网上网的终端可能因设置有防火墙保护等原因,无法直接使用内网的IP地址与因特网上的其他终端进行通信。Exemplarily, the first terminal accesses the public network through the internal network, converts the IP address of the intranet of the first terminal into the IP address of the public network, and sends the IP address to the server. It should be noted that the public network refers to the common circuit-switched network, that is, the backbone and branch network of the current network communication, telecommunications, and railway, and the public network is relative to the internal network. The IP address obtained through the terminal of the intranet is the reserved address on the Internet, and the IP address obtained through the terminal of the public network is the public address of the Internet, which is a non-reserved address. The terminal on the public network and other terminals on the Internet can access each other at will, but the terminal through the intranet may not be able to directly communicate with other terminals on the Internet by using the IP address of the intranet due to the protection of the firewall.
示例性的,第二终端向服务器发送匹配业务请求消息,匹配业务请求消息包括令牌、第二终端的IP地址和第二终端的能力集。匹配业务请求消息用于请求与第一终端进行的多媒体能力信息匹配。其中,多媒体能力信息匹配包括:获取第一终端的能力集与第二终端的能力集的交集,或获取第一终端支持的SDP的参数等。Exemplarily, the second terminal sends a matching service request message to the server, where the matching service request message includes a token, an IP address of the second terminal, and a capability set of the second terminal. The matching service request message is used to request matching of the multimedia capability information performed by the first terminal. The matching of the multimedia capability information includes: acquiring an intersection of the capability set of the first terminal and the capability set of the second terminal, or acquiring parameters of the SDP supported by the first terminal, and the like.
示例性的,匹配业务请求消息包括第一终端的号码。Exemplarily, the matching service request message includes the number of the first terminal.
示例性的,匹配业务请求消息包括第二终端的识别码。Exemplarily, the matching service request message includes an identification code of the second terminal.
示例性的,在步骤405之后,还可以包括:第二终端通过第二连接从服务器接收第一终端的IP地址。第一终端的IP地址用于指示第二终端接收第一终端后续发送的多媒体数据,或者用于第二终端根据第一终端的IP地址向第一终端发送多媒体数据。Exemplarily, after step 405, the method further includes: receiving, by the second terminal, the IP address of the first terminal from the server by using the second connection. The IP address of the first terminal is used to indicate that the second terminal receives the multimedia data that is sent by the first terminal, or is used by the second terminal to send the multimedia data to the first terminal according to the IP address of the first terminal.
步骤406,服务器向第一终端发送第二终端的IP地址。 Step 406: The server sends the IP address of the second terminal to the first terminal.
示例性的,服务器向第一终端发送创建指令消息(Create Command),该消息包括令牌和第二终端的IP地址,该消息用于指示第一终端可以创建多媒体业务。其中,创建多媒体业务包括:向第二终端发送第一终端支持的SDP的参数和多媒体数据,以及从第二终端接收多媒体数据等。Exemplarily, the server sends a Create Command message to the first terminal, where the message includes a token and an IP address of the second terminal, where the message is used to indicate that the first terminal can create a multimedia service. The creating the multimedia service includes: sending, to the second terminal, parameters and multimedia data of the SDP supported by the first terminal, and receiving multimedia data from the second terminal.
示例性的,创建指令消息还包括第一终端的号码。Exemplarily, the create instruction message further includes the number of the first terminal.
步骤407,第一终端根据第二终端的IP地址向第二终端发送多媒体数据。Step 407: The first terminal sends the multimedia data to the second terminal according to the IP address of the second terminal.
需要说明的是,第二终端可以设置为允许接收未知IP地址发送的多媒体数据。在此种情况下,第二终端未接收第一终端的IP地址时,也可以接收第一终端发送的多媒体数据。同时,为了对终端进行安全防护,第二终端也可以设置为不允许接收未知IP地址发送的多媒体数据。在此种情况下,第二终端只有在已知第一终端的IP地址(如从服务器接收第一终端的IP地址)后,才能接收第一终端发送的多媒体数据,否则,将对自未知IP地址的第一终端发送的多媒体数据进行拦截,并执行丢弃处理。It should be noted that the second terminal may be set to allow receiving multimedia data transmitted by an unknown IP address. In this case, when the second terminal does not receive the IP address of the first terminal, the multimedia data sent by the first terminal may also be received. At the same time, in order to protect the terminal, the second terminal may also be set to not allow receiving multimedia data transmitted by an unknown IP address. In this case, the second terminal can receive the multimedia data sent by the first terminal only after knowing the IP address of the first terminal (such as receiving the IP address of the first terminal from the server), otherwise, the self-unknown IP will be The multimedia data sent by the first terminal of the address is intercepted, and the discarding process is performed.
示例性的,在步骤407之前,还可以包括:第一终端根据第二终端的IP地址向第二终端发送能力集查询请求,第二终端向第一终端发送第二终端的能力集。第一终端确定第一终端的能力集和第二终端的能力集的交集。For example, before the step 407, the method may further include: the first terminal sends a capability set query request to the second terminal according to the IP address of the second terminal, and the second terminal sends the capability set of the second terminal to the first terminal. The first terminal determines an intersection of the capability set of the first terminal and the capability set of the second terminal.
示例性的,在步骤407之前,还可以包括:第一终端根据第二终端的IP地址向第二终端发送SDP的参数查询请求,第二终端向第一终端发送第二终端支持的SDP的参数。第一终端确定第一终端支持的SDP的参数和第二终端支持的SDP的参数的交集。Exemplarily, before step 407, the method may further include: the first terminal sends a parameter query request of the SDP to the second terminal according to the IP address of the second terminal, and the second terminal sends the parameter of the SDP supported by the second terminal to the first terminal. . The first terminal determines an intersection of parameters of the SDP supported by the first terminal and parameters of the SDP supported by the second terminal.
示例性的,在步骤407中,还可以包括:第一终端根据第一终端的能力集和第二终端能力集的交集,以及第一终端支持的SDP的参数和第二终端支持的SDP的参数的交集,向第二终端发送多媒体数据。Exemplarily, in step 407, the method further includes: the first terminal according to the intersection of the capability set of the first terminal and the second terminal capability set, and the parameter of the SDP supported by the first terminal and the parameter of the SDP supported by the second terminal The intersection of the multimedia data is sent to the second terminal.
示例性的,在执行步骤407的同时,或之前,或之后,还可以包括:第二终端根据第一终端的IP地址向第一终端发送多媒体数据。Exemplarily, at the same time as, before, or after performing step 407, the method may further include: the second terminal transmitting the multimedia data to the first terminal according to the IP address of the first terminal.
当第一终端根据第二终端的IP地址,发送多媒体数据失败时,第一终端可以执行步骤408-414通过服务器中转,向第二终端发送多媒体数据。对步骤408-414的介绍可以参见上述对步骤208-214的描述,在此不作赘述。When the first terminal fails to send the multimedia data according to the IP address of the second terminal, the first terminal may perform the steps 408-414 to transfer the multimedia data to the second terminal by using the server. For a description of the steps 408-414, reference may be made to the description of the steps 208-214, which are not described herein.
需要说明的是,第二终端的IP地址可能是虚假的IP地址,例如,第二终端处于内网中,因内网和公网之间设置有具有安全保护作用的防火墙,当第二终端向服务器发送第二终端的IP地址时,防火墙对第二终端的IP地址进行处理,转化为虚假的IP地址,再发送给服务器,导致第一终端无法根据从服务器接收的第二终端的IP地址,将多媒体数据发送至第二终端。It should be noted that the IP address of the second terminal may be a fake IP address. For example, the second terminal is in the internal network, because a firewall with security protection is provided between the internal network and the public network, when the second terminal When the server sends the IP address of the second terminal, the firewall processes the IP address of the second terminal, converts it into a fake IP address, and sends it to the server, so that the first terminal cannot obtain the IP address of the second terminal received from the server. The multimedia data is transmitted to the second terminal.
本发明实施例提供的多媒体数据传输的方法,通过第一终端向第二终端发起呼叫时,从服务器取得令牌,并向第二终端发送该令牌,使服务器从第二终端接收该令牌后,能够根据该令牌关联第一终端和第二终端,并将第二终端的IP地址发送至第一终端,使第一终端和第二终端可以通过服务器中转,也可以不通过服务器中转,而直接进行多媒体数据的传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,直接建立多媒体连接并进行多媒体业务。The method for transmitting multimedia data provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, obtains a token from the server, and sends the token to the second terminal, so that the server receives the token from the second terminal. After the first terminal and the second terminal are associated with the token, the IP address of the second terminal is sent to the first terminal, so that the first terminal and the second terminal can be transited through the server, or can be transited through the server. Directly transfer multimedia data. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
图5为本发明实施例提供的又一种多媒体数据传输的方法的通信示意图。本发明实施 例中涉及的第一终端和第二终端,第一终端已经获取第一终端的号码,第二终端未获取第二终端的号码。例如,本发明实施例中的第一终端曾经向第三终端发起呼叫业务,已通过服务器获取第一终端的号码。又例如,本发明实施例中的第一终端曾经作为被叫,已通过服务器获取第一终端的号码。再例如,第一终端中安装的SIM卡的运营商为***,***在SIM卡中写入了该SIM卡的号码,因而在第一终端安装SIM卡后,第一终端可以直接从SIM卡中读取该SIM卡的号码。还例如,安装SIM卡后的第一终端支持4G。当第一终端通过该SIM卡的号码发起呼叫流程时,手机号需要进行注册,在注册成功后,4G网络服务器会将该SIM卡的号码返回给第一终端,因而第一终端可以获知第一终端的号码。需要说明的是,对于第一终端和第二终端均已获取与终端绑定的号码的情况,也可以采用本实施例的多媒体数据传输方法。如图5所示,该实施例包括:FIG. 5 is a schematic diagram of communication of another method for transmitting multimedia data according to an embodiment of the present invention. Implementation of the invention In the first terminal and the second terminal involved in the example, the first terminal has obtained the number of the first terminal, and the second terminal has not obtained the number of the second terminal. For example, the first terminal in the embodiment of the present invention initiates a call service to the third terminal, and the number of the first terminal has been obtained through the server. For another example, the first terminal in the embodiment of the present invention once used as the called terminal, and has obtained the number of the first terminal through the server. For another example, the operator of the SIM card installed in the first terminal is China Unicom, and China Unicom writes the number of the SIM card in the SIM card. Therefore, after the SIM card is installed in the first terminal, the first terminal can directly access the SIM card. The number of the SIM card is read in the card. Also for example, the first terminal after installing the SIM card supports 4G. When the first terminal initiates a call flow through the number of the SIM card, the mobile phone number needs to be registered. After the registration is successful, the 4G network server returns the number of the SIM card to the first terminal, so the first terminal can learn the first The number of the terminal. It should be noted that, in the case that the first terminal and the second terminal have obtained the number bound to the terminal, the multimedia data transmission method in this embodiment may also be used. As shown in FIG. 5, this embodiment includes:
步骤501,当第一终端向第二终端发起呼叫时,第一终端向服务器发送第一终端的号码。Step 501: When the first terminal initiates a call to the second terminal, the first terminal sends the number of the first terminal to the server.
示例性的,在步骤501中,还可以包括:第一终端向服务器发送第二终端的号码和/或第一终端的IP地址。Exemplarily, in step 501, the method further includes: the first terminal sending the number of the second terminal and/or the IP address of the first terminal to the server.
步骤502,服务器建立第一终端的号码和第一终端的对应关系。Step 502: The server establishes a correspondence between the number of the first terminal and the first terminal.
步骤503,第一终端向第二终端发送呼叫信令,呼叫信令中包括第一终端的号码。Step 503: The first terminal sends call signaling to the second terminal, where the call signaling includes the number of the first terminal.
步骤504,第二终端向服务器发送第一终端的号码和第二终端的IP地址。Step 504: The second terminal sends the number of the first terminal and the IP address of the second terminal to the server.
示例性的,服务器从第一终端接收第二终端的号码,并建立第二终端的号码与第二终端的对应关系。Exemplarily, the server receives the number of the second terminal from the first terminal, and establishes a correspondence between the number of the second terminal and the second terminal.
示例性的,在步骤504之后,还可以包括:第二终端通过第二连接从服务器接收第一终端的IP地址。Exemplarily, after step 504, the method may further include: receiving, by the second terminal, the IP address of the first terminal from the server by using the second connection.
步骤505,服务器根据第一终端的号码向第一终端发送第二终端的IP地址。Step 505: The server sends the IP address of the second terminal to the first terminal according to the number of the first terminal.
步骤506,第一终端根据第二终端的IP地址向第二终端发送多媒体数据。Step 506: The first terminal sends the multimedia data to the second terminal according to the IP address of the second terminal.
需要说明的是,对步骤506的描述可以参见上述步骤407,在此不作赘述。It should be noted that the description of step 506 can be referred to step 407 above, and details are not described herein.
本发明实施例提供的多媒体数据传输的方法,通过第一终端向第二终端发起呼叫时,向服务器和第二终端发送第一终端的号码,服务器从第二终端接收第一终端号码和第二终端的IP地址后,将第二终端的IP地址发送至第一终端,使第一终端和第二终端可以通过服务器中转,也可以不通过服务器中转,而直接进行多媒体数据的传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,直接建立多媒体连接并进行多媒体业务。The method for transmitting multimedia data provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, sends the number of the first terminal to the server and the second terminal, and the server receives the first terminal number and the second from the second terminal. After the IP address of the terminal, the IP address of the second terminal is sent to the first terminal, so that the first terminal and the second terminal can be transited through the server, or the multimedia data can be directly transmitted without transiting through the server. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
图6为本发明实施例提供的再一种多媒体数据传输的方法的通信示意图。本发明实施例中涉及的第一终端和第二终端,第一终端未获取第一终端的号码,第二终端已获取第二终端的号码。需要说明的是,对于第一终端和第二终端均已获取与终端绑定的号码的情况,也可以采用本实施例的多媒体数据传输方法。如图6所示,该实施例包括:FIG. 6 is a schematic diagram of communication of a method for multimedia data transmission according to an embodiment of the present invention. In the first terminal and the second terminal involved in the embodiment of the present invention, the first terminal does not obtain the number of the first terminal, and the second terminal has obtained the number of the second terminal. It should be noted that, in the case that the first terminal and the second terminal have obtained the number bound to the terminal, the multimedia data transmission method in this embodiment may also be used. As shown in FIG. 6, this embodiment includes:
步骤601,当第一终端向第二终端发起呼叫时,第一终端向服务器发送第二终端的号码。Step 601: When the first terminal initiates a call to the second terminal, the first terminal sends the number of the second terminal to the server.
示例性的,第一终端可以通过第一连接向服务器发送第一终端的IP地址。Exemplarily, the first terminal may send the IP address of the first terminal to the server through the first connection.
步骤602,服务器建立第二终端的号码和第一终端的对应关系。Step 602: The server establishes a correspondence between the number of the second terminal and the first terminal.
步骤603,第一终端向第二终端发送呼叫信令。 Step 603: The first terminal sends call signaling to the second terminal.
示例性的,呼叫信令中包括第一终端的号码。Exemplarily, the number of the first terminal is included in the call signaling.
步骤604,第二终端向服务器发送第二终端的号码和第二终端的IP地址。Step 604: The second terminal sends the number of the second terminal and the IP address of the second terminal to the server.
示例性的,在步骤604之后,还可以包括:第二终端可以通过第二连接从服务器接收第一终端的IP地址。Exemplarily, after step 604, the method may further include: the second terminal may receive the IP address of the first terminal from the server by using the second connection.
示例性的,第二终端通过第二连接向服务器发送第一终端的号码。Exemplarily, the second terminal sends the number of the first terminal to the server through the second connection.
示例性的,服务器从第一终端接收第二终端的号码,并建立第二终端的号码与第二终端的对应关系。Exemplarily, the server receives the number of the second terminal from the first terminal, and establishes a correspondence between the number of the second terminal and the second terminal.
步骤605,服务器根据第二终端的号码向第一终端发送第二终端的IP地址。Step 605: The server sends the IP address of the second terminal to the first terminal according to the number of the second terminal.
步骤606,第一终端根据第二终端的IP地址向第二终端发送多媒体数据。Step 606: The first terminal sends the multimedia data to the second terminal according to the IP address of the second terminal.
需要说明的是,对步骤606的描述可以参见上述步骤607,在此不作赘述。It should be noted that the description of step 606 can be referred to step 607 above, and details are not described herein.
本发明实施例提供的多媒体数据传输的方法,通过第一终端向第二终端发起呼叫时,向服务器发送第二终端的号码,服务器从第二终端接收第二终端号码和第二终端的IP地址后,将第二终端的IP地址发送至第一终端,使第一终端和第二终端可以通过服务器中转,也可以不通过服务器中转,而直接进行多媒体数据的传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,直接建立多媒体连接并进行多媒体业务。The method for transmitting multimedia data provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, sends the number of the second terminal to the server, and the server receives the second terminal number and the IP address of the second terminal from the second terminal. Then, the IP address of the second terminal is sent to the first terminal, so that the first terminal and the second terminal can be transited through the server, or the multimedia data can be directly transmitted without transiting through the server. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
图7为本发明实施例提供的还一种多媒体能力发现的方法的通信示意图。本发明实施例中涉及的第一终端和第二终端,已经获取与终端绑定的号码。如图7所示,该实施例可以包括:FIG. 7 is a schematic diagram of communication of a method for discovering multimedia capabilities according to an embodiment of the present invention. The first terminal and the second terminal involved in the embodiment of the present invention have acquired the number bound to the terminal. As shown in FIG. 7, this embodiment may include:
步骤701,第一终端向服务器发送第一登录请求消息,第一登录请求消息包括第一终端的状态信息。Step 701: The first terminal sends a first login request message to the server, where the first login request message includes status information of the first terminal.
示例性的,第一终端与服务器建立第一连接(例如,HTTP连接),并通过第一连接向服务器发送第一登录请求消息。Exemplarily, the first terminal establishes a first connection (eg, an HTTP connection) with the server, and sends a first login request message to the server through the first connection.
示例性的,第一终端与服务器建立心跳。需要说明的是,网络中的接收和发送数据都是使用操作***中的一对套接字(SOCKET,用于描述IP地址和端口)实现的。但是如果此套接字已经断开,那发送数据和接收数据的时候就一定会有问题。创建心跳机制的目的是判断此套接字是否可以使用。其中,心跳机制是一端通过向另一端定时发送一个自定义的结构体(心跳包),让另一个端知道此端的套接字仍在使用,以确保连接的有效性的机制。例如,当一端向另一端发送心跳包后,在5分钟之内没有收到另一端的回复,则可以视为另一端的套接字不可用,即另一端已于此端断开连接。Exemplarily, the first terminal establishes a heartbeat with the server. It should be noted that the receiving and sending data in the network is implemented by using a pair of sockets (SOCKET, which is used to describe the IP address and port) in the operating system. But if the socket is disconnected, there must be problems when sending data and receiving data. The purpose of creating a heartbeat mechanism is to determine if this socket is available. The heartbeat mechanism is a mechanism in which one end sends a custom structure (heartbeat packet) to the other end, and the other end knows that the socket of the other end is still in use to ensure the validity of the connection. For example, when one end sends a heartbeat packet to the other end and does not receive a reply from the other end within 5 minutes, it can be considered that the other end of the socket is unavailable, that is, the other end has been disconnected at this end.
示例性的,第一登录请求消息包括第一终端的识别码和/或第一终端的号码。Exemplarily, the first login request message includes an identification code of the first terminal and/or a number of the first terminal.
步骤702,第二终端向服务器发送第二登录请求消息,第二登录请求消息包括第二终端的状态信息。Step 702: The second terminal sends a second login request message to the server, where the second login request message includes status information of the second terminal.
示例性的,第二终端与服务器建立第二连接(例如,HTTP连接),并通过第二连接向服务器发送第二登录请求消息。Exemplarily, the second terminal establishes a second connection (eg, an HTTP connection) with the server, and sends a second login request message to the server through the second connection.
示例性的,第二登录请求消息包括第二终端的识别码和/或第一终端的号码。Exemplarily, the second login request message includes an identification code of the second terminal and/or a number of the first terminal.
需要说明的是,1)可以在执行步骤701的同时,之前或之后执行步骤702,本发明实施例对此不作限定。2)在执行步骤701和702之后,第一终端和第二终端之间可以订阅对方的状态信息。例如,第一终端向服务器发送查询第二终端状态信息的请求,服务器将 查询到的第二终端的状态信息发送给第一终端。又例如,第一终端向服务器订阅第二终端的状态信息,服务器查询第二终端的状态信息,并通过短信等形式定期发送给第一终端。再例如,第一终端登录***应用,服务器自动查询第一终端和第二终端的状态信息,并通过***应用呈现给第一终端的用户。例如,第一终端登录***应用后,查看应用中的通讯录(如图8(a)所示),可以实时查看其中某个用户支持的多媒体能力信息(如图8(b)所示,对于该用户支持的多媒体能力,相应的按钮显示为第一状态,如,白色;对于该用户不支持的多媒体能力,相应的按钮显示为第二状态,如,灰色。)。其中,终端的状态信息,包括终端是否开放了接收图片或语音的权限,是否支持视频通话等。需要说明的是,状态信息和多媒体能力集中的内容可以相同,也可以不同。均可以根据用户的偏好进行设置,同时也取决于终端和网络是否支持相应的多媒体能力。It should be noted that, the step 702 may be performed before or after the step 701 is performed, which is not limited by the embodiment of the present invention. 2) After performing steps 701 and 702, the first terminal and the second terminal can subscribe to the status information of the other party. For example, the first terminal sends a request for querying the second terminal status information to the server, and the server will The status information of the queried second terminal is sent to the first terminal. For another example, the first terminal subscribes to the server for status information of the second terminal, and the server queries the status information of the second terminal, and periodically sends the status information to the first terminal by using a short message or the like. For another example, the first terminal logs in to the system application, and the server automatically queries the status information of the first terminal and the second terminal, and presents the status information to the user of the first terminal by using the system application. For example, after the first terminal logs in to the system application, the address book in the application is viewed (as shown in FIG. 8(a)), and the multimedia capability information supported by one of the users can be viewed in real time (as shown in FIG. 8(b), The multimedia capability supported by the user, the corresponding button is displayed as a first state, such as white; for a multimedia capability that the user does not support, the corresponding button is displayed as a second state, such as gray. The status information of the terminal includes whether the terminal has the right to receive pictures or voices, whether to support video calls, and the like. It should be noted that the content of the status information and the multimedia capability set may be the same or different. They can all be set according to the user's preferences, and also depend on whether the terminal and the network support the corresponding multimedia capabilities.
可选的,步骤703,第一终端向服务器发送第一登录请求响应消息。Optionally, in step 703, the first terminal sends a first login request response message to the server.
可选的,步骤704,第二终端向服务器发送第二登录请求响应消息。示例性的,在步骤704之后,还可以包括,服务器建立第一终端的识别码与第一终端的对应关系,以及第二终端的识别码与第二终端的对应关系。Optionally, in step 704, the second terminal sends a second login request response message to the server. Exemplarily, after the step 704, the server may further include: the server establishes a correspondence between the identifier of the first terminal and the first terminal, and a correspondence between the identifier of the second terminal and the second terminal.
步骤705,第一终端向第二终端发送推送请求消息,该消息用于请求服务器生成令牌并建立令牌与第一终端的对应关系。需要说明的是,对步骤705的介绍可以参见上述实施例中对步骤201的描述,在此不作赘述。另外,推送请求消息中携带的能力集,可以与步骤701中第一终端的状态信息相同,也可以不同,具体可以根据用户设置、终端以及网络状态等进行调整。例如,第一终端的状态信息显示支持视频通话,当用户更换终端后,终端因无摄像头,所以不能支持视频通话,即第一终端的能力集中不包括支持视频通话。又例如,第一终端的状态信息显示支持位置共享,但因网络状态不稳定,第一终端无法读取用户位置信息,所以不支持位置共享,即第一终端的能力集中不包括支持位置共享。Step 705: The first terminal sends a push request message to the second terminal, where the message is used to request the server to generate a token and establish a correspondence between the token and the first terminal. It should be noted that the description of step 705 can be referred to the description of step 201 in the foregoing embodiment, and details are not described herein. In addition, the capability set carried in the push request message may be the same as or different from the state information of the first terminal in step 701, and may be adjusted according to user settings, terminals, and network status. For example, the status information of the first terminal is displayed to support the video call. When the user replaces the terminal, the terminal cannot support the video call because there is no camera, that is, the capability set of the first terminal does not include supporting the video call. For example, the status information of the first terminal is displayed to support the location sharing. However, because the network status is unstable, the first terminal cannot read the user location information, so the location sharing is not supported, that is, the capability aggregation of the first terminal does not include the support location sharing.
步骤706,服务器向第二终端发送唤醒消息,该消息包括令牌。Step 706: The server sends a wakeup message to the second terminal, where the message includes a token.
示例性的,服务器根据心跳机制向第二终端发送唤醒消息(例如,包括心跳包),以判断服务器与第二终端是否仍处于连接状态。如果仍处于连接状态,则执行步骤707,如果连接已断开,则采用如图2所示的实施例中的方法,执行步骤202-步骤214。Exemplarily, the server sends a wake-up message (for example, including a heartbeat packet) to the second terminal according to the heartbeat mechanism to determine whether the server and the second terminal are still in a connected state. If it is still in the connected state, step 707 is performed, and if the connection has been disconnected, steps 202-214 are performed using the method in the embodiment shown in FIG. 2.
示例性的,唤醒消息包括第一终端的号码。Illustratively, the wake-up message includes the number of the first terminal.
步骤707,服务器从第二终端接收唤醒响应消息。Step 707: The server receives a wakeup response message from the second terminal.
步骤708,服务器向第一终端发送推送响应消息,该消息携带该令牌。Step 708: The server sends a push response message to the first terminal, where the message carries the token.
示例性的,推送响应消息携带后续推送(Massed)标识。后续推送标识用于指示第一终端在向第二终端发送的呼叫信令中,不需要传送令牌。Illustratively, the push response message carries a subsequent pushed identity. The subsequent push identifier is used to indicate that the first terminal does not need to transmit the token in the call signaling sent to the second terminal.
步骤709,第一终端向第二终端发送呼叫信令,呼叫信令包括改令牌。Step 709: The first terminal sends call signaling to the second terminal, where the call signaling includes changing the token.
示例性的,第一终端根据后续推送标识向第二终端发送呼叫信令。因呼叫信令中不需要传送令牌,所以也不需要使用UUS信元。UUS信元是运营商网络的信令中的信元,无需使用UUS信元可以使信令交互流程更加简洁。Exemplarily, the first terminal sends call signaling to the second terminal according to the subsequent push identifier. Since there is no need to transmit a token in call signaling, there is no need to use a UUS cell. The UUS cell is a cell in the signaling of the carrier network. The signaling interaction process can be simplified without using a UUS cell.
本发明实施里还包括步骤710-步骤720,对步骤710-步骤720的介绍可以如图2所示实施例中对步骤204-步骤214的介绍,在此不作赘述。The implementation of the present invention also includes the steps 710-step 720. The description of the steps 710-720 can be introduced in the embodiment shown in FIG. 2, and is not described here.
本发明实施例提供的多媒体能力发现的方法,通过第一终端向第二终端发起呼叫时,服务器根据从第一终端接收的第二终端的号码,生成唯一标识本次呼叫的令牌,并向第一 终端和第二终端发送该令牌,以及根据该令牌关联第一终端和第二终端,进而实现第一终端和第二终端的进而实现第一终端和第二终端的多媒体数据传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,直接建立多媒体连接并进行多媒体业务。The method for discovering the multimedia capability provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, the server generates a token that uniquely identifies the current call according to the number of the second terminal received from the first terminal, and the first The terminal and the second terminal send the token, and associate the first terminal and the second terminal according to the token, thereby implementing the multimedia data transmission of the first terminal and the second terminal to implement the first terminal and the second terminal. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
图9为本发明实施例提供的再一种多媒体能力发现的方法的通信示意图。如图8所示,本实施可以包括:FIG. 9 is a schematic diagram of communication of a method for discovering multimedia capabilities according to an embodiment of the present invention. As shown in FIG. 8, the implementation may include:
步骤901,第一终端向第二终端发送呼叫信令,呼叫信令用于建立呼叫业务以及获取所述第二终端的IP地址。Step 901: The first terminal sends call signaling to the second terminal, where the call signaling is used to establish a call service and obtain an IP address of the second terminal.
示例性的,呼叫信令中携带第一终端的IP地址。Exemplarily, the call signaling carries the IP address of the first terminal.
步骤902,第一终端从第二终端接收第二终端的IP地址。Step 902: The first terminal receives an IP address of the second terminal from the second terminal.
步骤903,第一终端根据第二终端的IP地址向第二终端发送多媒体数据。Step 903: The first terminal sends the multimedia data to the second terminal according to the IP address of the second terminal.
本发明实施例提供的多媒体能力发现的方法,通过第一终端向第二终端发起呼叫时,从第二终端获取第二终端的IP地址,进而实现第一终端和第二终端的多媒体数据传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,直接建立多媒体连接并进行多媒体业务。The method for discovering multimedia capability provided by the embodiment of the present invention, when the first terminal initiates a call to the second terminal, acquires the IP address of the second terminal from the second terminal, thereby implementing multimedia data transmission of the first terminal and the second terminal. Therefore, the first terminal and the second terminal can directly establish a multimedia connection and perform multimedia services during the call and after the call ends.
上文中结合图1至图9,详细描述了根据本发明实施例的多媒体数据传输的方法,下面根据图10-16,详细描述根据本发明实施例的服务器和终端。The method for multimedia data transmission according to an embodiment of the present invention is described in detail above with reference to FIGS. 1 through 9. Hereinafter, a server and a terminal according to an embodiment of the present invention will be described in detail based on FIGS. 10-16.
图10为本发明实施例提供的一种服务器的结构示意图。该服务器1000可以包括通信模块1001和处理模块1002。FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 1000 can include a communication module 1001 and a processing module 1002.
本领域技术人员可以理解,图10仅仅示出了服务器的结构的简化设计。图10中示出的服务器结构并不构成对服务器的限定,该服务器可以包括比图示10更多或更少的部件,例如,该服务器还可以包括用于存储通信算法相应的指令的存储模块。Those skilled in the art will appreciate that Figure 10 only shows a simplified design of the structure of the server. The server structure shown in FIG. 10 does not constitute a limitation to the server, and the server may include more or less components than the illustration 10, for example, the server may further include a storage module for storing corresponding instructions of the communication algorithm. .
图10中,处理模块1002用于指示通信模块1001在从第一终端接收第一消息,第一消息用于指示第一终端请求通过服务器向第二终端发送多媒体数据;以及指示通信模块从第二终端接收第二终端的能力集,并向第一终端发送第二终端的能力集;以及指示通信模块从第一终端接收多媒体数据,并向第二终端发送多媒体数据;多媒体数据由第一终端基于第一终端的能力集和第二终端的能力集发送至第二终端。In FIG. 10, the processing module 1002 is configured to instruct the communication module 1001 to receive a first message from the first terminal, where the first message is used to instruct the first terminal to request to send multimedia data to the second terminal by using the server, and to indicate that the communication module is from the second The terminal receives the capability set of the second terminal, and sends the capability set of the second terminal to the first terminal; and instructs the communication module to receive the multimedia data from the first terminal, and sends the multimedia data to the second terminal; the multimedia data is based on the first terminal The capability set of the first terminal and the capability set of the second terminal are sent to the second terminal.
示例性的,第一消息携带第二终端的号码;处理模块1002用于指示通信模块1001在从第一终端接收第一消息之后,根据第二终端的号码,生成令牌,并建立令牌与第一终端的第一对应关系;以及指示通信模块1001从第二终端接收令牌,并建立令牌与第二终端的第二对应关系。Exemplarily, the first message carries the number of the second terminal; the processing module 1002 is configured to instruct the communication module 1001 to generate a token according to the number of the second terminal after receiving the first message from the first terminal, and establish a token and a first correspondence relationship of the first terminal; and indicating that the communication module 1001 receives the token from the second terminal, and establishes a second correspondence between the token and the second terminal.
示例性的,处理模块1002用于指示通信模块1001向第一终端发送第二终端的能力集,包括:指示通信模块1001根据令牌和第一对应关系,向第一终端发送第二终端的能力集。Exemplarily, the processing module 1002 is configured to instruct the communication module 1001 to send the capability set of the second terminal to the first terminal, including: instructing the communication module 1001 to send the capability of the second terminal to the first terminal according to the token and the first correspondence. set.
示例性的,处理模块1002用于指示通信模块1001从第一终端接收多媒体数据,并向第二终端发送多媒体数据,包括:指示通信模块1001从第一终端接收令牌和多媒体数据,并根据令牌和第二对应关系向第二终端发送多媒体数据。Exemplarily, the processing module 1002 is configured to instruct the communication module 1001 to receive multimedia data from the first terminal, and send the multimedia data to the second terminal, including: instructing the communication module 1001 to receive the token and the multimedia data from the first terminal, and The card and the second correspondence send multimedia data to the second terminal.
示例性的,第一消息还携带第一终端的识别码;处理模块1002用于指示通信模块 1001从第一终端接收第一消息之后,根据第二终端的号码和识别码,生成令牌,并建立令牌、第一终端的识别码与第一终端的第一对应关系;指示通信模块1001从第二终端接收令牌和第二终端的识别码,并建立令牌、第二终端的识别码与第二终端的第二对应关系。Exemplarily, the first message further carries an identifier of the first terminal; the processing module 1002 is configured to indicate the communication module After receiving the first message from the first terminal, the 1001 generates a token according to the number and the identification code of the second terminal, and establishes a token, a first correspondence between the identifier of the first terminal and the first terminal, and indicates the communication module 1001. And receiving, by the second terminal, the token and the identifier of the second terminal, and establishing a token, a second terminal, and a second terminal.
示例性的,处理模块1002用于指示通信模块1001向第一终端发送第二终端的能力集,包括:指示通信模块1001根据令牌和第一终端的识别码,向第一终端发送第二终端的能力集。Exemplarily, the processing module 1002 is configured to instruct the communication module 1001 to send the capability set of the second terminal to the first terminal, including: instructing the communication module 1001 to send the second terminal to the first terminal according to the token and the identifier of the first terminal. Ability set.
示例性的,处理模块1002用于指示通信模块1001从第一终端接收多媒体数据,并向第二终端发送多媒体数据,包括:指示通信模块1001从第一终端接收令牌和多媒体数据,并根据令牌和第二终端的识别码,向第二终端发送多媒体数据。Exemplarily, the processing module 1002 is configured to instruct the communication module 1001 to receive multimedia data from the first terminal, and send the multimedia data to the second terminal, including: instructing the communication module 1001 to receive the token and the multimedia data from the first terminal, and The card and the identification code of the second terminal send the multimedia data to the second terminal.
示例性的,处理模块1002用于指示通信模块1001在从第二终端接收令牌之前,指示通信模块1001根据第一消息,向第二终端发送令牌。Exemplarily, the processing module 1002 is configured to instruct the communication module 1001 to instruct the communication module 1001 to send a token to the second terminal according to the first message before receiving the token from the second terminal.
示例性的,处理模块1002用于指示通信模块1001在从第一终端接收第一消息之前,指示通信模块1001从第一终端接收第一终端的能力集,并从第二终端接收第二终端的能力集;当第一终端订阅第二终端的能力集时,指示通信模块1001向第一终端发送第二终端的能力集。Exemplarily, the processing module 1002 is configured to instruct the communication module 1001 to receive the capability set of the first terminal from the first terminal and receive the second terminal from the second terminal before receiving the first message from the first terminal. The capability set; when the first terminal subscribes to the capability set of the second terminal, instructs the communication module 1001 to send the capability set of the second terminal to the first terminal.
本发明实施例提供的服务器,可以通过生成令牌建立第一终端和第二终端之间的对应关系,从而交换第一终端和第二终端之间的多媒体能力信息,使第一终端和第二终端之间能够进行多媒体数据传输。在该服务器作为交换多媒体能力的中转服务器的同时,也可以作为交换多媒体数据的中转服务器,从而实现第一终端和第二终端之间多媒体能力信息的交换和多媒体数据的传输。The server provided by the embodiment of the present invention may establish a correspondence between the first terminal and the second terminal by generating a token, thereby exchanging multimedia capability information between the first terminal and the second terminal, so that the first terminal and the second terminal Multimedia data transmission between terminals is possible. The server can also serve as a relay server for exchanging multimedia data, and can exchange multimedia capability information and multimedia data between the first terminal and the second terminal.
图11为本发明实施例提供的一种终端的结构示意图。该终端1100可以包括通信模块1101和处理模块1102。FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 1100 can include a communication module 1101 and a processing module 1102.
本领域技术人员可以理解,图11仅仅示出了终端的结构的简化设计。图11中示出的终端结构并不构成对终端的限定,该终端可以包括比图示11更多或更少的部件,例如,该终端还可以包括用于存储通信算法相应的指令的存储模块。Those skilled in the art will appreciate that Figure 11 only shows a simplified design of the structure of the terminal. The terminal structure shown in FIG. 11 does not constitute a limitation to the terminal, and the terminal may include more or less components than the illustration 11, for example, the terminal may further include a storage module for storing instructions corresponding to the communication algorithm. .
图11中,处理模块1102用于指示通信模块1101向服务器发送第一消息,第一消息用于指示该终端请求通过服务器向第二终端发送多媒体数据;以及指示通信模块1101从服务器接收第二终端的能力集,并确定该终端的能力集和第二终端的能力集的交集;以及该终端根据交集向第二终端发送多媒体数据。In FIG. 11, the processing module 1102 is configured to instruct the communication module 1101 to send a first message to the server, where the first message is used to indicate that the terminal requests to send multimedia data to the second terminal by using the server; and the communication module 1101 is instructed to receive the second terminal from the server. a set of capabilities, and determining an intersection of the capability set of the terminal and the capability set of the second terminal; and the terminal transmitting the multimedia data to the second terminal according to the intersection.
示例性的,第一消息携带第二终端的号码,第一消息还用于指示服务器根据第二终端的号码生成令牌,并建立令牌与该终端的对应关系,令牌用于唯一标识该终端和第二终端之间的多媒体会话。Exemplarily, the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal, and establish a correspondence between the token and the terminal, where the token is used to uniquely identify the A multimedia session between the terminal and the second terminal.
示例性的,处理模块1102用于指示通信模块1101根据交集向服务器发送多媒体数据,包括:指示通信模块1101根据交集向服务器发送多媒体数据和令牌。Exemplarily, the processing module 1102 is configured to instruct the communication module 1101 to send multimedia data to the server according to the intersection, including: instructing the communication module 1101 to send the multimedia data and the token to the server according to the intersection.
示例性的,第一消息还携带该终端的识别码,第一消息还用于指示服务器根据第二终端的号码和该终端的识别码生成令牌,并建立令牌、该终端的识别码与该终端的对应关系。 Exemplarily, the first message further carries an identifier of the terminal, where the first message is further used to instruct the server to generate a token according to the number of the second terminal and the identifier of the terminal, and establish a token, an identifier of the terminal, and The correspondence of the terminal.
示例性的,处理模块1102用于指示通信模块1101在从服务器接收第二终端的能力集之前,指示通信模块1101向第二终端发送令牌。Exemplarily, the processing module 1102 is configured to instruct the communication module 1101 to instruct the communication module 1101 to send a token to the second terminal before receiving the capability set of the second terminal from the server.
示例性的,处理模块1102用于指示通信模块1101在向服务器发送第一消息之前,指示通信模块1101向服务器发送该终端的能力集;该终端的能力集用于,当第二终端订阅该终端的能力集时,服务器向第二终端发送该终端的能力集。Exemplarily, the processing module 1102 is configured to instruct the communication module 1101 to send the capability set of the terminal to the server before sending the first message to the server; the capability set of the terminal is used when the second terminal subscribes to the terminal When the capability set is set, the server sends the capability set of the terminal to the second terminal.
示例性的,处理模块1102用于在确定该终端的能力集和第二终端的能力集的交集之后,根据交集改变该终端的多媒体通信标识的状态。Exemplarily, the processing module 1102 is configured to change a state of the multimedia communication identifier of the terminal according to the intersection after determining an intersection of the capability set of the terminal and the capability set of the second terminal.
示例性的,处理模块1102用于指示通信模块1101在向服务器发送第一消息之后,指示通信模块1101从第二终端接收并保存该终端的号码。Exemplarily, the processing module 1102 is configured to instruct the communication module 1101 to, after sending the first message to the server, instruct the communication module 1101 to receive and save the number of the terminal from the second terminal.
本发明实施例提供的终端,在向第二终端发起呼叫时,从服务器取得令牌,并向第二终端发送该令牌,使服务器从第二终端接收该令牌后,能够根据该令牌关联该终端和第二终端,进而实现该终端和第二终端的多媒体能力数据传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,通过服务器进行多媒体数据的传输。The terminal provided by the embodiment of the present invention obtains a token from the server when the call is initiated to the second terminal, and sends the token to the second terminal, so that the server can receive the token from the second terminal, according to the token. The terminal and the second terminal are associated, thereby implementing multimedia capability data transmission of the terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
图12为本发明实施例提供的一种终端的结构示意图。该终端1200可以包括通信模块1201和处理模块1202。FIG. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 1200 can include a communication module 1201 and a processing module 1202.
本领域技术人员可以理解,图12仅仅示出了终端的结构的简化设计。图12中示出的终端结构并不构成对终端的限定,该终端可以包括比图示12更多或更少的部件,例如,该终端还可以包括用于存储通信算法相应的指令的存储模块。Those skilled in the art will appreciate that Figure 12 only shows a simplified design of the structure of the terminal. The terminal structure shown in FIG. 12 does not constitute a limitation to the terminal, and the terminal may include more or less components than the illustration 12, for example, the terminal may further include a storage module for storing corresponding instructions of the communication algorithm. .
图12中,处理模块1202用于指示通信模块1201向服务器发送终端的能力集,终端的能力集用于服务器发送给第一终端,以及第一终端向终端发送多媒体数据;以及指示通信模块从第一终端接收多媒体数据。In FIG. 12, the processing module 1202 is configured to instruct the communication module 1201 to send a capability set of the terminal to the server, where the capability set of the terminal is used by the server to send to the first terminal, and the first terminal sends the multimedia data to the terminal; A terminal receives multimedia data.
示例性的,处理模块1202用于指示通信模块1201在向服务器发送该终端的能力集之前,从第一终端接收令牌。且处理模块1202用于指示通信模块1201向服务器发送该终端的能力集,包括:指示通信模块1201向服务器发送该终端的能力集和令牌,令牌用于服务器建立令牌与该终端的对应关系。Exemplarily, the processing module 1202 is configured to instruct the communication module 1201 to receive the token from the first terminal before transmitting the capability set of the terminal to the server. And the processing module 1202 is configured to instruct the communication module 1201 to send the capability set of the terminal to the server, including: instructing the communication module 1201 to send the capability set and the token of the terminal to the server, where the token is used by the server to establish a correspondence between the token and the terminal. relationship.
示例性的,处理模块1202用于指示通信模块1201在该终端向服务器发送该终端的能力集之前,该终端从服务器接收令牌,令牌用于指示该终端向服务器发送该终端的能力集。Exemplarily, the processing module 1202 is configured to instruct the communication module 1201 to receive a token from the server before the terminal sends the capability set of the terminal to the server, where the token is used to indicate that the terminal sends the capability set of the terminal to the server.
示例性的,该终端的能力集用于,当第一终端订阅该终端的能力集时,服务器向第一终端发送该终端的能力集。Exemplarily, the capability set of the terminal is used, when the first terminal subscribes to the capability set of the terminal, the server sends the capability set of the terminal to the first terminal.
示例性的,处理模块1202还用于指示通信模块1201从第一终端接收并保存该终端的号码。Exemplarily, the processing module 1202 is further configured to instruct the communication module 1201 to receive and save the number of the terminal from the first terminal.
本发明实施例提供的终端,通过第一终端向该终端发起呼叫时,从第一终端或服务器接收该令牌后,向服务器发送该令牌,使服务器能够根据该令牌关联第一终端和该终端,进而实现第一终端和第二终端的多媒体能力数据传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,通过服务器进行多媒体数据的传输。When the terminal is initiated by the first terminal to the terminal, the terminal provided by the first terminal or the server sends the token to the server, so that the server can associate the first terminal with the token according to the token. The terminal further implements multimedia capability data transmission of the first terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
图13为本发明实施例提供的另一种服务器的结构示意图。如图13所示,该服务器 1300包括:存储器1301、处理器1302和无线通信接口1303等部件。存储器1301可以用于存储服务器的程序代码和数据。处理器1302可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。无线通信接口是统称,可以包括一个或多个接口,支持终端和服务器等网元之间的通信交互,可以用于终端和服务器等网元之间进行消息的发送和接收。本领域技术人员可以理解,图13示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,该服务器还可以包括总线1304。其中,无线通信接口1303、处理器1302以及存储器1301可以通过总线1304相互连接;总线1304可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。所述总线1304可以分为地址总线、数据总线、控制总线等。为便于表示,图13中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。FIG. 13 is a schematic structural diagram of another server according to an embodiment of the present invention. As shown in Figure 13, the server The 1300 includes components such as a memory 1301, a processor 1302, and a wireless communication interface 1303. The memory 1301 can be used to store program code and data of the server. The processor 1302 may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), and a field programmable gate array. (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The wireless communication interface is a general term and can include one or more interfaces, and supports communication interaction between network elements such as a terminal and a server, and can be used for sending and receiving messages between network elements such as terminals and servers. It will be understood by those skilled in the art that the server structure illustrated in FIG. 13 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. For example, the server can also include a bus 1304. The wireless communication interface 1303, the processor 1302, and the memory 1301 may be connected to each other through a bus 1304. The bus 1304 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture). Referred to as EISA) bus. The bus 1304 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 13, but it does not mean that there is only one bus or one type of bus.
如图13所示,存储器1301,用于存储程序指令;处理器1302,用于根据存储器1301中存储的程序指令执行以下操作:从第一终端获取第一消息,第一消息用于指示第一终端请求通过服务器向第二终端发送多媒体数据;以及从第二终端获取第二终端的能力集,并向第一终端发送第二终端的能力集;以及从第一终端获取多媒体数据,并向第二终端发送多媒体数据;多媒体数据由第一终端基于第一终端的能力集和第二终端的能力集发送至第二终端。As shown in FIG. 13, a memory 1301 is configured to store program instructions, and a processor 1302 is configured to: according to the program instructions stored in the memory 1301, obtain the first message, where the first message is used to indicate the first Transmitting, by the server, the multimedia data to the second terminal by using the server; acquiring the capability set of the second terminal from the second terminal, and transmitting the capability set of the second terminal to the first terminal; and acquiring the multimedia data from the first terminal, and The second terminal sends the multimedia data; the multimedia data is sent by the first terminal to the second terminal based on the capability set of the first terminal and the capability set of the second terminal.
示例性的,第一消息携带第二终端的号码;处理器1302,还用于根据存储器1301中存储的程序指令执行以下操作:在从第一终端获取第一消息之后,根据第二终端的号码,生成令牌,并建立令牌与第一终端的第一对应关系;以及从第二终端获取令牌,并建立令牌与第二终端的第二对应关系。Exemplarily, the first message carries the number of the second terminal; the processor 1302 is further configured to: according to the program instruction stored in the memory 1301, perform the following operations: after acquiring the first message from the first terminal, according to the number of the second terminal Generating a token, and establishing a first correspondence between the token and the first terminal; and acquiring a token from the second terminal, and establishing a second correspondence between the token and the second terminal.
示例性的,处理器1302,用于根据存储器1301中存储的程序指令执行以下操作:控制无线通信接口1303向第一终端发送第二终端的能力集,包括:控制无线通信接口1303根据令牌和第一对应关系,向第一终端发送第二终端的能力集。Exemplarily, the processor 1302 is configured to: according to the program instructions stored in the memory 1301, control the wireless communication interface 1303 to send the capability set of the second terminal to the first terminal, including: controlling the wireless communication interface 1303 according to the token and The first correspondence sends the capability set of the second terminal to the first terminal.
示例性的,处理器1302,用于根据存储器1301中存储的程序指令执行以下操作:从第一终端获取多媒体数据,并向第二终端发送多媒体数据,包括:从第一终端获取令牌和多媒体数据,并根据令牌和第二对应关系向第二终端发送多媒体数据。Exemplarily, the processor 1302 is configured to: according to the program instructions stored in the memory 1301, acquire the multimedia data from the first terminal, and send the multimedia data to the second terminal, including: acquiring the token and the multimedia from the first terminal Data, and transmitting multimedia data to the second terminal according to the token and the second correspondence.
示例性的,根据权利要求27的服务器,其特征在于,处理器1302,用于根据存储器1301中存储的程序指令执行以下操作:在从第一终端获取第一消息之后,根据第二终端的号码和识别码,生成令牌,并建立令牌、第一终端的识别码与第一终端的第一对应关系;以及从第二终端获取令牌和第二终端的识别码,并建立令牌、第二终端的识别码与第二终端的第二对应关系。Illustratively, the server according to claim 27, wherein the processor 1302 is configured to perform the following operations according to the program instructions stored in the memory 1301: after acquiring the first message from the first terminal, according to the number of the second terminal And identifying the code, generating a token, and establishing a token, a first correspondence between the identifier of the first terminal and the first terminal; and acquiring the token and the identifier of the second terminal from the second terminal, and establishing a token, a second correspondence between the identifier of the second terminal and the second terminal.
示例性的,处理器1302,用于根据存储器1301中存储的程序指令执行以下操作:控 制无线通信接口1303向第一终端发送第二终端的能力集,包括:控制无线通信接口1303根据令牌和第一终端的识别码,向第一终端发送第二终端的能力集。Exemplarily, the processor 1302 is configured to perform the following operations according to the program instructions stored in the memory 1301: The wireless communication interface 1303 sends the capability set of the second terminal to the first terminal, including: controlling the wireless communication interface 1303 to send the capability set of the second terminal to the first terminal according to the token and the identification code of the first terminal.
示例性的,处理器1302,用于根据存储器1301中存储的程序指令执行以下操作:从第一终端获取多媒体数据,并向第二终端发送多媒体数据,包括:从第一终端获取令牌和多媒体数据,并根据令牌和第二终端的识别码,向第二终端发送多媒体数据。Exemplarily, the processor 1302 is configured to: according to the program instructions stored in the memory 1301, acquire the multimedia data from the first terminal, and send the multimedia data to the second terminal, including: acquiring the token and the multimedia from the first terminal Data, and transmitting multimedia data to the second terminal according to the token and the identification code of the second terminal.
示例性的,处理器1302,用于根据存储器1301中存储的程序指令执行以下操作:在从第二终端获取令牌之前,控制无线通信接口1303根据第一消息,向第二终端发送令牌。Exemplarily, the processor 1302 is configured to perform, according to the program instruction stored in the memory 1301, the control wireless communication interface 1303 to send the token to the second terminal according to the first message before acquiring the token from the second terminal.
示例性的,处理器1302,用于根据存储器1301中存储的程序指令执行以下操作:在从第一终端获取第一消息之前,从第一终端获取第一终端的能力集,并从第二终端获取第二终端的能力集;控制无线通信接口1303当第一终端订阅第二终端的能力集时,向第一终端发送第二终端的能力集。Exemplarily, the processor 1302 is configured to: according to the program instruction stored in the memory 1301, acquire the capability set of the first terminal from the first terminal, and obtain the first terminal from the second terminal before acquiring the first message from the first terminal Obtaining a capability set of the second terminal; and controlling the wireless communication interface 1303 to send the capability set of the second terminal to the first terminal when the first terminal subscribes to the capability set of the second terminal.
本发明实施例提供的服务器,可以通过生成令牌建立第一终端和第二终端之间的对应关系,从而交换第一终端和第二终端之间的多媒体能力信息,使第一终端和第二终端之间能够进行多媒体数据传输。在该服务器作为交换多媒体能力的中转服务器的同时,也可以作为交换多媒体数据的中转服务器,从而实现第一终端和第二终端之间多媒体能力信息的交换和多媒体数据的传输。The server provided by the embodiment of the present invention may establish a correspondence between the first terminal and the second terminal by generating a token, thereby exchanging multimedia capability information between the first terminal and the second terminal, so that the first terminal and the second terminal Multimedia data transmission between terminals is possible. The server can also serve as a relay server for exchanging multimedia data, and can exchange multimedia capability information and multimedia data between the first terminal and the second terminal.
图14为本发明实施例提供的另一种终端的结构示意图。如图14所示,该终端包括:射频(Radio Frequency,RF)电路1410、存储器1420、输入单元1430、显示单元1440、处理器1450、无线局域网(Wireless Local Area Networks,WLAN)模块1460、电源1470以及蓝牙模块1480等部件。本领域技术人员可以理解,图14示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 14 is a schematic structural diagram of another terminal according to an embodiment of the present invention. As shown in FIG. 14, the terminal includes: a radio frequency (RF) circuit 1410, a memory 1420, an input unit 1430, a display unit 1440, a processor 1450, a wireless local area network (WLAN) module 1460, and a power supply 1470. And components such as the Bluetooth module 1480. It will be understood by those skilled in the art that the terminal structure shown in FIG. 14 does not constitute a limitation of the terminal, and may include more or less components than those illustrated, or combine some components, or different component arrangements.
RF电路1410可用于收发信息,例如,连接移动宽带。通常,RF电路1410包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1410还可以将移动带宽业务转发至WLAN模块1460,以通过WLAN模块1460将移动带宽业务转发给其他终端。其中,无线通信可以采用任一通信标准或协议,包括但不限于全球移动通讯***(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1410 can be used to send and receive information, for example, to connect to a mobile broadband. Generally, RF circuit 1410 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1410 can also forward mobile bandwidth traffic to WLAN module 1460 to forward mobile bandwidth traffic to other terminals via WLAN module 1460. Among them, wireless communication can adopt any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code division multiple access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
存储器1420可用于存储程序指令,处理器1450通过运行存储在存储器1420的程序指令,从而使得该终端执行上述如图图2-图9所示的多媒体数据传输的方法。存储器1420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***以及实现上述多媒体数据传输的方法所需的应用程序等。存储数据区可存储终端的列表信息以及该终端在执行上述多媒体数据传输的方法时产生的数据等。此外,存储器1420可包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);所述存储器1420也可以包括非易失性存储器(non-volatile memory),例如只读存储器 (read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)。所述存储器1420还可以包括上述种类的存储器的组合。The memory 1420 can be used to store program instructions, and the processor 1450 causes the terminal to execute the above-described method of multimedia data transmission as shown in FIGS. 2-9 by running program instructions stored in the memory 1420. The memory 1420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program or the like required to implement the above method of multimedia data transmission. The storage data area can store list information of the terminal and data generated by the terminal when the method of transmitting the multimedia data described above is executed. In addition, the memory 1420 may include a volatile memory, such as a random-access memory (RAM); the memory 1420 may also include a non-volatile memory, such as only Read memory (read-only memory, ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD). The memory 1420 may also include a combination of the above types of memories.
输入单元1430可用于接收用户输入的数字或字符信息,包括开启WLAN热点指令、选择共享WLAN热点的终端的指令等。具体地,输入单元1430可包括触控面板1431以及其他输入设备1432。触控面板1431,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1431上或在触控面板1431附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1450,并能接收处理器1450发来的命令并加以执行。此外,输入单元1430可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1431。除了触控面板1431,输入单元1430还可以包括其他输入设备1432。具体地,其他输入设备1432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1430 can be configured to receive numeric or character information input by the user, including an WLAN hotspot command, an instruction to select a terminal sharing the WLAN hotspot, and the like. Specifically, the input unit 1430 may include a touch panel 1431 and other input devices 1432. The touch panel 1431, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1431 or near the touch panel 1431. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 631 can include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1450 is provided and can receive commands from the processor 1450 and execute them. In addition, the input unit 1430 can implement the touch panel 1431 by using various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1431, the input unit 1430 may also include other input devices 1432. Specifically, other input devices 1432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元1440可用于显示由用户输入的信息或提供给用户的信息以及终端的各种菜单。显示单元1440可包括显示屏1441,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏1441。进一步的,触控面板1431可覆盖显示屏1441,当触控面板1431检测到在其上或附近的触摸操作后,传送给处理器1450以确定触摸事件的类型,随后处理器1450根据触摸事件的类型在显示屏1441上提供相应的视觉输出。虽然在图14中,触控面板1431与显示屏1441是作为两个独立的部件来实现终端的输入和输入功能,但是在某些实施例中,可以将触控面板1431与显示屏1441集成而实现终端的输入和输出功能。The display unit 1440 can be used to display information input by the user or information provided to the user as well as various menus of the terminal. The display unit 1440 can include a display screen 1441. Alternatively, the display screen 1441 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1431 may cover the display screen 1441. When the touch panel 1431 detects a touch operation thereon or nearby, the touch panel 1431 transmits to the processor 1450 to determine the type of the touch event, and then the processor 1450 according to the touch event. The type provides a corresponding visual output on display 1441. Although in FIG. 14 , the touch panel 1431 and the display screen 1441 are used as two independent components to implement the input and input functions of the terminal, in some embodiments, the touch panel 1431 may be integrated with the display 1441. Realize the input and output functions of the terminal.
处理器1450是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器1420内的软件程序和/或模块,以及调用存储在存储器1420内的数据,执行如图2-图8所示的多媒体数据传输的方法。可选的,处理器1450可包括一个或多个处理单元。优选的,处理器1450可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1450中。The processor 1450 is the control center of the terminal, which connects various portions of the entire terminal using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1420, and invoking data stored in the memory 1420, The method of multimedia data transmission shown in Figures 2-8. Optionally, the processor 1450 can include one or more processing units. Preferably, the processor 1450 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the above described modem processor may also not be integrated into the processor 1450.
WLAN模块1460可用于帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带WLAN互联网访问。WLAN属于短距离无线传输技术,终端可通过WLAN模块1460接入WLAN热点,也可通过WLAN模块1460开启WLAN热点,将移动带宽业务转发给其他终端。WLAN模块1460还可进行Wi-Fi广播和扫描,以实现与周围其他终端的无线通信。The WLAN module 1460 can be used to assist users in sending and receiving emails, browsing web pages, and accessing streaming media, etc., which provides users with wireless broadband WLAN Internet access. The WLAN is a short-range wireless transmission technology. The terminal can access the WLAN hotspot through the WLAN module 1460. The WLAN hotspot can be enabled by the WLAN module 1460 to forward the mobile bandwidth service to other terminals. The WLAN module 1460 can also perform Wi-Fi broadcasts and scans to enable wireless communication with other nearby terminals.
终端还包括给各个部件供电的电源1470(比如电池),可选的,电源可以通过电源管理***与处理器1450逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗等功能。The terminal also includes a power supply 1470 (such as a battery) for powering various components. Alternatively, the power supply can be logically coupled to the processor 1450 through a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
蓝牙模块1470,可以是低功耗蓝牙(Bluetooth Low Energy,BLE)设备,也可以是传统蓝牙设备,也可以是支持传统蓝牙和BLE的双模蓝牙设备。蓝牙模块1470与其他终端 的蓝牙模块建立BLE或经典蓝牙连接,蓝牙模块1470还可进行BR或BLE广播和扫描,以实现与周围其他终端的无线通信。The Bluetooth module 1470 can be a Bluetooth Low Energy (BLE) device, a traditional Bluetooth device, or a dual-mode Bluetooth device supporting legacy Bluetooth and BLE. Bluetooth module 1470 and other terminals The Bluetooth module establishes a BLE or classic Bluetooth connection, and the Bluetooth module 1470 can also perform BR or BLE broadcast and scanning to enable wireless communication with other surrounding terminals.
尽管未示出,终端还可以包括摄像头、扬声器等,在此不再赘述。Although not shown, the terminal may further include a camera, a speaker, etc., and details are not described herein again.
示例性的,可将RF电路1410、蓝牙模块1480以及WLAN模块1460统称为无线通信接口。无线通信接口支持终端和服务器等网元之间的通信交互,可以用于终端和服务器等网元之间进行消息的发送和接收。Illustratively, RF circuit 1410, Bluetooth module 1480, and WLAN module 1460 can be collectively referred to as a wireless communication interface. The wireless communication interface supports communication interaction between the network elements such as the terminal and the server, and can be used for sending and receiving messages between the network elements such as the terminal and the server.
示例性的,该终端包括处理器1450、存储器1420和无线通信接口。存储器1420,用于存储程序指令;处理器1450,用于根据存储器1420中存储的程序指令执行以下操作:控制无线通信接口向服务器发送第一消息,第一消息用于指示终端请求通过服务器向第二终端发送多媒体数据;并且从服务器获取第二终端的能力集,并确定终端的能力集和第二终端的能力集的交集;以及控制无线通信接口根据交集向第二终端发送多媒体数据。Illustratively, the terminal includes a processor 1450, a memory 1420, and a wireless communication interface. The memory 1420 is configured to store program instructions. The processor 1450 is configured to: according to the program instructions stored in the memory 1420, perform the following operations: controlling the wireless communication interface to send a first message to the server, where the first message is used to indicate that the terminal requests to go through the server The second terminal transmits the multimedia data; and acquires a capability set of the second terminal from the server, and determines an intersection of the capability set of the terminal and the capability set of the second terminal; and controls the wireless communication interface to send the multimedia data to the second terminal according to the intersection.
示例性的,第一消息携带第二终端的号码,第一消息还用于指示服务器根据第二终端的号码生成令牌,并建立令牌与终端的对应关系,令牌用于唯一标识终端和第二终端之间的多媒体会话。Exemplarily, the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a token according to the number of the second terminal, and establish a correspondence between the token and the terminal, where the token is used to uniquely identify the terminal and A multimedia session between the second terminals.
示例性的,处理器1450,用于根据存储器1420中存储的程序指令执行以下操作:控制无线通信接口根据交集向服务器发送多媒体数据,包括:控制无线通信接口根据交集向服务器发送多媒体数据和令牌。Exemplarily, the processor 1450 is configured to: according to the program instructions stored in the memory 1420, control the wireless communication interface to send the multimedia data to the server according to the intersection, including: controlling the wireless communication interface to send the multimedia data and the token to the server according to the intersection .
示例性的,第一消息还携带终端的识别码,第一消息还用于指示服务器根据第二终端的号码和终端的识别码生成令牌,并建立令牌、终端的识别码与终端的对应关系。Exemplarily, the first message further carries an identifier of the terminal, where the first message is further used to instruct the server to generate a token according to the number of the second terminal and the identifier of the terminal, and establish a correspondence between the token, the identifier of the terminal, and the terminal. relationship.
示例性的,处理器1450,用于根据存储器1420中存储的程序指令执行以下操作:在从服务器获取第二终端的能力集之前,控制无线通信接口向第二终端发送令牌。Exemplarily, the processor 1450 is configured to: according to the program instructions stored in the memory 1420, control the wireless communication interface to send the token to the second terminal before acquiring the capability set of the second terminal from the server.
示例性的,处理器1450,用于根据存储器1420中存储的程序指令执行以下操作:在控制无线通信接口向服务器发送第一消息之前,控制无线通信接口向服务器发送终端的能力集;终端的能力集用于,当第二终端订阅终端的能力集时,服务器向第二终端发送终端的能力集。Exemplarily, the processor 1450 is configured to: according to the program instructions stored in the memory 1420, control the wireless communication interface to send the capability set of the terminal to the server before controlling the wireless communication interface to send the first message to the server; the capability of the terminal The set is used when the second terminal subscribes to the capability set of the terminal, and the server sends the capability set of the terminal to the second terminal.
示例性的,处理器1450,用于根据存储器1420中存储的程序指令执行以下操作:在确定终端的能力集和第二终端的能力集的交集之后,根据交集改变终端的多媒体通信标识的状态。Exemplarily, the processor 1450 is configured to perform, according to the program instructions stored in the memory 1420, after changing the intersection of the capability set of the terminal and the capability set of the second terminal, changing the state of the multimedia communication identifier of the terminal according to the intersection.
示例性的,处理器1450,用于根据存储器1420中存储的程序指令执行以下操作:在控制无线通信接口向服务器发送第一消息之后,从第二终端获取并保存终端的号码。Exemplarily, the processor 1450 is configured to: according to the program instructions stored in the memory 1420, after the control wireless communication interface sends the first message to the server, acquire and save the number of the terminal from the second terminal.
本发明实施例提供的终端,在向第二终端发起呼叫时,从服务器取得令牌,并向第二终端发送该令牌,使服务器从第二终端接收该令牌后,能够根据该令牌关联该终端和第二终端,进而实现该终端和第二终端的多媒体能力数据传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,通过服务器进行多媒体数据的传输。The terminal provided by the embodiment of the present invention obtains a token from the server when the call is initiated to the second terminal, and sends the token to the second terminal, so that the server can receive the token from the second terminal, according to the token. The terminal and the second terminal are associated, thereby implementing multimedia capability data transmission of the terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
图15为本发明实施例提供的另一种终端的结构示意图。如图15所示,该终端包括:射频(Radio Frequency,RF)电路1510、存储器1520、输入单元1530、显示单元1540、处理器1550、无线局域网(Wireless Local Area Networks,WLAN)模块1560、电源1570以及蓝牙模块1580等部件。本领域技术人员可以理解,图15示出的终端结构并不构成对 终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 15 is a schematic structural diagram of another terminal according to an embodiment of the present invention. As shown in FIG. 15, the terminal includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a processor 1550, a wireless local area network (WLAN) module 1560, and a power supply 1570. And components such as the Bluetooth module 1580. Those skilled in the art can understand that the terminal structure shown in FIG. 15 does not constitute a pair. The definition of the terminal may include more or fewer components than illustrated, or some components may be combined, or different component arrangements.
RF电路1510可用于收发信息,例如,连接移动宽带。通常,RF电路1510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1510还可以将移动带宽业务转发至WLAN模块1560,以通过WLAN模块1560将移动带宽业务转发给其他终端。其中,无线通信可以采用任一通信标准或协议,包括但不限于全球移动通讯***(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1510 can be used to send and receive information, for example, to connect to a mobile broadband. Generally, RF circuit 1510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 1510 can also forward the mobile bandwidth traffic to the WLAN module 1560 to forward the mobile bandwidth traffic to other terminals through the WLAN module 1560. Among them, wireless communication can adopt any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code division multiple access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
存储器1520可用于存储程序指令,处理器1550通过运行存储在存储器1520的程序指令,从而使得该终端执行上述如图图2-图9所示的多媒体数据传输的方法。存储器1520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***以及实现上述多媒体数据传输的方法所需的应用程序等。存储数据区可存储终端的列表信息以及该终端在执行上述多媒体数据传输的方法时产生的数据等。此外,存储器1520可包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);所述存储器1520也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)。所述存储器1520还可以包括上述种类的存储器的组合。The memory 1520 can be used to store program instructions, and the processor 1550 causes the terminal to execute the above-described method of multimedia data transmission as shown in FIGS. 2-9 by running program instructions stored in the memory 1520. The memory 1520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program and the like required to implement the above method of multimedia data transmission. The storage data area can store list information of the terminal and data generated by the terminal when the method of transmitting the multimedia data described above is executed. In addition, the memory 1520 may include a volatile memory such as a random-access memory (RAM); the memory 1520 may also include a non-volatile memory, such as only Read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD). The memory 1520 may also include a combination of the above types of memories.
输入单元1530可用于接收用户输入的数字或字符信息,包括开启WLAN热点指令、选择共享WLAN热点的终端的指令等。具体地,输入单元1530可包括触控面板1531以及其他输入设备1532。触控面板1531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1531上或在触控面板1531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1550,并能接收处理器1550发来的命令并加以执行。此外,输入单元1530可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1531。除了触控面板1531,输入单元1530还可以包括其他输入设备1532。具体地,其他输入设备1532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1530 can be configured to receive numeric or character information input by the user, including an WLAN hotspot command, an instruction to select a terminal sharing the WLAN hotspot, and the like. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1531 or near the touch panel 1531. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 631 can include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1550 is provided and can receive commands from the processor 1550 and execute them. In addition, the input unit 1530 can implement the touch panel 1531 by using various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1531, the input unit 1530 may also include other input devices 1532. Specifically, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元1540可用于显示由用户输入的信息或提供给用户的信息以及终端的各种菜单。显示单元1540可包括显示屏1541,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏1541。进一步的,触控面板1531可覆盖显示屏1541,当触控面板1531检测到在其上或附近的触摸操作后,传送给处理器1550以确定触摸事件的类型,随后处理器1550根据触摸事件的类型在显示屏1541上提供相应的视觉输出。虽然在图15中,触控面板1531 与显示屏1541是作为两个独立的部件来实现终端的输入和输入功能,但是在某些实施例中,可以将触控面板1531与显示屏1541集成而实现终端的输入和输出功能。The display unit 1540 can be used to display information input by the user or information provided to the user as well as various menus of the terminal. The display unit 1540 can include a display screen 1541. Alternatively, the display screen 1541 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1531 can cover the display screen 1541. When the touch panel 1531 detects a touch operation thereon or nearby, the touch panel 1531 transmits to the processor 1550 to determine the type of the touch event, and then the processor 1550 according to the touch event. The type provides a corresponding visual output on display screen 1541. Although in FIG. 15, the touch panel 1531 The input and input functions of the terminal are implemented as two separate components with the display screen 1541, but in some embodiments, the touch panel 1531 can be integrated with the display screen 1541 to implement input and output functions of the terminal.
处理器1550是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器1520内的软件程序和/或模块,以及调用存储在存储器1520内的数据,执行如图2-图8所示的多媒体数据传输的方法。可选的,处理器1550可包括一个或多个处理单元。优选的,处理器1550可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1550中。The processor 1550 is a control center of the terminal that connects various portions of the entire terminal using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1520, and invoking data stored in the memory 1520, The method of multimedia data transmission shown in Figures 2-8. Optionally, the processor 1550 can include one or more processing units. Preferably, the processor 1550 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the above described modem processor may also not be integrated into the processor 1550.
WLAN模块1560可用于帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带WLAN互联网访问。WLAN属于短距离无线传输技术,终端可通过WLAN模块1560接入WLAN热点,也可通过WLAN模块1560开启WLAN热点,将移动带宽业务转发给其他终端。WLAN模块1560还可进行Wi-Fi广播和扫描,以实现与周围其他终端的无线通信。The WLAN module 1560 can be used to assist users in sending and receiving emails, browsing web pages, and accessing streaming media, etc., which provides users with wireless broadband WLAN Internet access. The WLAN is a short-range wireless transmission technology. The terminal can access the WLAN hotspot through the WLAN module 1560. The WLAN hotspot can be enabled by the WLAN module 1560 to forward the mobile bandwidth service to other terminals. The WLAN module 1560 can also perform Wi-Fi broadcast and scanning to enable wireless communication with other nearby terminals.
终端还包括给各个部件供电的电源1570(比如电池),可选的,电源可以通过电源管理***与处理器1550逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗等功能。The terminal also includes a power supply 1570 (such as a battery) for powering various components. Alternatively, the power supply can be logically coupled to the processor 1550 through a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
蓝牙模块1570,可以是低功耗蓝牙(Bluetooth Low Energy,BLE)设备,也可以是传统蓝牙设备,也可以是支持传统蓝牙和BLE的双模蓝牙设备。蓝牙模块1570与其他终端的蓝牙模块建立BLE或经典蓝牙连接,蓝牙模块1570还可进行BR或BLE广播和扫描,以实现与周围其他终端的无线通信。The Bluetooth module 1570 can be a Bluetooth Low Energy (BLE) device, a traditional Bluetooth device, or a dual-mode Bluetooth device supporting legacy Bluetooth and BLE. The Bluetooth module 1570 establishes a BLE or classic Bluetooth connection with the Bluetooth modules of other terminals, and the Bluetooth module 1570 can also perform BR or BLE broadcast and scanning to enable wireless communication with other surrounding terminals.
尽管未示出,终端还可以包括摄像头、扬声器等,在此不再赘述。Although not shown, the terminal may further include a camera, a speaker, etc., and details are not described herein again.
示例性的,可将RF电路1510、蓝牙模块1580以及WLAN模块1560统称为无线通信接口。无线通信接口支持终端和服务器等网元之间的通信交互,可以用于终端和服务器等网元之间进行消息的发送和接收。Illustratively, RF circuit 1510, Bluetooth module 1580, and WLAN module 1560 may be collectively referred to as a wireless communication interface. The wireless communication interface supports communication interaction between the network elements such as the terminal and the server, and can be used for sending and receiving messages between the network elements such as the terminal and the server.
示例性的,该终端包括处理器1550、存储器1520和无线通信接口。存储器1520,用于存储程序指令;处理器1550,用于根据存储器1520中存储的程序指令执行以下操作:控制无线通信接口向服务器发送终端的能力集,终端的能力集用于服务器发送给第一终端,以及第一终端向终端发送多媒体数据;以及从第一终端获取多媒体数据。Illustratively, the terminal includes a processor 1550, a memory 1520, and a wireless communication interface. The memory 1520 is configured to store program instructions. The processor 1550 is configured to: according to the program instructions stored in the memory 1520, perform the following operations: control a wireless communication interface to send a capability set of the terminal to the server, where the capability set of the terminal is used by the server to send to the first And the terminal, and the first terminal sends the multimedia data to the terminal; and acquires the multimedia data from the first terminal.
示例性的,处理器1550,用于根据存储器1520中存储的程序指令执行以下操作:在控制无线通信接口向服务器发送终端的能力集之前,从第一终端获取令牌;以及控制无线通信接口向服务器发送终端的能力集,包括:终端向服务器发送终端的能力集和令牌,令牌用于服务器建立令牌与终端的对应关系。Exemplarily, the processor 1550 is configured to: according to the program instructions stored in the memory 1520, acquire a token from the first terminal before controlling the wireless communication interface to send the capability set of the terminal to the server; and control the wireless communication interface to The capability of the server to send the terminal includes: the terminal sends the capability set and the token of the terminal to the server, and the token is used by the server to establish a correspondence between the token and the terminal.
示例性的,处理器1550,用于根据存储器1520中存储的程序指令执行以下操作:从服务器获取令牌,令牌用于控制终端向服务器发送终端的能力集。Exemplarily, the processor 1550 is configured to: according to the program instructions stored in the memory 1520, acquire a token from the server, where the token is used to control the terminal to send the capability set of the terminal to the server.
示例性的,终端的能力集用于,当第一终端订阅终端的能力集时,服务器向第一终端发送终端的能力集。Exemplarily, the capability set of the terminal is used, when the first terminal subscribes to the capability set of the terminal, the server sends the capability set of the terminal to the first terminal.
示例性的,处理器1550,用于根据存储器1520中存储的程序指令执行以下操作:从第一终端获取并保存终端的号码。Exemplarily, the processor 1550 is configured to perform the following operations according to the program instructions stored in the memory 1520: acquiring and saving the number of the terminal from the first terminal.
本发明实施例提供的终端,通过第一终端向该终端发起呼叫时,从第一终端或服务器 接收该令牌后,向服务器发送该令牌,使服务器能够根据该令牌关联第一终端和该终端,进而实现第一终端和第二终端的多媒体能力数据传输。因此,第一终端和第二终端可以在呼叫过程中和呼叫结束后,通过服务器进行多媒体数据的传输。The terminal provided by the embodiment of the present invention, when the first terminal initiates a call to the terminal, from the first terminal or the server After receiving the token, the token is sent to the server, so that the server can associate the first terminal with the terminal according to the token, thereby implementing multimedia capability data transmission of the first terminal and the second terminal. Therefore, the first terminal and the second terminal can perform multimedia data transmission through the server during the call and after the call ends.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. All modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (47)

  1. 一种多媒体数据传输的方法,其特征在于,所述方法包括:A method for transmitting multimedia data, characterized in that the method comprises:
    服务器从第一终端接收第一消息,所述第一消息用于指示所述第一终端请求通过所述服务器向第二终端发送多媒体数据;Receiving, by the first terminal, the first message, where the first message is used to indicate that the first terminal requests to send multimedia data to the second terminal by using the server;
    所述服务器从所述第二终端接收所述第二终端的能力集,并向所述第一终端发送所述第二终端的能力集;The server receives a capability set of the second terminal from the second terminal, and sends a capability set of the second terminal to the first terminal;
    所述服务器从所述第一终端接收所述多媒体数据,并向所述第二终端发送所述多媒体数据;所述多媒体数据由所述第一终端基于所述第一终端的能力集和所述第二终端的能力集发送至所述第二终端。Receiving, by the server, the multimedia data from the first terminal, and transmitting the multimedia data to the second terminal; the multimedia data is determined by the first terminal based on a capability set of the first terminal The capability set of the second terminal is sent to the second terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述第一消息携带所述第二终端的号码;在所述服务器从所述第一终端接收所述第一消息之后,所述方法还包括:The method according to claim 1, wherein the first message carries a number of the second terminal; after the server receives the first message from the first terminal, the method further includes :
    所述服务器根据所述第二终端的号码,生成令牌,并建立所述令牌与所述第一终端的第一对应关系;The server generates a token according to the number of the second terminal, and establishes a first correspondence between the token and the first terminal;
    所述服务器从所述第二终端接收所述令牌,并建立所述令牌与所述第二终端的第二对应关系。The server receives the token from the second terminal, and establishes a second correspondence between the token and the second terminal.
  3. 根据权利要求2所述的方法,其特征在于,所述服务器向所述第一终端发送所述第二终端的能力集,包括:The method according to claim 2, wherein the sending, by the server, the capability set of the second terminal to the first terminal comprises:
    所述服务器根据所述令牌和所述第一对应关系,向所述第一终端发送所述第二终端的能力集。The server sends the capability set of the second terminal to the first terminal according to the token and the first correspondence.
  4. 根据权利要求2所述的方法,其特征在于,所述服务器从所述第一终端接收所述多媒体数据,并向所述第二终端发送所述多媒体数据,包括:The method according to claim 2, wherein the receiving, by the server, the multimedia data from the first terminal and transmitting the multimedia data to the second terminal comprises:
    所述服务器从所述第一终端接收所述令牌和所述多媒体数据,并根据所述令牌和所述第二对应关系向所述第二终端发送所述多媒体数据。The server receives the token and the multimedia data from the first terminal, and sends the multimedia data to the second terminal according to the token and the second correspondence.
  5. 根据权利要求2所述的方法,其特征在于,所述第一消息还携带所述第一终端的识别码;在所述服务器从所述第一终端接收所述第一消息之后,所述方法还包括:The method according to claim 2, wherein the first message further carries an identification code of the first terminal; after the server receives the first message from the first terminal, the method Also includes:
    所述服务器根据所述第二终端的号码和所述识别码,生成令牌,并建立所述令牌、所述第一终端的识别码与所述第一终端的第一对应关系;The server generates a token according to the number of the second terminal and the identifier, and establishes a first correspondence between the token, the identifier of the first terminal, and the first terminal;
    所述服务器从所述第二终端接收所述令牌和所述第二终端的识别码,并建立所述令牌、所述第二终端的识别码与所述第二终端的第二对应关系。Receiving, by the second terminal, the token and the identifier of the second terminal, and establishing a second corresponding relationship between the token, the identifier of the second terminal, and the second terminal .
  6. 根据权利要求4所述的方法,其特征在于,所述服务器向所述第一终端发送所述第二终端的能力集,包括:The method according to claim 4, wherein the server sends the capability set of the second terminal to the first terminal, including:
    所述服务器根据所述令牌和所述第一终端的识别码,向所述第一终端发送所述第二终端的能力集。The server sends the capability set of the second terminal to the first terminal according to the token and the identifier of the first terminal.
  7. 根据权利要求4所述的方法,其特征在于,所述服务器从所述第一终端接收所述多媒体数据,并向所述第二终端发送所述多媒体数据,包括:The method according to claim 4, wherein the server receives the multimedia data from the first terminal and sends the multimedia data to the second terminal, including:
    所述服务器从所述第一终端接收所述令牌和所述多媒体数据,并根据所述令牌和所述第二终端的识别码,向所述第二终端发送所述多媒体数据。The server receives the token and the multimedia data from the first terminal, and sends the multimedia data to the second terminal according to the token and the identification code of the second terminal.
  8. 根据权利要求2至7任一项所述的方法,其特征在于,在所述服务器从所述第二终端接收所述令牌之前,所述方法还包括: The method according to any one of claims 2 to 7, wherein before the server receives the token from the second terminal, the method further comprises:
    所述服务器根据所述第一消息,向所述第二终端发送所述令牌。The server sends the token to the second terminal according to the first message.
  9. 根据权利要求1所述的方法,其特征在于,在所述服务器从所述第一终端接收所述第一消息之前,所述方法还包括:The method according to claim 1, wherein before the server receives the first message from the first terminal, the method further comprises:
    所述服务器从所述第一终端接收所述第一终端的能力集,并从所述第二终端接收所述第二终端的能力集;Receiving, by the first terminal, a capability set of the first terminal, and receiving, by the second terminal, a capability set of the second terminal;
    当所述第一终端订阅所述第二终端的能力集时,所述服务器向所述第一终端发送所述第二终端的能力集。When the first terminal subscribes to the capability set of the second terminal, the server sends the capability set of the second terminal to the first terminal.
  10. 一种多媒体数据传输的方法,其特征在于,所述方法包括:A method for transmitting multimedia data, characterized in that the method comprises:
    第一终端向服务器发送第一消息,所述第一消息用于指示所述第一终端请求通过服务器向第二终端发送多媒体数据;The first terminal sends a first message to the server, where the first message is used to indicate that the first terminal requests to send multimedia data to the second terminal by using the server;
    第一终端从所述服务器接收所述第二终端的能力集,并确定所述第一终端的能力集和所述第二终端的能力集的交集;Receiving, by the first terminal, a capability set of the second terminal from the server, and determining an intersection of a capability set of the first terminal and a capability set of the second terminal;
    所述第一终端根据所述交集向所述第二终端发送所述多媒体数据。The first terminal sends the multimedia data to the second terminal according to the intersection.
  11. 根据权利要求要求10所述的方法,其特征在于,所述第一消息携带所述第二终端的号码,所述第一消息还用于指示所述服务器根据所述第二终端的号码生成令牌,并建立所述令牌与所述第一终端的对应关系,所述令牌用于唯一标识第一终端和第二终端之间的多媒体会话。The method according to claim 10, wherein the first message carries the number of the second terminal, and the first message is further used to instruct the server to generate a command according to the number of the second terminal. a card, and establishing a correspondence between the token and the first terminal, the token being used to uniquely identify a multimedia session between the first terminal and the second terminal.
  12. 根据权利要求要求11所述的方法,其特征在于,所述第一终端根据所述交集向所述服务器发送所述多媒体数据,包括:The method according to claim 11, wherein the transmitting, by the first terminal, the multimedia data to the server according to the intersection comprises:
    所述第一终端根据所述交集向所述服务器发送所述多媒体数据和所述令牌。The first terminal sends the multimedia data and the token to the server according to the intersection.
  13. 根据权利要求要求11所述的方法,其特征在于,所述第一消息还携带所述第一终端的识别码,所述第一消息还用于指示所述服务器根据所述第二终端的号码和所述第一终端的识别码生成令牌,并建立所述令牌、所述第一终端的识别码与所述第一终端的对应关系。The method according to claim 11, wherein the first message further carries an identifier of the first terminal, and the first message is further used to indicate that the server is based on a number of the second terminal. Generating a token with the identifier of the first terminal, and establishing a correspondence between the token, the identifier of the first terminal, and the first terminal.
  14. 根据权利要求11至13任一项所述的方法,其特征在于,在所述第一终端从所述服务器接收所述第二终端的能力集之前,所述方法还包括:The method according to any one of claims 11 to 13, wherein before the first terminal receives the capability set of the second terminal from the server, the method further includes:
    所述第一终端向所述第二终端发送所述令牌。The first terminal sends the token to the second terminal.
  15. 根据权利要求10所述的方法,其特征在于,在所述第一终端向所述服务器发送第一消息之前,所述方法还包括:The method according to claim 10, wherein before the first terminal sends the first message to the server, the method further includes:
    所述第一终端向所述服务器发送所述第一终端的能力集;所述第一终端的能力集用于,当所述第二终端订阅所述第一终端的能力集时,所述服务器向所述第二终端发送所述第一终端的能力集。The first terminal sends the capability set of the first terminal to the server; the capability set of the first terminal is used, when the second terminal subscribes to the capability set of the first terminal, the server Transmitting a capability set of the first terminal to the second terminal.
  16. 根据权利要求10所述的方法,其特征在于,在所述第一终端确定所述第一终端的能力集和所述第二终端的能力集的交集之后,所述方法还包括:The method according to claim 10, wherein after the first terminal determines an intersection of the capability set of the first terminal and the capability set of the second terminal, the method further includes:
    所述第一终端根据所述交集改变所述第一终端的多媒体通信标识的状态。The first terminal changes a state of the multimedia communication identifier of the first terminal according to the intersection.
  17. 根据权利要求10所述的方法,其特征在于,在所述第一终端向服务器发送第一消息之后,所述方法还包括:The method according to claim 10, wherein after the first terminal sends the first message to the server, the method further includes:
    所述第一终端从所述第二终端接收并保存所述第一终端的号码。 The first terminal receives and saves the number of the first terminal from the second terminal.
  18. 一种多媒体数据传输的方法,其特征在于,所述方法包括:A method for transmitting multimedia data, characterized in that the method comprises:
    第二终端向服务器发送所述第二终端的能力集,所述第二终端的能力集用于所述服务器发送给第一终端,以及所述第一终端向所述第二终端发送多媒体数据;The second terminal sends the capability set of the second terminal to the server, the capability set of the second terminal is used by the server to send to the first terminal, and the first terminal sends multimedia data to the second terminal;
    所述第二终端从所述第一终端接收多媒体数据。The second terminal receives multimedia data from the first terminal.
  19. 根据权利要求18所述的方法,其特征在于,在所述第二终端向所述服务器发送所述第二终端的能力集之前,所述方法还包括:The method according to claim 18, wherein before the sending, by the second terminal, the capability set of the second terminal to the server, the method further comprises:
    所述第二终端从所述第一终端接收令牌;The second terminal receives a token from the first terminal;
    所述第二终端向服务器发送所述第二终端的能力集,包括:所述第二终端向所述服务器发送所述第二终端的能力集和所述令牌,所述令牌用于所述服务器建立所述令牌与所述第二终端的对应关系。The second terminal sends the capability set of the second terminal to the server, where the second terminal sends the capability set of the second terminal and the token to the server, where the token is used by the second terminal. The server establishes a correspondence between the token and the second terminal.
  20. 根据权利要求18所述的方法,其特征在于,在所述第二终端向所述服务器发送所述第二终端的能力集之前,所述方法还包括:The method according to claim 18, wherein before the sending, by the second terminal, the capability set of the second terminal to the server, the method further comprises:
    所述第二终端从所述服务器接收令牌,所述令牌用于指示所述第二终端向所述服务器发送所述第二终端的能力集。The second terminal receives a token from the server, and the token is used to instruct the second terminal to send the capability set of the second terminal to the server.
  21. 根据权利要求18所述的方法,其特征在于,所述第二终端的能力集用于,当所述第一终端订阅所述第二终端的能力集时,所述服务器向所述第一终端发送所述第二终端的能力集。The method according to claim 18, wherein the capability set of the second terminal is configured to: when the first terminal subscribes to a capability set of the second terminal, the server is to the first terminal Sending a capability set of the second terminal.
  22. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method of claim 18, wherein the method further comprises:
    所述第二终端从所述第一终端接收并保存所述第二终端的号码。The second terminal receives and saves the number of the second terminal from the first terminal.
  23. 一种服务器,其特征在于,所述服务器包括:通信模块和处理模块;A server, comprising: a communication module and a processing module;
    所述处理模块用于指示所述通信模块在从第一终端接收第一消息,所述第一消息用于指示所述第一终端请求通过所述服务器向第二终端发送多媒体数据;并指示所述通信模块从所述第二终端接收所述第二终端的能力集,并向所述第一终端发送所述第二终端的能力集;以及指示所述通信模块从所述第一终端接收所述多媒体数据,并向所述第二终端发送所述多媒体数据;所述多媒体数据由所述第一终端基于所述第一终端的能力集和所述第二终端的能力集发送至所述第二终端。The processing module is configured to instruct the communication module to receive a first message from the first terminal, where the first message is used to instruct the first terminal to request to send multimedia data to the second terminal by using the server; Receiving, by the second terminal, a capability set of the second terminal from the second terminal, and transmitting a capability set of the second terminal to the first terminal; and instructing the communication module to receive from the first terminal Decoding multimedia data, and transmitting the multimedia data to the second terminal; the multimedia data is sent by the first terminal to the first terminal based on a capability set of the first terminal and a capability set of the second terminal Two terminals.
  24. 一种终端,其特征在于,所述终端包括:通信模块和处理模块;A terminal, comprising: a communication module and a processing module;
    所述处理模块用于指示所述通信模块向服务器发送第一消息,所述第一消息用于指示所述终端请求通过服务器向第二终端发送多媒体数据;并指示所述通信模块从所述服务器接收所述第二终端的能力集,并确定所述终端的能力集和所述第二终端的能力集的交集;以及指示所述通信模块根据所述交集向所述第二终端发送所述多媒体数据。The processing module is configured to instruct the communication module to send a first message to the server, where the first message is used to instruct the terminal to request to send multimedia data to the second terminal by using the server, and instruct the communication module to be from the server Receiving a capability set of the second terminal, and determining an intersection of a capability set of the terminal and a capability set of the second terminal; and instructing the communication module to send the multimedia to the second terminal according to the intersection data.
  25. 一种终端,其特征在于,所述终端包括:通信模块和处理模块;A terminal, comprising: a communication module and a processing module;
    所述处理模块用于指示所述通信模块向服务器发送所述终端的能力集,所述终端的能力集用于所述服务器发送给第一终端,以及所述第一终端向所述终端发送多媒体数据; The processing module is configured to instruct the communication module to send a capability set of the terminal to a server, where a capability set of the terminal is used by the server to send to a first terminal, and the first terminal sends a multimedia to the terminal Data
    所述处理模块还用于指示所述通信模块从所述第一终端接收多媒体数据。The processing module is further configured to instruct the communication module to receive multimedia data from the first terminal.
  26. 一种服务器,其特征在于,所述服务器包括:处理器、存储器和无线通信接口;A server, comprising: a processor, a memory, and a wireless communication interface;
    所述存储器,用于存储程序指令;The memory is configured to store program instructions;
    所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The processor is configured to perform the following operations according to program instructions stored in the memory:
    从第一终端获取第一消息,所述第一消息用于指示所述第一终端请求通过所述服务器向第二终端发送多媒体数据;以及从所述第二终端获取所述第二终端的能力集,并向所述第一终端发送所述第二终端的能力集;以及从所述第一终端获取所述多媒体数据,并向所述第二终端发送所述多媒体数据;所述多媒体数据由所述第一终端基于所述第一终端的能力集和所述第二终端的能力集发送至所述第二终端。And acquiring, by the first terminal, the first message, where the first message is used to indicate that the first terminal requests to send multimedia data to the second terminal by using the server, and acquiring the capability of the second terminal from the second terminal And transmitting, to the first terminal, a capability set of the second terminal; and acquiring the multimedia data from the first terminal, and transmitting the multimedia data to the second terminal; The first terminal sends the capability to the second terminal based on a capability set of the first terminal and a capability set of the second terminal.
  27. 根据权利要求26所述的服务器,其特征在于,所述第一消息携带所述第二终端的号码;所述处理器,还用于根据所述存储器中存储的程序指令执行以下操作:The server according to claim 26, wherein the first message carries the number of the second terminal; the processor is further configured to: perform the following operations according to the program instructions stored in the memory:
    在从所述第一终端获取所述第一消息之后,根据所述第二终端的号码,生成令牌,并建立所述令牌与所述第一终端的第一对应关系;以及从所述第二终端获取所述令牌,并建立所述令牌与所述第二终端的第二对应关系。After acquiring the first message from the first terminal, generating a token according to the number of the second terminal, and establishing a first correspondence between the token and the first terminal; The second terminal acquires the token, and establishes a second correspondence between the token and the second terminal.
  28. 根据权利要求27所述的服务器,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:控制所述无线通信接口向所述第一终端发送所述第二终端的能力集,包括:The server according to claim 27, wherein the processor is configured to: according to a program instruction stored in the memory, to: control the wireless communication interface to send the second to the first terminal The set of capabilities of the terminal, including:
    控制所述无线通信接口根据所述令牌和所述第一对应关系,向所述第一终端发送所述第二终端的能力集。Controlling, by the wireless communication interface, the capability set of the second terminal to the first terminal according to the token and the first correspondence.
  29. 根据权利要求27所述的服务器,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:从所述第一终端获取所述多媒体数据,并向所述第二终端发送所述多媒体数据,包括:The server according to claim 27, wherein the processor is configured to: according to the program instructions stored in the memory, perform the following operations: acquiring the multimedia data from the first terminal, and The second terminal sends the multimedia data, including:
    从所述第一终端获取所述令牌和所述多媒体数据,并根据所述令牌和所述第二对应关系向所述第二终端发送所述多媒体数据。Acquiring the token and the multimedia data from the first terminal, and sending the multimedia data to the second terminal according to the token and the second correspondence.
  30. 根据权利要求27所述的服务器,其特征在于,根据权利要求27所述的服务器,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The server according to claim 27, wherein the server is configured to perform the following operations according to program instructions stored in the memory:
    在从所述第一终端获取所述第一消息之后,根据所述第二终端的号码和所述识别码,生成令牌,并建立所述令牌、所述第一终端的识别码与所述第一终端的第一对应关系;以及从所述第二终端获取所述令牌和所述第二终端的识别码,并建立所述令牌、所述第二终端的识别码与所述第二终端的第二对应关系。After acquiring the first message from the first terminal, generating a token according to the number of the second terminal and the identifier, and establishing the token, the identifier and the identifier of the first terminal Determining a first correspondence relationship of the first terminal; and acquiring, from the second terminal, the token and the identifier of the second terminal, and establishing the token, the identifier of the second terminal, and the The second correspondence of the second terminal.
  31. 根据权利要求29所述的服务器,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:控制所述无线通信接口向所述第一终端发送所述第二终端的能力集,包括:The server according to claim 29, wherein the processor is configured to: according to a program instruction stored in the memory, to: control the wireless communication interface to send the second to the first terminal The set of capabilities of the terminal, including:
    控制所述无线通信接口根据所述令牌和所述第一终端的识别码,向所述第一终端发送所述第二终端的能力集。Controlling, by the wireless communication interface, the capability set of the second terminal to the first terminal according to the token and the identifier of the first terminal.
  32. 根据权利要求29所述的服务器,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:从所述第一终端获取所述多媒体数据,并向所述 第二终端发送所述多媒体数据,包括:The server according to claim 29, wherein the processor is configured to: according to the program instructions stored in the memory, acquire the multimedia data from the first terminal, and Sending, by the second terminal, the multimedia data, including:
    从所述第一终端获取所述令牌和所述多媒体数据,并根据所述令牌和所述第二终端的识别码,向所述第二终端发送所述多媒体数据。Acquiring the token and the multimedia data from the first terminal, and sending the multimedia data to the second terminal according to the token and an identifier of the second terminal.
  33. 根据权利要求27至32任一项所述的服务器,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The server according to any one of claims 27 to 32, wherein the processor is configured to perform the following operations according to program instructions stored in the memory:
    在从所述第二终端获取所述令牌之前,控制所述无线通信接口根据所述第一消息,向所述第二终端发送所述令牌。Before acquiring the token from the second terminal, controlling the wireless communication interface to send the token to the second terminal according to the first message.
  34. 根据权利要求26所述的服务器,其特征在于,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The server according to claim 26, wherein said processor is configured to perform the following operations according to program instructions stored in said memory:
    在从所述第一终端获取所述第一消息之前,从所述第一终端获取所述第一终端的能力集,并从所述第二终端获取所述第二终端的能力集;Before acquiring the first message from the first terminal, acquiring a capability set of the first terminal from the first terminal, and acquiring a capability set of the second terminal from the second terminal;
    控制所述无线通信接口当所述第一终端订阅所述第二终端的能力集时,向所述第一终端发送所述第二终端的能力集。Controlling, by the wireless communication interface, when the first terminal subscribes to the capability set of the second terminal, sending the capability set of the second terminal to the first terminal.
  35. 一种终端,其特征在于,所述终端包括:处理器、存储器和无线通信接口;A terminal, comprising: a processor, a memory, and a wireless communication interface;
    所述存储器,用于存储程序指令;The memory is configured to store program instructions;
    所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The processor is configured to perform the following operations according to program instructions stored in the memory:
    控制所述无线通信接口向服务器发送第一消息,所述第一消息用于指示所述终端请求通过服务器向第二终端发送多媒体数据;并且从所述服务器获取所述第二终端的能力集,并确定所述终端的能力集和所述第二终端的能力集的交集;以及控制所述无线通信接口根据所述交集向所述第二终端发送所述多媒体数据。Controlling the wireless communication interface to send a first message to the server, the first message is used to instruct the terminal to request to send multimedia data to the second terminal by using the server, and acquire a capability set of the second terminal from the server, And determining an intersection of the capability set of the terminal and the capability set of the second terminal; and controlling the wireless communication interface to send the multimedia data to the second terminal according to the intersection.
  36. 根据权利要求35所述的终端,其特征在于,所述第一消息携带所述第二终端的号码,所述第一消息还用于指示所述服务器根据所述第二终端的号码生成令牌,并建立所述令牌与所述终端的对应关系,所述令牌用于唯一标识终端和第二终端之间的多媒体会话。The terminal according to claim 35, wherein the first message carries a number of the second terminal, and the first message is further used to indicate that the server generates a token according to the number of the second terminal. And establishing a correspondence between the token and the terminal, where the token is used to uniquely identify a multimedia session between the terminal and the second terminal.
  37. 根据权利要求36所述的终端,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:控制所述无线通信接口根据所述交集向所述服务器发送所述多媒体数据,包括:The terminal according to claim 36, wherein the processor is configured to: according to a program instruction stored in the memory, to: control, by the wireless communication interface, to send the Multimedia data, including:
    控制所述无线通信接口根据所述交集向所述服务器发送所述多媒体数据和所述令牌。Controlling the wireless communication interface to transmit the multimedia data and the token to the server in accordance with the intersection.
  38. 根据权利要求36所述的终端,其特征在于,所述第一消息还携带所述终端的识别码,所述第一消息还用于指示所述服务器根据所述第二终端的号码和所述终端的识别码生成令牌,并建立所述令牌、所述终端的识别码与所述终端的对应关系。The terminal according to claim 36, wherein the first message further carries an identifier of the terminal, and the first message is further used to indicate that the server is based on the number of the second terminal and the The identifier of the terminal generates a token, and establishes a correspondence between the token, the identifier of the terminal, and the terminal.
  39. 根据权利要求36至38任一项所述的终端,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The terminal according to any one of claims 36 to 38, wherein the processor is configured to perform the following operations according to program instructions stored in the memory:
    在从所述服务器获取所述第二终端的能力集之前,控制所述无线通信接口向所述第二终端发送所述令牌。And controlling the wireless communication interface to send the token to the second terminal before acquiring the capability set of the second terminal from the server.
  40. 根据权利要求35所述的终端,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作: The terminal according to claim 35, wherein the processor is configured to perform the following operations according to program instructions stored in the memory:
    在控制所述无线通信接口向所述服务器发送第一消息之前,控制所述无线通信接口向所述服务器发送所述终端的能力集;所述终端的能力集用于,当所述第二终端订阅所述终端的能力集时,所述服务器向所述第二终端发送所述终端的能力集。Before controlling the wireless communication interface to send the first message to the server, controlling the wireless communication interface to send the capability set of the terminal to the server; the capability set of the terminal is used to be when the second terminal When subscribing to the capability set of the terminal, the server sends the capability set of the terminal to the second terminal.
  41. 根据权利要求35所述的终端,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The terminal according to claim 35, wherein the processor is configured to perform the following operations according to program instructions stored in the memory:
    在确定所述终端的能力集和所述第二终端的能力集的交集之后,根据所述交集改变所述终端的多媒体通信标识的状态。After determining an intersection of the capability set of the terminal and the capability set of the second terminal, changing a state of the multimedia communication identifier of the terminal according to the intersection.
  42. 根据权利要求35所述的终端,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The terminal according to claim 35, wherein the processor is configured to perform the following operations according to program instructions stored in the memory:
    在控制所述无线通信接口向服务器发送第一消息之后,从所述第二终端获取并保存所述终端的号码。After controlling the wireless communication interface to send the first message to the server, the number of the terminal is obtained and saved from the second terminal.
  43. 一种终端,其特征在于,所述终端包括:处理器、存储器和无线通信接口;A terminal, comprising: a processor, a memory, and a wireless communication interface;
    所述存储器,用于存储程序指令;The memory is configured to store program instructions;
    所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The processor is configured to perform the following operations according to program instructions stored in the memory:
    控制所述无线通信接口向服务器发送所述终端的能力集,所述终端的能力集用于所述服务器发送给第一终端,以及所述第一终端向所述终端发送多媒体数据;以及从所述第一终端获取多媒体数据。Controlling, by the wireless communication interface, a capability set of the terminal, the capability set of the terminal is used by the server to send to the first terminal, and the first terminal sends multimedia data to the terminal; The first terminal acquires multimedia data.
  44. 根据权利要求43所述的终端,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The terminal according to claim 43, wherein the processor is configured to perform the following operations according to program instructions stored in the memory:
    在控制所述无线通信接口向所述服务器发送所述终端的能力集之前,从所述第一终端获取令牌;以及控制所述无线通信接口向服务器发送所述终端的能力集,包括:所述终端向所述服务器发送所述终端的能力集和所述令牌,所述令牌用于所述服务器建立所述令牌与所述终端的对应关系。Obtaining a token from the first terminal before controlling the wireless communication interface to send the capability set of the terminal to the server; and controlling the wireless communication interface to send the capability set of the terminal to a server, including: The terminal sends the capability set of the terminal and the token to the server, and the token is used by the server to establish a correspondence between the token and the terminal.
  45. 根据权利要求43所述的终端,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The terminal according to claim 43, wherein the processor is configured to perform the following operations according to program instructions stored in the memory:
    从所述服务器获取令牌,所述令牌用于指示所述终端向所述服务器发送所述终端的能力集。Obtaining a token from the server, the token being used to instruct the terminal to send the capability set of the terminal to the server.
  46. 根据权利要求43所述的终端,其特征在于,所述终端的能力集用于,当所述第一终端订阅所述终端的能力集时,所述服务器向所述第一终端发送所述终端的能力集。The terminal according to claim 43, wherein the capability set of the terminal is configured to: when the first terminal subscribes to a capability set of the terminal, the server sends the terminal to the first terminal Ability set.
  47. 根据权利要求44所述的终端,其特征在于,所述处理器,用于根据所述存储器中存储的程序指令执行以下操作:The terminal according to claim 44, wherein the processor is configured to perform the following operations according to program instructions stored in the memory:
    从所述第一终端获取并保存所述终端的号码。 Acquiring and saving the number of the terminal from the first terminal.
PCT/CN2017/091213 2017-01-16 2017-06-30 Method for transmitting multimedia data, server and terminal WO2018129876A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780005504.4A CN108781217B (en) 2017-01-16 2017-06-30 Multimedia data transmission method, server and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710032663.5 2017-01-16
CN201710032663 2017-01-16

Publications (1)

Publication Number Publication Date
WO2018129876A1 true WO2018129876A1 (en) 2018-07-19

Family

ID=62839096

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091213 WO2018129876A1 (en) 2017-01-16 2017-06-30 Method for transmitting multimedia data, server and terminal

Country Status (2)

Country Link
CN (1) CN108781217B (en)
WO (1) WO2018129876A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019648A (en) * 2020-08-03 2020-12-01 许继集团有限公司 Method and system for automatically configuring IP of wireless communication network
CN112583920A (en) * 2020-12-14 2021-03-30 维沃移动通信有限公司 Pushing method, pushing device, electronic equipment and storage medium
CN115022708A (en) * 2022-05-31 2022-09-06 咪咕视讯科技有限公司 Multi-screen interaction method and device, network equipment and terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343610A (en) * 2018-12-19 2020-06-26 上海博泰悦臻电子设备制造有限公司 Resource sharing method and resource sharing system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476209A (en) * 2002-08-12 2004-02-18 华为技术有限公司 Method of receivel/send end ability selection
CN101027894A (en) * 2004-10-01 2007-08-29 艾利森电话股份有限公司 A method and apparatus for multimedia communication
CN101753571A (en) * 2009-12-11 2010-06-23 中兴通讯股份有限公司 Method, device and system for realizing double video flow transmission
CN101854356A (en) * 2010-05-04 2010-10-06 华为终端有限公司 Video recording method for terminal call, video data transmission method, and video terminal
EP2378833A1 (en) * 2010-04-09 2011-10-19 TeliaSonera AB Method for signalling a rich call capability indication in a mobile communication system
CN103999429A (en) * 2011-10-21 2014-08-20 橙公司 Method of exchanging information relating to enhanced communication services

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2322979B1 (en) * 2006-11-06 2010-04-21 Vodafone España, S.A. METHOD, SYSTEM AND TERMINAL OF COMMUNICATION AND MIGRATION OF MOBILE AGENTS THROUGH MULTIMEDIA MESSAGE.
CN103139725B (en) * 2011-11-30 2016-04-06 中国联合网络通信集团有限公司 Multimedia message information processing method and system and equipment
CN105871871A (en) * 2016-04-29 2016-08-17 深圳Tcl数字技术有限公司 Multimedia conversation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476209A (en) * 2002-08-12 2004-02-18 华为技术有限公司 Method of receivel/send end ability selection
CN101027894A (en) * 2004-10-01 2007-08-29 艾利森电话股份有限公司 A method and apparatus for multimedia communication
CN101753571A (en) * 2009-12-11 2010-06-23 中兴通讯股份有限公司 Method, device and system for realizing double video flow transmission
EP2378833A1 (en) * 2010-04-09 2011-10-19 TeliaSonera AB Method for signalling a rich call capability indication in a mobile communication system
CN101854356A (en) * 2010-05-04 2010-10-06 华为终端有限公司 Video recording method for terminal call, video data transmission method, and video terminal
CN103999429A (en) * 2011-10-21 2014-08-20 橙公司 Method of exchanging information relating to enhanced communication services

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019648A (en) * 2020-08-03 2020-12-01 许继集团有限公司 Method and system for automatically configuring IP of wireless communication network
CN112019648B (en) * 2020-08-03 2024-01-02 许继集团有限公司 Automatic configuration method and system for wireless communication network IP
CN112583920A (en) * 2020-12-14 2021-03-30 维沃移动通信有限公司 Pushing method, pushing device, electronic equipment and storage medium
CN112583920B (en) * 2020-12-14 2023-12-22 维沃移动通信有限公司 Push method, push device, electronic equipment and storage medium
CN115022708A (en) * 2022-05-31 2022-09-06 咪咕视讯科技有限公司 Multi-screen interaction method and device, network equipment and terminal
CN115022708B (en) * 2022-05-31 2024-03-12 咪咕视讯科技有限公司 Multi-screen interaction method and device, network equipment and terminal

Also Published As

Publication number Publication date
CN108781217A (en) 2018-11-09
CN108781217B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
US10057853B2 (en) Signaling over cellular networks to reduce the Wi-Fi energy consumption of mobile devices
US9743442B2 (en) Enabling combinational services in a communications network
TWI551112B (en) Non-transitory tangible machine-readable medium and client device for transitioning between a circuit switched audio call and a video call
US8583149B2 (en) Registering email addresses for online communication sessions
US8606306B2 (en) Multiple client computing device invitations for online communication sessions
US8195147B2 (en) Method of enabling a combinational service and communication network implementing the service
KR101571925B1 (en) Multipoint conference device and switching method from multipoint conference to point-to-point communication
EP2863615B1 (en) Method, push system, and relevant devices for setting up push session
WO2018129876A1 (en) Method for transmitting multimedia data, server and terminal
US9065788B2 (en) Method, device and system for voice communication
US20180332123A1 (en) Method and apparatus for migrating active communication session between terminals
RU2411655C2 (en) Terminal, method and system to perform combined service, using version of functional capabilities of terminal
TW201215060A (en) Mobile communication device, mobile network sharing method and electronic device
WO2012145982A1 (en) Terminal management system and method
EP2974159B1 (en) Method, device and system for voice communication
JP2013153438A (en) Method for establishing communication connection over internet between mobile terminals, computer program, and storage medium
WO2022143070A1 (en) Communication method and communication system
CN110809242B (en) Media interaction method under DECT network cluster
WO2024060894A1 (en) Communication method and apparatus
US20040062236A1 (en) Method of chatting through a cellular phone system
JP2023510720A (en) Multicast service realization method and device, communication equipment
TWI583170B (en) Method and apparatus for call transfer
WO2010127507A1 (en) Method, device and system for controlling the remote media obtaining
JP2010288022A (en) Communication connection device and communication connection method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17891623

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17891623

Country of ref document: EP

Kind code of ref document: A1