Disclosure of Invention
In view of the problems of the prior art, an object of the present invention is to provide a short message unreachable processing method and system, which can enable a user sending a short message to control the sent short message according to the setting. The short message sender has greater control right and opportunity for the sent short message, and the existing short message service can better serve a large number of terminal users.
The purpose of the invention is realized by the following technical scheme:
a short message unreachable processing method comprises the following steps:
A. when a sending end sends a short message, adding information of an unreachable processing mode to the short message;
B. and the Short Message Service Center (SMSC) processes the short message according to the information of the unreachable processing mode when the short message is not available.
The unreachable processing mode comprises the following steps: and forwarding the short message and/or deleting the short message.
When the unreachable processing method is forwarding, the information of the unreachable processing method comprises the following steps: unreachable forwarding latency and unreachable forwarding destination address;
alternatively, when the unreachable processing method is deleted, the information of the unreachable processing method includes: information is not reachable to be deleted.
The information of the short message unreachable processing mode is the existing information element in the short message service SMS;
or, the information of the short message unreachable processing mode is the identification information of the extended information element in the short message service SMS;
or, the information of the short message unreachable processing mode is an identifier set in a text field of the short message.
The step A comprises the following steps:
a1, the sending end inputs the information of the unreachable processing mode of the short message according to the prompt requirement when sending the short message;
a2, adding information of short message unreachable processing mode for the sent short message, and sending the short message.
The step A further comprises the following steps:
a3, when the sending end prompts the user to input the information of the short message unreachable processing mode when sending the short message, and then confirms the user to input the information, adding the information of the unreachable processing mode to the sent short message, and sending the short message.
The processing method further comprises the following steps: and B, judging whether the short message unreachable processing function is required to be set or not, if so, executing the step A, otherwise, sending the short message in a mode of not adding the information of the short message unreachable processing mode.
The step B comprises the following steps:
b1, when SMSC can not send the short message timely, SMSC obtains the information of the short message inaccessible processing mode;
b2, SMSC processes the short message according to the acquired short message unreachable processing mode information.
The step B2 includes:
b21, when the unreachable transmission waiting time of the short message processing mode information is 0, transmitting the short message to the user appointed by the destination address which is unreachable to transmit; or,
b22, when the unreachable forwarding waiting time of the short message unreachable processing mode information is not 0, starting unreachable forwarding timing according to the time;
when the short message receiver becomes available in time in the unreachable forwarding timing time, the SMSC sends the short message according to the original address and stops timing;
when the unreachable forward time is over, SMSC forwards the short message to the user appointed by the destination address of unreachable forward.
After SMSC forwards the short message to the user appointed by the destination address which can not be forwarded, the short message is not sent to the user appointed by the original address.
The step B2 further includes:
b23, deleting the short message when the short message unreachable processing mode information is unreachable deleting information.
The method further comprises the following steps: and setting whether to start the short message unreachable processing function at the sending end.
A short message unreachable processing sending device for realizing the method is arranged at a sending end of a short message and comprises the following steps:
short message unreachable processing setting module: adding short message unreachable processing setting items in the short message; setting short message unreachable information;
short message user interface module: the setting and the checking of the short message unreachable processing information in the short message unreachable processing setting module by the user are realized;
short message sending function module: the short message, which has been configured with information that the short message cannot reach processing, is transmitted to the SMSC.
The short message unreachable processing setting module is a sub-module added in the short message setting module of the original sending end; or, the short message sending function module is a sub-module added in the short message function module of the original sending end.
A processing device for realizing the short message unreachable processing of the method is arranged on an SMSC and comprises the following components:
the short message receiving function module: receiving a short message which is sent by a sending end and is configured with information that the short message cannot reach for processing;
the execution module of short message unreachable processing: and when the sent short message is not timely, processing the short message according to the information which is not timely processed.
The processing device for processing the short message unreachable also comprises:
a timer: when the sent short message is not timely, starting to time according to the unreachable forwarding waiting time or the unreachable deleting waiting time in the unreachable processing information, and controlling the execution module of the unreachable processing of the short message to carry out corresponding operation processing according to the time-counting condition.
A short message unreachable processing system for realizing the method comprises the following steps:
the short message inaccessible transmitting device comprises: the short message processing device is arranged at a sending end of the short message and used for adding unreachable processing mode information of the short message when the short message is sent; sending the short message to SMSC, when the short message can not be controlled in time;
the processing device which is inaccessible to short messages: the SMSC receives the short message which is sent by the sending end and is configured with the information that the short message cannot reach to be processed, and processes the short message according to the information that the short message cannot reach to be processed when the sent short message cannot be processed in time.
According to the technical scheme provided by the invention, the short message unreachable processing method provided by the invention adds the information of the unreachable processing mode to the short message when the sending end sends the short message; and the Short Message Service Center (SMSC) processes the short message according to the information of the unreachable processing mode when the short message is not available. The short message unreachable processing system comprises a sending device arranged at a sending end and used for processing the short message unreachable and a processing device arranged at an SMSC and used for processing the short message unreachable. The invention realizes the function in the short message service center by expanding the related protocol of SMS in the existing 3 GPP. The user sending the short message can control the sent short message in time according to the setting. The short message sender has greater control right and opportunity for the sent short message, and the existing short message service can better serve a large number of terminal users.
Detailed Description
The invention relates to a short message unreachable processing method, which comprises the following specific implementation modes:
the short message referred to herein is not reachable means that: because the short message receiver is powered off, the short message receiver is not in the signed network service area or the storage space of the short message receiver is insufficient, or the short message receiver cannot normally send the short message to the short message receiver due to the failure of network problem sending. When the short message is not available, the user usually requires to delete the short message and sometimes requires to forward the short message to other users. Respectively called as: unreachable forwarding and unreachable deletion.
The unreachable forwarding of the short message means that when a short message sender enables a short message unreachable forwarding function, sets short message unreachable forwarding waiting time and provides a short message unreachable forwarding target address, after the short message sent by the short message sender arrives at a short message center, if the short message cannot be normally issued to a short message receiver within the short message unreachable conditional forwarding time set by the short message sender due to the short message unreachable reason, the short message center automatically forwards the short message to other terminal users indicated by the unreachable forwarding target address designated by the short message sender.
The specific short message unreachable forwarding sending process is shown in fig. 1:
step 11, the user prepares to send the short message;
the short message to be sent may be edited by the user himself or may be a short message to be forwarded.
Step 12, judging whether the short message unreachable forwarding function needs to be set, if yes, executing step 13, otherwise, executing step 18;
step 13, the system prompts the user to input the unreachable forwarding waiting time;
step 14, judging whether the user confirms the input unreachable forwarding waiting time or not; if yes, go to step 15, otherwise go to step 18;
step 15, the system prompts the user to input the unreachable forwarding destination address;
step 16, judging whether the user confirms that the input unreachable forwarding destination address is input; if yes, executing step 17, otherwise executing step 18;
step 17, adding information elements of unreachable processing modes to the short message;
and step 18, sending the short message.
The unreachable deleting of the short message means that when the short message sender enables the unreachable deleting function of the short message, after the short message sent by the short message sender reaches the short message center, if the short message cannot be normally issued to the short message receiver due to the unreachable reason of the short message receiver, the short message center automatically deletes the short message.
The specific short message unreachable deleting sending process is shown in fig. 2:
step 21, the user prepares to send the short message;
the short message to be sent may be edited by the user himself or may be a short message to be forwarded.
Step 22, judging whether the short message unreachable deleting function needs to be set, if so, executing step 23, otherwise, executing step 24;
step 23, adding information elements of unreachable processing modes to the short message;
and step 24, sending the short message.
The above process only completes the setting of the short message unreachable processing mode at the sending end, and if the short message unreachable processing function is completely realized, the subsequent flow is also completed when the SMSC operates specifically. Can be specifically divided into unreachable forwarding and unreachable deleting processes.
The short message center SMSC has the unreachable forwarding flow as follows:
after receiving SMS-SUBMIT message of terminal user, the short message center requests routing information from HLR of the receiver of the short message according to normal short message issuing flow. If the user is available (the HLR records the information about whether the user is available), the HLR returns the VMSC number of the user, and the short message center issues the short message to the short message receiver through the VMSC. If the transmission fails due to various reasons such as network, the VMSC informs the short message center through message.
If the user is just off at this moment, or is not in the signed network service area, or the short message storage space of the user is insufficient, or the sending fails, that is, the user is unreachable, the short message center acquires the unreachable forwarding information of the short message through the unreachable forwarding information element acquisition interface of the protocol layer short message.
If the short message does not start the unreachable forwarding function, the short message is stored in the validity period of the short message according to the existing processing flow until the short message is successfully sent to a short message receiver or the validity period is automatically deleted after overtime.
If the short message starts the unreachable condition forwarding function, the short message center reads the unreachable forwarding waiting time of the short message set by the short message sender, if the unreachable forwarding waiting time is set to be 0, the short message is directly forwarded to the appointed user according to the unreachable forwarding target address set by the short message sender, and the method is equivalent to the method that the short message sender directly sends the end message to the appointed user. The short message center will not issue the short message to the original short message receiver. If the short message unreachable transmission waiting time set by the short message sender is not 0, the short message center starts the short message unreachable transmission timing according to the set time. In the timing time, if the short message is recovered to be reachable because of the short message receiver state (when the short message receiver is powered on or enters a signed network service area or releases the storage space because the short message is deleted, the HLR informs the short message center that the user can receive the short message and the short message center will send the short message again), and when the short message can be normally sent to the short message receiver, the unreachable forwarding timing of the short message is stopped. If the short message can not be normally sent when the unreachable forwarding timing time of the short message is overtime, the short message center directly forwards the short message to the user according to the unreachable forwarding target address set by the short message sender, which is equal to that the short message sender directly sends the end message to the user. The short message center will not issue the short message to the original short message receiver.
The specific process of the SMSC issuing the short message is shown in fig. 3:
step 31, the SMSC normally sends the short message;
step 32, judging whether the receiver is unreachable; if yes, executing step 33, otherwise, executing step 39;
step 33, obtaining the unreachable forwarding information of the short message;
step 34, judging whether the unreachable forwarding function of the short message is started or not; if yes, executing step 35, otherwise, executing step 37;
step 35, whether the unreachable forwarding waiting time is 0 or not is judged, if yes, step 36 is executed, and if not, step 38 is executed;
step 36, sending the short message to the user set by the unreachable forwarding target address; step 310 is executed;
this process typically requires the simultaneous shutdown of the unreachable forwarding functionality of the short message.
Step 37, temporarily storing the short message, and starting the self validity timing of the SMSC; finishing the issuing process;
step 38, temporarily storing the short message, and starting the self validity timing of the SMSC; meanwhile, starting the unreachable forwarding timing, and ending the issuing process;
step 39, sending the short message to a receiver;
step 310, judging whether the transmission is successful; if so, the transmission process is ended, otherwise, step 33 is executed.
The issuing process of the above steps 37 and 38 is finished; the SMSC does not finish all the sending process, but enters a new flow, and if the receiver of the short message becomes available within the timing time, the SMSC issues the short message, there are two cases: firstly, the SMSC successfully sends the short message before one of the unreachable forwarding timing or the valid period timing is overtime, and secondly, the SMSC cannot successfully send the short message when one of the unreachable forwarding timing or the valid period timing is overtime. In addition, normally, the SMSC also successfully sends the short message.
For example, if the SMSC successfully sends the short message before one of the unreachable forwarding timer and the validity timer expires or if the SMSC successfully sends the short message normally, the process of the SMSC successfully includes, as shown in fig. 4:
step 41, the SMSC successfully sends the short message within the timing time;
step 42, obtaining the unreachable forwarding information of the short message;
step 43, judging whether the unreachable forwarding function of the short message is started; if yes, executing step 44, otherwise, executing step 45;
step 44, stopping the unreachable forwarding timing of the short message;
if there is an unreachable forward timer and the SMSC successfully sends the short message within the timer, step 44 can be directly executed by step 41 without executing steps 42 and 43.
Step 45, stopping the timing of the validity period of the short message;
and step 46, the SMSC deletes the short message and finishes the sending process.
If the SMSC fails to successfully send the short message when one of the unreachable time and the validity time expires, the process shown in fig. 5 specifically includes:
step 51, the SMSC can not successfully send the short message within the timing time;
step 52, sending the short message to the user set by the unreachable forwarding target address;
this process typically requires the simultaneous shutdown of the unreachable forwarding functionality of the short message.
And step 53, stopping the unreachable forwarding timing of the short message and ending the sending process.
The inaccessible deleting process of the short message center SMSC comprises the following steps:
after receiving SMS-SUBMIT message of terminal user, the short message center requests routing information from HLR of the receiver of the short message according to normal short message issuing flow. If the user is available (the HLR records the information about whether the user is available), the HLR returns the VMSC number of the user, and the short message center issues the short message to the short message receiver through the VMSC. If the transmission fails due to various reasons such as network, the VMSC informs the short message center through message.
If the user is just off at this time, or is not in the signed network service area, or the short message storage space of the user is insufficient, or the VMSC fails to send the short message, that is, the user is unreachable, the short message center judges whether the short message is started to enable the short message unreachable deleting function through the short message unreachable deleting information element acquiring interface of the protocol layer.
If the short message is not started up with the inaccessible deleting function, the short message is stored in the valid period of the short message according to the existing processing flow until the short message is successfully transmitted to a short message receiver in the valid period of the short message or the short message is automatically deleted after the valid period is overtime. If the short message enables the unreachable deleting function, the short message center automatically deletes the short message.
The specific process of the SMSC issuing the short message is shown in fig. 6:
step 61, SMSC sends the short message normally;
step 62, judging whether the receiver is unreachable; if yes, executing step 63, otherwise, executing step 67;
step 63, obtaining the unreachable deleting information of the short message;
step 64, judging whether the unreachable deleting function of the short message is started or not; if yes, executing step 65, otherwise, executing step 66;
step 65, deleting the short message; the transmission process is ended.
Step 66, temporarily storing the short message, and starting the self validity timing of the SMSC;
step 67, sending the short message normally;
step 68, judging whether the short message is successfully sent; if so, the transmission process is ended, otherwise, step 63 is executed.
The invention relates to a short message unreachable processing system for realizing the method, which comprises the following specific implementation modes: a transmitting device for processing short message unreachable and a processing device for processing short message unreachable, wherein:
the short message inaccessible transmitting device comprises: the short message processing device is arranged at a sending end of the short message and used for adding unreachable processing mode information of the short message when the short message is sent; sending the short message to SMSC, when the short message can not be controlled in time; the method comprises the following steps: short message unreachable processing setting module, short message user interface module and short message sending function module, wherein:
short message unreachable processing setting module: adding short message unreachable processing setting items in the short message; setting short message unreachable information;
short message user interface module: the setting and the checking of the short message unreachable processing information in the short message unreachable processing setting module by the user are realized;
short message sending function module: the short message, which has been configured with information that the short message cannot reach processing, is transmitted to the SMSC.
The processing device which is inaccessible to short messages: the SMSC receives the short message which is sent by the sending end and is configured with the information that the short message cannot reach to be processed, and processes the short message according to the information that the short message cannot reach to be processed when the sent short message cannot be processed in time. The method comprises the following steps: the short message receiving function module and the short message unreachable processing execution module, wherein:
the short message receiving function module: receiving a short message which is sent by a sending end and is configured with information that the short message cannot reach for processing;
the execution module of short message unreachable processing: and when the sent short message is not timely, processing the short message according to the information which is not timely processed.
The processing device for processing the short message unreachable process also comprises a timer, when the sent short message is not timely, the timer starts to time according to the unreachable forwarding waiting time in the unreachable process information, and controls the execution module of the short message unreachable process to carry out corresponding operation process according to the time-counting condition.
The short message user interface module is the original short message user interface module.
The short message unreachable processing setting module is a sub-module added in the short message setting module of the original sending end;
the short message sending function module is a sub-module added in the short message function module of the original sending end.
The above embodiments are combined to a specific mobile terminal, and the scheme is as follows:
first, the definition of information element identification in TP-UD field Header is extended in 3GPP TS23.040V3.9.0 protocol, as shown in table 1:
TABLE 1
Meaning of hexadecimal value
00 Concatenated short messages,8-bit reference number
01 Special SMS Message Indication
02 Reserved
03 Value not used to avoid misinterpretation as<LF>character
04 Application port addressing scheme,8 bit address
05 Application port addressing scheme,16 bit address
06 SMSC Control Parameters
07 UDH Source Indicator
08 Concatenated short message,16-bit reference number
09 Wireless Control Message Protocol
0A Text Formatting
0B Predefined Sound
0C User Defined Sound(iMelody max 128 bytes)
0D Predefined Animation
0E Large Animation(16*16times 4=32*4=128 bytes)
0F Small Animation(8*8times 4=8*4=32 bytes)
10 Large Picture(32*32=128 bytes)
11 Small Picture(16*16=32 bytes)
12 Variable Picture
13-1F Reserved for future EMS features(see clause 3.10)
20 RFC 822E-Mail Header
21-6F Reserved for future use
70-7F (U)SIM Toolkit Security Headers
80-9F SME to SME specific use
A0-BF Reserved for future use
C0-DF SC specific use
E0-FF Reserved for future use
Secondly, the method comprises the following steps: extension to information element identification in 3GPP TS23.040V3.9.0 protocol
In order to implement the short message unreachable processing function, the short message sender is required to add a short message unreachable processing mode Information Element (Information Element) in the TP-UD field Header field of the SMS-SUBMIT message. The information element is used to inform the short message sending center whether the short message enables unreachable forwarding of the short message and unreachable forwarding time and an unreachable forwarding destination address. Alternatively, the information element is used to inform the short message sending center whether the short message unreachable deleting function is enabled for the short message.
The information element comprises the following three parts:
1) and (3) information element identification:
as can be seen from the above definitions, 02, 21-6F, A0-BF, E0-FF are reserved values, i.e. not applied in the existing short message implementation. Therefore, it can be considered to arbitrarily select one value from these reserved values as the identifier of the short message unreachable processing mode information element.
The short message sender adds short message unreachable processing mode information in the SMS-SUBMIT message through the identifier, and the short message service center acquires the short message unreachable processing mode information from the SMS-SUBMIT message through the identifier.
2) Size of information element:
the length of the subsequent information element data field is identified in octets.
3) Information element data:
the unreachable forwarding function includes three parts:
the first part is:
the short message center is used for informing whether the short message enables the unreachable forwarding function or not;
the second part is that:
and if the unreachable forwarding function is started, the short message center is informed of the unreachable forwarding waiting time of the short message. The time provided by the short message sender when sending the short message should not be greater than the validity period of the short message set by the user. When the short message arrives at the set time and still cannot be successfully sent to the receiver because the short message receiver is not available, the short message is automatically forwarded to other users appointed by the short message sender by the short message center. If the time is 0, it represents that the short message center finds that the short message receiver is not timely, then the short message is forwarded immediately.
The third part is that:
if the unreachable forwarding function is enabled, the short message center is informed of the unreachable forwarding target address of the short message. The destination address is provided by the short message sender at the time of sending the short message, identifying the end user to whom the short message sender wishes to forward the short message.
Only one part is included for the unreachable delete function:
for informing the short message center whether the short message has the unreachable delete function enabled.
In addition, a short message unreachable processing user interface is required to be arranged on a protocol layer;
for unreachable forwarding functions, include:
1) short message unreachable forward information element setting interface
The interface is used for adding a corresponding short message unreachable forwarding information element in the SMS-SUBMIT message when the short message sender sends the SMS-SUBMIT message. The information element identifies whether the short message sender enables the short message unreachable forwarding function, and if so, the information element also comprises corresponding unreachable forwarding waiting time and corresponding unreachable forwarding target address information.
2) Short message unreachable forward information element obtaining interface
The interface is used for extracting the corresponding short message unreachable forwarding information element from the SMS-SUBMIT message when the SMS-SUBMIT message is received by the short message center. The information element identifies whether the short message sender enables the short message unreachable forwarding function, and if so, the information element also comprises corresponding unreachable forwarding waiting time and corresponding unreachable forwarding target address information.
If the SMS-SUBMIT message does not contain the short message unreachable forwarding information element information, the short message center considers that the short message unreachable forwarding function is not enabled.
For unreachable delete functions include:
1) interface for setting short message inaccessible deleted information element
The interface is used for adding corresponding short message inaccessible deletion information elements in the SMS-SUBMIT message when the short message sender sends the SMS-SUBMIT message. The information element identifies whether the short message sender enables the short message unreachable delete function.
2) Interface for obtaining short message inaccessible deleted information element
The interface is used for extracting the corresponding short message unreachable deleting information element from the SMS-SUBMIT message when the short message center receives the SMS-SUBMIT message. The information element identifies whether the short message sender enables the short message unreachable delete function.
If the SMS-SUBMIT message does not contain the short message unreachable delete information element, the short message center considers that the short message unreachable delete function is not enabled.
The above implementation scheme mainly implements the short message unreachable processing function by extending the existing 3GPP to the related SMS protocol and matching the related application of the upper layer SMS, and certainly, the short message unreachable processing function can also be implemented by the following scheme:
for unreachable forwarding functions, include:
1 short message sender when sending SMS-SUBMIT message, can insert a special identifier in the specific position of the short message text data segment in the TP-UD field, to identify whether the short message unreachable forwarding function is enabled and the corresponding unreachable forwarding waiting time and unreachable forwarding destination address.
2 after receiving SMS-SUBMIT message, the short message center extracts the special identifier at the corresponding position of the short message text data segment in the TP-UD field, and identifies whether the short message unreachable forwarding function is started or not, and the corresponding unreachable forwarding waiting time and unreachable forwarding target address.
3 the specific implementation process is similar to the above-described process except that the short message unreachable forwarding information is transmitted between the short message sender and the short message center through the short message text data area in the TP-UD field of the SMS-SUBMIT message, instead of through the short message unreachable forwarding information element in the TP-UD field Header of the SMS-SUBMIT message.
For unreachable delete functions include:
1 short message sender when sending SMS-SUBMIT message, can insert a special identifier in the specific position of the short message text data segment in the TP-UD field to identify whether the short message unreachable delete function is enabled.
2 after receiving SMS-SUBMIT message, the short message center extracts the special identifier at the corresponding position of the short message text data segment in the TP-UD field to identify whether the short message unreachable deleting function is started.
3 the specific implementation process is similar to the above-described process except that the short message inaccessible deletion information is transmitted between the short message sender and the short message center through the short message text data area in the TP-UD field of the SMS-SUBMIT message, instead of through the short message inaccessible deletion information element in the TP-UD field Header of the SMS-SUBMIT message.
In summary, the present invention implements the above-mentioned functions in the short message service center by extending the existing SMS related protocol (3GPP TS23.040V3.9.0) in 3 GPP.
If the short message can not be sent to the short message receiver normally due to the reasons of the short message receiver being off or not in the signed network service area, the short message receiver being insufficient in storage space or failed in sending and the like, the short message center is responsible for forwarding the short message to other mobile terminal users appointed by the short message sender within the short message unreachable forwarding waiting time set by the short message sender.
Meanwhile, the short message center is responsible for automatically deleting the short message when the short message cannot be normally issued to the short message receiver due to shutdown or no short message receiver in a signed network service area, insufficient storage space of the short message receiver or failure in network transmission and the like.
The automatic deletion of the short message in the short message center has the following advantages: avoiding unnecessary embarrassment and embarrassment. Some sms content may only be able to correctly understand its meaning in a specific context, and if it is left out of that specific context, it may be ambiguous or even misunderstood, causing unnecessary inconvenience and embarrassment. Short messages of this type generally require immediate delivery to the recipient, and if they cannot be reached, push-to-send is not as good as not.
Therefore, the short message sender has more control right to the short message, and the short message service is convenient to better serve the user.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.