Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of method, device and communication system that realizes pre-payment short message service.Below be elaborated respectively.
Embodiment one,
Present embodiment will be described from the angle of SMSC.
A kind of method that realizes pre-payment short message service, as shown in Figure 1, idiographic flow can be as follows:
101, obtain the short message that first portable terminal sends;
For example, SMSC receives the short message that needs that first portable terminal sends send to second portable terminal.
102, get route messages to HLR according to what the short message that gets access to sent speech;
After getting access to the short message that first portable terminal sends, can get route messages such as MAP_SEND_ROUTING_INFORMATION message to HLR according to what the short message that gets access to sent speech;
It should be noted that, in the prior art, SMSC is when handling short message, also need to send get route messages to HLR to obtain route data, handle for short message, the route messages that existing SMSC sent is the route messages of getting of short message, HLR receive short message get route messages after, give SMSC with the route replies message of getting of returning corresponding short message, the route replies message of getting of this short message comprises route data, but do not carry relevant information of deducting fees, such as not carrying service control point (SCP, Service Control Point) information, and in embodiments of the present invention, the route messages that SMSC sent is replaced by the route messages of getting of speech, HLR receive this speech get route messages after, give SMSC with the route replies message of getting of returning corresponding speech, this speech get route replies message except comprising route data, also carry other relevant information of deducting fees, if for example first portable terminal is a prepaid terminal, then this speech gets the SCP information that route replies message can also be carried the prepaid terminal correspondence, again for example, the getting of this speech can also be carried one in the route replies message can to indicate the user be the sign of prepaid terminal, or the like.
What 103, receive speech that HLR returns gets route replies message;
What for example, receive speech that HLR returns gets route replies message such as MAP_SEND_ROUTING_INFORMATION response message; This speech get the SCP information that can carry route data and prepaid terminal correspondence in the route replies message, perhaps, the getting of this speech can be carried route data and can be indicated the user in the route replies message be the sign of prepaid terminal, or the like, can be referring to related description in the step 102.
104, according to the getting route replies message and determine whether first portable terminal is prepaid terminal of the speech that receives, if determine that first portable terminal is a prepaid terminal, then send the pre-payment request of deducting fees to charge system to deduct fees; Otherwise,, then can send SMS message to second portable terminal according to the route replies message of getting of the speech that receives if determine that first portable terminal is not a prepaid terminal.Wherein, charge system can be SCP, and the promptly usually said pre-payment system that deducts fees also can be other equipment that can realize the similar function of deducting fees, and specific implementation can be decided according to the strategy of operator, does not repeat them here.
For example, can judge the SCP information of having carried the prepaid terminal correspondence in the route replies message of getting of the speech that receives, the SCP information of having carried the prepaid terminal correspondence in the route replies message of getting as if the speech that receives, determine that then first portable terminal is a prepaid terminal, then SMSC send the pre-payment request of deducting fees to the SCP of this SCP information correspondence to deduct fees; Otherwise, the SCP information of not carrying the prepaid terminal correspondence in the route replies message of getting as if the speech that receives, determine that then first portable terminal is not a prepaid terminal, SMSC can send SMS message to second portable terminal according to the route replies message of getting of the speech that receives.
Wherein, the route messages of getting of speech is specifically as follows MAP_SEND_ROUTING_INFORMATION message; The route replies message of getting of speech is specifically as follows the MAP_SEND_ROUTING_INFORMATION response message; At this moment, sending the pre-payment request of deducting fees specifically can be as follows to deduct fees to SCP:
Extract the global system for mobile communications service control function-address (gsmSCF-Address in the MAP_SEND_ROUTING_INFORMATION response message, Global System for MobileCommunications Service Control Function-Address) field is the address information of SCP, send then pre-payment deduct fees the request to the pairing SCP of the address information of this SCP that extracts to deduct fees.
Again for example, can judge " can indicate the user is the sign of prepaid terminal " that whether the getting of the speech that receives has carried in the route replies message, if carried " can indicate the user is the sign of prepaid terminal ", determine that then first portable terminal is a prepaid terminal, then SMSC send the pre-payment request of deducting fees to the charge system of correspondence to deduct fees; Otherwise, if the getting in the route replies message of speech that receives do not carried " can indicate the user is the sign of prepaid terminal ", determine that then first portable terminal is not a prepaid terminal, SMSC can send SMS message to second portable terminal according to the route replies message of getting of the speech that receives.
Certainly, also comprise with after deducting fees to SCP in the request of deducting fees of transmission pre-payment:
When determining to deduct fees success, send SMS message to second portable terminal according to the route replies message of getting of speech; When determining to deduct fees failure, can stop the transmission of short message.For example, can receive that SCP returns about the whether successful response of deducting fees, whether successful response is indicated deducts fees successfully if should be about deducting fees, then the route replies message of getting according to speech sends SMS message to second portable terminal; Whether the failure of deducting fees is indicated in successful response about deducting fees if be somebody's turn to do, and then can stop the transmission of short message.
As from the foregoing, the embodiment of the invention adopts behind the short message that gets access to the transmission of first portable terminal, get route messages to HLR according to what this short message sent speech, receive speech that HLR returns get route replies message after, the route replies message of getting according to this speech judges whether first portable terminal is prepaid terminal, if, then send pre-payment deduct fees the request to charge system to deduct fees.In terms of existing technologies, adopt this scheme not need to send extra query messages, do not need extra big data quantity storage yet, but the route messages of getting of this short message that need send to HLR in the prior art is replaced by the route messages of getting that sends speech to HLR, utilize the route replies message of getting of the speech that HLR returns to determine whether first portable terminal is prepaid terminal then, thereby make under the situation that keeps the existing network framework, the communication that can reduce in the network is mutual, improves the handling property of network.
Embodiment two,
According to embodiment one described method, below will be described in further detail for example.
Suppose that first portable terminal is terminal A, second portable terminal is terminal B, and charge system is SCP, and then as shown in Figure 2, idiographic flow can be as follows:
201, the user edits the short message that sends to terminal B, and A submits to SMSC with short message by terminal.
202, after SMSC receives this short message, return the short message response message and give terminal A.
What 203, SMSC sent speech gets route messages to HLR, to obtain the SCP information of route data and prepaid terminal correspondence; For example, SMSC sends MAP_SEND_ROUTING_INFORMATION message to HLR;
204, HLR receive this speech get route messages after, give SMSC according to the route replies message of getting that route messages returns speech of getting of this speech; Route data is carried in getting in the route replies message of this speech, certainly, if terminal A is a prepaid terminal, then can also store the SCP information of terminal A correspondence among the HLR, so at this moment the SCP information of getting all right carried terminal A correspondence in the route replies message of this speech;
For example, HLR returns the MAP_SEND_ROUTING_INFORMATION response message and gives SMSC, wherein, can carry the SCP information of route data and terminal A correspondence in this MAP_SEND_ROUTING_INFORMATION response message.
205, SMSC receive speech get route replies message after, the route replies message of getting according to this speech judges whether terminal A is prepaid terminal, such as, judge whether the SCP information field of getting the prepaid terminal of route replies in disappearing receive speech has corresponding SCP information, if corresponding SCP information is arranged, determine that then terminal A is a prepaid terminal, so execution in step 206, otherwise, if there is not corresponding SCP information, determine that then terminal A is not a prepaid terminal, so execution in step 209;
In the present embodiment, suppose that terminal A is a prepaid terminal, therefore, this moment speech get the SCP information of having carried terminal A correspondence in the route replies message, be prepaid terminal so SMSC determines terminal A, execution in step 206.Wherein, the route replies message of getting of this speech is specifically as follows the MAP_SEND_ROUTING_INFORMATION response message.
206, SMSC sends the SCP of the pre-payment request of deducting fees to correspondence, deducts fees so that carry out pre-payment;
For example, if in the step 204, the route replies message of getting of the speech that SMSC receives is the MAP_SEND_ROUTING_INFORMATION response message, then SMSC determines the address information of SCP according to the MAP_SEND_ROUTING_INFORMATION response message, send then the pre-payment request of deducting fees to the pairing SCP of the address information of this SCP that extracts to deduct fees.Wherein, the gsmSCF-Address in the T-BcsmCamelTDPData field under the T-BcsmCamelTDPDataList field under the T-CSI field under the GmscCameSubscriptionInfo field in the MAP_SEND_ROUTING_INFORMATION response message in the existing protocol is the address information of SCP.Because this MAP_SEND_ROUTING_INFORMATION response message is the message in the existing protocol, specifically can be referring to prior protocols, so repeat no more inferior.
207, after SCP receives the pre-payment request of deducting fees, the pairing user account of terminal A is carried out fee deduction treatment, and return expression and deduct fees whether successful response to SMSC; Such as, if deduct fees successfully, then this expression is deducted fees, and whether successful response indication is deducted fees successfully, if deduct fees failure, then this expression is deducted fees, and whether the failure of deducting fees is indicated in successful response.
208, whether successful SMSC receive expression that SCP returns the response of deducting fees, and whether successful response is indicated if this expression is deducted fees is deducted fees successfully, and then execution in step 209, otherwise, can stop the transmission of short message.
209, SMSC sends SMS message to terminal B according to the route data that carries in the route replies message of getting of the speech that receives in the step 205; Such as, the route data that carries according to the MAP_SEND_ROUTING_INFORMATION response message that receives sends SMS message to terminal B, and terminal B can return response message and give SMSC.
As from the foregoing, the embodiment of the invention adopts behind the short message that gets access to the transmission of first portable terminal, get route messages to HLR according to what this short message sent speech, receive speech that HLR returns get route replies message after, according to the getting route replies message and judge whether first portable terminal is prepaid terminal of this speech, if, then send the pre-payment request of deducting fees to SCP to deduct fees, and after the success of deducting fees, send SMS message to second portable terminal according to the route data that gets access to; If not, then send SMS message to second portable terminal according to the route data that gets access to.In terms of existing technologies, adopt this scheme not need to send extra query messages, do not need extra big data quantity storage yet, but the route messages of getting of this short message that need send to HLR in the prior art is replaced by to what HLR sent speech and is got route messages (route messages of getting of this speech also is the message that exists in the existing protocol), utilize the route replies message of getting of the speech that HLR returns to determine whether first portable terminal is prepaid terminal then, thereby make under the situation that keeps the existing network framework, the communication that can reduce in the network is mutual, improves the handling property of network.
Embodiment three,
In order to implement above method better, the embodiment of the invention also correspondingly provides a kind of Short Message Service Center equipment 300, be SMSC equipment 300, as shown in Figure 3, this SMSC equipment comprises acquiring unit 301, transmitting element 302, receiving element 303 and first processing unit 304; In order to describe more clearly, give HLR500 among Fig. 3;
Acquiring unit 301 is used to obtain the short message that first portable terminal sends; For example, receive the short message that needs that first portable terminal sends send to second portable terminal.
Transmitting element 302, what be used for that the short message that gets access to according to acquiring unit 301 sends speech gets route messages to HLR500;
Receiving element 303, what be used to receive speech that HLR500 returns gets route replies message; Wherein, this speech to get route replies message be HLR500 according to the response that route messages is done of getting of the speech that is sent by transmitting element 302 that receives; This speech get route replies message except comprising route data, also carry other information, if for example first portable terminal is a prepaid terminal, then this speech get the SCP information that route replies message can also be carried the prepaid terminal correspondence, or the like;
First processing unit 304, what be used for the speech that receives according to receiving element 303 gets route replies message when determining that first portable terminal is prepaid terminal, send the pre-payment request of deducting fees to charge system to deduct fees.
Wherein, the charging center is specifically as follows SCP or other can realize the equipment of the similar function of deducting fees.
Wherein, first processing unit 304 can comprise that first determines that subelement and first sends subelement;
First determines subelement, and what be used for the speech that receives at receiving element 303 gets route replies message when having carried the SCP information of prepaid terminal correspondence, determines that first portable terminal is a prepaid terminal;
First sends subelement, is used for when first determines that subelement determines that first portable terminal is prepaid terminal, send the pre-payment request of deducting fees to the SCP of this SCP information correspondence to deduct fees.
Wherein, the route messages of getting of speech is specifically as follows MAP_SEND_ROUTING_INFORMATION message, the route replies message of getting of speech is specifically as follows the MAP_SEND_ROUTING_INFORMATION response message, these two message are the message in the existing protocol, concrete form can not repeat them here referring to prior art; At this moment, the first transmission subelement can comprise extraction sub level unit and send the sub level unit;
Extract the sub level unit, global system for mobile communications service control function-address gsmSCF-Address field of extracting in the MAP_SEND_ROUTING_INFORMATION response message is the address information of SCP;
Send the sub level unit, be used to send the pre-payment request of deducting fees to the pairing SCP of address information that extracts the SCP that extracts the sub level unit to deduct fees.
Certainly, send the pre-payment request of deducting fees to SCP with after deducting fees, first processing unit 304 can also be used for when determining to deduct fees success, sends SMS message to second portable terminal according to the route replies message of getting of speech; Further, this first processing unit 304 can also be used for can stopping the transmission of short message when determining to deduct fees failure.For example, first processing unit 304 can receive that SCP returns about the whether successful response of deducting fees, whether successful response is indicated deducts fees successfully if should be about deducting fees, then the route replies message of getting according to speech sends SMS message to second portable terminal; Whether the failure of deducting fees is indicated in successful response about deducting fees if be somebody's turn to do, and then can stop the transmission of short message.
As shown in Figure 3, this SMSC equipment 300 can also comprise second processing unit 305;
Second processing unit 305, what be used for the speech that receives according to receiving element 303 gets route replies message when determining that first portable terminal is not prepaid terminal, sends SMS message to second portable terminal according to the route replies message of getting of the speech that receives.
Wherein, second processing unit 305 can comprise that second determines that subelement and second sends subelement;
Second determines subelement, and what be used for the speech that receives at receiving element 303 gets route replies message when not carrying the SCP information of prepaid terminal correspondence, determines that first portable terminal is not a prepaid terminal;
Second sends subelement, is used for when second determines that subelement determines that first portable terminal is not prepaid terminal, and the route replies message of getting of the speech that receives according to receiving element sends SMS message to second portable terminal.
More than the concrete enforcement of each unit can not repeat them here referring to front embodiment.
As from the foregoing, the SMSC equipment 300 of the embodiment of the invention adopts after acquiring unit 301 gets access to the short message of first portable terminal transmission, get route messages to HLR500 by transmitting element 302 according to what this short message sent speech, receiving element 303 receive speech that HLR500 returns get route replies message after, the route replies message of getting according to this speech judges whether first portable terminal is prepaid terminal, if, then first processing unit, 304 transmission pre-payments are deducted fees and are asked to charge system to deduct fees, and after the success of deducting fees, send SMS message to second portable terminal according to the route data that gets access to; If not, then second processing unit 305 sends SMS message to second portable terminal according to the route data that gets access to.In terms of existing technologies, adopt this scheme not need to send extra query messages, do not need extra big data quantity storage yet, but the route messages of getting of this short message that need send to HLR500 in the prior art is replaced by to what HLR500 sent speech and is got route messages (route messages of getting of this speech also is the message that exists in the existing protocol), utilize the route replies message of getting of the speech that HLR500 returns to determine whether first portable terminal is prepaid terminal then, thereby make under the situation that keeps the existing network framework, the communication that can reduce in the network is mutual, improves the handling property of network.
Embodiment four,
Correspondingly, the embodiment of the invention also provides a kind of communication system, and as shown in Figure 4, this communication system comprises Short Message Service Center equipment (being SMSC equipment) 401 and local user's location register (being HLR) 402;
SMSC equipment 401, be used to obtain the short message that first portable terminal sends, get route messages to HLR402 according to what the short message that gets access to sent speech, what receive speech that HLR402 returns gets route replies message, according to this speech get route replies message when determining that first portable terminal is prepaid terminal, send the pre-payment request of deducting fees to charge system to deduct fees;
HLR402, what be used to send speech gets route replies message to SMSC equipment 401.
As shown in Figure 4, this communication system can also comprise charge system 403;
Charge system 403 is used to receive the pre-payment request of deducting fees of SMSC equipment 401 transmissions and deduct fees.
Wherein, charge system 403 specifically can equipment of Service Control Point (being SCP equipment) or other can realize the equipment of the similar function of deducting fees.
SMSC equipment 401, also be used for according to this speech get route replies message when determining that first portable terminal is not prepaid terminal, send SMS message to second portable terminal according to the route replies message of getting of the speech that receives.
Wherein, when whether SMSC equipment 401 is prepaid terminal at definite first portable terminal, be specifically as follows: as if the SCP information of having carried the prepaid terminal correspondence in the route replies message of getting of the speech that receives, determine that then first portable terminal is a prepaid terminal, send the pre-payment request of deducting fees to the SCP of this SCP information correspondence to deduct fees; If the speech that receives get the SCP information of not carrying the prepaid terminal correspondence in the route replies message, determine that then first portable terminal is not a prepaid terminal, send SMS message to second portable terminal according to the route replies message of getting of the speech that receives.
SMSC equipment 401 also is used for when determining to deduct fees success, sends SMS message to second portable terminal according to the route replies message of getting of speech; When determining to deduct fees failure, stop the transmission of short message.
Wherein, the route messages of getting of speech is specifically as follows MAP_SEND_ROUTING_INFORMATION message, the route replies message of getting of speech is specifically as follows the MAP_SEND_ROUTING_INFORMATION response message, these two message are the message in the existing protocol, concrete form can not repeat them here referring to prior art.
This SMSC equipment 401 is specifically as follows any one SMSC equipment that the embodiment of the invention provides, this SMSC equipment 401 can comprise acquiring unit 301, transmitting element 302, receiving element 303 and first processing unit 304, and this SMSC equipment 401 can also comprise second processing unit 305; Wherein, first processing unit 304 can comprise that first determines that subelement and first sends subelement; First sends subelement can comprise extraction sub level unit and send the sub level unit; Second processing unit 305 can comprise that second determines that subelement and second sends subelement.
More than the concrete enforcement of each unit can be referring to front embodiment; It should be noted that, in the specific implementation, more than each unit can be used as independent entity and realize, also can carry out combination in any and realize as one or several entities.
As from the foregoing, SMSC equipment 401 in the communication system of the embodiment of the invention can be behind the short message that gets access to the transmission of first portable terminal, get route messages to HLR402 according to what this short message sent speech, receive speech that HLR402 returns get route replies message after, the route replies message of getting according to this speech judges whether first portable terminal is prepaid terminal, if, then send pre-payment deduct fees the request to charge system 403 to deduct fees, and after the success of deducting fees, send SMS message to second portable terminal according to the route data that gets access to; If not, then send SMS message to second portable terminal according to the route data that gets access to.In terms of existing technologies, adopt this scheme not need to send extra query messages, do not need extra big data quantity storage yet, but the route messages of getting of this short message that need send to HLR402 in the prior art is replaced by to what HLR402 sent speech and is got route messages (route messages of getting of this speech also is the message that exists in the existing protocol), utilize the route replies message of getting of the speech that HLR402 returns to determine whether first portable terminal is prepaid terminal then, thereby make under the situation that keeps the existing network framework, the communication that can reduce in the network is mutual, improves the handling property of network.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than a kind of method, device and communication system of pre-payment short message service of realizing that the embodiment of the invention provided is described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.