Summary of the invention
1, goal of the invention: the objective of the invention is at the deficiencies in the prior art, a kind of short message filter method is provided, be convenient to telecom operators and help the user to filter out it effectively not wish the short message that receives.
2, technical scheme: a kind of short message filter method of the present invention, principal character is: replaces user's telephone number with other numerals and comes the filtering short message, comprising following steps:
(1) in the approach of short message transmission, serial connection short message filtering device, this device receives the packet of carrying short message earlier, more corresponding packet is sent back on the transmission path after the filtration.The approach of short message transmission can comprise and the computer network of short-message system interconnection and short message signaling net etc.
(2) do not wish the short message received for the user, the short message filtering device sends back to it on the transmission path after recipient's telephone number of this short message is replaced to other numerals again, guarantee that the user can not receive this short message, thereby reach purpose its filtering.For example with the computer network of short-message system interconnection on, fall if will send to certain bar short message filtering of 13987654321, can in the packet of this short message of carrying, change telephone number 13987654321 into other numerals as 90000000000 (supposing that this number is used to the special short message that is filtered that receives).For other short messages, the short message filtering device then need not the packet that carries it is carried out any modification, but transparent forwarding.
Whether in order to the identification short message is that the required method of user is varied, the present invention makes with the following method: after the short message filtering device is received short message, send out the feature that comprises telephone number in the frequency of the identical or close short message of content and the short message text according to same telephone number, identify this telephone number and whether carrying out short-message cluster-sending, for example telephone number 13012345678 has sent 100 following short messages within an hour: " you are good; my Ke Daikai of company VAT invoice, favorable price.Please get in touch Mr. Zhang, phone 13011111111 ", system can identify 13012345678 these numbers and carrying out short-message cluster-sending so, and the user can set the short message that filters out all mass-sendings in advance.The short message filtering device also can be according to prior telephone number black and white lists and the keyword black and white lists of setting of user, whether identify short message is that the user is required, for example certain user sets, every short message that comes from 13912345678 short message or have " generation draws a bill " keyword will filter out without exception.
The short message filtering device can will be stored by the short message of filtering, uses and user inquiring for statistics.For example telecom operators can inquire about, and how many bars the short message which number sends is filtered, and the user also can inquire about, and how many short messages which number sends to him is filtered, content be what etc.
In addition, for reducing the short message filtering device reliability of original short-message system is caused harmful effect, above-mentioned steps (1) can be connected in series three-tier switch in the delivering path of short message, this three-tier switch and short message filtering device interconnecting, utilize the tactful routing function of three-tier switch, make short message data stream pass the short message filtering device.Because the reliability based on the short message filtering device of computer generally is lower than three-tier switch, so three-tier switch can be serially connected in the delivering path of short message, and then with short message filtering device and three-tier switch interconnection, and utilize the tactful routing function of three-tier switch, allow short message data stream pass the short message filtering device.Such benefit be the short message filtering device if fault as shutdown, then the tactful route of three-tier switch can lose efficacy, the result is that short message data stream no longer passes the short message filtering device, though short message no longer is filtered in this case, all short message communications are unaffected.
3, beneficial effect: telecom operators utilize method provided by the invention to carry out short message filtering, can significantly improve the user satisfaction, safeguard social harmony.On the technology of the present invention original short-message system be need not to change substantially, thereby realization is with low cost.
Embodiment
The embodiment of this programme can be with reference to logical schematic as shown in Figure 1.In the delivering path of short message, be connected in series a short message filtering computer, as an example, machine master 13987654321 has required telecom operators to filter out all mass-sendings in advance and has given his short message, the short message filtering computer discovery telephone number 13900000001 mass-sending, and this sending grouped short message has one to issue 13987654321, then the IP of short message filtering computer this short message of carrying that it can be received bag is made following modification: change recipient's number of this short message into 90000000000 (supposing that this number is used to the special short message that is filtered that receives), and the source IP address of this IP bag, target ip address all remains unchanged, the body part of short message also remain unchanged (verification of IP and upper-layer protocol thereof and can revise on demand), to this IP guarantee the repair free of charge changed after, the short message filtering computer outputs to this IP bag on the short message transmission approach again, and machine master 13987654321 can not receive this short message of 13900000001 mass-sendings.
In the use of reality, for reducing the short message filtering device reliability of original short-message system is caused harmful effect, can be with reference to logical schematic shown in Figure 2.The three-tier switch of Fig. 2 is serially connected in the delivering path of short message, and the short message filtering computer then interconnects with three-tier switch, utilizes the tactful routing function of three-tier switch, allows short message data stream pass the short message filtering computer shown in Fig. 2 (a) dotted line.The short message filtering computer if fault as situations such as shutdown, netting twine disconnections, then the tactful route of three-tier switch can cease to be in force automatically, the result is that short message data stream no longer passes the short message filtering computer shown in Fig. 2 (b) dotted line, though short message no longer is filtered in this case, all short message communications are unaffected.
In addition, the short message filtering computer can be distributed throughout the country in actual use, and they need be sent to related management system with the daily record of filtering, and are convenient to statistical query, management system also needs in time the requirement of short message filtering is issued to all short message filtering computers.