Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
The method for playing the ring back tone for the calling terminal provided by the embodiment of the present invention, as shown in fig. 1, may include:
step 11, after a called terminal receives a call request initiated by a calling terminal, establishing a data channel with the calling terminal;
andstep 12, the called terminal sends the pre-stored ring back tone information to the calling terminal through the data channel so that the calling terminal can play the ring back tone information after receiving the ring back tone information.
Further, at least one type of ring back tone information may be pre-stored at the called terminal side, so that the called terminal may transmit the ring back tone information for the calling terminal.
Furthermore, in order for the called terminal to be able to flexibly set the ring back tone information that the called terminal desires to play for the calling terminal, the called terminal may also update the stored ring back tone information as needed, for example, delete the already stored ring back tone information or add and store new ring back tone information.
Specifically, when various ring back tone information is pre-stored in the called terminal, before the called terminal sends the pre-stored ring back tone information to the calling terminal through the data channel, the called terminal needs to first select one ring back tone information according to a predetermined rule. The method for selecting a ring back tone information according to a predetermined rule may include, but is not limited to, any one of the following:
the first method is as follows: the called terminal selects a ring back tone information in turn from the multiple ring back tone information according to the sequence of the accessed call; the called terminal can select a ring back tone information in turn according to the sequence of the accessed call in the various ring back tone information, for example, the user can store the various ring back tone information which the user likes in the terminal, when the calling terminal initiates a call request to the user, the called terminal can select the first ring back tone information for the first call request, and can select the second ring back tone information for the second call request, and so on, and the set various ring back tone information is selected in a circulating way, thereby selecting the corresponding ring back tone information for the corresponding calling terminal;
the second method comprises the following steps: the called terminal randomly selects one ring back tone information from the multiple ring back tone information; the called terminal can optionally select one ring back tone information from a plurality of ring back tone information, for example, a user can store the favorite plurality of ring back tone information in the terminal, when the calling terminal initiates a call request to the user, the user can randomly select one ring back tone information for the calling terminal;
the third method comprises the following steps: the called terminal selects a corresponding ring-back tone information according to the corresponding relation between the identification information of the calling terminal and the ring-back tone; the called terminal can select a corresponding ring back tone information according to the corresponding relationship between the identification information of the calling terminal and the ring back tone, and in the third mode, the user can preset the corresponding relationship between the identification information of the calling terminal and the ring back tone information. When the called terminal receives the call request, it obtains the identification information of the calling terminal (such as the number of the calling terminal), and then searches the corresponding ring back tone information according to the identification information of the calling terminal, thus determining the ring back tone information selected for the calling terminal;
the method is as follows: the called terminal selects a specified type of ringback tone information. The called terminal may select a specified one of the ringback tone information. For example, the user may specify the ring back tone information played for the calling terminal at the current stage at any time according to the requirement, so that the called terminal only needs to send the ring back tone information specified by the user to the calling terminal after the user receives the call request.
In the embodiment of the invention, the ring back tone information is stored on the terminal of the called terminal and is transmitted to the calling terminal after receiving the call request, so that the calling terminal can hear the ring back tone information set by the called terminal. Thus, the user can conveniently and quickly set the ring back tone, thereby well meeting the personalized requirements of the user, for example, the user can set the ring back tone information for informing the current state of the called terminal, or the user can set the specific ring back tone information for the specific calling terminal, and the like.
The following describes a specific implementation process of the embodiment of the present invention in detail with reference to specific application embodiments.
As shown in fig. 2, a specific implementation process of the embodiment of the application may include:
step 21, a called terminal (called party) sets ring back tone information in advance so as to play the ring back tone information to an incoming call user (namely, a calling terminal or called party);
for example, when a user is in a meeting, the ring-back tone information can be set into a section of voice to inform the opposite side that 'meeting is being opened and the call is inconvenient to answer', and after the meeting is finished, the ring-back tone information can be modified into normal ring-back tone information; or, if the user wishes to play specific ringback tone information for a specific user, specific ringback tone information may be preset for the specific user;
step 22, after the calling terminal dials, sending a calling request to the called terminal;
step 23, after receiving the call request, the called terminal establishes media data channels of the calling party and the called party according to the address information (such as an IP address, a port and the like) of the calling terminal in the call request;
step 24, the called terminal sends the preset ring back tone information to the calling terminal through the media data channel;
step 25, the calling terminal plays the ring back tone information after receiving the corresponding ring back tone information, and at the same time, rings at the called terminal side to prompt the user at the called terminal side to pick up the phone and answer the call;
step 26, after the called terminal is off-hook, sending a corresponding off-hook notice to the calling terminal;
and step 27, after the calling terminal receives the off-hook notification, the calling party and the called party start to talk.
Through the application embodiment, the embodiment of the invention can enable the calling terminal to acquire the state of the called terminal (such as meeting or going out) through different ring-back tones; in addition, the embodiment of the invention can lead the user to set different ring back tone information at random on the local terminal without setting through the local side, thereby leading the setting process of the ring back tone information to be rapid, simple and convenient.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The embodiment of the present invention further provides a terminal, where the terminal is configured to execute the method according to the embodiment of the present invention, and please refer to the embodiment of the present invention for non-exhaustive description of the technical solutions.
As shown in fig. 3, the terminal includes:
a call request receiving unit 31, configured to receive a call request initiated by a calling terminal;
a data channel establishing unit 32, configured to establish a data channel with the calling terminal after the call request receiving unit receives the call request;
a ring-back tone sending unit 33, configured to send the pre-stored ring-back tone information to the calling terminal through the data channel established by the data channel establishing unit, so that the calling terminal receives the ring-back tone information and then plays the ring-back tone information.
Further, the terminal may further include a ringback tone information management unit 34 for storing at least one type of ringback tone information before the called terminal transmits the pre-stored ringback tone information to the calling terminal through the data channel.
Optionally, the terminal may further include a ringback tone information updating unit 35 for updating the stored ringback tone information after the called terminal stores at least one ringback tone information. In this embodiment of the present invention, when the terminal stores multiple types of ring back tone information, the terminal further includes: a ringback tone information selecting unit 36 for selecting a type of ringback tone information according to a predetermined rule; at this time, the ringback tone sending unit is configured to send the ringback tone information selected by the ringback tone information selecting unit to the calling terminal.
The mode of selecting a type of ringback tone information by the ringback tone information selection unit 36 according to a predetermined rule may be, but is not limited to, any of the following modes:
the first method is as follows: according to the sequence of the accessed calls, one ring back tone information is selected in sequence from the multiple ring back tone information;
the second method comprises the following steps: selecting one ring back tone information from the plurality of ring back tone information;
the third method comprises the following steps: selecting a corresponding ring-back tone information according to the corresponding relation between the identification information of the calling terminal and the ring-back tone;
the method is as follows: a specified one of the ringback tone information is selected.
Through the application of the terminal, the called terminal can set corresponding ring back tone information at will locally, so that the calling terminal can hear the ring back tone information sent from the called terminal side, the called terminal can inform the calling terminal of the current state and other information through the ring back tone information, and the personalized requirements of users can be met conveniently and flexibly.
It should be noted that, specific implementation manners of functions implemented by the processing units included in the terminal are described in detail in the foregoing embodiments, and therefore, detailed descriptions thereof are omitted here.
An embodiment of the present invention further provides a terminal, where the terminal may specifically be a terminal including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Point of sale (POS) terminal, a vehicle-mounted computer, and the like, and fig. 4 shows a block diagram of a partial structure of amobile phone 400 related to the terminal provided in the embodiment of the present invention. Referring to fig. 4, themobile phone 400 includes RF (Radio Frequency)circuit 410,memory 420,input unit 430,display unit 440,sensor 450,audio circuit 460, WiFi (wireless fidelity)module 470,processor 480, andpower supply 490. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes the components of themobile phone 400 in detail with reference to fig. 4:
theRF circuit 410 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to theprocessor 480; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low noise amplifier), a duplexer, and the like. In addition, theRF circuit 410 may also communicate with networks and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (general packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
Thememory 420 may be used to store software programs and modules, and theprocessor 480 executes various functional applications and data processing of thecellular phone 400 by operating the software programs and modules stored in thememory 420. Thememory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of thecellular phone 400, and the like. Further, thememory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theinput unit 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of thecellular phone 400. Specifically, theinput unit 430 may include atouch panel 431 andother input terminals 432. Thetouch panel 431, also called a touch screen, may collect touch operations of a user on or near the touch panel 431 (e.g., operations of the user on or near thetouch panel 431 using any suitable object or accessory such as a finger or a stylus) and drive the corresponding connection device according to a preset program. Alternatively, thetouch panel 431 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 480, and receives and executes commands sent from theprocessor 480. In addition, thetouch panel 431 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. Theinput unit 430 may includeother input terminals 432 in addition to thetouch panel 431. In particular,other input terminals 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Thedisplay unit 440 may be used to display information input by the user or information provided to the user and various menus of thecellular phone 400. Thedisplay unit 440 may include adisplay panel 441, and optionally, thedisplay panel 441 may be configured in the form of an LCD (Liquid crystal display), an OLED (Organic Light-Emitting Diode), or the like. Further, thetouch panel 431 may cover thedisplay panel 441, and when thetouch panel 431 detects a touch operation on or near thetouch panel 431, the touch panel is transmitted to theprocessor 480 to determine the type of the touch event, and then theprocessor 480 provides a corresponding visual output on thedisplay panel 441 according to the type of the touch event. Although in fig. 4, thetouch panel 431 and thedisplay panel 441 are two separate components to implement the input and output functions of themobile phone 400, in some embodiments, thetouch panel 431 and thedisplay panel 441 may be integrated to implement the input and output functions of themobile phone 400.
Thecell phone 400 can also include at least onesensor 450, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of thedisplay panel 441 according to the brightness of ambient light, and a proximity sensor that turns off thedisplay panel 441 and/or the backlight when themobile phone 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and may be used for applications of recognizing the posture of the mobile phone (e.g., horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (e.g., pedometer, tapping), and the like, and themobile phone 400 may further be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein again.
Theaudio circuit 460, speaker 461, microphone 462 may provide an audio interface between a user and thecell phone 400. Theaudio circuit 460 may transmit the electrical signal converted from the received audio data to the speaker 461, and convert the electrical signal into a sound signal for output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is received by theaudio circuit 460 and converted into audio data, which is then processed by the audiodata output processor 480 and then transmitted to, for example, another cellular phone via theRF circuit 410, or output to thememory 420 for further processing.
WiFi belongs to short-range wireless transmission technology, and themobile phone 400 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through theWiFi module 470, which provides wireless broadband internet access for the user. Although fig. 4 shows theWiFi module 470, it is understood that it does not belong to the essential constitution of thehandset 400, and can be omitted entirely as needed within the scope not changing the essence of the invention.
Theprocessor 480 is a control center of themobile phone 400, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions and processes of themobile phone 400 by operating or executing software programs and/or modules stored in thememory 420 and calling data stored in thememory 420, thereby performing overall monitoring of the mobile phone. Optionally,processor 480 may include one or more processing units; preferably, theprocessor 480 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated intoprocessor 480.
Thehandset 400 also includes a power supply 490 (e.g., a battery) for powering the various components, which may preferably be logically connected to theprocessor 480 via a power management system to manage charging, discharging, and power consumption via the power management system.
Although not shown, themobile phone 400 may further include a camera, a bluetooth module, and the like, which will not be described herein.
In the embodiment of the present invention, theRF circuit 410 and theprocessor 480 included in the terminal further have the following functions:
the terminal receives a call request initiated by a calling terminal through theRF circuit 410; after receiving the call request, theprocessor 480 initiates to establish a data channel with the calling terminal; after the data channel is established, theprocessor 480 calls the preset ring back tone information stored in thememory 420, and sends the preset ring back tone information to the calling terminal through theRF circuit 410 via the data channel, so that the calling terminal plays the received ring back tone information after receiving the ring back tone information.
Further, the at least one ringback tone information may be stored through thememory 420 for the invocation of theprocessor 480. In addition, the ringback tone information stored in thememory 420 may be updated through theinput unit 430, so that a mobile phone user may flexibly modify and change the corresponding ringback tone information according to the requirement.
In the embodiment of the present invention, if a plurality of types of ringback tone information are stored in thememory 420, theprocessor 480 may further select one type of ringback tone information according to a predetermined rule before transmitting the ringback tone information through theRF circuit 410.
The manner in which theprocessor 480 selects a ring back tone information according to a predetermined rule may include, but is not limited to, any one of the following manners:
the first method is as follows: according to the sequence of the accessed calls, one ring back tone information is selected in sequence from the multiple ring back tone information;
the second method comprises the following steps: selecting one ring back tone information from the plurality of ring back tone information;
the third method comprises the following steps: selecting a corresponding ring-back tone information according to the corresponding relation between the identification information of the calling terminal and the ring-back tone;
the method is as follows: a specified one of the ringback tone information is selected.
Through themobile phone 400, a mobile phone user can optionally set corresponding ring back tone information locally, so that when the mobile phone user is used as a called terminal, the calling terminal can hear the ring back tone information sent from the called terminal side, and the mobile phone user can inform the calling terminal of information such as the current state of the calling terminal through the ring back tone information, thereby meeting the personalized requirements of the user.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the above-described apparatuses and units, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.