Video ringback tone playing method, transmission method, device and communication equipment
By introducing a media forwarding server into the terminal device, receiving and playing target video ringtones, the problem of media negotiation failure caused by poor signals is solved, and the success rate and user experience of video ringtones are improved.
Patent Information
- Application Number
- CN202210680844.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-15
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2042-06-15
AI Technical Summary
The terminal device fails to negotiate media in the case of poor signal, resulting in the inability to play the video ringtone.
When media negotiation between the calling terminal and the ring ring server fails, the target video ring ring ring is received through the media forwarding server and plays it using short-range communication.
It solves the problem of media negotiation failure when terminal devices have poor signals, realizes the playback of video ringtones, and improves the playback success rate and user experience.
Smart Images

Figure CN115086491B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of multimedia communication technology, and in particular to a video ring back tone playing method, transmission method, device and communication equipment. Background Art
[0002] With the continuous development of science and technology, people are getting easier and easier to obtain information, and their demand for information is also increasing. Video ringback tone is one of them. Among them, video ringback tone is a comprehensive upgrade of traditional audio. It appears in people's field of vision in a new media form. When the calling terminal calls the called terminal, it can hear the sound and see the video.
[0003] Currently, the media stream push of video ringback tone is based on the mobile communication network. However, when the terminal device has a poor signal, media negotiation may fail, which eventually leads to the inability to play the video ringback tone. Summary of the invention
[0004] The embodiments of the present invention provide a video ring back tone playing method, a transmission method, an apparatus and a communication device to solve the problem that the video ring back tone cannot be played due to the failure of media negotiation in a terminal device with a poor signal.
[0005] In order to solve the above problem, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides a video ring back tone playing method, which is applied to a calling terminal and includes:
[0007] In the case where the video RBT media negotiation between the calling terminal and the RBT server fails, receiving a target video RBT sent from a media forwarding server, wherein the calling terminal and the media forwarding server communicate in a short-range communication manner, and the media forwarding server is used to obtain the target video RBT from the RBT server;
[0008] Play the target video ringback tone.
[0009] Optionally, before receiving the target video ringback tone sent from the media forwarding server, the method further includes:
[0010] Initiate playback registration to the media forwarding server;
[0011] Upon receiving the announcement registration result returned by the media forwarding server, and the announcement registration result indicates that the announcement registration is successful, acquiring the media transmission address from information carried in the announcement registration result;
[0012] The media transmission address is sent to the color ring back tone server, so that the color ring back tone server sends the target video color ring back tone to the media forwarding server through the media transmission address.
[0013] Optionally, before initiating the playback registration to the media forwarding server, the method further includes:
[0014] Obtaining the registration address of the media forwarding server, the network address translation NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server sent by the color ring back tone server, wherein the identifier of the color ring back tone server is used to instruct the media forwarding server to obtain a first public key corresponding to the identifier of the color ring back tone server, and the first public key is used to verify the security signature;
[0015] Based on the NAT detection address, obtain the public IP address and port number of the calling terminal.
[0016] Optionally, the initiating a playback registration to the media forwarding server includes:
[0017] Based on the registration address, a playback registration request is sent to the media forwarding server, where the playback registration request includes the security signature, an identifier of the color ring back tone server, and first media negotiation request information, where the first media negotiation request information includes a public network IP address and a port number of the calling terminal; and the first media negotiation request information is used for media negotiation between the media forwarding server and the color ring back tone server.
[0018] In a second aspect, an embodiment of the present invention further provides a video ringback tone transmission method, which is applied to a media forwarding server, comprising:
[0019] In the case where the video RBT media negotiation between the calling terminal and the RBT server fails, receiving a target video RBT sent by the RBT server;
[0020] The target video ringback tone is sent to the calling terminal, wherein the calling terminal communicates with the media forwarding server in a short-range communication manner.
[0021] Optionally, before receiving the target video ringback tone sent by the ringback tone server, the method further includes:
[0022] receiving a registration request for voice playback initiated by the calling terminal, the registration request for voice playback including a security signature, an identifier of a color ring back tone server and first media negotiation request information, the first media negotiation request information including a public network IP address and a port number of the calling terminal;
[0023] Acquire a first public key corresponding to the identifier of the color ring back tone server;
[0024] Decrypting the security signature using the first public key to obtain a decrypted signature string;
[0025] Verifying the signature string to obtain a verification result;
[0026] If the verification result indicates that the verification is passed, generating a playback registration result according to the first media negotiation request information;
[0027] The announcement registration result is sent to the calling terminal, wherein if the announcement registration result indicates that the announcement registration is successful, the announcement registration result carries a media transmission address between the media forwarding server and the color ring back tone server.
[0028] Optionally, the receiving a target video ringback tone sent by the ringback tone server includes:
[0029] The target video ringback tone sent by the ringback tone server is received through the media transmission address.
[0030] Optionally, the generating a playback registration result according to the first media negotiation request information includes:
[0031] Modify the public network IP address and port number of the calling terminal in the first media negotiation request information to the media transmission address to obtain a second media negotiation request information;
[0032] Sending the second media negotiation request information to the color ring back tone server;
[0033] Receiving second media negotiation confirmation information returned by the color ring back tone server after the color ring back tone server confirms the media negotiation based on the second media negotiation request information;
[0034] Modify the border session controller SBC address in the second media negotiation confirmation information to the public network IP address and port number of the media forwarding server to obtain the first media negotiation confirmation information;
[0035] Generate the playback registration result according to the first media negotiation confirmation information and the media transmission address
[0036] In a third aspect, an embodiment of the present invention further provides a video ring back tone transmission method, which is applied to a ring back tone server, comprising:
[0037] In case that the video RBT media negotiation between the calling terminal and the RBT server fails, a target video RBT is sent to a media forwarding server, so that the media forwarding server sends the target video RBT to the calling terminal in a short-distance communication manner.
[0038] Optionally, before sending the target video ringback tone to the media forwarding server, the method further includes:
[0039] Obtain a signature string, the signature string including the registration address of the media forwarding server, a timestamp, a calling number, a called number, and an identifier of the color ring back tone server;
[0040] Generate a security signature according to the signature string and a first private key corresponding to the identifier of the color ring back tone server;
[0041] Sending the registration address of the media forwarding server, the NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server to the calling terminal;
[0042] Among them, the registration address of the media forwarding server is the address at which the calling terminal initiates playback registration to the media forwarding server; the NAT detection address is used to obtain the public IP address and port number of the calling terminal; the identifier of the color ring back tone server is used to instruct the media forwarding server to obtain the first public key corresponding to the identifier of the color ring back tone server, and the first public key is used to verify the security signature.
[0043] Optionally, before sending the target video ringback tone to the media forwarding server, the method further includes:
[0044] receiving second media negotiation request information sent by the media forwarding server, where the second media negotiation request information includes the media transmission address, which is obtained by the media forwarding server based on the first media negotiation request information, where the first media negotiation request information is carried in the playback registration request initiated by the calling terminal, and where the first media negotiation request information includes the public network IP address and port number of the calling terminal;
[0045] After performing media negotiation confirmation based on the second media negotiation request information, returning second media negotiation confirmation information to the media forwarding server, where the second media negotiation confirmation information is used to obtain the first media negotiation confirmation information;
[0046] The announcement registration result sent by the calling terminal is received, wherein if the announcement registration result indicates that the announcement registration is successful, the announcement registration result carries the media transmission address.
[0047] Optionally, sending the target video ringback tone to the media forwarding server includes:
[0048] The target video ringback tone is sent to the media forwarding server via the media transmission address.
[0049] In a fourth aspect, an embodiment of the present invention further provides a video ring back tone playback device, which is applied to a calling terminal, and includes:
[0050] A first receiving module is used to receive a target video ringback tone sent from a media forwarding server when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, wherein the calling terminal and the media forwarding server communicate in a short-distance communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server;
[0051] The playing module is used to play the target video ringback tone.
[0052] In a fifth aspect, an embodiment of the present invention further provides a video ring back tone transmission device, which is applied to a media forwarding server, comprising:
[0053] A second receiving module is used to receive a target video ring back tone sent by the ring back tone server when the video ring back tone media negotiation between the calling terminal and the ring back tone server fails;
[0054] The third sending module is used to send the target video ringback tone to the calling terminal, wherein the calling terminal communicates with the media forwarding server in a short-distance communication manner.
[0055] In a sixth aspect, an embodiment of the present invention further provides a video ring back tone transmission device, which is applied to a ring back tone server, comprising:
[0056] The fifth sending module is used to send a target video ring back tone to a media forwarding server when the video ring back tone media negotiation between the calling terminal and the ring back tone server fails, so that the media forwarding server sends the target video ring back tone to the calling terminal by using a short-distance communication method.
[0057] In the seventh aspect, an embodiment of the present invention further provides a communication device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the video ringback tone playback method as described in the first aspect, or implements the steps of the video ringback tone transmission method as described in the second aspect, or implements the steps of the video ringback tone transmission method as described in the third aspect.
[0058] In the eighth aspect, an embodiment of the present invention further provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps of the video color ring back tone playback method as described in the first aspect are implemented, or the steps of the video color ring back tone transmission method as described in the second aspect are implemented, or the steps of the video color ring back tone transmission method as described in the third aspect are implemented.
[0059] In an embodiment of the present invention, when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, the target video ringback tone is received from the media forwarding server side and played, wherein the calling terminal and the media forwarding server communicate in a short-distance communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server. In this way, the calling terminal can switch from the telecommunications domain to the Internet domain to play the video ringback tone, which solves the problem that the existing terminal equipment fails in media negotiation due to poor signals, and ultimately fails to play the video ringback tone, increases the number and proportion of video ringback tone playback, and improves the success rate of video ringback tone playback and the user's service experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0061] Figure 1 A schematic diagram showing a flow chart of a video ringback tone playing method according to an embodiment of the present invention;
[0062] Figure 2 A schematic diagram showing a flow chart of a video ring back tone transmission method according to an embodiment of the present invention;
[0063] Figure 3 A second flowchart of the video ring back tone transmission method according to an embodiment of the present invention is shown;
[0064] Figure 4 A schematic diagram showing a module of a video ring back tone playback device according to an embodiment of the present invention;
[0065] Figure 5 One of the module schematic diagrams showing the video ring back tone transmission device according to the embodiment of the present invention;
[0066] Figure 6 A second schematic diagram of a module showing a video ring back tone transmission device according to an embodiment of the present invention;
[0067] Figure 7 A schematic diagram showing the hardware structure of a communication device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0068] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail in conjunction with the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help fully understand the embodiments of the present invention. Therefore, it should be clear to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. In addition, for clarity and brevity, the description of known functions and structures is omitted.
[0069] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0070] In various embodiments of the present invention, it should be understood that the order of execution of the following processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. In addition, the terms "system" and "network" are often used interchangeably in this article.
[0071] Currently, based on the mobile communication network, if the video resources of the calling terminal are not successfully reserved, the ringback tone server sets a timer. When the timer times out and the resource confirmation message of the calling terminal has not been received (that is, the calling terminal and the ringback tone server fail to complete a new round of media negotiation confirmation before the timeout), the ringback tone server gives up playing the ringback tone; the above process is the media negotiation failure process. After the media negotiation fails, the existing processing mechanism is: the ringback tone server sends a 180 message to the calling terminal, and the 180 message carries the early media P-Early-Media header field value of inactive. After receiving the 180 message, the calling terminal plays a local ordinary ringback tone. That is, when the terminal device is in a poor signal and other conditions, there will be a media negotiation failure, which will eventually lead to the inability to play the video ringback tone.
[0072] In order to solve the above technical problems, the embodiments of the present invention provide a video ring back tone processing method, a transmission method, an apparatus and a communication device.
[0073] like Figure 1 As shown, an embodiment of the present invention provides a video ring back tone processing method, which is applied to a calling terminal and specifically includes the following steps:
[0074] Step 101, when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, receiving the target video ringback tone sent from the media forwarding server, wherein the calling terminal and the media forwarding server communicate in a short-range communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server.
[0075] Here, the calling terminal performs video ring back tone media negotiation with the ring back tone server via a telephone communication network, where the telephone communication network refers to a network that transmits telephone services.
[0076] Optionally, the short-range communication method includes but is not limited to a local area network-based communication method and a Bluetooth-based communication method, wherein the local area network may be a wireless local area network (Wireless Local Area Networks, WLAN) or a wireless fidelity (Wireless Fidelity, Wi-Fi) network.
[0077] The calling terminal and the media forwarding server can also communicate through a data communication network. The data communication network is a communication network that mainly transmits data and realizes information transmission between computers, between data terminals, and between data terminals and computers.
[0078] Step 102: Play the target video ringback tone.
[0079] The video ringback tone playback method of the embodiment of the present invention receives and plays the target video ringback tone from the media forwarding server side when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, wherein the calling terminal and the media forwarding server communicate with each other in a short-distance communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server. In this way, the calling terminal can switch from the telecommunications domain to the Internet domain to play the video ringback tone, which solves the problem that the existing terminal equipment fails in the case of poor signal and the media negotiation fails, and finally leads to the inability to play the video ringback tone, increases the number and proportion of video ringback tone playback, and improves the success rate of video ringback tone playback and the user's service experience.
[0080] As an optional implementation, before receiving the target video sent from the forwarding server, the method of the embodiment of the present invention further includes the following steps:
[0081] Step 100-a, initiate playback registration to the media forwarding server.
[0082] Before executing step 100-a, the method of the embodiment of the present invention may further include:
[0083] S1, obtain the registration address of the media forwarding server, the network address translation NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server sent by the color ring back tone server, wherein the identifier of the color ring back tone server is used to instruct the media forwarding server to obtain the first public key corresponding to the identifier of the color ring back tone server, and the first public key is used to verify the security signature.
[0084] Here, the registration address of the media forwarding server, the network address translation NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server can be encapsulated into an INFO message.
[0085] Step S1 may specifically include: receiving an INFO message sent by the ring back tone server; parsing the INFO message to obtain the registration address of the media forwarding server, the network address translation NAT detection address of the media forwarding server, the security signature and the identifier of the ring back tone server.
[0086] It should be noted that the security signature is generated by the color ring back tone server based on the registration address of the media forwarding server, the timestamp, the calling number, the called number and the identifier of the color ring back tone server.
[0087] The registration address of the media forwarding server may be a Uniform Resource Locator (URL) for the media forwarding server to register the calling terminal for playing voice messages, or may be an IP address of the media forwarding server, which is not specifically limited here.
[0088] S2, based on the NAT detection address, obtain the public IP address and port number of the calling terminal.
[0089] Here, the NAT detection address can be a NAT session traversal application (STUN) service address, which is integrated in the media forwarding server. It should be noted that the calling terminal, as a STUN client, initiates interaction with the media forwarding server based on the NAT detection address to obtain the public IP address and port number of the calling terminal.
[0090] Accordingly, step 100-a includes:
[0091] 100-a1, based on the registration address, send a playback registration request to the media forwarding server, the playback registration request includes a security signature, the ringback tone server identifier and the first media negotiation request information, the first media negotiation request information includes the public network IP address and port number of the calling terminal; the first media negotiation request information is used for media negotiation between the media forwarding server and the ringback tone server.
[0092] It should be noted that the media forwarding server performs voice registration for the calling terminal based on the voice registration request sent by the calling terminal. In this process, the media forwarding server needs to verify the security signature based on the first public key, and verify whether the registration address of the media forwarding server obtained after decrypting the security signature is correct compared with the registration address in the voice registration request. If correct, the verification passes. After that, media negotiation is performed between the forwarding server and the ringback tone server through the first media negotiation request information.
[0093] Optionally, the first public key is an RSA public key.
[0094] Here, the first media negotiation request information is Session Description Protocol (SDP) information, which also includes: media type and media format.
[0095] Step 100 - b: upon receiving the announcement registration result returned by the media forwarding server, and the announcement registration result indicates that the announcement registration is successful, obtaining the media transmission address from the information carried in the announcement registration result.
[0096] Here, the announcement registration result returned by the media forwarding server is received, and the announcement registration result indicates that the announcement registration is successful, indicating that the calling terminal completes the announcement registration on the media forwarding server.
[0097] It should be noted that the announcement registration result is generated by the media forwarding server based on the first media negotiation request information. Specifically, if the media forwarding server performs media negotiation with the color ring back tone server based on the second media negotiation request information and receives second media negotiation confirmation information returned by the color ring back tone server, wherein the second media negotiation request information is determined based on the first media negotiation request information, then the announcement registration result indicating that the announcement registration is successful is obtained based on the second media negotiation confirmation information.
[0098] Optionally, the information carried in the announcement registration result indicating successful announcement registration further includes first media negotiation confirmation information responded by the media forwarding server, wherein the first media negotiation confirmation information includes the public IP address and port number of the forwarding server.
[0099] It should be noted that the calling terminal obtains the public IP address and port number of the media forwarding server. The purpose is to compare the public IP address and port number of the locally stored media forwarding server with the public IP address and port number of the first media forwarding server that sends the video ringback tone when receiving the video ringback tone sent by the first media forwarding server. If the comparison is correct, the video ringback tone sent by the first media forwarding server can be played; otherwise, the video ringback tone sent by the first media forwarding server is ignored, that is, the video ringback tone sent by the first media forwarding server is not processed.
[0100] The media transmission address is a media transmission address between the media forwarding server and the ring back tone server. Optionally, the media transmission address includes: a real-time transport protocol RTP network layer address and port number of the media forwarding server, and an RTP network layer address and port number of the ring back tone server.
[0101] The completion of the playback registration of the calling terminal on the media forwarding server also indicates that the media forwarding server has successfully negotiated with the ringback tone server. The target video ringback tone obtained by the media forwarding server from the ringback tone server can be pushed to the calling terminal.
[0102] It should be noted that the media forwarding server locally records the media transmission address between the media forwarding server and the ringback tone server, and the media transmission address between the media forwarding server and the calling terminal. When the calling terminal completes the playback registration on the media server, the media forwarding server provides the calling terminal with the media transmission address between the media forwarding server and the ringback tone server.
[0103] Step 100-c, sending the media transmission address to the color ring back tone server, so that the color ring back tone server sends the target video color ring back tone to the media forwarding server through the media transmission address.
[0104] As an optional implementation, before receiving the target video ringback tone sent from the media forwarding server in step 101, the method of the embodiment of the present invention may further include:
[0105] A first indication message sent by the color ring back tone server is received, where the first indication message is used to instruct the calling terminal to prepare to receive and play the target video color ring back tone sent by the media forwarding server.
[0106] The video ringback tone playback method of the embodiment of the present invention receives and plays the target video ringback tone from the media forwarding server side when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, wherein the calling terminal and the media forwarding server communicate with each other in a short-distance communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server. In this way, the calling terminal can switch from the telecommunications domain to the Internet domain to play the video ringback tone, which solves the problem that the existing terminal equipment fails in the case of poor signal and the media negotiation fails, and finally leads to the inability to play the video ringback tone, increases the number and proportion of video ringback tone playback, and improves the success rate of video ringback tone playback and the user's service experience.
[0107] like Figure 2 As shown, an embodiment of the present invention provides a video ring back tone transmission method, which is applied to a media forwarding server and specifically includes the following steps:
[0108] Step 201: When the video RBT media negotiation between the calling terminal and the RBT server fails, a target video RBT sent by the RBT server is received.
[0109] As an optional implementation, before receiving the target video ringback tone sent by the ringback tone server, the method of the embodiment of the present invention may further include:
[0110] S11, receiving a registration request for playing a message initiated by a calling terminal, the registration request for playing a message including a security signature, an identifier of a color ring back tone server and first media negotiation request information, the first media negotiation request information including a public network IP address and a port number of the calling terminal.
[0111] It should be noted that the identifier of the ringback tone server is used to instruct the media forwarding server to obtain the first public key corresponding to the identifier of the ringback tone server, the first public key is used to verify the security signature, and the first media negotiation request information is used for media negotiation between the media forwarding server and the ringback tone server.
[0112] Optionally, the first public key is an RSA public key.
[0113] Here, the first media negotiation request information is SDP information, which also includes: media type and media format.
[0114] S12: Obtain a first public key corresponding to the identifier of the color ring back tone server.
[0115] S13, using the first public key to decrypt the security signature to obtain a decrypted signature string.
[0116] Here, since the security signature is generated by the color ring back tone server based on the registration address, timestamp, calling number, called number and identification of the color ring back tone server of the media forwarding server, using the first private key corresponding to the identification of the color ring back tone server, in this step, the security signature is decrypted using the first public key, and the decrypted signature string includes the registration address, timestamp, calling number, called number and identification of the color ring back tone server of the media forwarding server.
[0117] S14, verify the signature string to obtain a verification result.
[0118] Based on step S13, the signature string is verified, mainly by comparing the registration address of the media forwarding server with the registration address in the playback registration request. If the comparison is correct, the obtained verification result indicates that the verification is passed; if the comparison is incorrect, the obtained verification result indicates that the verification is failed.
[0119] S15: If the verification result indicates that the verification is passed, generating a playback registration result according to the first media negotiation request information.
[0120] S16, sending the announcement registration result to the calling terminal, wherein if the announcement registration result indicates that the announcement registration is successful, the announcement registration result carries the media transmission address between the media forwarding server and the color ring back tone server.
[0121] Further, receiving the target video ringback tone sent by the ringback tone server in step 201 specifically includes:
[0122] Step 211: receiving a target video ringback tone sent by a ringback tone server through a media transmission address.
[0123] Optionally, the media transmission address includes: the RTP network layer address and port number of the media forwarding server, and the RTP network layer address and port number of the color ring back tone server.
[0124] Step 202: Send a target video ringback tone to a calling terminal, wherein the calling terminal communicates with the media forwarding server in a short-range communication manner.
[0125] Specifically, a target video ringback tone is sent to the public network IP address and port number of the calling terminal by short-distance communication, so that the calling terminal obtains the target video ringback tone and plays it.
[0126] The video ringback tone transmission method of the embodiment of the present invention, when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, receives the target video ringback tone sent by the ringback tone server; and sends the target video ringback tone to the calling terminal, wherein the calling terminal and the media forwarding server communicate using a short-distance communication method, which can help the calling terminal switch from the telecommunications domain to the Internet domain to play the video ringback tone, solves the problem of the existing terminal equipment failing to play the video ringback tone due to the poor signal and the media negotiation, and finally causes the failure to play the video ringback tone, increases the number and proportion of video ringback tone playback, and improves the success rate of video ringback tone playback and the user's service experience.
[0127] As an optional implementation, step S15 may specifically include:
[0128] S151: Modify the public network IP address and port number of the calling terminal in the first media negotiation request information into a media transmission address to obtain second media negotiation request information.
[0129] Here, the media transmission address refers to the media transmission address between the media forwarding server and the color ring back tone server.
[0130] It should be noted that only the public IP address and port number of the calling terminal in the first media negotiation request information are modified, and the remaining information in the first media negotiation request information, such as the media type and media format, are not modified.
[0131] The public network IP address and port number of the calling terminal are modified to the media transmission address between the media forwarding server and the ring back tone server, and the second media negotiation request information is obtained, the purpose of which is to request media negotiation between the media forwarding server and the ring back tone server.
[0132] S152: Send second media negotiation request information to the color ring back tone server.
[0133] Here, the color ring back tone server performs media negotiation confirmation after receiving the second media negotiation request information.
[0134] S153: Receive second media negotiation confirmation information returned by the color ring back tone server after the server performs media negotiation confirmation based on the second media negotiation request information.
[0135] Here, receiving the second media negotiation confirmation information returned by the CRBT server indicates that the media negotiation between the CRBT server and the media forwarding server is successful. It should be noted that the second media negotiation confirmation information includes bandwidth, media type, media format, Session Border Controller (SBC) address, etc.
[0136] S154: Modify the border session controller SBC address in the second media negotiation confirmation information to the public network IP address and port number of the media forwarding server to obtain the first media negotiation confirmation information.
[0137] It should be noted that only the SBC address in the second media negotiation confirmation information is modified, and the remaining information in the second media negotiation confirmation information, such as bandwidth, media type and media format, is not modified.
[0138] The main SBC address is modified to the public IP address and port number of the forwarding server to obtain the first media negotiation confirmation information. The purpose is to instruct the calling terminal to compare the locally stored public IP address and port number of the media forwarding server with the public IP address and port number of the first media forwarding server that sends the video ringback tone when receiving the video ringback tone sent by the first media forwarding server after the subsequent first media negotiation confirmation information is sent to the calling terminal. If the comparison is correct, the video ringback tone sent by the first media forwarding server can be played; otherwise, the video ringback tone sent by the first media forwarding server is ignored, that is, the video ringback tone sent by the first media forwarding server is not processed.
[0139] S155: Generate a playback registration result according to the first media negotiation confirmation information and the media transmission address.
[0140] In this step, the announcement registration result indicates that the announcement registration is successful, and the announcement registration result carries the first media negotiation confirmation information and the media transmission address.
[0141] It should be noted that, after step S152, the method of the embodiment of the present invention may further include:
[0142] If the media forwarding server does not receive the second media negotiation confirmation information returned by the color ring back tone server within the preset time period, it generates a playback registration result indicating that the playback registration fails.
[0143] Here, if the media forwarding server does not receive the second media negotiation confirmation information returned by the color ringback tone server within the preset time, it means that the media negotiation between the color ringback tone server and the media forwarding server is unsuccessful, the media forwarding server cannot obtain the target video color ringback tone from the color ringback tone server, and the calling terminal fails to register for playback on the media forwarding server.
[0144] The video ringback tone transmission method of the embodiment of the present invention, when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, receives the target video ringback tone sent by the ringback tone server; and sends the target video ringback tone to the calling terminal, wherein the calling terminal and the media forwarding server communicate using a short-distance communication method, which can help the calling terminal switch from the telecommunications domain to the Internet domain to play the video ringback tone, solves the problem of the existing terminal equipment failing to play the video ringback tone due to the poor signal and the media negotiation, and finally causes the failure to play the video ringback tone, increases the number and proportion of video ringback tone playback, and improves the success rate of video ringback tone playback and the user's service experience.
[0145] like Figure 3 As shown, an embodiment of the present invention provides a video ring back tone transmission method, which is applied to a ring back tone server and specifically includes the following steps:
[0146] Step 301: When the video RBT media negotiation between the calling terminal and the RBT server fails, a target video RBT is sent to the media forwarding server, so that the media forwarding server sends the target video RBT to the calling terminal in a short-distance communication manner.
[0147] It should be noted that when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, the ringback tone server cannot send the target video ringback tone that needs to be played on the calling terminal side to the calling terminal. In this case, the target video ringback tone is sent to the media forwarding server, and the media forwarding server uses a short-distance communication method to send the target video ringback tone to the calling terminal. In this way, the calling terminal can switch from the telecommunications domain to the Internet domain to play the video ringback tone, which solves the problem that the existing terminal equipment fails in media negotiation due to poor signals, and ultimately cannot play the video ringback tone. This increases the number and proportion of video ringback tone playbacks, and improves the success rate of video ringback tone playback and the user's service experience.
[0148] As an optional implementation, in step 301, before sending the target video ringback tone to the media forwarding server, the method of the embodiment of the present invention may further include:
[0149] Step 300a-1, obtain a signature string, the signature string includes the registration address of the media forwarding server, a timestamp, a calling number, a called number and an identifier of the color ring back tone server.
[0150] Step 300a-2: Generate a security signature according to the signature string and the first private key corresponding to the identifier of the color ring back tone server.
[0151] Optionally, step 300a-2 may specifically include: performing MD5 calculation on the signature string to obtain a summary of the signature string; encrypting the summary of the signature string using a first private key corresponding to the identifier of the color ring back tone server to generate a secure signature.
[0152] Step 300a-3, sending the registration address of the media forwarding server, the NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server to the calling terminal.
[0153] Optionally, step 300a-3 may specifically include: encapsulating the registration address of the media forwarding server, the NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server into an INFO message; and sending the INFO message to the calling terminal.
[0154] Among them, the registration address of the media forwarding server is the address where the calling terminal initiates the playback registration to the media forwarding server; the NAT detection address is used to obtain the public IP address and port number of the calling terminal; the identifier of the color ringback tone server is used to instruct the media forwarding server to obtain the first public key corresponding to the identifier of the color ringback tone server, and the first public key is used to verify the security signature.
[0155] It should be noted that after receiving the registration address of the media forwarding server, the NAT detection address of the media forwarding server, the security signature and the identifier of the ringback tone server, the calling terminal will initiate the playback registration to the media forwarding server through the data communication network based on the above information, and then obtain the media transmission address between the media forwarding server and the ringback tone server after completing the playback registration on the media forwarding server. The specific process is described in the relevant part of the media forwarding server side, which will not be repeated here.
[0156] As another optional implementation, in step 301, before sending the target video ringback tone to the media forwarding server, the method of the embodiment of the present invention may further include:
[0157] S300b-1, receiving the second media negotiation request information sent by the media forwarding server, the second media negotiation request information includes the media transmission address, which is obtained by the media forwarding server based on the first media negotiation request information, the first media negotiation request information is carried in the playback registration request initiated by the calling terminal, and the first media negotiation request information includes the public IP address and port number of the calling terminal.
[0158] It should be noted that the second media negotiation request information is the media negotiation request information obtained after the media forwarding server replaces the public network IP address and port number of the calling terminal in the first media negotiation request information with the media transmission address between the media forwarding server and the ringback tone server.
[0159] S300b-2: After media negotiation confirmation is performed based on the second media negotiation request information, second media negotiation confirmation information is returned to the media forwarding server, where the second media negotiation confirmation information is used to obtain the first media negotiation confirmation information.
[0160] Here, after media negotiation confirmation is performed based on the second media negotiation request information, the second media negotiation confirmation information is returned to the media forwarding server, indicating that the media negotiation between the ringback tone server and the media forwarding server is successful. It should be noted that the second media negotiation confirmation information includes bandwidth, media type, media format, SBC address, etc.
[0161] S300b-3, receiving the announcement registration result sent by the calling terminal, wherein if the announcement registration result indicates that the announcement registration is successful, the announcement registration result carries a media transmission address.
[0162] It should be noted that if the announcement registration result indicates that the announcement registration is successful, the announcement registration result is generated by the media forwarding server based on the first media negotiation confirmation information and the media transmission address, wherein the first media negotiation confirmation information is determined by the second media negotiation confirmation information.
[0163] Accordingly, the target video ringback tone is sent to the media forwarding server, including:
[0164] The target video ringback tone is sent to the media forwarding server through the media transmission address.
[0165] Optionally, the media transmission address includes: a real-time transport protocol RTP network layer address and a port number of a media forwarding server, and an RTP network layer address and a port number of a color ring back tone server.
[0166] Here, after step S300b-1, the method of the embodiment of the present invention may further include:
[0167] When media negotiation confirmation is performed based on the second media negotiation request information but media negotiation with the media forwarding server fails, no processing is performed.
[0168] At this time, if the media forwarding server does not receive the second media negotiation confirmation information returned by the color ring back tone server within the preset time period, it generates a playback registration result indicating that the playback registration fails.
[0169] Based on an example, the implementation process of the video ring back tone playing method of the present invention is described from the perspective of the interaction among the ring back tone server, the calling terminal and the media forwarding server.
[0170] 1. When the video RBT media negotiation between the calling terminal and the RBT server via the telephone communication network fails, the RBT server sends an INFO message to the calling terminal.
[0171] Specifically, the ringback tone server combines the registration address of the media forwarding server, timestamp, calling number, called number and the ringback tone server's identifier into a signature string; performs MD5 calculation on the signature string to obtain a summary of the signature string; finally, uses the RSA private key corresponding to the ringback tone server's identifier to encrypt the summary of the signature string to generate a secure signature.
[0172] The registration address of the media forwarding server, the NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server are encapsulated into an INFO message.
[0173] It should be noted that the message parameters in the INFO message are designed as follows:
[0174] NETRBTRegisterURL = registration address of the media forwarding server;
[0175] NETRBTSTUNURL = NAT detection address of the media forwarding server;
[0176] NETRBTSecurityCode=security signature;
[0177] RBTCode = the identifier of the ring back tone server.
[0178] 2. The calling terminal receives the INFO message, parses the INFO message, and obtains the registration address of the media forwarding server, the NAT detection address of the media forwarding server, the security signature, and the identifier of the ringback tone server.
[0179] 3. The calling terminal obtains the public IP address and port number of the calling terminal based on the NAT detection address of the media forwarding server; then, based on the registration address of the media forwarding server, the calling terminal sends a playback registration request to the media forwarding server, wherein the playback registration request includes registration parameters; the registration parameters include a security signature, an identifier of the color ringback tone server and the first SDP information, wherein the first SDP information includes the public IP address and port number of the calling terminal.
[0180] 4. The media forwarding server receives the announcement registration request, registers the announcement for the calling terminal based on the announcement registration request, and returns the announcement registration result.
[0181] Specifically, 4-1, the media forwarding server uses the RSA public key corresponding to the identifier of the ringback tone server to decrypt the security signature to obtain a summary of the signature string; then performs MD5 reverse calculation on the summary of the signature string to obtain the signature string.
[0182] Here, the signature character string includes the registration address of the media forwarding server, a timestamp, a calling number, a called number, and an identifier of the color ring back tone server.
[0183] 4-2. The media forwarding server compares the registration address of the media forwarding server in the signature string with the registration address of the media forwarding server in the playback registration request. If the comparison is correct, the security check passes.
[0184] 4-3. The media forwarding server performs media negotiation with the ringback tone server based on the first SDP information.
[0185] Specifically, 4-31, the media forwarding server modifies the public network IP address and port number of the calling terminal in the first SDP information into the media transmission address between the media forwarding server and the ringback tone server, and obtains the second SDP information.
[0186] The media transmission address between the media forwarding server and the color ring back tone server may be an RTP address pair for the media forwarding server to connect to the color ring back tone server.
[0187] 4-32, the media forwarding server sends the second SDP information to the ringback tone server, and the ringback tone server performs media negotiation confirmation based on the second SDP information.
[0188] If the negotiation is successful, execute steps 4-33 to 4-34; if the negotiation fails, execute steps 4-35 to 4-36.
[0189] 4-33, the ringback tone server obtains the second SDP negotiation confirmation information and returns it to the media forwarding server; the media forwarding server receives the second SDP negotiation confirmation information, and modifies the SBC address in the second SDP negotiation confirmation information to the public IP address and port number of the media forwarding server.
[0190] 4-34, the media forwarding server sends a first response message corresponding to the announcement registration request to the calling terminal, wherein the response message includes an announcement registration result indicating that the announcement registration is successful, and carries second SDP negotiation confirmation information and a media transmission address between the media forwarding server and the color ringback tone server.
[0191] 4-35, the ringback tone server does not perform any processing.
[0192] 4-36. If the media forwarding server does not receive the negotiation confirmation information returned by the color ring back tone server within the preset time period, the media forwarding server sends a first response message corresponding to the playback registration request to the calling terminal, wherein the first response message includes a playback registration result indicating that the playback registration fails.
[0193] 5. The calling terminal receives the first response message, and based on the first response message, sends a second response message corresponding to the INFO message to the color ring back tone server, where the second response message includes the playback registration result.
[0194] 6. Based on the second response message, if the playback registration result indicates that the playback registration is successful, the color ring back tone server sends a 180 message to the calling terminal, where the 180 message is used to indicate that the calling terminal is ready to receive the target video color ring back tone sent by the media forwarding server; or, if the playback registration result indicates that the playback registration fails, the 180 message is sent to the calling terminal, where the 180 message carries a P-Early-Media header field with a value of inactive.
[0195] The 180 message carries the P-Early-Media header field with the value of inactive, indicating that the 180 message is used to instruct the calling terminal to play a local common ringback tone.
[0196] 7. After sending the 180 message for indicating that the calling terminal is ready to receive the target video ringback tone sent by the media forwarding server, the ringback tone server sends the target video ringback tone to the media forwarding server through the media transmission address between the media forwarding server and the ringback tone server.
[0197] 8. The media forwarding server receives the target video ringback tone through the media transmission address between the media forwarding server and the ringback tone server, and forwards the target video ringback tone to the public network IP address and port number of the calling terminal.
[0198] 9. The calling terminal receives the target video ringback tone sent by the media forwarding server and plays it.
[0199] like Figure 4 As shown, an embodiment of the present invention further provides a video ring back tone playing device, which is applied to a calling terminal, comprising:
[0200] The first receiving module 401 is used to receive a target video ringback tone sent from a media forwarding server when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, wherein the calling terminal and the media forwarding server communicate in a short-distance communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server;
[0201] The playing module 402 is used to play the target video ringback tone.
[0202] Optionally, the video ringback tone playing device of the embodiment of the present invention further includes:
[0203] The first sending module is used to initiate a playback registration to a media forwarding server;
[0204] A first acquisition module is configured to, upon receiving a registration result of the announcement returned by the media forwarding server, acquire the media transmission address from information carried in the registration result of the announcement;
[0205] The second sending module is used to send the media transmission address to the color ring back tone server, so that the color ring back tone server sends the target video color ring back tone to the media forwarding server through the media transmission address.
[0206] Optionally, the video ring back tone playing device of the embodiment of the present invention further includes:
[0207] A second acquisition module is used to obtain the registration address of the media forwarding server, the network address translation NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server sent by the color ring back tone server, wherein the identifier of the color ring back tone server is used to instruct the media forwarding server to obtain a first public key corresponding to the identifier of the color ring back tone server, and the first public key is used to verify the security signature;
[0208] The third acquisition module is used to acquire the public IP address and port number of the calling terminal based on the NAT detection address.
[0209] Optionally, the first sending module may include:
[0210] The first sending unit is used to send a playback registration request to the media forwarding server based on the registration address, where the playback registration request includes a security signature, an identifier of the color ring back tone server and first media negotiation request information, where the first media negotiation request information includes a public network IP address and a port number of the calling terminal; the first media negotiation request information is used for media negotiation between the media forwarding server and the color ring back tone server.
[0211] The video ringback tone playback device of the embodiment of the present invention receives and plays the target video ringback tone from the media forwarding server side when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, wherein the calling terminal and the media forwarding server communicate with each other in a short-distance communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server. In this way, the calling terminal can switch from the telecommunications domain to the Internet domain to play the video ringback tone, which solves the problem that the existing terminal equipment fails in media negotiation due to poor signals, and ultimately fails to play the video ringback tone, increases the number and proportion of video ringback tone playback, and improves the success rate of video ringback tone playback and the user's service experience.
[0212] like Figure 5 As shown, an embodiment of the present invention further provides a video ring back tone transmission device, which is applied to a media forwarding server, comprising:
[0213] The second receiving module 501 is used to receive a target video ring back tone sent by the ring back tone server when the video ring back tone media negotiation between the calling terminal and the ring back tone server fails;
[0214] The third sending module 502 is used to send a target video ringback tone to a calling terminal, wherein the calling terminal communicates with the media forwarding server in a short-distance communication manner.
[0215] Optionally, the video ring back tone transmission device of the embodiment of the present invention includes:
[0216] A third receiving module is used to receive a registration request for playing a voice message initiated by a calling terminal, the registration request for playing a voice message includes a security signature, an identifier of a color ring back tone server and first media negotiation request information, the first media negotiation request information includes a public network IP address and a port number of the calling terminal;
[0217] A fourth acquisition module, used to acquire a first public key corresponding to the identifier of the color ring back tone server;
[0218] A decryption module, used to decrypt the security signature using the first public key to obtain a decrypted signature string;
[0219] The verification module is used to verify the signature string and obtain the verification result;
[0220] A first processing module, configured to generate a playback registration result according to the first media negotiation request information when the verification result indicates that the verification is passed;
[0221] The fourth sending module is used to send the voice registration result to the calling terminal, wherein if the voice registration result indicates that the voice registration is successful, the voice registration result carries the media transmission address between the media forwarding server and the color ring back tone server.
[0222] Optionally, the second receiving module 501 includes:
[0223] The first receiving unit is configured to receive a target video ringback tone sent by a ringback tone server through a media transmission address.
[0224] Optionally, the first processing module includes:
[0225] The first processing unit is used to modify the public network IP address and port number of the calling terminal in the first media negotiation request information into a media transmission address to obtain a second media negotiation request information;
[0226] A second sending unit, used to send second media negotiation request information to the color ring back tone server;
[0227] A second receiving unit is used to receive second media negotiation confirmation information returned by the color ring back tone server after the color ring back tone server confirms the media negotiation based on the second media negotiation request information;
[0228] The second processing unit is used to modify the border session controller SBC address in the second media negotiation confirmation information to the public network IP address and port number of the media forwarding server to obtain the first media negotiation confirmation information;
[0229] The third processing unit is used to generate a playback registration result according to the first media negotiation confirmation information and the media transmission address.
[0230] The video ringback tone transmission device of the embodiment of the present invention, when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, receives the target video ringback tone sent by the ringback tone server; and sends the target video ringback tone to the calling terminal, wherein the calling terminal and the media forwarding server communicate using a short-distance communication method, which can help the calling terminal switch from the telecommunications domain to the Internet domain to play the video ringback tone, solves the problem of the existing terminal equipment failing to play the video ringback tone due to the poor signal and the media negotiation, thereby increasing the number and proportion of video ringback tone playback, and improving the success rate of video ringback tone playback and the user's service experience.
[0231] like Figure 6 As shown, an embodiment of the present invention further provides a video ring back tone transmission device, which is applied to a ring back tone server, comprising:
[0232] The fifth sending module 601 is used to send a target video RBT to a media forwarding server when the video RBT media negotiation between the calling terminal and the RBT server fails, so that the media forwarding server sends the target video RBT to the calling terminal by using a short-distance communication method.
[0233] Optionally, the video ring back tone transmission device of the embodiment of the present invention includes:
[0234] A fifth acquisition module, used to acquire a signature string, the signature string including a registration address of a media forwarding server, a timestamp, a calling number, a called number, and an identifier of a color ring back tone server;
[0235] A second processing module, used to generate a security signature according to the signature string and a first private key corresponding to the identifier of the color ring back tone server;
[0236] The sixth sending module is used to send the registration address of the media forwarding server, the NAT detection address of the media forwarding server, the security signature and the identifier of the ring back tone server to the calling terminal;
[0237] Among them, the registration address of the media forwarding server is the address where the calling terminal initiates the playback registration to the media forwarding server; the NAT detection address is used to obtain the public IP address and port number of the calling terminal; the identifier of the color ringback tone server is used to instruct the media forwarding server to obtain the first public key corresponding to the identifier of the color ringback tone server, and the first public key is used to verify the security signature.
[0238] Optionally, the video ring back tone transmission device of the embodiment of the present invention further includes:
[0239] a fourth receiving module, configured to receive second media negotiation request information sent by the media forwarding server, where the second media negotiation request information includes a media transmission address, which is obtained by the media forwarding server based on the first media negotiation request information, where the first media negotiation request information is carried in a playback registration request initiated by the calling terminal, and where the first media negotiation request information includes a public network IP address and a port number of the calling terminal;
[0240] a seventh sending module, configured to return second media negotiation confirmation information to the media forwarding server after performing media negotiation confirmation based on the second media negotiation request information, where the second media negotiation confirmation information is used to obtain the first media negotiation confirmation information;
[0241] The fifth receiving module is configured to receive a voice playback registration result sent by the calling terminal, wherein if the voice playback registration result indicates that the voice playback registration is successful, the voice playback registration result carries a media transmission address.
[0242] Optionally, the fifth sending module 601 includes:
[0243] The third sending unit is used to send the target video ring back tone to the media forwarding server through the media transmission address.
[0244] The video ringback tone transmission device of the embodiment of the present invention, when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, the ringback tone server cannot send the target video ringback tone that needs to be played on the calling terminal side to the calling terminal. In this way, the target video ringback tone is sent to the media forwarding server, and the media forwarding server uses a short-distance communication method to send the target video ringback tone to the calling terminal. In this way, the calling terminal can be helped to switch from the telecommunications domain to the Internet domain to play the video ringback tone, which solves the problem of the existing terminal equipment failing to play the video ringback tone due to poor signals and the media negotiation failing, thereby increasing the number and proportion of video ringback tone playbacks, and improving the success rate of video ringback tone playback and the user's service experience.
[0245] like Figure 7 As shown, an embodiment of the present invention further provides a communication device, including: a transceiver 701, a processor 702, a memory 703, and a computer program stored in the memory 703 and executable on the processor 702.
[0246] When the communication device is a calling terminal, the processor 702 implements the steps of the above-mentioned video ringback tone playing method when executing the computer program. Specifically, the transceiver 701 is used to receive the target video ringback tone sent from the media forwarding server when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, wherein the calling terminal and the media forwarding server communicate in a short-distance communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server; the processor 702 is used to play the target video ringback tone.
[0247] Optionally, the processor 702 is also used to obtain the media transmission address between the media forwarding server and the ringback tone server; the transceiver 701 is also used to send the media transmission address to the ringback tone server, so that the ringback tone server sends the target video ringback tone to the media forwarding server via the media transmission address; and receive the target video ringback tone sent by the media forwarding server via the data communication network.
[0248] Optionally, the transceiver 701 is further configured to initiate a playback registration to the media forwarding server; the processor 702 is further configured to, upon receiving a playback registration result returned by the media forwarding server, and the playback registration result indicates that the playback registration is successful, obtain a media transmission address from information carried in the playback registration result; the transceiver 701 is further configured to send the media transmission address to the color ring back tone server, so that the color ring back tone server sends a target video color ring back tone to the media forwarding server through the media transmission address.
[0249] Optionally, the processor 702 is further configured to obtain a registration address of a media forwarding server, a network address translation NAT detection address of the media forwarding server, a security signature, and an identifier of the color ring back tone server sent by the color ring back tone server; wherein the identifier of the color ring back tone server is used to instruct the media forwarding server to obtain a first public key corresponding to the identifier of the color ring back tone server, and the first public key is used to verify the security signature;
[0250] Based on the NAT detection address, obtain the public IP address and port number of the calling terminal.
[0251] The transceiver 701 is also used to send a playback registration request to the media forwarding server based on the registration address. The playback registration request includes a security signature, an identifier of the ringback tone server and first media negotiation request information. The first media negotiation request information includes the public network IP address and port number of the calling terminal. The first media negotiation request information is used for media negotiation between the media forwarding server and the ringback tone server.
[0252] When the communication device is a calling terminal, the calling terminal can switch from the telecommunications domain to the Internet domain to play video ringback tone, which solves the problem of existing terminal devices failing in media negotiation due to poor signals, ultimately leading to the inability to play video ringback tone. It increases the number and proportion of video ringback tone playback, improves the success rate of video ringback tone playback and the user's service experience.
[0253] When the communication device is a media forwarding server, the transceiver 701 is also used to receive a target video ringback tone sent by the ringback tone server when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails; and send the target video ringback tone to the calling terminal, wherein the calling terminal and the media forwarding server communicate using a short-range communication method.
[0254] Optionally, the transceiver 701 is further used to receive a playback registration request initiated by a calling terminal, the playback registration request including a security signature, an identifier of a color ring back tone server and first media negotiation request information, the first media negotiation request information including a public network IP address and a port number of the calling terminal; the processor 702 is further used to obtain a first public key corresponding to the identifier of the color ring back tone server; decrypt the security signature using the first public key to obtain a decrypted signature string; verify the signature string to obtain a verification result; if the verification result indicates that the verification is passed, generate a playback registration result according to the first media negotiation request information; and send the playback registration result to the calling terminal, wherein if the playback registration result indicates that the playback registration is successful, the playback registration result carries a media transmission address between the media forwarding server and the color ring back tone server.
[0255] Optionally, the transceiver 701 is further configured to receive a target video ringback tone sent by a ringback tone server through a media transmission address.
[0256] Optionally, the processor 702 is also used to modify the public IP address and port number of the calling terminal in the first media negotiation request information to the media transmission address, and obtain the second media negotiation request information; the transceiver 701 is also used to send the second media negotiation request information to the color ring back tone server; receive the second media negotiation confirmation information returned by the color ring back tone server after the media negotiation confirmation is performed based on the second media negotiation request information; the processor 702 is also used to modify the border session controller SBC address in the second media negotiation confirmation information to the public IP address and port number of the media forwarding server, and obtain the first media negotiation confirmation information; generate the playback registration result according to the first media negotiation confirmation information and the media transmission address.
[0257] When the communication device is a media forwarding server, it can help the calling terminal switch from the telecommunications domain to the Internet domain to play video ringback tone, solving the problem that the existing terminal equipment fails in media negotiation due to poor signals, ultimately resulting in the inability to play video ringback tone. It increases the number and proportion of video ringback tone playback, improves the success rate of video ringback tone playback and the user's business experience.
[0258] When the communication device is a ring back tone server, the transceiver 701 is used to send a target video ring back tone to a media forwarding server when video ring back tone media negotiation between the calling terminal and the ring back tone server fails, so that the media forwarding server sends the target video ring back tone to the calling terminal using a short-distance communication method.
[0259] Optionally, the processor 702 is also used to obtain a signature string, which includes a registration address, a timestamp, a calling number, a called number and an identifier of a color ring back tone server of the media forwarding server; a security signature is generated based on a first private key corresponding to the signature string and the identifier of the color ring back tone server; the transceiver 701 is also used to send the registration address of the media forwarding server, the NAT detection address of the media forwarding server, a security signature and an identifier of the color ring back tone server to the calling terminal; wherein the registration address of the media forwarding server is the address at which the calling terminal initiates a playback registration to the media forwarding server; the NAT detection address is used to obtain the public IP address and port number of the calling terminal; the identifier of the color ring back tone server is used to instruct the media forwarding server to obtain a first public key corresponding to the identifier of the color ring back tone server, and the first public key is used to verify the security signature.
[0260] Optionally, the transceiver 701 is further configured to receive second media negotiation request information sent by the media forwarding server, where the second media negotiation request information includes a media transmission address, which is obtained by the media forwarding server based on the first media negotiation request information, and the first media negotiation request information is carried in a playback registration request initiated by the calling terminal, and the first media negotiation request information includes a public network IP address and a port number of the calling terminal;
[0261] After performing media negotiation confirmation based on the second media negotiation request information, returning second media negotiation confirmation information to the media forwarding server, where the second media negotiation confirmation information is used to obtain the first media negotiation confirmation information;
[0262] The announcement registration result sent by the calling terminal is received, wherein if the announcement registration result indicates that the announcement registration is successful, the announcement registration result carries a media transmission address.
[0263] Optionally, the transceiver 701 is further configured to send a target video ringback tone to a media forwarding server via a media transmission address.
[0264] When the communication device is a ringback tone server, it can help the calling terminal switch from the telecommunications domain to the Internet domain to play the video ringback tone, solving the problem that the existing terminal equipment fails in media negotiation due to poor signals, ultimately resulting in the inability to play the video ringback tone. It increases the number and proportion of video ringback tone playback, improves the success rate of video ringback tone playback and the user's business experience.
[0265] Wherein, when the communication device is a calling terminal, the bus architecture may include any number of interconnected buses and bridges, specifically, various circuits of one or more processors 702 represented by processor 702 and memory 703 represented by memory 703 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 701 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. The processor 702 is responsible for managing the bus architecture and general processing, and the memory 703 may store data used by the processor when performing operations.
[0266] When the communication device is a media forwarding server or a ring back tone server, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors 702 represented by processor 702 and various circuits of memory 703 represented by memory 703 are linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 701 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. The processor 702 is responsible for managing the bus architecture and general processing, and the memory 703 may store data used by the processor when performing operations.
[0267] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing related hardware through a computer program, wherein the computer program includes instructions for executing part or all of the steps of the above methods; and the computer program may be stored in a readable storage medium, and the storage medium may be any form of storage medium.
[0268] Preferably, the network device in the above embodiment is a mobile edge computing MEC component.
[0269] In addition, a specific embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps in the above-mentioned video ringback tone playback method or the steps in the above-mentioned video ringback tone transmission method are implemented. The same technical effect can be achieved, and to avoid repetition, it will not be repeated here.
[0270] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0271] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0272] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0273] The above are preferred embodiments of the present invention. It should be noted that ordinary persons skilled in the art can make several improvements and modifications without departing from the principles of the present invention. These improvements and modifications are also within the protection scope of the present invention.
Claims
1. A video ring back tone playing method, applied to a calling terminal, characterized in that: include: In the case where the video RBT media negotiation between the calling terminal and the RBT server fails, receiving a target video RBT sent from a media forwarding server, wherein the calling terminal and the media forwarding server communicate in a short-range communication manner, and the media forwarding server is used to obtain the target video RBT from the RBT server; Play the target video ringback tone.
2. The method according to claim 1, characterized in that Before receiving the target video ringback tone sent from the media forwarding server, the method further includes: Initiate playback registration to the media forwarding server; Upon receiving the announcement registration result returned by the media forwarding server, and the announcement registration result indicates that the announcement registration is successful, obtaining a media transmission address from information carried in the announcement registration result; The media transmission address is sent to the color ring back tone server, so that the color ring back tone server sends the target video color ring back tone to the media forwarding server through the media transmission address.
3. The method according to claim 2, characterized in that Before initiating the playback registration to the media forwarding server, the method further includes: Obtaining the registration address of the media forwarding server, the network address translation NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server sent by the color ring back tone server, wherein the identifier of the color ring back tone server is used to instruct the media forwarding server to obtain a first public key corresponding to the identifier of the color ring back tone server, and the first public key is used to verify the security signature; Based on the NAT detection address, obtain the public IP address and port number of the calling terminal.
4. The method according to claim 3, characterized in that The initiating a playback registration to the media forwarding server includes: Based on the registration address, a playback registration request is sent to the media forwarding server, where the playback registration request includes the security signature, an identifier of the color ring back tone server, and first media negotiation request information, where the first media negotiation request information includes a public network IP address and a port number of the calling terminal; and the first media negotiation request information is used for media negotiation between the media forwarding server and the color ring back tone server.
5. A video ring back tone transmission method, characterized in that: Applicable to media forwarding servers, including: In the case where the video RBT media negotiation between the calling terminal and the RBT server fails, receiving a target video RBT sent by the RBT server; The target video ringback tone is sent to the calling terminal, wherein the calling terminal communicates with the media forwarding server in a short-range communication manner.
6. The method according to claim 5, characterized in that Before receiving the target video ringback tone sent by the ringback tone server, the method further includes: receiving a registration request for voice playback initiated by the calling terminal, the registration request for voice playback including a security signature, an identifier of a color ring back tone server and first media negotiation request information, the first media negotiation request information including a public network IP address and a port number of the calling terminal; Acquire a first public key corresponding to the identifier of the color ring back tone server; Decrypting the security signature using the first public key to obtain a decrypted signature string; Verifying the signature string to obtain a verification result; If the verification result indicates that the verification is passed, generating a playback registration result according to the first media negotiation request information; The announcement registration result is sent to the calling terminal, wherein if the announcement registration result indicates that the announcement registration is successful, the announcement registration result carries a media transmission address between the media forwarding server and the color ring back tone server.
7. The method according to claim 6, characterized in that The receiving the target video ringback tone sent by the ringback tone server comprises: The target video ringback tone sent by the ringback tone server is received through the media transmission address.
8. The method according to claim 6, characterized in that Generating a playback registration result according to the first media negotiation request information includes: Modify the public network IP address and port number of the calling terminal in the first media negotiation request information to the media transmission address to obtain a second media negotiation request information; Sending the second media negotiation request information to the color ring back tone server; Receiving second media negotiation confirmation information returned by the color ring back tone server after the color ring back tone server confirms the media negotiation based on the second media negotiation request information; Modify the border session controller SBC address in the second media negotiation confirmation information to the public network IP address and port number of the media forwarding server to obtain the first media negotiation confirmation information; The announcement registration result is generated according to the first media negotiation confirmation information and the media transmission address.
9. A video ring back tone transmission method, applied to a ring back tone server, characterized in that: include: In case that the video RBT media negotiation between the calling terminal and the RBT server fails, a target video RBT is sent to a media forwarding server, so that the media forwarding server sends the target video RBT to the calling terminal in a short-distance communication manner.
10. The method according to claim 9, characterized in that Before sending the target video ringback tone to the media forwarding server, the method further includes: Obtain a signature string, the signature string including the registration address of the media forwarding server, a timestamp, a calling number, a called number, and an identifier of the color ring back tone server; Generate a security signature according to the signature string and a first private key corresponding to the identifier of the color ring back tone server; Sending the registration address of the media forwarding server, the NAT detection address of the media forwarding server, the security signature and the identifier of the color ring back tone server to the calling terminal; Among them, the registration address of the media forwarding server is the address at which the calling terminal initiates playback registration to the media forwarding server; the NAT detection address is used to obtain the public IP address and port number of the calling terminal; the identifier of the color ring back tone server is used to instruct the media forwarding server to obtain the first public key corresponding to the identifier of the color ring back tone server, and the first public key is used to verify the security signature.
11. The method according to claim 9, characterized in that Before sending the target video ringback tone to the media forwarding server, the method further includes: receiving second media negotiation request information sent by the media forwarding server, where the second media negotiation request information includes a media transmission address, which is obtained by the media forwarding server based on the first media negotiation request information, where the first media negotiation request information is carried in the playback registration request initiated by the calling terminal, and where the first media negotiation request information includes a public network IP address and port number of the calling terminal; After performing media negotiation confirmation based on the second media negotiation request information, returning second media negotiation confirmation information to the media forwarding server, where the second media negotiation confirmation information is used to obtain the first media negotiation confirmation information; The announcement registration result sent by the calling terminal is received, wherein if the announcement registration result indicates that the announcement registration is successful, the announcement registration result carries the media transmission address.
12. The method according to claim 11, characterized in that The sending of the target video ringback tone to the media forwarding server includes: The target video ringback tone is sent to the media forwarding server via the media transmission address.
13. A video ring back tone playing device, applied to a calling terminal, characterized in that: include: A first receiving module is used to receive a target video ringback tone sent from a media forwarding server when the video ringback tone media negotiation between the calling terminal and the ringback tone server fails, wherein the calling terminal and the media forwarding server communicate in a short-distance communication manner, and the media forwarding server is used to obtain the target video ringback tone from the ringback tone server; The playing module is used to play the target video ringback tone.
14. A video ring back tone transmission device, applied to a media forwarding server, characterized in that: include: A second receiving module is used to receive a target video ring back tone sent by the ring back tone server when the video ring back tone media negotiation between the calling terminal and the ring back tone server fails; The third sending module is used to send the target video ringback tone to the calling terminal, wherein the calling terminal communicates with the media forwarding server in a short-distance communication manner.
15. A video ring back tone transmission device, applied to a ring back tone server, characterized in that: include: The fifth sending module is used to send a target video ring back tone to a media forwarding server when the video ring back tone media negotiation between the calling terminal and the ring back tone server fails, so that the media forwarding server sends the target video ring back tone to the calling terminal via a short-distance communication method.
16. A communication device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the video ringback tone playback method as described in any one of claims 1 to 4, or implements the steps of the video ringback tone transmission method as described in any one of claims 5 to 8, or implements the steps of the video ringback tone transmission method as described in any one of claims 9 to 12.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the video ringback tone playback method as described in any one of claims 1 to 4, or the steps of the video ringback tone transmission method as described in any one of claims 5 to 8, or the steps of the video ringback tone transmission method as described in any one of claims 9 to 12.
Citation Information
Patent Citations
Multimedia color bell service implementing method
CN101141700A
Method and system for implementing picture multimedia ring service of IMS field
CN101404787A