Summary of the invention
Technical problem to be solved by this invention is, overcomes the deficiencies in the prior art, and a kind of screen method of ring service and the terminal that can shield ring service are provided.
In order to address the above problem, the invention provides a kind of screen method of ring service, this method comprises:
Calling terminal sends call request message through ringing server to terminal called, and request is set up session with terminal called;
After receiving the call request message of ringing server transmission, terminal called is by playing the ring service that local bell sound shields ringing server.
In addition, after terminal called receives described call request message, only when the terminal iidentification of described calling terminal is set to shield ring service, just by playing the ring service that local bell sound shields ringing server.
In addition, terminal called according to the corresponding relation that the terminal iidentification and the local bell phonetic symbol of this locality setting are known, is play the local bell sound corresponding with the terminal iidentification of described calling terminal after receiving described call request message.
In addition, when receiving the cancellation message that ringing server sends or during the timer expiry that when terminal called is receiving described call request message after, is starting, when playing local bell sound, then stop to play local bell sound as if terminal called.
In addition, answer the call or during end call,, then stop to play local bell sound as the user of terminal called if terminal called is being play local bell sound.
The present invention also provides a kind of terminal, comprises: Call Control Block, audio frequency and video playing module, and described terminal also comprises memory module;
Described memory module is used to store local bell sound data;
Described audio frequency and video playing module is used to play the bell sound data;
Described Call Control Block is used in described terminal during as terminal called, after receiving the call request message of calling terminal through the ringing server transmission, from described memory module, extract local bell sound data, and send to described audio frequency and video playing module and carry out the broadcast of local bell sound.
In addition, also store bell sound broadcast strategy data in the described memory module, comprise in the described bell sound broadcast strategy data: shield terminal identification list or non-shield terminal identification list;
After described Call Control Block receives described call request message, from described memory module, extract described bell sound broadcast strategy data; Only when the terminal iidentification of described calling terminal was in described shield terminal identification list or not in described non-shield terminal identification list, the local bell sound data that just will extract from described memory module sent to described audio frequency and video playing module and carries out the broadcast of local bell sound.
In addition, also store bell sound broadcast strategy data in the described memory module, comprise in the described bell sound broadcast strategy data: the mapping table that terminal iidentification and local bell phonetic symbol are known;
Described Call Control Block is after receiving described call request message, search the corresponding local bell phonetic symbol of terminal iidentification of described calling terminal knows according to the mapping table of described terminal iidentification and the knowledge of local bell phonetic symbol, and know according to described local bell phonetic symbol and extract corresponding local bell sound data from described memory module, and the local bell sound data that will extract sends to described audio frequency and video playing module and carries out the broadcast of local bell sound.
In addition, when described Call Control Block receives cancellation message that ringing server sends or the timer expiry that is starting after described Call Control Block is receiving described call request message, if described audio frequency and video playing module is being play local bell sound, then described Call Control Block notifies described audio frequency and video playing module to stop to play local bell sound.
In addition, described terminal also comprises Subscriber Interface Module SIM, is used for sending answer the call order or end call order to described Call Control Block;
When described audio frequency and video playing module is play local bell sound,, then notify described audio frequency and video playing module to stop to play local bell sound if described Call Control Block receives answer the call order or end call order that described Subscriber Interface Module SIM sends.
In sum, adopt the screen method of terminal of the present invention and ring service, make called subscriber's (terminal called) the shielding ring service is set, and select different local bell sounds for different calling numbers and play according to this locality, satisfy user's demand, improved user's satisfaction.In addition, ring service screen method of the present invention need not system side (ringing server) is carried out any modification, and cost is low, and does not influence the use of other telecommunication service.
Embodiment
Basic thought of the present invention is, terminal called receives call request message in the process of call setup after, whether shield the ring service of ringing server according to the configuration decision of this locality, if do not shield then obtain and play the ringing media data of ringing server indication, if shielding then play local bell sound.
Describe the present invention below in conjunction with drawings and Examples.
Fig. 1 is the structural representation of the terminal of embodiment of the invention maskable ring service (ring service media data), and as shown in Figure 1, this terminal comprises: Call Control Block, audio frequency and video playing module, memory module and Subscriber Interface Module SIM.
Above-mentioned audio frequency and video playing module is used to play the bell sound data.
Above-mentioned memory module is used to store local bell sound data and bell sound broadcast strategy data.
Bell sound broadcast strategy in the above-mentioned bell sound broadcast strategy data can comprise: ring shielding mark, (for example termination number) tabulation of shield terminal sign, local ringtone file identification list etc.
Ring shields mark can get one of following value: all shield (can represent with " 1 "), partly shielding effect (can represent with " 0 "), do not shield (can use " 1 " expression).
When the ring shielding is labeled as " all shieldings ", shield the ring that all calling subscribers are provided with, promptly do not receive the ring that any calling subscriber is provided with; When the ring shielding is labeled as " not shielding ", play the ring that all calling subscribers are provided with, promptly as long as the calling subscriber is provided with ring, just obtain the also ringing media of playing and calling user setting; When the ring shielding is labeled as " partly shielding effect ", (being the terminal iidentification in the above-mentioned shield terminal identification list) the pairing ring of shielding designated terminal sign.
Certainly, non-shield terminal identification list can be set also, wherein comprise the terminal iidentification that should not shield ring service; In this case, when ring shielding was labeled as " partly shielding effect ", whether the terminal iidentification of terminal judges calling terminal (for example, calling terminal number) was in this tabulation, if not in this tabulation then shield the ring service of this calling terminal correspondence, play local bell sound.
Comprised the sign (or local bell phonetic symbol is known) of available local ringtone file in the local ringtone file identification list, terminal called can be chosen local ringtone file (or local bell sound) arbitrarily and play as ring back tone from this tabulation.In addition, can also write down the pairing ringtone file sign of each calling terminal identification (for example calling terminal number) (or local bell phonetic symbol is known) in this tabulation, so that the terminal called ringtone file (promptly select different local bell sound) different according to the different choice of calling terminal identification (for example calling terminal number) play.That is to say that local ringtone file identification list can be the mapping table that terminal iidentification (for example termination number) and local bell phonetic symbol are known.
Subscriber Interface Module SIM is used for providing the interface that bell sound broadcast strategy (promptly revising bell sound broadcast strategy data) is set to the user.In addition, Subscriber Interface Module SIM also is used for sending answer the call order or end call order to Call Control Block.
Call Control Block is used in terminal receiving the call request message that calling terminal sends through ringing server during as terminal called, with set up and calling terminal between session; And when bell sound broadcast strategy is the ringing media of shielding calling subscriber setting, behind the call request message that receives the ringing server transmission, from memory module, extracts local bell sound data, and send to the broadcast that the audio frequency and video playing module carries out local bell sound.If the ring back tone strategy is not shield the ring back tone that this calling subscriber is provided with, then indicate according to the medium of the ring back tone that carries in the call request message, obtain the ring back tone medium from ringing server, after returning called terminal ringing message, play the ringing media that obtains from ringing server.
When the audio frequency and video playing module was play local bell sound, if Call Control Block receives CANCEL (cancellation) message that ringing server sends, then warning tone video playback module stopped to play local bell sound.
When the audio frequency and video playing module was play local bell sound, if Call Control Block receives answer the call order or end call order that Subscriber Interface Module SIM sends, then warning tone video playback module stopped to play local bell sound.
In addition, when Call Control Block can or begin to play local bell sound when receiving the call request message that ringing server sends, start a timer, do not receive answer the call order or end call order that Subscriber Interface Module SIM sends before this timer expiry, then warning tone video playback module stops to play local bell sound.
Below in conjunction with ring service screen method of the present invention above-mentioned module is described in more detail.
Fig. 2 is the screen method flow chart of embodiment of the invention ring service; As shown in Figure 2, this method comprises the steps:
201: calling terminal sends call request message to terminal called; After ringing server is received the calling sent by calling terminal request message, in this call request message, add the medium indication of ring back tone, and it is transmitted to terminal called.
Above-mentioned call request message can be INVITE (invitation) message of SIP (Session Initial Protocol, initial session protocol).
Ring back tone is provided with by the calling subscriber, the medium indication of ring back tone can be added in ALERT (alarm) heading or CALL-INFO (call information) heading or MIME (Multipurpose Internet Email Extension, multi-functional internet mail expands service) message body of call request message.
202: after terminal called is received call request message (INVITE), the bell sound broadcast strategy that sets in advance according to this locality judges whether the ring back tone that needs broadcast ringing server is indicated, do not play (promptly needing to shield the ring service of ringing server) if do not need, then open local ringtone file, play local bell sound as ring back tone.
If terminal called (called subscriber) does not need to play the ring back tone of ringing server indication, then do not resolve the medium indication of the ring back tone in ALERT heading or CALL-INFO heading or the corresponding M IME message body, the also ring back tone data that just can not use the calling subscriber to be provided with, what the called subscriber heard is local bell sound.
Otherwise, if terminal called (called subscriber) needs to play the ring back tone of ringing server indication, then resolve the medium indication of the ring back tone in ALERT heading or CALL-INFO heading or the corresponding M IME message body, and according to medium indication downloads of media file, or decoding MIME message, the ring back tone that is provided with of playing and calling user then, the called subscriber hears and/or what see is the ring back tone that the calling subscriber is provided with in this case.
203: terminal called is responded ALERTING message; Ringing server is transmitted to calling terminal with it after receiving the ALERTING message of terminal called transmission.
Above-mentioned ALERTING message can be 180Ringing (ring) message of SIP.
Step 203 can with step 202 transposing order, also can executed in parallel.That is to say that terminal called can be responded ALERTING message earlier after receiving the call request message of ringing server transmission, plays local bell sound according to bell sound broadcast strategy again.
204: after receiving the ALERTING message (180Ringing message) of ringing server transmission, calling terminal sends pre-acknowledge message (PRACK message) to ringing server.
205: after ringing server receives the pre-acknowledge message of calling terminal transmission, return the response message (200OK message) of pre-acknowledge message to calling terminal.
206: when the called subscriber answered, terminal called sent call answering message to ringing server; Ringing server is transmitted to calling terminal with it after receiving the call answering message of terminal called transmission.
At this moment,, when terminal called sends call answering message, stop to play local bell sound, close the ringtone file of opening, prepare to receive and play normal conversation media message if terminal called is being play local bell sound as ring back tone.
Above-mentioned call answering message can be the 200OK message that the INVITE of step 201 is replied.
207: after calling terminal receives call answering message, send ACK (affirmation) message; Ringing server is transmitted to terminal called with it after receiving the ACK message of calling terminal transmission.
208: calling terminal and terminal called normal talking.
Core net in the foregoing description can be 3GPP (3rd Generation Partnership Project, third generation partner program) core net of IMS territory, the MMD of 3GPP2 (Multimedia Domain, multimedia domain, MMD) and other support SIP/IP; Radio Access Network can be GPRS/EDGE (General Packet Radio Service/Enhanced Data Rate for GSM Evolution, GPRS/enhanced data rates global system for mobile communications evolution technology), CDMA (CodeDivision Multiple Access, code division multiple access), WCDMA (Wide Code Division MultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), WiFi (WirelessFidelity, Wireless Fidelity), WiMAX (Worldwide Interoperability for Microwave Access, the interoperability authentication of the inserting of microwave whole world) wait network, terminal can be the mobile phone of above-mentioned one or more the wireless standards of support.
The foregoing description is replied with terminal called and is example, has introduced the opportunity that terminal called stops to play local bell sound.
In other embodiments of the invention, terminal called also should stop to play local bell sound when one of following situation occurring:
1) terminal called receives the CANCEL that ringing server sends;
2) called subscriber ends (hanging up) calling;
3) terminal called is play local bell sound and is surpassed as time of ring back tone and preestablish time span and the called subscriber does not answer.That is to say that when terminal called receives call request message or when beginning to play local bell sound, can start a timer, the called subscriber does not answer before timer expiry, then stops to play local bell sound.
In addition, in other embodiments of the invention, can be by the called subscriber by pressing function key or the next broadcast of initiatively closing local bell sound of choice menus option that sets in advance, after stopping to play local bell sound, terminal called can be resolved the medium indication of the ring back tone in the call request message (INVITE) of preservation, obtains and begins to play the ringing media data that ringing server sends.