Background
At present, mobile short messages are favored by wide users due to convenience and low consumption, and become a great means for operators to make a profit. In the short message service protocol of GSM phase 2(GSM phase2), long short messages are beginning to be supported. The long short message is a message with complete content input by a user on a man-machine interaction interface (MMI), because of the length limitation of a short message transfer protocol, when the short message is sent and received, a sending end splits the complete content into multiple frames for sending, and a receiving end assembles the received multiple frames into a complete short message for the user to read; the framing of a short Message is called TP-MMS (TP-More-Message-To-Send).
In addition, with the enhancement of the mobile terminal capability, the formats of short messages which can be sent and received are also diversified, for example, short messages in Text (Text), Sound (Sound), Animation (Animation) and Picture (Picture) forms can be transmitted; for the text, the format and font of the text can be selected for transmission; this is very attractive to the user. In general, short messages including sounds, animations and pictures are generally long in length and must be transmitted by a TP-MMS method.
As the application of short messages becomes more and more widespread, CAMEL is also enhanced in the short message domain. CAMEL is called mobile network Enhanced Customized Application Logic (custom Application for mobile network Enhanced Logic) and is used for solving the problem of interconnection between a GSM mobile communication network and an intelligent network. CAMEL is established in stages, mobile originated intelligent short messages are introduced at CAMEL Phase3, and mobile terminated intelligent short messages are introduced at CAMEL Phase 4; the intelligent short message charging requires the GSM service switching function (gmsSSF) entity to report the charging related information to the GSM service control function (gsmSCF) entity, so as to ensure that the gsmSCF can accurately form a ticket.
Fig. 1 is a diagram of a short message protocol stack.
The short message lower layer (SM-LL) layer refers to the protocol stack above the Mobility Management (MM) connection of the Short Message Server (SMs) and below the short message relay layer (SM-RL).
The content transmitted on the SM-RL contains the address to the destination SC and is a point-to-point service.
The content delivered by the short message transport layer (SM-TL), which contains the address to the destination user, is an end-to-end service.
The short message application layer (SM-AL) is located between SM-TL and interface MMI, the compression and decompression of short message is completed by it, when the length of a short message exceeds the maximum length of TP-UD, SM-AL completes the fragmentation and encapsulation of short message.
In the process of mobile originating short message, if the short message has framing, the mobile terminal can send the subsequent short message frame in one MM connection, and also can establish a new MM connection aiming at each frame, namely, one frame is sent in each MM connection; in the process of mobile terminal short message, if a certain short message is too long, the short message center processes TP-MMS.
In the protocol of 3GPP, the gssSCF entity obtains the reported event from the initialdsms message, and performs intelligent short message processing, such as routing search and charging, for each frame of short message; the gssSCF entity knows the result information of the processing, i.e. whether the frame transmission was successful or not, from the EventReportSMS message.
According to the protocol, it can be known that the initial dpsms does not contain the framing information of the short message and the format information of the content of the short message, so that when the gsmSCF entity generates a ticket, it will process the multi-frame short message, i.e. the long and short message, as a plurality of short messages, for example, one short message with sound and animation is usually a long and short message, for the user, it only sends one short message, but the network side will charge according to two or three short messages. That is, one short message is charged for a plurality of short messages. Obviously, this is highly unfair to the user, reducing the satisfaction of the user.
In addition, the existing charging mode of the short message adopts the same rate to calculate the contents with different formats such as text, sound, animation, picture and the like, and the charging can not be distinguished according to the format of the contents of the short message, so that an operator can not provide differentiated services for users.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method for charging a short message, so that a network side can obtain framing information of the short message, and determine a charging policy for the short message according to the framing information, so that the charging policy is more fair and reasonable.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for charging a short message, the method comprising the steps of:
the entity for charging the short message acquires the framing information and the information related to charging from the short message data processing request information reported by each frame and records the framing information and the information; the framing information at least comprises the total frame number of the short message where the current frame is located, a reference number which is distributed by the user terminal and used for combining different frames of the short message, and a sequence number of the current frame in the short message to which the current frame belongs;
the entity for charging the short message acquires the information whether the currently transmitted short message frame is successfully transmitted or not from the reporting information of each frame of short message event;
after an entity for charging the short message acquires information whether a short message frame transmitted currently is successfully transmitted or not, determining whether the short message to be charged is sent completely or not according to the recorded framing information, and determining the number of frames successfully transmitted in the short message according to short message event report information whether the short message frame is successfully transmitted or not;
the entity for charging the short message charges the short message according to the preset charging strategy according to the total frame number of the short message to be charged, the frame number which is successfully sent and the information related to the charging.
Preferably, after the entity for charging the short message acquires the information of whether the transmission of the currently transmitted short message frame is successful or not, the process of determining whether the transmission of the currently short message to be charged is completed or not according to the recorded framing information includes the following steps:
the entity for charging the short message determines which short message frames belong to the same short message according to the reference number; and comparing the sequence number of the current frame with the total frame number, if the sequence number is inconsistent with the total frame number, the short message is not sent completely, and if the sequence number is consistent with the total frame number, the short message is determined to be sent completely.
Preferably, after the entity for charging the short message acquires the information whether the transmission of the currently transmitted short message frame is successful or not, the process of determining the number of successfully transmitted frames in the short message according to the short message event report information whether the transmission of the short message frame is successful or not includes the following steps:
the entity for charging the short message acquires the information whether the short message frame transmitted at present is transmitted successfully or not each time, and then correspondingly records the reference number, the sequence number and the information whether the short message frame is transmitted successfully or not, and when the entity for charging the short message determines that the short message to be charged is transmitted successfully, the entity for charging the short message determines the number of the frames of the short message to be charged which is transmitted successfully according to the recorded information.
Preferably, the predetermined charging policy is: when all the frames of the short message to be charged are successfully sent, one short message is charged once, or,
presetting the successful sending proportion of the short message frames, charging the short message once when the short message frames with the preset proportion in the short message to be charged are successfully sent, or not charging the short message.
Preferably, the framing information further includes content format information for indicating a specific format and a length of each format included in the current frame;
the predetermined charging policy is: when all frames of the short message to be charged are successfully sent, charging the short message according to the length of each format; or,
presetting the successful sending proportion of the short message frames, and charging the short message according to the length of each format after the short message frames with the preset proportion in the short message to be charged are successfully sent.
Preferably, the charging method for the short message according to the length of each format is as follows: the preset tariff for each format is applied multiplied by the length of the format in all frames of the short message.
Preferably, the entity for charging the short message is an entity with a GSM service switching function gssSCF, and the gssSCF entity is a service control point SCP;
the short message data processing request information reported by each frame is borne by an InitiaIDSMS message;
the short message event reporting information is carried by EventReportSMS.
Preferably, the framing Information is carried by a TP-UDH located in a TP Short Message Specific Information field in the InitiaIDSMS Message.
Preferably, the framing information is carried by a TP-UDH, and the entity for charging short messages is a mobile switching center MSC or a short message service center SMSC;
the short message data processing request information reported by each frame is carried by the originating short message request information.
By applying the invention, the entity for charging the short message can obtain the framing information of the short message to be charged and the frame number successfully sent in the short message, and the entity for charging the short message charges according to the framing information, the successfully sent frame number in the short message and the charging related information according to the preset charging strategy, thereby realizing the purposes that the network side can acquire the framing information of the short message and determine the charging strategy of the short message according to the framing information, and leading the charging strategy to be more fair and reasonable. Moreover, the method of the invention can charge different rates for different formats, thereby realizing accurate charging. The method for carrying out the short message is more fair to the user, and the user satisfaction is improved; for operators, differentiated services can be provided for different users, and services are enriched.
Detailed Description
The technical solution of the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
The idea of the invention is as follows: and the entity for charging the short message charges according to the framing information, the successfully sent frame number in the short message and the charging related information according to a preset charging strategy. The charging-related information is identical to the charging-related information of the prior art.
Fig. 2 is a flow chart of an embodiment of charging for a mobile originated short message by applying the method of the present invention. In this example, the entity for charging the short message is implemented by a gssSCF entity, and in specific implementation, the gssSCF entity is a Service Control Point (SCP).
Step 201-203, the user terminal (MS/UE) sends a CM _ Service _ Request message, requests to send a short message frame, then performs access processing between the user terminal and a mobile switching center/Service switching node (MSC/SSP), establishes an access side link, after the link is established, the MSC/SSP returns a CM _ Service _ Accept message to the user terminal, and the user terminal accesses the network.
Step 204, when the user terminal sends the originating short message, after determining that the current short message to be sent is over long, firstly performing framing processing, and then sending a CP _ DATA message to the MSC/SSP, wherein the message includes information indicating that the current short message is the originating short message (MO _ SMS), the total frame number of the short message of the current frame, a reference number which is allocated by the user terminal and used for merging different frames of a short message, and a sequence number of the current frame in the short message of the current frame.
In this embodiment, it is assumed that the total frame number of the currently sent short message is 3, which indicates that the current short message is composed of 3 frames, and the sequence number of the current frame is 1, which indicates that the frame is the first frame of the short message.
Step 205-207, after the MSC/SSP returns the CP _ ACK message to the ue, the MSC/SSP sends a Send _ Info _ For _ SMS req message containing the ue identifier to a Visitor Location Register (VLR) to query the intelligent originating short message data of the ue, and the VLR returns a content _ CAMEL _ SMS _ Handling message containing the mobile originating short message CAMEL subscription data (MO-SMS-CSI, MO-SMS CAMELSubscription Information) queried by the MSC/SSP after querying the subscription data of the ue through the ue identifier according to the received request. After obtaining the MO-SMS-CSI information, MSC/SSP adopts standard CAMEL Application protocol (CAP, CAMEL Application Part) to interact with SCP, namely starts intelligent short message processing.
Step 208, MSC/SSP sends the short message data processing request information carried by InitialDPSMS message to SCP, and then hangs up the originating short message.
The initial dpsms message contains information related to charging, such as the IMSI of the subscriber. In the TP Short Message Specific Information field of the initialdpmsm Message, framing Information is contained, and the framing Information is carried by a TP-User Data Header (TP-UDH), and the TP-UDH at least includes total frame number of Short messages in the contiguous Short Message field Information for indicating the total frame number of the currently sent Short Message, Short Message frame reference number (contiguous Short Message reference number) field Information allocated by the User terminal for merging different frames of a Short Message, and Sequence number of the current frame in the Short Message to which the current frame belongs. The short message framing reference numbers allocated by the user terminal are the same in different frames of the same short message and are used for indicating which short message frames belong to the same short message.
Of course, the TP-UDH information may further include content format information indicating a specific format included in the current frame and a length of each format content.
In this example, the field information for indicating the total frame number of short messages in the associated short message sent currently is 3, which indicates that the current short message has 3 frames; is used for indicating the field information of the current short message of the Sequence number of the current frame number is 1, which indicates that the frame is the first frame of the short message; the information of the short message sub-frame reference number field allocated by the user terminal is 000, and the reference number in each frame after the short message is 000.
209-211, after receiving the initial dpsms message, the SCP acquires and records framing information, decides and permits the user to send the current originating short message according to the information related to charging in the initial dpsms and the balance of the user, and issues a request to report a short message smart event requestreportsmservent, for example, an O _ SMS _ submit event for indicating that the originating short message is successfully submitted, or an O _ SMS _ fail event for indicating that the originating short message is failed; then, issuing a Furnis CharingInformationSMS to submit charging information, wherein the submitted charging information comprises free format data used for identifying any charging strategy, the free format data is stored in an originating short message record, and the processing of the free format data is completely the same as that of the prior art; finally SCP sends Continue SMS to indicate MSC/SSP to quit suspension, and continues the process of starting short message.
Step 212-213, the MSC/SSP sends a Send _ Info _ For _ SMS req message containing the user terminal identifier to the VLR again, the message contains information For suppressing the intelligent subscription data to request the general originating short message data, the VLR performs related check, such as short message blocking, etc., and after the check is passed, returns the general originating short message data to the MSC/SSP through the Send _ Info _ For _ SMS cnf message.
Step 214-215, MSC/SSP sends an originating Forward short message request MO _ Forward _ SMS req to a Short Message Center (SMC) directly or through a short message interworking mobile switching center (SMS-IWMSC), wherein the request comprises a current short message frame; after the SMC finishes processing the mobile originated short message frame, the successful originated Forward short message response MO _ Forward _ SMS cnf is returned.
And 216-217, the MSC/SSP reports short message event report information for starting a short message sending result to the SCP according to the information returned by the SMC, the short message event report information is carried by EventReport SMS, the SCP can know whether the current short message frame is successfully sent or not according to the information, if the short message frame is successfully submitted in the example, the SCP sends a Continue SMS message to command the MSC/SSP to continue processing, and at the moment, the intelligent connection between the MSC/SSP and the SCP is released.
At this time, the SCP can determine whether the sending of the current short message to be charged is finished according to the recorded framing information; the number of successfully transmitted frames in the short message can be determined according to the short message event report information of whether the short message frame is successfully transmitted or not; the specific process is as follows:
after SCP obtains the information whether the current transmitted short message frame is transmitted successfully, the process of determining whether the current short message to be charged is sent completely according to the recorded framing information comprises the following steps: the entity for charging the short message determines which short message frames belong to the same short message according to the reference number; and comparing the sequence number of the current frame with the total frame number, if the sequence number is inconsistent with the total frame number, the short message is not sent completely, and if the sequence number is consistent with the total frame number, the short message is determined to be sent completely. In specific implementation, which frames belong to the same short message may be determined according to the reference number, and then whether the sequence number is consistent with the total frame number may be determined, or whether the sequence number is consistent with the total frame number may be determined, and then which frames belong to the same short message may be determined according to the reference number, or both may be performed simultaneously.
After SCP obtains the information whether the current transmitted short message frame is transmitted successfully, according to the short message event report information whether the short message frame is transmitted successfully, the process of determining the successful transmission frame number in the short message comprises the following steps: the entity for charging the short message acquires the information whether the short message frame transmitted at present is transmitted successfully or not each time, and then correspondingly records the reference number, the sequence number and the information whether the short message frame is transmitted successfully or not, and when the entity for charging the short message determines that the short message to be charged is transmitted successfully, the entity for charging the short message determines the number of the frames of the short message to be charged which is transmitted successfully according to the recorded information.
If the framing information contains content format information, the SCP can further know and record which specific formats are contained in the current frame and the length occupied by each specific format.
In this example, at this time, the SCP knows that the current frame is the first frame of the short message, and the frame is successfully sent, and at the same time, the SCP also knows that the short message has three frames in total.
Step 218, the MSC/SSP sends a CP _ ACK message to inform the user terminal that the mobile originated short message of the current frame is successfully sent.
Because the current short message is composed of multiple frames, the user terminal can continue to send the subsequent short message frames, at this moment, there are two processing modes, which is specifically adopted according to the preset of the user terminal:
if the link of the current access side is released, a new link is reestablished, and a subsequent frame is transmitted in the new link, the sequence is performed downwards from step 219; if the transmission of the subsequent frame continues directly with the link of the current access side, step 221 is directly performed, then step 223 is performed, and then the downward execution is sequentially continued again, i.e., steps 219, 220 and 222 are not performed.
Step 219-220, the user terminal sends a CP _ ACK message to the MSC/SSP, and then resources are released between the user terminal and the MSC/SSP.
Step 221, the ue sends a CM _ Service _ Request message to Request to send the short message frame again.
Step 222, the user terminal and the MSC/SSP perform access processing to establish an access side link.
Step 223, after the link is established, the MSC/SSP returns a CM _ Service _ Accept message to the ue, and the ue accesses the network.
Step 224, the user terminal sends a CP _ DATA message to the MSC/SSP, which contains information indicating that the current short message is the originating short message (MO _ SMS), the total frame number of the short message of the current frame, the reference number allocated by the user terminal for merging different frames of a short message, and the sequence number of the current frame in the short message to which the current frame belongs.
In this embodiment, it is assumed that the total frame number of the currently sent short message is 3, which indicates that the current short message is composed of 3 frames, and the sequence number of the current frame is 3, which indicates that the frame is the third frame of the short message.
Step 225-227, after the MSC/SSP returns the CP _ ACK message to the ue, the MSC/SSP sends a Send _ Info _ For _ SMS req message containing the ue id to the VLR to query the intelligent originating short message data of the ue, and the VLR queries the subscription data of the ue through the ue id according to the received request, and then returns a Continue _ CAMEL _ SMS _ Handling message containing the MO-SMS-CSI queried by the MSC/SSP to the MSC/SSP. After MSC/SSP obtains MO-SMS-CSI information, it uses standard CAP to interact with SCP, namely starts intelligent short message processing.
In step 228, the MSC/SSP sends the short message data processing request message carried by the initialdsms message to the SCP, and then suspends the originating short message.
The initial dpsms message contains information related to charging, such as the IMSI of the subscriber. In the TP Short Message Specific Information field of the initialdsms Message, framing Information is contained, and the framing Information is carried by the TP-UDH, and the Specific framing Information is substantially the same as that described in step 208, and will not be described again here. The difference is that, in this example, the field information for indicating the current frame number of the current short message is 3 at this time, which indicates that the frame is the third frame of the short message.
Step 229-231, after receiving the initialdpms message, the SCP acquires and records the framing information, decides and permits the user to send the current originating short message according to the information related to charging in the initialdpms message and the balance of the user, and issues a request to report the short message smart event requestreportsmservent, for example, an O _ SMS _ submit event for indicating that the originating short message is successfully submitted, or an O _ SMS _ FAILURE event for indicating that the originating short message is failed, and then issues a furnischhardinginformationsms to submit charging information, where the submitted charging information includes free format data for identifying any charging policy, and the free format data is stored in the originating short message record, and the processing on the free format data is completely the same as that in the prior art; finally SCP sends Continue SMS to indicate MSC/SSP to quit suspension, and continues the process of starting short message.
Step 232-233, MSC/SSP sends Send _ Info _ For _ SMS req message containing the user terminal identification to VLR again, the message contains information For inhibiting intelligent signing data to request universal originating short message data, VLR carries out relevant check, such as short message blocking, etc., after the check is passed, Send _ Info _ For _ SMS cnf message returns the originating short message data of user to MSC/SSP.
234-235, the MSC/SSP directly sends an originating Forward short message request MO _ Forward _ SMS req to the SMC or sends the originating Forward short message request MO _ Forward _ SMS req to the SMC through the SMS-IWMSC, wherein the request comprises a current short message frame; after the SMC finishes processing the mobile originated short message frame, the successful originated Forward short message response MO _ Forward _ SMS cnf is returned.
And 236-237, the MSC/SSP reports the short message event report information of the starting short message sending result to the SCP according to the information returned by the SMC, the short message event report information is carried by EventReportSMS, the SCP can know whether the current short message frame is successfully sent or not according to the information, if the short message frame is successfully submitted in the example, the SCP sends a Continue SMS message to command the MSC/SSP to continue processing, and at the moment, the intelligent connection between the MSC/SSP and the SCP is released.
At this time, the SCP can determine whether the sending of the current short message to be charged is finished according to the recorded framing information; the number of successfully transmitted frames in the short message can be determined according to the short message event report information of whether the short message frame is successfully transmitted or not; the specific processing process is completely the same as the processing in steps 216-217.
Of course, if the framing information includes content format information, the SCP can further know and record which specific formats are included in the current frame and the length occupied by each specific format.
In this example, at this time, the SCP knows that the current frame is the third frame of the short message, and all three frames constituting the short message have been successfully transmitted. If the framing information contains content format information, the SCP can also count the total length of each format in the current short message, i.e., the sum of the lengths of the frames.
After that, SCP charges the short message according to the preset charging strategy according to the total frame number of the current short message to be charged, the frame number of successful sending and the information related to charging.
The predetermined charging policy is: when all the frames of the short message to be charged are successfully sent, charging the short message once, or presetting the successful sending proportion of the short message frames, for example 80%, when more than 80% of the short message frames in the short message to be charged, namely the short message frames with the preset proportion, are successfully sent, charging the short message once, otherwise, not charging the short message.
If the framing information further comprises content format information used for indicating specific formats contained in the current frame and the length of each format; the predetermined charging policy is: when all frames of the short message to be charged are successfully sent, charging the short message according to the length of each format; or, presetting the successful sending proportion of the short message frames, for example, 80%, and after the short message frames with the proportion more than 80% in the short message to be charged, that is, the short message frames with the preset proportion are successfully sent, charging the short message according to the length of each format.
The charging method for the short message according to the length of each format is as follows: the preset tariff for each format is applied multiplied by the length of the format in all frames of the short message. For example, assuming that the rates and lengths of text, sound, animation, and picture are (Tt, Lt), (Ts, Ls), (Ta, La), (Tp, Lp) in a short message, the total rate of the short message is calculated according to their respective lengths:
cost (total) ═ Tt × Lt + Ts × Ls + Ta × La + Tp × Lp;
thus, the operator can flexibly determine the charging strategy of the short message, and according to the above mode, the total cost of one short message is the sum of the costs of all the short message frames in various formats.
Of course, the specific charging policy may be set according to the needs of the operator, and for example, if the user balance is too small to transmit all frames of a short message, the charging policy may also be: SCP controls whether to transmit the following frame according to the credit grade of the user, if refusing to transmit the following frame, the current short message is not successfully transmitted to the user, therefore, the frame successfully transmitted in the front is not charged; or when one frame fails in the process of multi-frame transmission and subsequent frames cannot be transmitted, SCP can also process the transmitted frames freely; therefore, the problem of unreasonable charging caused by failure and continuous retry when the user transmits the long and short messages can be avoided.
The charging policies are not exhaustive, and the above charging policies are merely examples and are not intended to limit the present invention.
Step 238, the MSC/SSP sends an RP _ ACK message to inform the user terminal that the current short message frame is successfully sent.
And 239-240, after the user terminal finishes sending all the frames of the short message, sending a CP _ ACK message to the MSC/SSP, and then releasing resources between the user terminal and the MSC/SSP.
So far, by applying the method of the present invention, the SCP can know how many frames the current short message is composed of, and the currently sent short message frame is the number of frames in the short message, and the information whether the frame is successfully sent. And the SCP can further know the content format contained in the current short message and the length of each content format in the whole short message. Thus, SCP uses the above information as the charging base for the short message, and can provide differentiated service for the user.
The method is also applicable to the charging of common short messages, and when the method is implemented, the framing information is recorded in a Call Data Record (CDR), the call data record containing the framing information is transmitted to a ticket processing module, and the ticket processing module carries out rating according to the call data record, a preset rate and a charging strategy, so that the short message is charged. At this time, the framing information is also carried by TP-UDH, and the entity for charging short message is Mobile Switching Center (MSC) or Short Message Service Center (SMSC); the short message data processing request information reported by each frame is carried by the originating short message request information.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.