Summary of the invention
In view of the problems of the existing technology, the embodiment of the present invention provides a kind of for Communication processing between SMSC and OCS
Method and device.
In a first aspect, the embodiment of the present invention provides a kind of method for Communication processing between SMSC and OCS, the method
Include:
Receive the user's short message request message forwarded by SMSC;
If judgement is informed in the first preset period of time, the quantity of user's short message request message is greater than first default time
Number, Xiang Suoshu SMSC send instruction, so that the SMSC is obtained according to user's short message request message and the first preset rules
Target user, user's short message request message carry user identifier, wherein the target user is in the second preset period of time
The short message request message quantity of interior transmission is greater than user corresponding to the second preset times;
It receives the account inquiries to the target user that the SMSC is sent to request, the account inquiries request carries
Target user's mark;
The account information of the target user is obtained, and the account information is sent to the SMSC, so that described
SMSC generates messages in batch quantity according to the account information and the second preset rules, and by the SMSC directly from described batch
The quantity for having sent successful user's short message is deducted in amount short message quantity.
Second aspect, the embodiment of the present invention also provide a kind of method for Communication processing between SMSC and OCS, the side
Method includes:
Receive the instruction sent by OCS;
According to the user's short message request message and the first preset rules being obtained ahead of time, target user is obtained, and to the OCS
It sends the account inquiries to the target user to request, the account inquiries request carries target user's mark, so that described
OCS obtains the account information of the target user, and receives the account information that the OCS is returned, and user's short message is asked
Message is asked to carry user identifier;
According to the account information and the second preset rules, messages in batch quantity is generated, and directly from the messages in batch
The quantity for having sent successful user's short message is deducted in quantity.
The third aspect, the embodiment of the present invention provide a kind of OCS for Communication processing between SMSC and OCS, the OCS packet
Include transceiver and processor:
The transceiver is used to receive the user's short message request message forwarded by SMSC, receive SMSC transmission to institute
The account inquiries request of target user is stated, the account inquiries request carries target user's mark;
If the processor is informed in the first preset period of time for judging, the quantity of user's short message request message is big
In the first preset times, Xiang Suoshu SMSC sends instruction, so that the SMSC is according to user's short message request message and first
Preset rules obtain target user, and user's short message request message carries user identifier, wherein the target user is
The short message request message quantity sent in the second preset period of time is greater than user corresponding to the second preset times, obtains the mesh
The account information of user is marked, and the account information is sent to the SMSC, so that the SMSC is according to the account information
With the second preset rules, messages in batch quantity is generated, and is directly deducted and has been sent out from the messages in batch quantity by the SMSC
Send the quantity of successful user's short message.
Fourth aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising: first processor, first memory and the
One bus, wherein
The first processor and the first memory complete mutual communication by first bus;
The first memory is stored with the program instruction that can be executed by the first processor, the first processor tune
Following method is able to carry out with described program instruction:
Receive the user's short message request message forwarded by SMSC;
If judgement is informed in the first preset period of time, the quantity of user's short message request message is greater than first default time
Number, Xiang Suoshu SMSC send instruction, so that the SMSC is obtained according to user's short message request message and the first preset rules
Target user, user's short message request message carry user identifier, wherein the target user is in the second preset period of time
The short message request message quantity of interior transmission is greater than user corresponding to the second preset times;
It receives the account inquiries to the target user that the SMSC is sent to request, the account inquiries request carries
Target user's mark;
The account information of the target user is obtained, and the account information is sent to the SMSC, so that described
SMSC generates messages in batch quantity according to the account information and the second preset rules, and by the SMSC directly from described batch
The quantity for having sent successful user's short message is deducted in amount short message quantity.
5th aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, comprising:
The non-transient computer readable storage medium stores computer instruction, and the computer instruction makes the computer
Execute following method:
Receive the user's short message request message forwarded by SMSC;
If judgement is informed in the first preset period of time, the quantity of user's short message request message is greater than first default time
Number, Xiang Suoshu SMSC send instruction, so that the SMSC is obtained according to user's short message request message and the first preset rules
Target user, user's short message request message carry user identifier, wherein the target user is in the second preset period of time
The short message request message quantity of interior transmission is greater than user corresponding to the second preset times;
It receives the account inquiries to the target user that the SMSC is sent to request, the account inquiries request carries
Target user's mark;
The account information of the target user is obtained, and the account information is sent to the SMSC, so that described
SMSC generates messages in batch quantity according to the account information and the second preset rules, and by the SMSC directly from described batch
The quantity for having sent successful user's short message is deducted in amount short message quantity.
6th aspect, the embodiment of the present invention provide a kind of SMSC for Communication processing between SMSC and OCS, the SMSC
Including transceiver and processor:
The transceiver is used to receive the instruction sent by OCS;
The processor is used to obtain target according to the user's short message request message and the first preset rules being obtained ahead of time and use
Family, and send the account inquiries to the target user to the OCS and request, the account inquiries request carries target user
Mark so that the OCS obtains the account information of the target user, and receives the account information that the OCS is returned, institute
It states user's short message request message and carries user identifier, according to the account information and the second preset rules, generate messages in batch
Quantity, and the quantity for having sent successful user's short message is directly deducted from the messages in batch quantity.
7th aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising: second processor, second memory and the
Two lines bus, wherein
The second processor and the second memory complete mutual communication by second bus;
The second memory is stored with the program instruction that can be executed by the second processor, the second processor tune
Following method is able to carry out with described program instruction:
Receive the instruction sent by OCS;
According to the user's short message request message and the first preset rules being obtained ahead of time, target user is obtained, and to the OCS
It sends the account inquiries to the target user to request, the account inquiries request carries target user's mark, so that described
OCS obtains the account information of the target user, and receives the account information that the OCS is returned, and user's short message is asked
Message is asked to carry user identifier;
According to the account information and the second preset rules, messages in batch quantity is generated, and directly from the messages in batch
The quantity for having sent successful user's short message is deducted in quantity.
Eighth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, comprising:
The non-transient computer readable storage medium stores computer instruction, and the computer instruction makes the computer
Execute following method:
Receive the instruction sent by OCS;
According to the user's short message request message and the first preset rules being obtained ahead of time, target user is obtained, and to the OCS
It sends the account inquiries to the target user to request, the account inquiries request carries target user's mark, so that described
OCS obtains the account information of the target user, and receives the account information that the OCS is returned, and user's short message is asked
Message is asked to carry user identifier;
According to the account information and the second preset rules, messages in batch quantity is generated, and directly from the messages in batch
The quantity for having sent successful user's short message is deducted in quantity.
Method and device provided in an embodiment of the present invention for Communication processing between SMSC and OCS, can be avoided certain
User's short message of every transmission, SMSC at least need to carry out once to interact with the communication of OCS, and then are effectively reduced the negative of OCS
Lotus.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 2 is method flow schematic diagram of the embodiment of the present invention for Communication processing between SMSC and OCS, as shown in Fig. 2,
A kind of method for Communication processing between SMSC and OCS provided in an embodiment of the present invention, comprising the following steps:
S1: the user's short message request message forwarded by SMSC is received.
Specifically, OCS receives the user's short message request message forwarded by SMSC.The use that SMSC can send user terminal
Family short message request message is forwarded to OCS.
S2: if judgement is informed in the first preset period of time, it is default that the quantity of user's short message request message is greater than first
Number, Xiang Suoshu SMSC sends instruction, so that the SMSC is obtained according to user's short message request message and the first preset rules
Target user is taken, user's short message request message carries user identifier, wherein the target user is when second is default
The short message request message quantity sent in section is greater than user corresponding to the second preset times.
If the quantity of user's short message request message is greater than the specifically, OCS judgement is informed in the first preset period of time
One preset times, Xiang Suoshu SMSC send instruction, so that the SMSC is default according to user's short message request message and first
Rule obtains target user, and user's short message request message carries user identifier, wherein the target user is the
The short message request message quantity sent in two preset period of time is greater than user corresponding to the second preset times.First preset period of time and
First preset times can be independently arranged according to the actual situation in OCS, and the second preset period of time and the second preset times are in SMSC
In can independently be arranged according to the actual situation, user identifier can be user mobile phone number, the first preset period of time and second it is default when
Numerical values recited between section is not especially limited, the numerical values recited between the first preset times and the second preset times is not made specifically
It limits.By taking the corresponding OCS of a SMSC as an example, be illustrated below: the first preset period of time is chosen as 30 minutes, in the period
Interior user A sends short message 20 times, user B sends short message 5 times, user C is sent short message 5 times;For OCS without paying close attention to some user
It sends, it is of interest that all SMSC (being exemplified as one) are sent to the sum of OCS short message request message in the first preset period of time
Amount, referring to the example above, which is 20+5+5=30 times, if the first preset times are selected as 20 times, is sent to SMSC
Instruction, the instruction are understood that determine that the short message request message quantity sent in the second preset period of time is greater than second by SMSC
User corresponding to preset times, if be selected as in the second preset period of time 20 minutes, the second preset times be selected as 10 times, second
(20 minutes) user A sends short message 15 times in preset period of time, user B sends short message 4 times, user C transmission short message 3 times, then user A
For target user, corresponding target user is identified as A.It should be understood that if the quantity of user's short message request message is less than
Equal to the first preset times, then the communication of flow processing SMSC and OCS shown in FIG. 1 is directlyed adopt.If user's short message is requested
The quantity of message is greater than the first preset times, and does not meet the target user of above-mentioned condition, then also directlys adopt shown in FIG. 1
The communication of flow processing SMSC and OCS.
S3: receiving the account inquiries to the target user that the SMSC is sent and request, and the account inquiries request is taken
It is identified with target user.
It is requested specifically, OCS receives the account inquiries to the target user that the SMSC is sent, the account inquiries
Request carries target user's mark.Target user may include prepaid user and postpaid service user.Reference the example above,
OCS receives the account inquiries request for the user A that SMSC is sent.
S4: the account information of the target user is obtained, and the account information is sent to the SMSC, so that described
SMSC generates messages in batch quantity according to the account information and the second preset rules, and by the SMSC directly from described batch
The quantity for having sent successful user's short message is deducted in amount short message quantity.
Specifically, OCS obtains the account information of the target user, and the account information is sent to the SMSC,
So that the SMSC generates messages in batch quantity according to the account information and the second preset rules, and direct by the SMSC
The quantity for having sent successful user's short message is deducted from the messages in batch quantity.It should be understood that prepaid user couple
The account information answered can be the account balance information of prepaid user;The corresponding account information of postpaid service user's account can be
Postpaid service user's account can facility extent and current facility extent difference.It is with the account balance information of prepaid user
Example, messages in batch quantity=(expense of the short message of the account balance information/every) * preset percentage;It is right referring to the example above
In user A: after SMSC generates messages in batch quantity, no longer needing to the short message via SMSC to the communication interactive user A between OCS
Information, the quantity that deduction user A has sent successful user's short message directly from the messages in batch quantity (can be sent successfully with every
Once, messages in batch quantity subtracts one), if the transmission of user's short message is unsuccessful, it is not required to deduct (i.e. from the messages in batch quantity
Messages in batch quantity is constant), certain user's short message of every transmission is avoided, SMSC at least needs to carry out once logical with OCS
News interaction, to alleviate load for OCS.SMSC can also periodically calculate the messages in batch quantity deducted, and will deduct
Messages in batch quantity be sent to OCS, so that OCS is according to the messages in batch quantity deducted, update the account letter of target user
Remaining sum in breath.Referring to the example above: daily 22:00 is calculated the messages in batch quantity of user A deducted by SMSC, has been deducted
Messages in batch quantity be 20, can be by formula:
The expense of the messages in batch quantity every short message of * for the corresponding expense of messages in batch quantity deducted=deducted.
That is: 20*0.1=2 member, that is, the corresponding expense of messages in batch quantity deducted is 2 yuan, in existing account information
Remaining sum deduct 2 yuan, the update of remaining sum in the account information to complete target user.
Method provided in an embodiment of the present invention for Communication processing between SMSC and OCS, it is every to can be avoided certain user
A short message is sent, SMSC at least needs to carry out once to interact with the communication of OCS, and then is effectively reduced the load of OCS.
On the basis of the above embodiments, user's short message request message includes short message request reporting message and failure shape
State report message, correspondingly;The quantity of user's short message request message requests quantity and the institute of reporting message for the short message
State the sum of the quantity of fail status message.
Specifically, user's short message request message in OCS includes short message request reporting message and fail status
Message, correspondingly;The quantity of user's short message request message is the quantity and the failure that the short message requests reporting message
The sum of quantity of status report messages.Short message request reporting message and illustrating for fail status message can refer to Fig. 1
In explanation, be described as follows with continued reference to the example above: user A, B, C send short message 30 in the first preset period of time (30 minutes)
It is secondary, it may include the sum of quantity and quantity of fail status message of above-mentioned short message request reporting message in this 30 times.
Method provided in an embodiment of the present invention for Communication processing between SMSC and OCS, makes user's short message in method
Request message includes short message request reporting message and fail status message, and it is short can more accurate, reasonably to obtain user
Believe the quantity of request message, and then more rationally, effectively alleviates the load of OCS.
On the basis of the above embodiments, the target user includes prepaid user and postpaid service user, correspondingly;Institute
The account information for obtaining the target user is stated, and the account information is sent to the SMSC, comprising:
The account balance information of prepaid user is obtained, and the account balance information is sent to the SMSC.
Specifically, OCS obtains the account balance information of prepaid user, and the account balance information is sent to described
SMSC.It can refer to above description, repeat no more.
Or,
Obtain postpaid service user's account can facility extent and current facility extent difference, and the difference is sent to
The SMSC.
Specifically, OCS obtain postpaid service user's account can facility extent and current facility extent difference, and will described in
Difference is sent to the SMSC.It can refer to above description, repeat no more.
Method provided in an embodiment of the present invention for Communication processing between SMSC and OCS, can obtain pre-payment respectively
User and postpaid service user's account information, and it is sent to SMSC, it can make SMSC that can get different types of user
Messages in batch quantity, to further mitigate the load of OCS.
Fig. 3 is method flow schematic diagram of the another embodiment of the present invention for Communication processing between SMSC and OCS, such as Fig. 3
It is shown, a kind of method for Communication processing between SMSC and OCS provided in an embodiment of the present invention, comprising the following steps:
S10: the instruction sent by OCS is received.
Specifically, SMSC receives the instruction sent by OCS.The instruction is understood that be determined by SMSC when second is default
The short message request message quantity sent in section is greater than user corresponding to the second preset times.
S20: according to the user's short message request message and the first preset rules being obtained ahead of time, obtaining target user, and to institute
The account inquiries that OCS is sent to the target user to be stated to request, the account inquiries request carries target user's mark, so that
The OCS obtains the account information of the target user, and receives the account information that the OCS is returned, and the user is short
Letter request message carries user identifier.
Specifically, SMSC obtains target user according to the user's short message request message and the first preset rules being obtained ahead of time,
And send the account inquiries to the target user to the OCS and request, the account inquiries request carries target user's mark
Know, so that the OCS obtains the account information of the target user, and receives the account information that the OCS is returned, it is described
User's short message request message carries user identifier.Referring to the example above: if being selected as 20 minutes, second in the second preset period of time
Preset times are selected as 10 times, (20 minutes) user A sends short message 15 times in the second preset period of time, user B sends short message 4 times,
User C is sent short message 3 times, then user A is target user, and corresponding target user is identified as A, and the account information of user A can be with
Be the account balance information of prepaid user, be also possible to postpaid service user's account can facility extent and current facility extent
Difference.
S30: according to the account information and the second preset rules, messages in batch quantity is generated, and directly from the batch
The quantity for having sent successful user's short message is deducted in short message quantity.
Specifically, SMSC generates messages in batch quantity according to the account information and the second preset rules, and directly from institute
State the quantity for deducting in messages in batch quantity and having sent successful user's short message.It is short that generation batch can be calculated according to the following formula
Believe quantity:
Messages in batch quantity=(expense of the short message of the account balance information/every) * preset percentage;
Or,
Messages in batch quantity=(expense of the short message of the difference/every) * preset percentage;
Wherein, the expense of every short message is preset.Preset percentage can independently be set according to the actual situation
It sets, is chosen as 50%, by taking the corresponding formula of account balance information as an example, be described as follows referring to the example above: if user A is pre-
Paying customer, account balance are 10 yuan, and the expense of every short message is 0.1 yuan, preset percentage 50%, then messages in batch quantity
=(10 yuan/0.1 yuan) * 50%=50.The case where user A is postpaid service user, repeats no more.Directly from the messages in batch number
The quantity that user A has sent successful user's short message is deducted in amount to be not required to if the transmission of user's short message is unsuccessful from the batch
It is deducted in short message quantity, avoids certain user's short message of every transmission, SMSC at least needs to carry out once to hand over the communication of OCS
Mutually, to alleviate load for OCS.
Method provided in an embodiment of the present invention for Communication processing between SMSC and OCS, it is every to can be avoided certain user
A short message is sent, SMSC at least needs to carry out once to interact with the communication of OCS, and then is effectively reduced the load of OCS.
On the basis of the above embodiments, the default rule of user's short message request message and first that the basis is obtained ahead of time
Then, target user is obtained, comprising:
The short message request message quantity sent in the second preset period of time is greater than user corresponding to the second preset times
As the target user.
Specifically, the short message request message quantity sent in the second preset period of time is greater than the second preset times institute by SMSC
Corresponding user is as the target user.
Method provided in an embodiment of the present invention for Communication processing between SMSC and OCS, can more reasonably obtain
Target user.
On the basis of the above embodiments, the account information includes the account balance information of prepaid user, post-paid
User account can facility extent and current facility extent difference, correspondingly;It is described pre- according to the account information and second
If regular, messages in batch quantity is generated, comprising:
It calculates according to the following formula and generates messages in batch quantity:
Messages in batch quantity=(expense of the short message of the account balance information/every) * preset percentage;
Or,
Messages in batch quantity=(expense of the short message of the difference/every) * preset percentage;
Wherein, the expense of every short message is preset.
Specifically, SMSC is calculated according to the following formula generates messages in batch quantity:
Messages in batch quantity=(expense of the short message of the account balance information/every) * preset percentage;
Or,
Messages in batch quantity=(expense of the short message of the difference/every) * preset percentage;
Wherein, the expense of every short message is preset.It can refer to above-described embodiment, repeat no more.
Method provided in an embodiment of the present invention for Communication processing between SMSC and OCS, can calculate in many aspects
Messages in batch quantity, and then it is effectively reduced the load of OCS.
On the basis of the above embodiments, the method also includes:
The messages in batch quantity is provided with effective time limit.
Specifically, the messages in batch quantity in SMSC is provided with effective time limit.The effective time limit can be according to reality
Situation is independently arranged, and is chosen as 1 hour, it may be assumed that in the messages in batch quantity is within an hour effective.
Method provided in an embodiment of the present invention for Communication processing between SMSC and OCS, by being provided with effective time limit,
Messages in batch quantity can be more reasonably managed, it being capable of load that is flexible and targetedly alleviating OCS.
Above-mentioned is described briefly for the method overall procedure of Communication processing between SMSC and OCS below:
(1) SMSC receives user's short message request message that user terminal is sent;
(2) OCS receives the user's short message request message forwarded by SMSC;
(3) if OCS judgement is informed in the first preset period of time, it is pre- that the quantity of user's short message request message is greater than first
If number, Xiang Suoshu SMSC sends instruction;
(4) SMSC obtains target user according to user's short message request message and the first preset rules;
(5) account inquiries to the target user that OCS receives that the SMSC is sent are requested, the account inquiries request
Carry target user's mark;
(6) OCS obtains the account information of the target user, and the account information is sent to the SMSC;
(7) SMSC generates messages in batch quantity according to the account information and the second preset rules;
(8) SMSC directly deducts the quantity for having sent successful user's short message from the messages in batch quantity.
Fig. 4 is OCS structural schematic diagram of the embodiment of the present invention for Communication processing between SMSC and OCS, as shown in figure 4,
The embodiment of the invention provides a kind of OCS for Communication processing between SMSC and OCS, including transceiver 41 and processor 42,
Wherein:
The transceiver 41 is used to receive the user's short message request message forwarded by SMSC, receives pair that the SMSC is sent
The account inquiries of the target user are requested, and the account inquiries request carries target user's mark;The processor 42 is used
If being informed in the first preset period of time in judgement, the quantity of user's short message request message is greater than the first preset times, to institute
It states SMSC and sends instruction, so that the SMSC obtains target and use according to user's short message request message and the first preset rules
Family, user's short message request message carry user identifier, wherein the target user is to send in the second preset period of time
Short message request message quantity be greater than the second preset times corresponding to user, obtain the account information of the target user, and
The account information is sent to the SMSC, so that the SMSC is generated according to the account information and the second preset rules
Messages in batch quantity, and the number for having sent successful user's short message is directly deducted from the messages in batch quantity by the SMSC
Amount.
Specifically, the transceiver 41 is used to receive the user's short message request message forwarded by SMSC, the SMSC is received
The account inquiries to the target user sent are requested, and the account inquiries request carries target user's mark;The place
If reason device 42 is informed in the first preset period of time for judging, the quantity of user's short message request message is greater than first default time
Number, Xiang Suoshu SMSC send instruction, so that the SMSC is obtained according to user's short message request message and the first preset rules
Target user, user's short message request message carry user identifier, wherein the target user is in the second preset period of time
The short message request message quantity of interior transmission is greater than user corresponding to the second preset times, obtains the account letter of the target user
Breath, and is sent to the SMSC for the account information, so that the SMSC is according to the account information and the second preset rules,
Messages in batch quantity is generated, and is directly deducted from the messages in batch quantity by the SMSC and has sent successful user's short message
Quantity.
OCS provided in an embodiment of the present invention for Communication processing between SMSC and OCS, can be avoided the every hair of certain user
A short message is sent, SMSC at least needs to carry out once to interact with the communication of OCS, and then is effectively reduced the load of OCS.
It is provided in an embodiment of the present invention between SMSC and OCS the OCS of Communication processing specifically can be used for executing it is above-mentioned
The process flow of each method embodiment, details are not described herein for function, is referred to the detailed description of above method embodiment.
Fig. 5 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention, as shown in figure 5, the electronic equipment
It include: first processor (processor) 501, first memory (memory) 502 and the first bus 503;
Wherein, the first processor 501, first memory 502 complete mutual communication by the first bus 503;
The first processor 501 is used to call the program instruction in the first memory 502, to execute above-mentioned each side
Method provided by method embodiment, for example, receive the user's short message request message forwarded by SMSC;If judgement is informed in the
In one preset period of time, the quantity of user's short message request message is greater than the first preset times, and Xiang Suoshu SMSC sends instruction, with
Make the SMSC according to user's short message request message and the first preset rules, obtain target user, user's short message is asked
Message is asked to carry user identifier, wherein the target user is the short message request message number sent in the second preset period of time
Amount is greater than user corresponding to the second preset times;Receive asking to the account inquiries of the target user for the SMSC transmission
It asks, the account inquiries request carries target user's mark;Obtain the account information of the target user, and by the account
Information is sent to the SMSC, so that the SMSC generates messages in batch number according to the account information and the second preset rules
Amount, and the quantity for having sent successful user's short message is directly deducted from the messages in batch quantity by the SMSC.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, what reception was forwarded by SMSC
User's short message request message;If judgement is informed in the first preset period of time, the quantity of user's short message request message is greater than the
One preset times, Xiang Suoshu SMSC send instruction, so that the SMSC is default according to user's short message request message and first
Rule obtains target user, and user's short message request message carries user identifier, wherein the target user is the
The short message request message quantity sent in two preset period of time is greater than user corresponding to the second preset times;Receive the SMSC hair
The account inquiries to the target user sent are requested, and the account inquiries request carries target user's mark;Described in acquisition
The account information of target user, and the account information is sent to the SMSC, so that the SMSC believes according to the account
Breath and the second preset rules generate messages in batch quantity, and are directly deducted from the messages in batch quantity by the SMSC
Send the quantity of successful user's short message.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example
It such as include: the user's short message request message for receiving and being forwarded by SMSC;If judgement is informed in the first preset period of time, the user is short
Believe that the quantity of request message is greater than the first preset times, Xiang Suoshu SMSC sends instruction, so that the SMSC is according to the user
Short message request message and the first preset rules obtain target user, and user's short message request message carries user identifier,
In, the target user is that the short message request message quantity sent in the second preset period of time is greater than corresponding to the second preset times
User;It receives the account inquiries to the target user that the SMSC is sent to request, the account inquiries request carries
Target user's mark;The account information of the target user is obtained, and the account information is sent to the SMSC, so that institute
It states SMSC and messages in batch quantity is generated according to the account information and the second preset rules, and by the SMSC directly from described
The quantity for having sent successful user's short message is deducted in messages in batch quantity.
Fig. 6 is SMSC structural schematic diagram of the embodiment of the present invention for Communication processing between SMSC and OCS, as shown in fig. 6,
The embodiment of the invention provides a kind of SMSC for Communication processing between SMSC and OCS, including transceiver 61 and processor 62,
Wherein:
The transceiver 61 is used to receive the instruction sent by OCS;The processor 62 is used for according to the use being obtained ahead of time
Family short message request message and the first preset rules obtain target user, and send the account to the target user to the OCS
Inquiry request, the account inquiries request carries target user's mark, so that the OCS obtains the account of the target user
Information, and the account information that the OCS is returned is received, user's short message request message carries user identifier, according to
The account information and the second preset rules generate messages in batch quantity, and directly deduct from the messages in batch quantity
Send the quantity of successful user's short message.
Specifically, the transceiver 61 is used to receive the instruction sent by OCS;The processor 62 is used for basis and obtains in advance
The user's short message request message obtained and the first preset rules obtain target user, and send to the OCS to the target user
Account inquiries request, account inquiries request carries target user's mark, so that the OCS obtains the target user
Account information, and receive the account information that the OCS is returned, user's short message request message carries user's mark
Know, according to the account information and the second preset rules, generates messages in batch quantity, and directly from the messages in batch quantity
Deduct the quantity for having sent successful user's short message.
SMSC provided in an embodiment of the present invention for Communication processing between SMSC and OCS, it is every to can be avoided certain user
A short message is sent, SMSC at least needs to carry out once to interact with the communication of OCS, and then is effectively reduced the load of OCS.
SMSC provided in an embodiment of the present invention for Communication processing between SMSC and OCS, specifically can be used in execution
The process flow of each method embodiment is stated, details are not described herein for function, is referred to the detailed description of above method embodiment.
Fig. 7 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention, as shown in fig. 7, the electronic equipment
It include: second processor (processor) 701, second memory (memory) 702 and the second bus 703;
Wherein, the second processor 701, second memory 702 complete mutual communication by the second bus 703;
The second processor 701 is used to call the program instruction in the second memory 702, to execute above-mentioned each side
Method provided by method embodiment, for example, receive the instruction sent by OCS;According to the user's short message request being obtained ahead of time
Message and the first preset rules obtain target user, and send the account inquiries to the target user to the OCS and request,
The account inquiries request carries target user's mark, so that the OCS obtains the account information of the target user, and connects
The account information that the OCS is returned is received, user's short message request message carries user identifier;Believed according to the account
Breath and the second preset rules generate messages in batch quantity, and directly deduct and sent successfully from the messages in batch quantity
The quantity of user's short message.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, what reception was sent by OCS
Instruction;According to the user's short message request message and the first preset rules being obtained ahead of time, target user is obtained, and is sent out to the OCS
The account inquiries to the target user are sent to request, the account inquiries request carries target user's mark, so that the OCS
The account information of the target user is obtained, and receives the account information that the OCS is returned, user's short message request disappears
Breath carries user identifier;According to the account information and the second preset rules, messages in batch quantity is generated, and directly from described
The quantity for having sent successful user's short message is deducted in messages in batch quantity.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example
It such as include: the instruction for receiving and being sent by OCS;According to the user's short message request message and the first preset rules being obtained ahead of time, obtain
Target user, and send the account inquiries to the target user to the OCS and request, the account inquiries request carries mesh
User identifier is marked, so that the OCS obtains the account information of the target user, and receives the account that the OCS is returned
Information, user's short message request message carry user identifier;According to the account information and the second preset rules, generates and criticize
Short message quantity is measured, and directly deducts the quantity for having sent successful user's short message from the messages in batch quantity.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light
The various media that can store program code such as disk.
The embodiments such as electronic equipment described above are only schematical, wherein it is described as illustrated by the separation member
Unit may or may not be physically separated, and component shown as a unit may or may not be object
Manage unit, it can it is in one place, or may be distributed over multiple network units.It can select according to the actual needs
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying wound
In the case where the labour for the property made, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than it is right
It is limited;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, the ordinary skill of this field
Personnel are it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part
Or all technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution
The range of each embodiment technical solution of the embodiment of the present invention.