Receiving end short message interception method, device, equipment, medium and product
Through the coordinated work of the VOLTE SMS gateway and the SMS interception system, the problem of low SMS interception efficiency in the existing technology is solved, efficient interception detection of ordinary and roaming SMS is achieved, and the efficiency of SMS transmission is improved.
Patent Information
- Application Number
- CN202510264962.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-06-06
AI Technical Summary
In the prior art, SMS interception efficiency is low, especially inability to effectively intercept SMS from roaming users, and the signaling link during SMS transmission is added, resulting in reduced transmission cost and efficiency.
Receive SMS messages from the receiving end through the VOLTE SMS gateway, and send an interception detection request to the SMS intercepting system, and decide whether to send the SMS to the target user or delete the SMS based on the detection results.
It realizes efficient interception and detection of ordinary SMS and roaming SMS, avoids increasing signaling links and improves SMS interception efficiency.
Smart Images

Figure CN120111499A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security technology, and in particular to a method, device, equipment, medium and product for intercepting short messages at a receiving end. Background Art
[0002] With the development of communication technology, the amount of information transmitted through communication networks continues to increase. Faced with massive amounts of information, it is necessary to screen the information and accurately transmit safe and legal information to the target users or devices; illegal or vulnerable information needs to be intercepted or destroyed.
[0003] In the prior art, the method for intercepting text messages is to connect physical devices in series on the out-of-province circuit of the Signal Transfer Point (STP), the link between the STP and the Voice over Long-Term Evolution (VOLTE) SMS gateway and the Mobile Switching Center (MSC) to detect and intercept text messages sent to users in real time.
[0004] Since the SMS interception method in the prior art cannot intercept and protect roaming users and increases the signaling link in the SMS transmission process, the prior art has the technical problem of low SMS interception efficiency. Summary of the invention
[0005] The embodiments of the present application provide a receiving-end text message interception method, device, equipment, medium and product to achieve the technical effect of improving the efficiency of text message interception.
[0006] In a first aspect, an embodiment of the present application provides a receiving end SMS interception method, which is applied to a VOLTE SMS gateway, and the method includes:
[0007] In response to the received receiving end text message, sending an interception detection request to a text message interception system corresponding to the receiving end text message, wherein the interception detection request includes the receiving end text message; wherein the receiving end text message is a common text message or a roaming text message;
[0008] Receive the detection results returned by the SMS interception system;
[0009] When the test result indicates that the test is passed, the receiving end SMS is sent to the target user corresponding to the receiving end SMS;
[0010] When the test result indicates that the test fails, the receiving end SMS is deleted.
[0011] In a possible implementation, in response to a received receiving end text message, sending an interception detection request to a text message interception system corresponding to the receiving end text message includes:
[0012] Receive a receiving SMS from a SMS service center and store the receiving SMS in a buffer area;
[0013] Generate a unique task ID for each receiving SMS message;
[0014] According to the task identifier, an interception detection request is sent to the SMS interception system corresponding to the receiving SMS, wherein the interception detection request also includes the task identifier;
[0015] Accordingly, the detection result includes a task identifier.
[0016] In a possible implementation, the method further includes:
[0017] Based on the pre-stored preset interface information, determine the target network address of the SMS interception system corresponding to the receiving SMS; wherein the preset interface information includes multiple areas and the corresponding network addresses of the SMS interception system, and the multiple areas include the area to which the target user belongs;
[0018] Accordingly, an interception detection request is sent to the SMS interception system corresponding to the receiving SMS, including:
[0019] According to the target network address, an interception detection request is sent to the SMS interception system corresponding to the receiving SMS.
[0020] In a possible implementation, after storing the receiving end short message in the buffer area, the method further includes:
[0021] Extracting SMS features of the receiving SMS based on the receiving SMS;
[0022] Based on the preset whitelist and SMS features pre-stored in the cache area, determining whether the preset whitelist contains the SMS features of the receiving end SMS;
[0023] If yes, the receiving SMS is sent to the target user corresponding to the receiving SMS.
[0024] In a possible implementation, determining the target network address of the SMS interception system corresponding to the receiving SMS based on the pre-stored preset interface information includes:
[0025] Parse the receiving SMS and obtain the called user number segment in the receiving SMS;
[0026] Determine the area to which the target user corresponding to the receiving SMS belongs based on the called user number segment;
[0027] Based on the area to which the target user belongs, the network address corresponding to the SMS interception system in the same area is searched from the preset interface information, and it is determined as the target network address.
[0028] In a possible implementation, after sending an interception detection request to a text message interception system corresponding to the receiving end text message, the method further includes:
[0029] Calculate the waiting time after the interception detection request is sent to the SMS interception system;
[0030] When the waiting time exceeds the preset time, the receiving end SMS is sent to the target user corresponding to the receiving end SMS.
[0031] In a possible implementation, sending an interception detection request to a text message interception system corresponding to a receiving text message also includes:
[0032] Within a preset time period, the receiving end SMS with the same target network address is determined as the SMS to be detected;
[0033] If the number of SMS messages to be detected exceeds a preset threshold, a multi-task interception detection request is generated based on each SMS message to be detected, a task identifier corresponding to each SMS message to be detected, and a target network address of the SMS interception system;
[0034] Send a multi-task interception detection request to the SMS interception system according to the target network address;
[0035] The multi-task interception detection request includes the task identifier of each SMS to be detected.
[0036] In a possible implementation, before sending an interception detection request to a text message interception system corresponding to the receiving end text message in response to the received receiving end text message, the method further includes:
[0037] In response to the zone registration request, obtaining a mapping relationship between the zone and the network address of the SMS interception system;
[0038] The mapping relationship between the area and the network address of the SMS interception system is added to the preset interface information to obtain the updated preset interface information.
[0039] In a second aspect, an embodiment of the present application provides a receiving end SMS interception device, comprising:
[0040] A first acquisition module: configured to send an interception detection request to a text message interception system corresponding to the receiving end text message in response to the received receiving end text message, wherein the interception detection request includes the receiving end text message; wherein the receiving end text message is a common text message or a roaming text message;
[0041] The second acquisition module is used to receive the detection result returned by the SMS interception system;
[0042] The first processing module is used to send the receiving end SMS to the target user corresponding to the receiving end SMS when the detection result indicates that the detection is passed;
[0043] The second processing module is used to delete the receiving end short message when the detection result indicates that the detection fails.
[0044] In a possible implementation manner, the first acquisition module is further configured to:
[0045] Receive a receiving SMS from a SMS service center and store the receiving SMS in a buffer area;
[0046] Generate a unique task ID for each receiving SMS message;
[0047] According to the task identifier, an interception detection request is sent to the SMS interception system corresponding to the receiving SMS, wherein the interception detection request also includes the task identifier;
[0048] Accordingly, the detection result includes a task identifier.
[0049] In a possible implementation manner, the first acquisition module is further configured to:
[0050] Based on the pre-stored preset interface information, determine the target network address of the SMS interception system corresponding to the receiving SMS; wherein the preset interface information includes multiple areas and the corresponding network addresses of the SMS interception system, and the multiple areas include the area to which the target user belongs;
[0051] Accordingly, the first acquisition module is also used for:
[0052] According to the target network address, an interception detection request is sent to the SMS interception system corresponding to the receiving SMS.
[0053] In a possible implementation manner, the first acquisition module is further configured to:
[0054] Extracting SMS features of the receiving SMS based on the receiving SMS;
[0055] Based on the preset whitelist and SMS features pre-stored in the cache area, determining whether the preset whitelist contains the SMS features of the receiving end SMS;
[0056] If yes, the receiving SMS is sent to the target user corresponding to the receiving SMS.
[0057] In a possible implementation manner, the first acquisition module is further configured to:
[0058] Parse the receiving SMS and obtain the called user number segment in the receiving SMS;
[0059] Determine the area to which the target user corresponding to the receiving SMS belongs based on the called user number segment;
[0060] Based on the area to which the target user belongs, the network address corresponding to the SMS interception system in the same area is searched from the preset interface information, and it is determined as the target network address.
[0061] In a possible implementation manner, the second acquisition module is further used to:
[0062] Calculate the waiting time after the interception detection request is sent to the SMS interception system;
[0063] When the waiting time exceeds the preset time, the receiving end SMS is sent to the target user corresponding to the receiving end SMS.
[0064] In a possible implementation manner, the first acquisition module is further configured to:
[0065] Within a preset time period, the receiving end SMS with the same target network address is determined as the SMS to be detected;
[0066] If the number of SMS messages to be detected exceeds a preset threshold, a multi-task interception detection request is generated based on each SMS message to be detected, a task identifier corresponding to each SMS message to be detected, and a target network address of the SMS interception system;
[0067] Send a multi-task interception detection request to the SMS interception system according to the target network address;
[0068] The multi-task interception detection request includes the task identifier of each SMS to be detected.
[0069] In a possible implementation manner, the device further includes a third processing module, configured to:
[0070] In response to the zone registration request, obtaining a mapping relationship between the zone and the network address of the SMS interception system;
[0071] The mapping relationship between the area and the network address of the SMS interception system is added to the preset interface information to obtain the updated preset interface information.
[0072] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0073] Memory stores computer-executable instructions;
[0074] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and various possible implementations of the first aspect.
[0075] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above first aspect and various possible implementation methods of the first aspect.
[0076] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and various possible implementation methods of the first aspect.
[0077] The embodiments of the present application provide a method, device, equipment, medium and product for intercepting SMS messages at the receiving end; based on the VOLTE SMS gateway, the receiving SMS messages are received, and an interception detection request is sent to the SMS interception system corresponding to the receiving SMS messages, and the detection result returned by the SMS interception system is obtained; when the detection result indicates that the detection is passed, the receiving SMS messages are sent to the corresponding target user; when the detection result indicates that the detection is not passed, the receiving SMS messages are deleted. By sending the receiving SMS messages of the VOLTE SMS gateway to the SMS interception system, the SMS interception detection is realized, so that the receiving SMS messages are forwarded or deleted according to the detection results at the VOLTE SMS gateway, so as to achieve the purpose of SMS interception; compared with the prior art, the receiving SMS interception method of the present application can utilize the VOLTE SMS gateway to process ordinary SMS messages and roaming SMS messages, and realize SMS interception detection in combination with the SMS interception system, and process different types of receiving SMS messages without increasing the physical link of the signaling communication, thereby achieving the technical effect of improving the efficiency of SMS interception. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0079] Figure 1 Schematic diagram of the process of receiving SMS interception method provided by this application Figure 1 ;
[0080] Figure 2 Schematic diagram of the process of receiving SMS interception method provided by this application Figure 2 ;
[0081] Figure 3 A schematic diagram of the network architecture of the receiving SMS interception system provided for this application;
[0082] Figure 4 A timing diagram of a method for intercepting short messages at a receiving end provided in an embodiment of the present application;
[0083] Figure 5 A schematic diagram of the structure of the receiving SMS interception device provided by this application;
[0084] Figure 6 A schematic diagram of the structure of the electronic device provided in this application.
[0085] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0086] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0087] In the prior art, the methods for intercepting SMS messages at the receiving end are mainly: connecting physical devices in series in the SMS communication link and using the physical devices to intercept and filter SMS messages; or deploying an interception program on the user terminal and implementing SMS interception through the interception program.
[0088] However, in actual SMS interception, when physical devices are connected in series to intercept, when the user corresponding to the current receiving SMS is a roaming user, the receiving SMS may not pass through the physical device, resulting in the problem that the receiving SMS cannot be intercepted; at the same time, the physical device connection method increases the signaling link in the SMS transmission process, increases the SMS transmission cost, and further reduces the SMS transmission efficiency. The method of deploying applications on user terminals cannot guarantee that the corresponding interception program is deployed on each user terminal, resulting in the inability to effectively intercept some SMS. Therefore, the technical problem of low SMS interception efficiency exists in the prior art.
[0089] In response to the above technical problems, this application proposes the following technical ideas: using VOLTE SMS gateway to implement SMS interception; specifically: using VOLTE SMS gateway to receive receiving SMS from different SMS service centers; according to the SMS interception system corresponding to the receiving SMS, sending an interception detection request to the SMS interception system, and obtaining the detection result of the SMS interception system for the receiving SMS; when the detection result indicates that the detection is passed, the receiving SMS is sent to the corresponding target user, and when the detection result indicates that the detection is not passed, the receiving SMS is deleted from the VOLTE SMS gateway. By using the SMS gateway and the SMS interception system, the interception detection of the receiving SMS is implemented, which can process ordinary SMS and roaming SMS, and can implement the interception of different types of receiving SMS without adding physical equipment or signaling links, thereby achieving the technical effect of improving the efficiency of SMS interception.
[0090] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0091] Figure 1 Schematic diagram of the process of receiving SMS interception method provided by this application Figure 1 ,like Figure 1 As shown, the method includes:
[0092] S101. In response to a received receiving end text message, an interception detection request is sent to a text message interception system corresponding to the receiving end text message.
[0093] It should be noted that the executor of this embodiment is the VOLTE SMS gateway.
[0094] In this step, the interception detection request includes the receiving SMS; the receiving SMS is a common SMS or a roaming SMS. Common SMS refers to SMS sent or received by the user within the coverage of the operator network in the home location; roaming SMS refers to SMS sent by the user through the operator network in the visited location after leaving the home location network. The home location refers to the location where the user's mobile phone number is registered.
[0095] Optionally, a possible implementation of receiving a receiving SMS message and sending an interception detection request to a SMS interception system is:
[0096] S1011. Receive a receiving SMS message from a SMS service center, and store the receiving SMS message in a buffer area.
[0097] In this step, the cache area is the cache area in the VOLTE SMS gateway, which is used to temporarily store the receiving SMS.
[0098] Optionally, after the receiving end SMS is stored in the buffer area, the receiving end SMS may be quickly intercepted and detected using the whitelist in the buffer area. A possible implementation of the fast detection is:
[0099] a1. Extract the SMS features of the receiving SMS based on the receiving SMS.
[0100] In this step, the SMS features may include: text content, calling user number, called user number, timestamp, SMS length, SMS keywords, and SMS sentiment tendency.
[0101] Exemplarily, the method of extracting the receiving end SMS features may be: extracting multiple SMS features from the receiving end SMS using regular expressions; or extracting multiple SMS features using word segmentation and frequency induction.
[0102] a2. Based on the preset whitelist and SMS features pre-stored in the cache area, determine whether the preset whitelist contains the SMS features of the receiving end SMS.
[0103] The SMS feature comparison and judgment method in this step can be: compare the SMS features with the features in the preset whitelist to determine whether they are consistent. If there are consistent features, determine that the preset whitelist contains the SMS features of the receiving SMS.
[0104] Exemplarily, feature extraction is performed based on the receiving SMS to obtain the calling user number corresponding to the receiving SMS; based on the calling user number, a query is made to see whether the calling user number exists in a preset whitelist; if so, it is determined that the preset whitelist contains SMS features of the receiving SMS.
[0105] a3. If yes, the receiving SMS is sent to the target user corresponding to the receiving SMS.
[0106] S1012. Generate a unique task identifier for each receiving SMS message.
[0107] In this step, the task identifier refers to a unique identifier corresponding to each receiving-end text message, and is used to mark the interception detection request corresponding to each receiving-end text message and the detection result corresponding to the interception detection request.
[0108] S1013. Send an interception detection request to the SMS interception system corresponding to the receiving SMS according to the task identifier.
[0109] In this step, the interception detection request also includes the task identifier; correspondingly, the detection result includes the task identifier.
[0110] Optionally, a possible implementation of sending an interception detection request to the SMS interception system is:
[0111] b1. Get the network address corresponding to the SMS interception system.
[0112] b2. Generate an interception detection request based on the receiving SMS and task identifier.
[0113] b3. Sending an interception detection request to the SMS interception system based on the network address.
[0114] Optionally, before receiving the SMS message, the VOLTE SMS gateway can also update the preset interface information according to the registration behavior of the area. A possible implementation method of updating the preset interface information is:
[0115] c1. In response to the area registration request, obtain the mapping relationship between the area and the network address of the SMS interception system.
[0116] c2. Add the mapping relationship between the area and the network address of the SMS interception system to the preset interface information to obtain the updated preset interface information.
[0117] It should be noted that the method of sending the interception detection request to the SMS interception system in this step is as follows Figure 2 Further explanation is given in the illustrated embodiment and redundant elaboration is omitted here.
[0118] S102: Receive the detection result returned by the SMS interception system.
[0119] In this step, the detection result includes the task identifier corresponding to the receiving end text message and the detection result of the receiving end text message corresponding to the task identifier.
[0120] The detection result may include detection results corresponding to multiple receiving-end text messages and task identifiers, and the task identifier is used to clarify the detection result corresponding to each receiving-end text message.
[0121] S103: When the detection result indicates that the detection is passed, the receiving end text message is sent to a target user corresponding to the receiving end text message.
[0122] Optionally, a possible implementation method of sending the receiving SMS to the target user is:
[0123] S1031. Determine the target user number based on the receiving SMS message.
[0124] S1032. Search for a target route based on the target user number segment.
[0125] S1033. Determine whether the target route corresponding to the target user segment belongs to the VOLTE network.
[0126] S1034. If the target user belongs to the VOLTE network, the receiving SMS is sent to the target user based on the target route.
[0127] S104: When the detection result indicates that the detection fails, the receiving end text message is deleted.
[0128] In this step, the receiving SMS is stored in the cache area of the VOLTE gateway. When the test result indicates that the test fails, it needs to be deleted from the cache area. When deleting the receiving SMS, the task identifier corresponding to the receiving SMS needs to be deleted from the cache area. At the same time, a request to reject repeated reception can be sent to the SMS service center to prevent the SMS service center from repeatedly sending the intercepted receiving SMS.
[0129] Optionally, when the test result is not received, it is also possible to determine whether to send a text message based on the waiting time after the interception test request is sent, specifically:
[0130] S1041. Calculate the waiting time after the interception detection request is sent to the SMS interception system.
[0131] In this step, the waiting time can be obtained by:
[0132] When sending an interception detection request to the SMS interception system, the sending system time when the interception detection request is sent is recorded; the current system time is obtained, and the waiting time of the interception detection request is calculated based on the current system time and the sending system time.
[0133] S1042: When the waiting time exceeds a preset time, the receiving end text message is sent to a target user corresponding to the receiving end text message.
[0134] Optionally, in one possible implementation, if the current receiving SMS has been successfully sent to the target user and it is determined that the target user has received the receiving SMS, a message of successful sending can be fed back to the SMS service center; and the residence time of the sent receiving SMS in the cache area can be detected. If the residence time exceeds the pre-set residence time, the sent receiving SMS and the corresponding task identifier are deleted from the cache area.
[0135] The receiving-end SMS interception method provided in the embodiment of the present application is based on receiving the receiving-end SMS through the VOLTE SMS gateway, and sending an interception detection request to the SMS interception system corresponding to the receiving-end SMS, and obtaining the detection result returned by the SMS interception system; when the detection result indicates that the detection is passed, the receiving-end SMS is sent to its corresponding target user; when the detection result indicates that the detection is not passed, the receiving-end SMS is deleted. By sending the receiving-end SMS of the VOLTE SMS gateway to the SMS interception system, the SMS interception detection is realized, so that the receiving-end SMS is forwarded or deleted according to the detection result at the VOLTE SMS gateway, so as to achieve the purpose of SMS interception; compared with the prior art, the receiving-end SMS interception method of the present application can utilize the VOLTE SMS gateway to process ordinary SMS and roaming SMS, and realize SMS interception detection in combination with the SMS interception system, and process different types of receiving-end SMS without increasing the physical link of the signaling communication, thereby achieving the technical effect of improving the efficiency of SMS interception.
[0136] Figure 2 Schematic diagram of the process of receiving SMS interception method provided by this application Figure 2 , in the above Figure 1 Based on the embodiment shown, this embodiment further explains the sending of the interception detection request in step S102, such as Figure 2 As shown, the method includes:
[0137] S201. Determine a target network address of a short message interception system corresponding to a receiving short message based on pre-stored preset interface information.
[0138] In this step, the preset interface information includes multiple areas and the network address of the corresponding SMS interception system, and the multiple areas include the area to which the target user belongs.
[0139] Optionally, a possible implementation manner of determining the target network address is:
[0140] S2011. parse the receiving SMS and obtain the called user number segment in the receiving SMS.
[0141] In this step, the method for obtaining the called user number segment can be:
[0142] Based on regular expressions or keyword extraction, the field information of the field to which the called user number segment belongs is obtained from the receiving end information; the called user number is extracted from it through regular matching based on the field information; and the number at a preset position in the called user number is determined as the called user number segment.
[0143] S2012. Determine the area to which the target user corresponding to the receiving SMS belongs based on the called user number segment.
[0144] In this step, the method for obtaining the region to which the target user belongs can be:
[0145] Query the mapping relationship between the called user number segment and the area, determine the area corresponding to the called user number segment, and thus determine the area to which the target user belongs.
[0146] S2013. Based on the region to which the target user belongs, search the preset interface information for a network address corresponding to the SMS interception system in the same region, and determine it as the target network address.
[0147] S202: Send an interception detection request to the SMS interception system corresponding to the receiving SMS according to the target network address.
[0148] In this step, the method of sending an interception detection request to the SMS interception system is:
[0149] Based on the target network address, the receiving SMS, and the task identifier corresponding to the receiving SMS, a SMS interception detection request is generated, and the SMS interception detection request is sent to the SMS interception system according to the target network address.
[0150] Optionally, if a large number of receiving end text messages have the same target network address in a short period of time, multiple receiving end text messages can be sent to the text message interception system for interception detection at the same time. A possible implementation method for interception detection of multiple receiving end text messages is:
[0151] S2021. Within a preset time period, determine the receiving end text messages with the same target network address as the text messages to be detected.
[0152] S2022: If the number of the SMS messages to be detected exceeds a preset threshold, a multi-task interception detection request is generated based on each SMS message to be detected, a task identifier corresponding to each SMS message to be detected, and a target network address of the SMS interception system.
[0153] Exemplarily, when the number of text messages to be detected exceeds 1000, a multi-task detection request corresponding to these 1000 text messages to be detected can be generated, and the detection request includes the task representation corresponding to each text message to be detected, the content of the text messages to be detected, and the target network address of the text message interception system to which the text messages need to be sent.
[0154] S2023. Send a multi-task interception detection request to the SMS interception system according to the target network address.
[0155] In this step, the multi-task interception detection request includes the task identifier of each SMS to be detected.
[0156] It should be noted that the detection result corresponding to the multi-task interception detection system includes the detection result corresponding to each SMS to be detected and the task identifier; the detection result corresponding to each SMS to be detected can be determined according to the task representation.
[0157] In this embodiment, the preset interface information is used to determine the target network address of the SMS interception system, so as to realize the sending of interception detection requests. At the same time, multi-task interception detection requests are used to realize efficient request sending, reduce the access frequency of the VOLTE SMS gateway, and further increase the SMS detection efficiency.
[0158] Based on the above embodiments, the present application embodiment provides a network architecture of a receiving end SMS interception system. Figure 3 This is a schematic diagram of the network architecture of the receiving SMS interception system provided by this application. Figure 3 As shown, the system includes:
[0159] The SMS interception system 301 is used to receive an interception detection request from the SMS gateway 303 and feed back a detection result.
[0160] The SMS service center 302 is used to forward the received SMS to the SMS gateway 303.
[0161] The SMS gateway 303 is used to receive the receiving SMS, generate an interception detection request according to the receiving SMS and send it to the SMS interception system 301, and obtain the detection result fed back by the SMS interception system 301. The SMS gateway 303 is connected to the SMS interception system 301 through the SMPP+ protocol; when the detection result is that the detection passes, the receiving SMS is sent to the user device 304.
[0162] User equipment 304 is used to receive a receiving SMS message.
[0163] Figure 4 The timing diagram of the receiving end SMS interception method provided in the embodiment of the present application is shown in Figure 3 Based on the embodiment shown, Figure 4 The method shown includes:
[0164] A1. The SMS service center receives the SMS from the calling user.
[0165] A2. The SMS service center performs a routing query on the receiving SMS to determine the routing information.
[0166] A3. The SMS service center sends the receiving SMS to the corresponding VOLTE SMS gateway based on the routing information.
[0167] A4. The VOLTE SMS gateway sends the receiving SMS to the SMS interception system for interception detection and obtains the interception detection results.
[0168] A5. When the test result indicates that the test fails, the VOLTE SMS gateway sends a specific failure code to the SMS service center, indicating that the receiving SMS was intercepted and not sent, and the SMS service center will no longer re-send the receiving SMS.
[0169] A6. When the test result indicates that the test has passed, the VOLTE SMS gateway will send the receiving SMS to the user device normally, and feed back the sending success code fed back by the user device to the SMS service center, indicating that the SMS was sent successfully.
[0170] Figure 5 The schematic diagram of the structure of the receiving end SMS interception device provided by this application is as follows: Figure 5 As shown, the receiving end SMS interception device provided in this embodiment includes:
[0171] The first acquisition module 501 is used to respond to the received receiving end text message and send an interception detection request to the text message interception system corresponding to the receiving end text message, wherein the interception detection request includes the receiving end text message; wherein the receiving end text message is a common text message or a roaming text message;
[0172] The second acquisition module 502 is used to receive the detection result returned by the SMS interception system;
[0173] The first processing module 503 is used to send the receiving end SMS to the target user corresponding to the receiving end SMS when the detection result indicates that the detection is passed;
[0174] The second processing module 504 is used to delete the receiving end short message when the detection result indicates that the detection fails.
[0175] In a possible implementation manner, the first acquisition module 501 is further configured to:
[0176] Receive a receiving SMS from a SMS service center and store the receiving SMS in a buffer area;
[0177] Generate a unique task ID for each receiving SMS message;
[0178] According to the task identifier, an interception detection request is sent to the SMS interception system corresponding to the receiving SMS, wherein the interception detection request also includes the task identifier;
[0179] Accordingly, the detection result includes a task identifier.
[0180] In a possible implementation manner, the first acquisition module 501 is further configured to:
[0181] Based on the pre-stored preset interface information, determine the target network address of the SMS interception system corresponding to the receiving SMS; wherein the preset interface information includes multiple areas and the corresponding network addresses of the SMS interception system, and the multiple areas include the area to which the target user belongs;
[0182] Accordingly, the first acquisition module 501 is further used for:
[0183] According to the target network address, an interception detection request is sent to the SMS interception system corresponding to the receiving SMS.
[0184] In a possible implementation manner, the first acquisition module 501 is further configured to:
[0185] Extracting SMS features of the receiving SMS based on the receiving SMS;
[0186] Based on the preset whitelist and SMS features pre-stored in the cache area, determining whether the preset whitelist contains the SMS features of the receiving end SMS;
[0187] If yes, the receiving SMS is sent to the target user corresponding to the receiving SMS.
[0188] In a possible implementation manner, the first acquisition module 501 is further configured to:
[0189] Parse the receiving SMS and obtain the called user number segment in the receiving SMS;
[0190] Determine the area to which the target user corresponding to the receiving SMS belongs based on the called user number segment;
[0191] Based on the area to which the target user belongs, the network address corresponding to the SMS interception system in the same area is searched from the preset interface information, and it is determined as the target network address.
[0192] In a possible implementation manner, the second acquisition module 502 is further configured to:
[0193] Calculate the waiting time after the interception detection request is sent to the SMS interception system;
[0194] When the waiting time exceeds the preset time, the receiving end SMS is sent to the target user corresponding to the receiving end SMS.
[0195] In a possible implementation manner, the first acquisition module 501 is further configured to:
[0196] Within a preset time period, the receiving end SMS with the same target network address is determined as the SMS to be detected;
[0197] If the number of SMS messages to be detected exceeds a preset threshold, a multi-task interception detection request is generated based on each SMS message to be detected, a task identifier corresponding to each SMS message to be detected, and a target network address of the SMS interception system;
[0198] Send a multi-task interception detection request to the SMS interception system according to the target network address;
[0199] The multi-task interception detection request includes the task identifier of each SMS to be detected.
[0200] In a possible implementation manner, the device further includes a third processing module, configured to:
[0201] In response to the zone registration request, obtaining a mapping relationship between the zone and the network address of the SMS interception system;
[0202] The mapping relationship between the area and the network address of the SMS interception system is added to the preset interface information to obtain the updated preset interface information.
[0203] The test case generation device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0204] Figure 6 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device provided in this embodiment includes: at least one processor 601 and a memory 602. Optionally, the device further includes a communication component 603. The processor 601, the memory 602 and the communication component 603 are connected via a bus 604.
[0205] In the specific implementation process, at least one processor 601 executes the computer execution instructions stored in the memory 602, so that at least one processor 601 executes the above-mentioned receiving end SMS interception method or test case generation method.
[0206] The specific implementation process of the processor 601 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0207] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.
[0208] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
[0209] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0210] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned receiving-end SMS interception method or test case generation method.
[0211] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned receiving-end SMS interception method or test case generation method is implemented.
[0212] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0213] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0214] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0215] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0216] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0217] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0218] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0219] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for intercepting short messages at a receiving end, characterized in that: Applied to a long term evolution voice bearer VOLTE SMS gateway, the method comprises: In response to the received receiving end text message, sending an interception detection request to a text message interception system corresponding to the receiving end text message, wherein the interception detection request includes the receiving end text message; wherein the receiving end text message is a common text message or a roaming text message; Receiving the detection result returned by the SMS interception system; When the detection result indicates that the detection is passed, the receiving end text message is sent to a target user corresponding to the receiving end text message; When the detection result indicates that the detection fails, the receiving end short message is deleted.
2. The method according to claim 1, characterized in that: The step of sending an interception detection request to a text message interception system corresponding to the receiving end text message in response to the received receiving end text message comprises: Receiving the receiving end SMS from the SMS service center, and storing the receiving end SMS in a buffer area; Generate a unique task ID for each receiving SMS message; According to the task identifier, sending an interception detection request to the SMS interception system corresponding to the receiving SMS, wherein the interception detection request also includes the task identifier; Correspondingly, the detection result includes the task identifier.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Based on the pre-stored preset interface information, determining the target network address of the SMS interception system corresponding to the receiving SMS; wherein the preset interface information includes a plurality of regions and the corresponding network addresses of the SMS interception system, wherein the plurality of regions includes the region to which the target user belongs; Correspondingly, the sending of an interception detection request to the SMS interception system corresponding to the receiving SMS includes: The interception detection request is sent to the SMS interception system corresponding to the receiving SMS according to the target network address.
4. The method according to claim 2, characterized in that: After storing the receiving end short message in the buffer area, the method further includes: Based on the receiving end text message, extracting text message features of the receiving end text message; Based on the preset whitelist pre-stored in the cache area and the SMS feature, determining whether the preset whitelist contains the SMS feature of the receiving end SMS; If so, the receiving end SMS is sent to the target user corresponding to the receiving end SMS.
5. The method according to claim 3, characterized in that: The step of determining the target network address of the SMS interception system corresponding to the receiving SMS based on the pre-stored preset interface information includes: Parsing the receiving end SMS to obtain the called user number segment in the receiving end SMS; Determine the area to which the target user corresponding to the receiving SMS belongs based on the called user number segment; Based on the area to which the target user belongs, the network address corresponding to the SMS interception system in the same area is searched from the preset interface information, and is determined as the target network address.
6. The method according to claim 5, characterized in that After sending the interception detection request to the SMS interception system corresponding to the receiving SMS, the method further includes: Calculating the waiting time after the interception detection request is sent to the SMS interception system; When the waiting time exceeds a preset time, the receiving end short message is sent to a target user corresponding to the receiving end short message.
7. The method according to claim 3, characterized in that The sending of an interception detection request to the SMS interception system corresponding to the receiving SMS also includes: Within a preset time period, the receiving end SMS with the same target network address is determined as the SMS to be detected; If the number of the to-be-detected SMS exceeds a preset threshold, a multi-task interception detection request is generated based on each to-be-detected SMS, a task identifier corresponding to each to-be-detected SMS, and a target network address of the SMS interception system; sending the multi-task interception detection request to the SMS interception system according to the target network address; The multi-task interception detection request includes a task identifier of each short message to be detected.
8. The method according to claim 1, characterized in that Before sending an interception detection request to a text message interception system corresponding to the receiving end text message in response to the received receiving end text message, the method further includes: In response to the area registration request, obtaining a mapping relationship between the area and a network address of the SMS interception system; The mapping relationship between the area and the network address of the SMS interception system is added to the preset interface information to obtain the updated preset interface information.
9. A receiving end short message interception device, characterized in that: Applied to VOLTE SMS gateway, the device includes: A first acquisition module: configured to, in response to a received receiving end SMS, send an interception detection request to an SMS interception system corresponding to the receiving end SMS, wherein the interception detection request includes the receiving end SMS; wherein the receiving end SMS is a common SMS or a roaming SMS; A second acquisition module is used to receive the detection result returned by the SMS interception system; A first processing module, configured to send the receiving end SMS to a target user corresponding to the receiving end SMS when the detection result indicates that the detection is passed; The second processing module is used to delete the receiving end short message when the detection result indicates that the detection fails.
10. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
12. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.
