Invention content
In view of this, the invention solves a technical problem be to provide a kind of processing method and short message of short message exception
Platform.
According to an aspect of the present invention, a kind of processing method of short message exception is provided, including:SMS platform is to operator
Server end sends short message, receives the state report for sending this short message of carrier server end return;The short message
Whether platform there is exception according to the state report judging short message service, if it is, being determined based on the state report different
Normal classification;The SMS platform is based on preset abnormality processing rule and the abnormal class carries out at correspondingly Abnormality remove
Reason;After carrying out the Abnormality remove processing, the SMS platform determines short message industry based on preset treatment effect decision rule
Whether business restores, if it is not, then carrying out corresponding alarming processing.
Optionally, the SMS platform includes according to whether the state report judging short message service exception occurs:It is described
SMS platform receives the short message that user sends, and the short message is committed to carrier server end according to preset submission speed;
After the carrier server termination receives the short message and sent, the state report is returned;The SMS platform from
State report code is extracted in the state report;The SMS platform is classified based on the state report code and is obtained short message
Transmission state, the transmission state includes:Submit successfully, submit failure, sends successfully, transmission fail;The SMS platform
Determine whether short message service exception occurs according to the transmission state.
Optionally, the SMS platform determines whether short message service exception occurs and include according to the transmission state:It is described
SMS platform is short according to the first short message submission mortality for sending statistic in preset first time period and first
Letter sends mortality;If it is more than preset that first short message, which submits mortality and/or the first short message sending mortality,
Threshold value then judges that short message sending is in abnormality.
Optionally, described to determine that abnormal class includes based on the state report:The SMS platform is based on the state
Report code determines and the extremely corresponding abnormal class of short message service, wherein the abnormal class includes that mobile phone terminal is abnormal, network is different
Often, platform is abnormal, operator is abnormal;The SMS platform is based on preset abnormality processing rule and the abnormal class carries out
Correspondingly Abnormality remove, which is handled, includes:If the abnormal class belongs to Network Abnormal, the SMS platform startup is built again
Its connection or progress short message repeating transmission between the carrier server end is stood, if the SMS platform re-establishes and institute
Failure is retransmitted in the connection failure or short message stated between carrier server end, then sends notification information to operation maintenance personnel;If institute
It states abnormal class and belongs to platform exception, then the SMS platform sends notification information to operation maintenance personnel;If the abnormal class
Belong to operator's exception, then the SMS platform, which is adjusted, submits the speed of short message to the carrier server end or carry out short message
It retransmits, such as attempts processing failure, then send notification information to operation maintenance personnel;;Wherein, the mode packet for sending notification information
It includes:Phone, mail, short message.
Optionally, after carrying out the Abnormality remove processing, the SMS platform is according to the transmission statistic pre-
If second time period in the second short message submit mortality and the second short message sending mortality;If second short message is submitted
Mortality and the second short message sending mortality are less than preset threshold value, then judge that short message service restores normal condition.
According to another aspect of the present invention, a kind of SMS platform is provided, including:SMS transmission module is used for operator
Server end sends short message, receives the state report for sending this short message that carrier server end returns;Business judges mould
Block, for whether there is exception according to the state report judging short message service, if it is, being determined based on the state report
Abnormal class;Exception processing module, it is correspondingly different for being carried out based on preset abnormality processing rule and the abnormal class
Normal exclusion processing;Detection module is excluded, for after carrying out the Abnormality remove processing, rule to be adjudicated based on preset treatment effect
Then determine whether short message service restores, if it is not, then carrying out corresponding alarming processing.
Optionally, the SMS transmission module, the short message for receiving user's transmission, according to preset submission speed by institute
It states short message and is committed to carrier server end;Wherein, after the carrier server termination receives the short message and is sent,
Return to the state report;The business judgment module, for extracting state report code from the state report, based on described
State report code is classified and obtains the transmission state of short message, and the transmission state includes:Submit successfully, submit failure, hair
Send successfully, send failure;Determine whether short message service exception occurs according to the transmission state.
Optionally, the business judgment module is used for according to the transmission statistic in preset first time period
The first short message submit mortality and the first short message sending mortality;If first short message submits mortality and/or described
First short message sending mortality is more than preset threshold value, then judges that short message sending is in abnormality.
Optionally, the business judgment module, it is right with the abnormal institute of short message service for being determined based on the state report code
Answer abnormal class, wherein the abnormal class includes mobile phone terminal exception, Network Abnormal, platform is abnormal, operator is abnormal;It is described
Exception processing module, if belonging to Network Abnormal for the abnormal class, startup re-establishes it and is taken with the operator
Connection between business device end or progress short message repeating transmission, if re-establishing the connection failure between the carrier server end
Or short message retransmits failure, then sends notification information to operation maintenance personnel;If the abnormal class belongs to platform exception, to O&M
Personnel send notification information;If the abnormal class includes operator's exception, adjusts and carried to the carrier server end
It hands over the speed of short message or carries out short message repeating transmission, such as attempt processing failure, then send notification information to operation maintenance personnel;Wherein, described
Send notification information mode include:Phone, mail, short message.
Optionally, the exclusion detection module is used for after carrying out the Abnormality remove processing, according to the transmission state
The second short message counted in preset second time period submits mortality and the second short message sending mortality;If described second
Short message submits mortality and the second short message sending mortality to be less than preset threshold value, then judges that short message service restores normal shape
State.
The processing method and SMS platform of the short message exception of the present invention, SMS platform receive the return of carrier server end
The state report for sending short message, whether occur abnormal according to state report judging short message service and determine abnormal class,
SMS platform carries out correspondingly Abnormality remove and handles, and determines whether short message service restores after carrying out Abnormality remove processing;It can
Automatic positioning is abnormal, according to abnormal scene adjust automatically resolution policy and executes so that and short message sending channel reaches setting requirements,
The processing speed and retransmission mechanism that short message sending channel can be automatically controlled, effectively reduce manpower costs, maloperation and time delay
Problem, and the Experience Degree of client can be enhanced, it is ensured that the integrality of client traffic.
Specific implementation mode
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should be noted that:Unless in addition having
Body illustrates that the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Simultaneously, it should be appreciated that for ease of description, the size of attached various pieces shown in the drawings is not according to reality
Proportionate relationship draw.
It is illustrative to the description only actually of at least one exemplary embodiment below, is never used as to the present invention
And its application or any restrictions that use.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, technology, method and apparatus should be considered as part of specification.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it need not be further discussed in subsequent attached drawing in a attached drawing.
The embodiment of the present invention can be applied to computer system/server, can be with numerous other general or specialized calculating
System environments or configuration operate together.Suitable for be used together with computer system/server well-known computing system, ring
The example of border and/or configuration includes but not limited to:Smart mobile phone, personal computer system, server computer system, Thin clients
Machine, thick client computer, hand-held or laptop devices, microprocessor-based system, set-top box, programmable consumer electronics, network
PC, little types Ji calculate machine Xi Tong ﹑ large computer systems and the distributed cloud computing technology ring including any of the above described system
Border, etc..
Computer system/server can be in computer system executable instruction (such as journey executed by computer system
Sequence module) general context under describe.In general, program module may include routine, program, target program, component, logic, number
According to structure etc., they execute specific task or realize specific abstract data type.Computer system/server can be with
Implement in distributed cloud computing environment, in distributed cloud computing environment, task is long-range by what is be linked through a communication network
Manage what equipment executed.In distributed cloud computing environment, program module can be positioned at the Local or Remote meter for including storage device
It calculates in system storage medium.
" first " hereinafter, " second " etc. are only used for distinguishing in description, and there is no other special meanings.
Fig. 1 is according to the flow diagram of one embodiment of the processing method of the short message exception of the present invention, such as Fig. 1 institutes
Show:
Step 101, SMS platform sends short message to carrier server end, receives pair of carrier server end return
In the state report for sending this short message.The server at carrier server end includes short message gateway server etc..
Step 102, whether SMS platform there is exception according to state report judging short message service, if it is, being based on shape
State report determines abnormal class.
Step 103, SMS platform is based on preset abnormality processing rule and abnormal class carries out correspondingly Abnormality remove
Processing.Abnormality processing rule can there are many, can be configured according to specific design requirement.
Step 104, after carrying out Abnormality remove processing, SMS platform is determined short based on preset treatment effect decision rule
Whether communication service restores, if it is not, then carry out corresponding alarming processing, such as send alarm email, short message etc..Treatment effect is sentenced
Certainly rule can there are many, can be configured according to specific design requirement.
The processing method of short message exception in above-described embodiment, can enhance the Experience Degree of client, it is ensured that client traffic
Integrality, it is possible to reduce platform operation maintenance personnel workload can automatically control the processing speed and repeating transmission machine in short message sending channel
System.
Fig. 2 be according to the present invention short message exception processing method one embodiment judge short message service whether extremely
Flow diagram, as shown in Figure 2:
Step 201, SMS platform receives the short message that user sends, and short message is committed to operation according to preset submission speed
Quotient's server end.
Step 202, after carrier server termination receives short message and sent, state report is returned.
Step 203, SMS platform extracts state report code from state report, is classified and is obtained based on state report code
Obtain the transmission state of short message.Transmission state includes:Submit successfully, submit failure, sends successfully, transmission unsuccessfully etc..
Step 204, SMS platform determines whether short message service exception occurs according to transmission state.
Short message state report (SMS-STATUSREPORT) is a kind of short message of specific format, abbreviation state report.From fortune
It seeks quotient and transmits state report to SMS platform, to indicate short message sending status.SMS platform often issues a short message, operator
A state report is returned by corresponding.State report includes state report code and its description information, as shown in table 1 below:
Serial number |
State report code |
Description information |
1 |
CA:0052 |
Not yet successfully log in |
2 |
CB:0007 |
User balance is insufficient |
3 |
CB:0053 |
Dream network users are not present |
4 |
DB:0122 |
It receives abnormal |
5 |
DB:9001 |
Network Abnormal |
6 |
DB:9007 |
Service Gateway is more than the flow of limitation |
State report code in table 1- state reports and its description information table
Operator's partial status report is only listed in table 1 is used as example.Short message is fed back by mobile, telecommunications and unicom operator
The state report disunity of platform, such as similarly for sending successfully, mobile, telecommunications and unicom utilize different state report codes
It is described.Can be according to the corresponding transmission state demarcation of state report code, general SMS platform is according to the state of transmission by state
Report code carries out classification processing, as follows:
It submits successfully:Short message is successfully committed to operator's (intermediate state);
Submit failure:Short message is committed to operator not successfully;
It sends successfully:Short message is successfully committed to operator, and is sent to user mobile phone;
Send failure:Short message is successfully committed to operator, but is not sent to user mobile phone.
Each transmission state can correspond to one or more state report codes.SMS platform determines short message according to transmission state
Whether business exception occurs can be there are many method.For example, SMS platform according to send statistic in preset first time
The first short message in section submits mortality and the first short message sending mortality, if the first short message submits mortality, the first short message
It is more than preset threshold value to send mortality, then judges that short message sending is in abnormality.First time period can be 10 minutes etc.,
First short message submits the threshold value of mortality and the first short message sending mortality can be identical, can also be independently arranged, and threshold value can be with
It is 2%, 5% etc..
In one embodiment, according to state during being issued according to state report code progress dividing anomaly, short message
Report code distinguishes the position occurred extremely, can generally be divided into 4 classes:
Mobile phone terminal is abnormal:Due to abnormal caused by user mobile phone shutdown, out of reach, mobile phone EMS memory spilling, arrearage etc.,
Error code includes CB:0007 etc.;
Network Abnormal:Since short message sending caused by network fluctuation is abnormal;
Platform is abnormal:Due to abnormal caused by platform configuration parameter error etc.;
Operator is abnormal:It is more than short message caused by operator's processing speed since operator's speed limit causes platform to submit speed
It sends abnormal.
The table of comparisons of state report code and dividing anomaly is as shown in table 2 below:
Serial number |
State report code |
Description information |
Dividing anomaly |
1 |
CA:0052 |
Not yet successfully log in |
Client is abnormal |
2 |
CB:0007 |
User balance is insufficient |
Mobile phone terminal is abnormal |
3 |
CB:0053 |
Dream network users are not present |
Mobile phone terminal is abnormal |
4 |
DB:0122 |
It receives abnormal |
Server-side is abnormal |
5 |
DB:9001 |
Network Abnormal |
Network Abnormal |
6 |
DB:9007 |
Service Gateway is more than the flow of limitation |
Client is abnormal |
The table of comparisons of table 2- state reports code and dividing anomaly
Table 2 only lists abnormal class belonging to partial status report as example.State report according to send state demarcation be
Submit successfully, submit failure, sends successfully, transmission fail, submit successfully and send and be successfully not belonging to abnormal scope.Short message is flat
Short message submits mortality and sends mortality during platform programming count certain time, when short message submits mortality and transmission to fail
When rate is more than defined threshold value, judgement short message sending is in abnormality.Short message is specifically caused by what reason extremely, and it is fixed to need
Position generates abnormal outermost state report error code, and thus the judgement of error condition report code belongs to which kind of exception, such as hand
Generator terminal exception, Network Abnormal, platform exception etc..
In one embodiment, SMS platform is determined and the extremely corresponding exception class of short message service based on state report code
Not, at least one of abnormal class includes mobile phone terminal exception, Network Abnormal, platform is abnormal, operator is abnormal.If exception class
Not Bao Kuo Network Abnormal, then SMS platform, which starts, re-establishes its connection between carrier server end or carries out short message weight
Hair, if SMS platform re-establishes connection failure or short message repeating transmission failure between carrier server end, to O&M
Personnel send notification information;If abnormal class includes platform exception, SMS platform sends notification information to operation maintenance personnel;Such as
Fruit abnormal class includes operator's exception, then SMS platform, which is adjusted, submits the speed of short message to carrier server end or carry out short
Letter is retransmitted.Send notification information mode include:Phone, mail, short message etc..
For example, corresponding processing rule can be arranged for abnormality processing:
Mobile phone terminal is abnormal:Mobile phone terminal is generally individual subscriber reason extremely to be caused, and is not processed.
Network Abnormal:Network Abnormal generally results in channel disconnection, so as follows for Network Abnormal processing mode:Start logical
The multiple reconnection in road simultaneously carries out short message repeating transmission and checks whether business is restored, and does not restore such as, by mail notification operation maintenance personnel, net at this time
Network causes short message sending abnormal extremely, please handles as early as possible.
Platform is abnormal:It is as follows that platform refers to exception, processing mode caused by platform configuration parameter error extremely:Mail notification is transported
Dimension personnel, at this time platform configuration cause short message sending abnormal extremely, please handle as early as possible.
Operator is abnormal:Operator refers to short message sending exception caused by operator's speed limit extremely or operator's inter-process is wrong
It accidentally goes wrong with base station, processing mode is as follows:It adjusts channel downloading speed or carries out short message repeating transmission, do not restore such as, pass through postal
Part notifies operation maintenance personnel, and operator causes short message sending to fail extremely at this time, please handles as early as possible.
For the extremely corresponding error condition report code of four classes and corresponding processing mode, procedure judges are abnormal simultaneously
Execute corresponding operating.After carrying out Abnormality remove processing, SMS platform is according to transmission statistic in preset second time period
The second interior short message submits mortality and the second short message sending mortality.If the second short message submits mortality and the second short message hair
It send mortality to be less than preset threshold value, then judges that short message service restores normal condition.Second time period can be 10 minutes etc., the
Two short messages submit the threshold value of mortality and the second short message sending mortality can be identical, can also be independently arranged, the second short message carries
Hand over the threshold value of mortality and the second short message sending mortality mortality and the first short message sending can also be submitted to lose with the first short message
The threshold value for losing rate is identical, and threshold value can be 1%, 5% etc..Short message sending status statistics knot after the adjustment of SMS platform automatic decision
Fruit, and be compared with threshold value, it is such as normal, then judge business recovery, it is such as abnormal, then carry out manual intervention.
As shown in figure 3, the present invention provides a kind of SMS platform 30, including:SMS transmission module 31, business judgment module
32, exception processing module 33 and exclusion detection module 34.SMS transmission module 31 sends short message to carrier server end 35, connects
Receive the state report for sending this short message that carrier server end returns.Business judgment module 32 is according to state report judging
Whether short message service there is exception, if it is, determining abnormal class based on state report.Exception processing module 33 is based on default
Abnormality processing rule and abnormal class carry out correspondingly Abnormality remove handle.It excludes detection module 34 and is carrying out Abnormality remove
After processing, determine whether short message service restores based on preset treatment effect decision rule, if it is not, then being alerted accordingly
Processing.
In one embodiment, SMS transmission module 31 receives the short message that user sends, will according to preset submission speed
Short message is committed to carrier server end 35.After carrier server end 35 receives short message and sent, state report is returned
It accuses.Business judgment module 32 extracts state report code from state report, is classified based on state report code and obtains short message
Transmission state, transmission state includes:Submit successfully, submit failure, sends successfully, transmission fail.Business judgment module 32
Determine whether short message service exception occurs according to transmission state.
Business judgment module 32 submits failure according to the first short message of the statistic in preset first time period is sent
Rate and the first short message sending mortality.If it is more than preset threshold that the first short message, which submits mortality, the first short message sending mortality,
It is worth, then business judgment module 32 judges that short message sending is in abnormality.
Business judgment module 32 is determined and the extremely corresponding abnormal class of short message service, abnormal class based on state report code
It is at least one of abnormal including mobile phone terminal exception, Network Abnormal, platform exception, operator.If abnormal class includes network
Abnormal, then the startup of exception processing module 33 re-establishes its connection between carrier server end, if re-establish with
Connection failure between carrier server end, then exception processing module 33 to operation maintenance personnel send notification information.If abnormal
Classification includes platform exception, then exception processing module 33 sends notification information to operation maintenance personnel.If abnormal class includes operation
Quotient is abnormal, then exception processing module 33 adjusts the speed that short message is submitted to carrier server end.Send the mode of notification information
Including:Phone, mail, short message etc..
Detection module 34 is excluded after carrying out Abnormality remove processing, according to transmission statistic in preset second time period
The second interior short message submits mortality and the second short message sending mortality.If the second short message submits mortality and the second short message hair
It send mortality to be less than preset threshold value, then excludes detection module 34 and judge that short message service restores normal condition.
In one embodiment, as shown in figure 4, providing a kind of SMS platform, which may include memory 41 and processing
Device 42, for storing instruction, processor 42 is coupled to memory 41 to memory 41, and processor 42 is configured as being based on memory 41
The instruction execution of storage realizes the processing method of above-mentioned short message exception.
Memory 41 can be high-speed RAM memory, nonvolatile memory (non-volatile memory) etc., deposit
Reservoir 41 can also be memory array.Memory 41 is also possible to by piecemeal, and block can be combined into virtually by certain rule
Volume.Processor 42 can be central processor CPU or application-specific integrated circuit ASIC (Application Specific
Integrated Circuit), or be arranged to implement the one or more of the processing method of the short message exception of the present invention
Integrated circuit.
In one embodiment, the present invention provides a kind of computer readable storage medium, and computer readable storage medium is deposited
Computer instruction is contained, the processing method of the short message exception in as above any one embodiment is realized when instruction is executed by processor.
The processing method and SMS platform of short message exception in above-described embodiment, SMS platform receive carrier server
Whether the state report for sending short message that end returns occurs abnormal and determines abnormal according to state report judging short message service
Classification, SMS platform carry out correspondingly Abnormality remove and handle, and determine whether short message service restores after carrying out Abnormality remove processing;
It can be automatically positioned exception, according to abnormal scene, adjust automatically resolution policy simultaneously executes so that short message sending channel reaches setting
It is required that the processing speed and retransmission mechanism in short message sending channel can be automatically controlled, it is timely to effectively reduce manpower costs, maloperation
The problem of prolonging, and the Experience Degree of client can be enhanced, it is ensured that the integrality of client traffic.
The method and system of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or
Software, hardware, firmware any combinations come realize the present invention method and system.The said sequence of the step of for method is only
In order to illustrate, the step of method of the invention, is not limited to sequence described in detail above, especially says unless otherwise
It is bright.In addition, in some embodiments, also the present invention can be embodied as to record program in the recording medium, these programs include
For realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing according to this hair
The recording medium of the program of bright method.