Short message control method, system and device and electronic equipment
By acquiring and processing short messages from user equipment in S-CSCF network elements, and using preset filtering rules and header information inspection mechanisms, flexible control of short messages is achieved, solving the problem that short message control requires a large amount of resources in the existing technology, resulting in high additional investment costs, improving operator efficiency and reducing costs.
Patent Information
- Application Number
- CN202410869538.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In the prior art, the single or double stop effect of short messages is controlled by eSMSC, requiring a large amount of software and hardware equipment resources to support it, resulting in high additional investment costs.
By obtaining the short message of the user equipment in the service call session control function S-CSCF network element, and when the user equipment signs a preset filtering rule, a short message containing the target information in the preset filtering rule is sent to an unavailable IP address to the unavailable IP address, flexible control of the short message is achieved.
The sending and receiving of short messages is flexibly controlled through preset filtering rules and header information checking methods, which improves the operation efficiency of operators, reduces cost consumption, and solves the problem of high additional investment costs.
Smart Images

Figure CN119584065A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology and security, and in particular to a method, system, device and electronic device for controlling short messages. Background Art
[0002] The suspension of short messages is to set up the user short message suspension service in eSMSC (Enhanced Short Message Service Center), and eSMSC will handle the failure according to the user suspension service attributes. eSMSC can configure the user's single suspension and double suspension attributes respectively. For single suspension users, it only controls the user's short message origination process, so that the user can receive short messages but cannot send short messages; for double suspension users, it can not only control the user's short message origination process, but also not send short messages to users according to the user's double suspension service attributes, and correctly send status report messages to the sender eSMSC.
[0003] However, controlling single-stop and double-stop of users through eSMSC requires the support of eSMSC hardware equipment and software. When a large number of user equipment short message services need single-stop (such as protective single-stop for silent mobile cards, single-stop for arrears, and double-stop for non-real-name use), not only a large number of eSMSC hardware equipment resources and software resources are consumed, but also additional investment is required, which increases the additional investment cost of operators.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a short message control method, system, device and electronic device to at least solve the technical problem that in the related art, the single stop or double stop effect of short messages is controlled by eSMSC, which requires a large amount of software and hardware equipment resources to support, resulting in a large additional investment cost.
[0006] According to one aspect of an embodiment of the present application, a short message control method is provided, which is applied to a service call session control function S-CSCF network element, the method comprising: obtaining a short message corresponding to a user device, wherein the short message includes a message to be sent or a message to be received by the user device; when the user device has signed a preset filtering rule, sending the short message including target information in the preset filtering rule to a target address, wherein the target information includes header field information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
[0007] Optionally, the preset filtering rule includes at least one of the following: a short message single stop rule and a short message double stop rule, wherein the short message single stop rule is used to indicate that the user equipment cannot send short messages, and the short message double stop rule is used to indicate that the user equipment can neither send nor receive short messages.
[0008] Optionally, the short message single stop rule is used to represent a rule associated with the first header field in the header field information, and the short message single stop rule includes: when the first header field starts with a target prefix number, the short message is sent to the target address, wherein the first header field includes at least one of the following: a P-Asserted-Identity header field, a From header field, and the target prefix number is an international prefix country code corresponding to when the user equipment sends or receives a short message.
[0009] Optionally, the short message double stop rule is used to represent a rule associated with the first header field and the second header field in the header field information, and the short message double stop rule includes: when the first header field starts with a target prefix number, the short message is sent to the target address, wherein the first header field includes at least one of the following: a P-Asserted-Identity header field and a From header field; when the second header field starts with the target prefix number, the short message is sent to the target address, wherein the second header field includes at least one of the following: a Request-URI header field and a To header field.
[0010] Optionally, sending a short message containing target information in a preset filtering rule to a target address includes: obtaining header information of the short message, wherein the header information includes at least one of the following: a first header and a second header; determining the beginning content of the header information; comparing the beginning content with a target prefix number, and sending the short message to the target address when the beginning content is the same as the target prefix number.
[0011] Optionally, before obtaining the short message sent by the user equipment, the method further includes: determining a preset filtering rule and a triggering condition of the preset filtering rule, wherein the triggering condition includes: the first header field of the short message starts with a target prefix number; and / or the second header field of the short message starts with a target prefix number.
[0012] Optionally, the method further includes: receiving a short message sent by the user equipment through a BAC or a Proxy Call Session Control Function P-CSCF network element.
[0013] According to another aspect of an embodiment of the present application, a short message control system is also provided, the system including: a user device and a service call session control function S-CSCF network element; the user device is used to encapsulate the short message into a session initiation protocol SIP and send it to the service call session control function S-CSCF network element; the service call session control function S-CSCF network element is used to obtain a short message corresponding to the user device, wherein the short message includes a message to be sent or a message to be received of the user device; when the user device has signed a preset filtering rule, the short message including the target information in the preset filtering rule is sent to a target address, wherein the target information includes header field information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
[0014] According to another aspect of an embodiment of the present application, a short message control device is also provided, including: an acquisition module, used to acquire a short message corresponding to a user device, wherein the short message includes a message to be sent or a message to be received by the user device; a sending module, used to send a short message containing target information in a preset filtering rule to a target address when the user device has signed a contract for the preset filtering rule, wherein the target information includes header field information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
[0015] According to another aspect of the embodiments of the present application, an electronic device is provided, including: a memory and a processor, wherein the memory is used to store program instructions; the processor is connected to the memory and is used to execute the control method for implementing the above short message.
[0016] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned short message control method by running the computer program.
[0017] According to another aspect of the embodiments of the present application, a computer program product is provided, including computer instructions, which implement the above-mentioned short message control method when executed by a processor.
[0018] In an embodiment of the present application, by acquiring a short message corresponding to a user device, wherein the short message includes a message to be sent or a message to be received of the user device; and in the case where the user device has signed a contract for a preset filtering rule, the short message including the target information in the preset filtering rule is sent to a target address, wherein the target information includes header information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address, the purpose of flexibly controlling the sending and receiving of short messages through preset filtering rules and header information checking methods is achieved, thereby achieving the technical effect of improving the operating efficiency of the operator and reducing cost consumption, and further solving the technical problem that the single-stop or double-stop effect of the short message in the related technology is controlled by the eSMSC, requiring a large amount of software and hardware equipment resources to support, resulting in a large additional investment cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 is a hardware structure diagram of a computer terminal for implementing a short message control method according to an embodiment of the present application;
[0021] Figure 2 is a flow chart of a short message control method according to an embodiment of the present application;
[0022] Figure 3 is a schematic diagram of a NO-MO-SMS iFC according to an embodiment of the present application;
[0023] Figure 4 is a schematic diagram of a NO-MT-SMS iFC according to an embodiment of the present application;
[0024] Figure 5 is a schematic diagram of another NO-MO-SMS iFC according to an embodiment of the present application;
[0025] Figure 6 is a schematic diagram of another NO-MT-SMS iFC according to an embodiment of the present application;
[0026] Figure 7 is a structural diagram of a short message control system according to an embodiment of the present application;
[0027] Figure 8 It is a structural diagram of a short message control device according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] First, some nouns or terms that appear in the process of explaining the embodiments of the present application are subject to the following explanations:
[0031] AS (Application Server): It is the top-level application layer device in the IMS system, providing basic and supplementary services, multimedia conferencing, converged communications, SMS gateways, standard switchboards and other services.
[0032] IMS (IP Multimedia Subsystem) is a new form of multimedia service that can meet the needs of terminal customers for newer and more diversified multimedia services. IMS is considered to be the core technology of the next generation network and an important way to solve the integration of mobile and fixed networks and introduce differentiated services such as triple integration of voice, data and video.
[0033] BAC (Border Access Controller): also known as SBC (Session Border Controller), that is, session border controller SBC, has gradually become a standard configuration product of IMS network, positioned as ABG (access border gateway) of IMS network, solving problems such as NAT / FW traversal, security, intercommunication, QoS, etc.
[0034] eSMSC (Enhanced Short Message Service Center): Compared with SMS, its advantage is that in addition to sending text messages like SMS (Short Message Service), it can also send simple images, sounds, animations and other information. And its greater advantage is that EMS can still run on the original mobile communication network running SMS, and there is no difference in the sending path and operation method. This standard is open, so any third-party company or individual interested in EMS can develop application software and services on this platform. It can combine simple ringtones, pictures, and even animations with text, and send them between mobile phones that support EMS.
[0035] DNS (Domain Name Service): The domain name system assigns domain name addresses and IP addresses to hosts on the Internet. When a user uses a domain name address, the system will automatically convert the domain name address into an IP address.
[0036] P-CSCF (Proxy Call Session Control Function): It is the unified entry point for IMS access networks. All session messages initiated and terminated by IMS terminals must pass through P-CSCF. As a session initiation protocol, P-CSCF is responsible for user authentication and Internet protocol security management that are independent of the access network, network attack prevention and security protection, SIP signaling compression and decompression to save wireless network resources, user roaming control, and network address translation and service quality management on the bearer plane through PDF (Policy Decision Function).
[0037] S-CSCF (Serving Call Session Control Function): The core of the serving CSCF multimedia module, attached with terminal registration authentication, session control, and service triggering.
[0038] I-CSCF (Interrogating Call Session Control Function): The first entry point of the interrogating CSCF (interrogating CSCF) user's home network, allocating S-CSCF, routing query and inter-domain topology hiding functions.
[0039] HSS (Home Subscriber Server): The HSS supports the main user database of the IMS network entities that handle calls / sessions. It contains user profiles, performs authentication and authorization of users, and can provide information about the user's physical location. The entities that communicate with the HSS are the Application Servers (AS) and the Call Session Control Function Servers (CSCF), where the Application Servers are hosted in the IMS environment and execute services in it. The user profile contains information about the current user - usually the S-CSCF (Service-Call Session Control Function) downloads and uses this file when the user registers with the network.
[0040] SIP (Session Initiation Protocol): is an application layer control protocol for multimedia communications on IP networks. It is used to create, modify, and terminate session processes involving one or more participants.
[0041] UE (User Equipment): Various user devices that access the network. The most common one is the mobile phone. Others include SIP phones, IP phones, call centers, and generally refers to user communication devices that can access the IMS network.
[0042] iFC (Initial Filter Criteria) is a part of the user subscription data stored in HSS, which is downloaded to the S-CSCF assigned to the user when the user registers. iFC defines the service triggering conditions and the destination AS according to different priorities. When processing user service requests, S-CSCF performs iFC matching detection. If the triggering conditions are met, it triggers the specified AS, so that the AS can control the service according to the established service logic within the AS.
[0043] URI (Uniform Resource Identifier): is a string used to identify the name of an Internet resource. This identifier allows users to interact with any resource (including local and network) through a specific protocol. URI is defined by a scheme that includes a certain syntax and related protocols.
[0044] IP-SM-GW (IP-Short-Message-Gateway): IP short message gateway is a server located at the IMS service layer, providing protocol conversion and message forwarding functions for short message intercommunication between IMS network and CS network;
[0045] UDM (Unified Data Management): responsible for the management of user identification, contract data, authentication data, and user service network element registration management.
[0046] In point-to-point SMS transactions, message sending is divided into two categories: MO / MT: MO, that is, message uplink, that is, sending a message (initiated by the terminal, the terminal is the network device, which can be understood as a mobile phone), is a process initiated from the mobile phone. MT, that is, message downlink, that is, receiving a message (initiated by the terminal, the terminal is the network device, which can be understood as a mobile phone), is a process from sending to the mobile phone.
[0047] In the service provider SP service text messages, message sending is also divided into two categories: MO / MT: MO is the information sent from the mobile terminal (mobile phone) to the service provider SP; MT is the information sent from the service provider SP to the mobile terminal (mobile phone).
[0048] In the related technologies, in addition to the large additional investment cost, there are also technical problems such as low operator operation efficiency. For example, in the method of controlling the user's inability to send text messages by deleting the SMS iFC or storing the user's downtime status through IP-SM-GW, when IP-SM-GW stores the user's downtime status, it is necessary to occupy the IP-SM-GW hardware and software resources, which involves additional investment; at the same time, deleting the SMS iFC will give people the illusion that the SMS function of the user's device has been deleted (the SMS function has not been activated), but in fact the original intention is to activate the SMS function and stop both the SMS function, which may cause relevant personnel (users, salespersons, etc.) to misunderstand; in addition, deleting the SMS iFC can only make the short message service "single stop" (the user cannot send short messages, but can receive short messages), which cannot achieve the effect of "double stop" of the short message service. For another example, when the calling number is signed up for short message single stop iFC through short message single stop iFC (the triggering condition includes: the SIP message header field does not include the reply parameter of short message single stop iFC, and the reply parameter includes: In ReplyTo), and the short message single stop is achieved, the short message service can only be "single-stopped" (the user cannot send short messages, but can receive short messages), and the effect of "double-stopping" of the short message service cannot be achieved.
[0049] In order to solve the above problems, the present application embodiment provides a short message control method, which can be run on Figure 1 In the computer terminal shown, the computer terminal is described below.
[0050] The short message control method embodiment provided in the embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a short message control method. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions connected via a wired and / or wireless network. In addition, it may also include: a display, a keyboard, a cursor control device, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, and a BUS bus. Those skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0051] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0052] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the short message control method in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned short message control method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0053] The transmission module 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0054] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0055] It should be noted that, in some optional embodiments, the above Figure 1 The computer terminal shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computer terminal described above.
[0056] In the above operating environment, an embodiment of the present application provides an embodiment of a short message control method. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0057] Figure 2 is a flow chart of a method for controlling short messages according to an embodiment of the present application. Figure 2 As shown, the method is applied to a service call session control function S-CSCF network element, comprising the following steps:
[0058] Step S202: Acquire a short message corresponding to the user equipment, wherein the short message includes a message to be sent or a message to be received by the user equipment.
[0059] In the above step S202, in order to achieve the technical effect of short message single stop or double stop to save enterprise investment, a number of short messages corresponding to the user equipment, such as the to-be-sent messages or to-be-received messages of the user equipment, can be first obtained as the data basis for subsequent processing to ensure that the system is capable of identifying and processing short messages related to the user equipment. Among them, the short message single stop effect means that the user equipment UE cannot send short messages, and the short message double stop effect means that it can neither send nor receive short messages.
[0060] Step S204, when the user equipment has signed up for the preset filtering rule, a short message containing the target information in the preset filtering rule is sent to the target address, wherein the target information includes the header information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
[0061] Optionally, the preset filtering rule includes at least one of the following: a short message single stop rule and a short message double stop rule, wherein the short message single stop rule is used to indicate that the user equipment cannot send short messages, and the short message double stop rule is used to indicate that the user equipment can neither send nor receive short messages.
[0062] In the above step S204, the preset filtering rules may include a short message single stop rule and a short message double stop rule, wherein the rule that cannot send short messages is named NO-MO-SMS iFC, and the rule that cannot receive short messages is named NO-MT-SMS iFC, then the short message single stop rule includes NO-MO-SMS iFC, and the short message double stop rule includes NO-MO-SMSiFC and NO-MT-SMS iFC. The user equipment may sign up for the rule of NO-MO-SMS iFC to achieve the technical effect of not being able to send short messages, that is, the technical effect of short message single stop; or may sign up for both the rules of NO-MO-SMS iFC and NO-MT-SMSiFC to achieve the technical effect of not being able to send short messages and not being able to receive short messages, that is, the technical effect of short message double stop.
[0063] Furthermore, by checking and judging the header information of the short message, the short message is sent to an unavailable target address to effectively prevent the sending or receiving of the short message, so as to achieve the purpose of controlling the short message function of the user equipment. The target address may be, for example, an unavailable IP address, a black hole route, a certain (certain type) unavailable device, or a certain (certain type) device that does not support MESSAGE messages.
[0064] Through the above steps S202 to S204, the purpose of flexibly controlling the sending and receiving of short messages by presetting filtering rules and header information checking methods is achieved, thereby achieving the technical effect of improving the operation efficiency of operators and reducing cost consumption, thereby solving the technical problem that the single stop or double stop effect of short messages in the related technology is controlled by eSMSC, requiring a large amount of software and hardware equipment resources to support, resulting in a large additional investment cost. The following is a detailed description.
[0065] Optionally, before obtaining the short message sent by the user equipment, the method further includes: determining a preset filtering rule and a triggering condition of the preset filtering rule, wherein the triggering condition includes: the first header field of the short message starts with a target prefix number; and / or the second header field of the short message starts with a target prefix number.
[0066] Optionally, the short message single stop rule is used to represent a rule associated with the first header field in the header field information, and the short message single stop rule includes: when the first header field starts with a target prefix number, the short message is sent to the target address, wherein the first header field includes at least one of the following: a P-Asserted-Identity header field, a From header field, and the target prefix number is an international prefix country code corresponding to when the user equipment sends or receives a short message.
[0067] Optionally, the short message double stop rule is used to represent a rule associated with the first header field and the second header field in the header field information, and the short message double stop rule includes: when the first header field starts with a target prefix number, the short message is sent to the target address, wherein the first header field includes at least one of the following: a P-Asserted-Identity header field and a From header field; when the second header field starts with the target prefix number, the short message is sent to the target address, wherein the second header field includes at least one of the following: a Request-URI header field and a To header field.
[0068] In an embodiment of the present application, preset filtering rules and trigger conditions of the preset filtering rules can be pre-configured in the S-CSCF network element to ensure that before the short message processing process, the system has identified and adapted to the corresponding filtering rules and trigger conditions to achieve the best service control effect.
[0069] Specifically, NO-MO-SMS iFC and NO-MT-SMS iFC are preset, and the SPT (Service Point Trigger) of the preset filtering rule is set with the first header field and the second header field in the header field information of the short message, and the target prefix number. The first header field may include the P-Asserted-Identity header field and the From header field, the second header field may include the Request-URI header field and the To header field, and the target prefix number indicates the international prefix China country code corresponding to the user device sending or receiving a short message, that is, "+86".
[0070] Meanwhile, since the short message single stop rule includes NO-MO-SMS iFC, the short message single stop rule mainly involves the rule corresponding to the first header field in the header field information of the short message; and the short message double stop rule includes NO-MO-SMS iFC and NO-MT-SMS iFC, the short message double stop rule involves both the rule associated with the first header field in the header field information of the short message and the rule associated with the second header field in the header field information of the short message.
[0071] The specific triggering rules are shown in Table 1, where the combination relationship of the triggering rules in Table 1 is presented in the form of "1 and / or 2", "3 and / or 4". The reason is that different operators take different header fields (i.e., the first header field mentioned above) of the "calling number". Some operators take the P-Asserted-Identity header field, while some operators take the From header field, or set different priorities for the P-Asserted-Identity header field and the From header field to obtain the "calling number". Similarly, different operators take different header fields (i.e., the second header field mentioned above) of the "called number". Some operators take the Request-URI header field, while some operators take the To header field, or set different priorities for the Request-URI header field and the To header field to obtain the "called number".
[0072] Table 1 Triggering rules for NO-MO-SMS iFC and NO-MT-SMS iFC
[0073]
[0074] Optionally, sending a short message containing target information in a preset filtering rule to a target address includes: obtaining header information of the short message, wherein the header information includes at least one of the following: a first header and a second header; determining the beginning content of the header information; comparing the beginning content with a target prefix number, and sending the short message to the target address when the beginning content is the same as the target prefix number.
[0075] Optionally, the method further includes: receiving a short message sent by the user equipment through a BAC or a Proxy Call Session Control Function P-CSCF network element.
[0076] In the embodiment of the present application, the header information of the short message corresponding to the user device can be identified, and the preset filtering rules can be flexibly applied to achieve the technical effect of single stop or double stop of the short message. Specifically, the header information of the short message is obtained, and the beginning content of the header information is matched with the target prefix number (+86). If the beginning content of the header information starts with +86, the match is successful, and the short message is sent to a specific target address, such as an unavailable IP address, a black hole route, a certain (certain type) unavailable device, or a certain (certain type) device that does not support MESSAGE messages, etc., to prevent the spread of the short message.
[0077] Figure 3 is a schematic diagram of a NO-MO-SMS iFC according to an embodiment of the present application, Figure 4 is a schematic diagram of a NO-MT-SMS iFC according to an embodiment of the present application, and the following is combined with Figure 3 and Figure 4 The short message single stop rule (including only NO-MO-SMS iFC) and the short message double stop rule (including NO-MO-SMS iFC and NO-MT-SMS iFC) are explained respectively.
[0078] For short message single stop rules, such as Figure 3 As shown, when user equipment UE_A subscribes to NO-MO-SMS iFC and sends a short message to user equipment UE_B or a service provider (SP), in the IMS domain, the number format of user equipment UE_A is sip: +86XXXXXXXXXXX@home network domain name and / or tel: +86XXXXXXXXXXX.
[0079] In the first header field (P-Asserted-Identity and / or From header field) of the Session Initiation Protocol message (SIP MESSAGE message), the O side ( Figure 3 The S-CSCF network element (on the left side of the user equipment UE_B) determines whether the first header field (P-Asserted-Identity and / or From header field) of the SIP MESSAGE message starts with the target prefix number +86 according to the trigger rules of NO-MO-SMSiFC and NO-MO-SMS iFC subscribed by UE_A, and when the first header field starts with +86, the SIP MESSAGE message is transferred to a preset unavailable IP address, i.e., the above-mentioned target address, so that UE_A fails to send the short message, and the whole process ends in the O-side network, thereby achieving the technical effect of short message single stop.
[0080] It should be noted that in this process, the user equipment UE_A will seal the short message into the session initiation protocol message (SIP MESSAGE message) in advance, and send the short message to the S-CSCF network element through the edge access control device BAC or the proxy call session control function P-CSCF network element through the user equipment. At the same time, the S-CSCF network element will pre-set the trigger conditions of NO-MO-SMSiFC and NO-MO-SMS iFC, that is, "the first header field (P-Asserted-Identity and / or From header field) of the SIP MESSAGE message starts with the target prefix number + 86, and the SIP MESSAGE message is transferred to a preset unavailable IP address."
[0081] For the short message double stop rule, when the user equipment UE_B signs the NO-MO-SMS iFC and sends a short message to the user equipment UE_A or a service provider (SP), the short message single stop principle is the same as above, and the process is as follows: Figure 3 As shown, no further description is given here.
[0082] When the user equipment UE_B attempts to receive a short message sent by the user equipment UE_A (there is no short message double stop or short message single stop at this time) or a service provider (SP), such as Figure 4 As shown, the short message sent by the user equipment UE_A or a service provider (SP) is encapsulated into a session initiation protocol message (SIP MESSAGE message), and the SIP MESSAGE message is sent to the T side ( Figure 4 The S-CSCF network element on the right side of the O-side network, the S-CSCF network element on the T-side will determine whether the second header field (Request-URI and / or To header field) of the SIP MESSAGE message starts with the target prefix number +86 according to the NO-MT-SMS iFC and the triggering rule of NO-MT-SMS iFC signed by UE_B. At this time, the second header field (Request-URI and / or To header field) is the called number UE_B, and the number format is sip: +86XXXXXXXXXXX@home network domain name and / or tel: +86XXXXXXXXXXX. Furthermore, in the case where the second header field starts with +86, the SIP MESSAGE message is transferred to a preset unavailable IP address, that is, the above-mentioned target address, so that the user equipment UE_B fails to receive the short message, and the entire process ends in the T-side network, thereby achieving the technical effect of short message double stop.
[0083] Similarly, during this process, the S-CSCF network element will pre-set the trigger conditions of NO-MT-SMS iFC and NO-MT-SMS iFC, namely, "the second header field (Request-URI and / or To header field) of the SIP MESSAGE message starts with the target prefix number + 86, and the SIP MESSAGE message is transferred to a preset unavailable IP address."
[0084] It should be noted that the NO-MT-SMS iFC trigger rule "3 and / or 4" can only be judged by whether the second header field (Request-URI and / or To header field) contains a number starting with +86, and cannot be judged by whether the first header field (P-Asserted-Identity and / or From header field) contains a number starting with +86. The reason is that when the originating SIP MESSAGE message reaches the T-side eSMC, the T-side eSMC may replace the P-Asserted-Identity and / or From header field content from the number to the T-side eSMC (domain name) information instead of the specific number, and the number starting with +86 will be gone; secondly, even if the T-side eSMC does not replace the P-Asserted-Identity and / or From header field content and keeps it as it is, the originating SIP The message of MESSAGE may be from a certain SP, and the code of SP usually starts with 106. The content of P-Asserted-Identity and / or From header field is a number starting with 106. Therefore, it cannot be judged by whether the content of P-Asserted-Identity and / or From header field contains a number starting with +86. Therefore, the NO-MT-SMS iFC trigger rule "3 and / or 4" can only be judged by whether the content of the second header field (Request-URI and / or To header field) contains a number starting with +86.
[0085] Figure 5 is a schematic diagram of another NO-MO-SMS iFC according to an embodiment of the present application, Figure 6 is a schematic diagram of another NO-MT-SMS iFC according to an embodiment of the present application, and the following is combined with Figure 5 , Figure 6 And specific examples are used to illustrate the above short message single stop rule and short message double stop rule respectively.
[0086] First, preset NO-MO-SMS iFC and NO-MT-SMS iFC. For example, if the NO-MO-SMS iFC is preset to 333, the triggering rule is set according to the iFC content of "1 and / or 2" in Table 1 above; if the NO-MT-SMS iFC is preset to 444, the triggering rule is set according to the iFC content of "3 and / or 4" in Table 1 above.
[0087] Secondly, preset DNS domain name resolution. For example: NO-MO-SMS iFC is 333, preset DNS domain name resolution: S-CSCF network element, HSS and / or UDM preset domain name sip:nomosms.jx.ctcims.cn, and the domain name resolution to IP address 10.10.10.10, i.e. the above-mentioned target address, where sip:nomosms.jx.ctcims.cn can be any string, and 10.10.10.10 can be any certain unavailable IP address (or black hole routing, or an unavailable device, or a device that does not support MESSAGE messages, etc.). The NO-MT-SMS iFC is 444, and the preset DNS domain name resolution: the S-CSCF network element, HSS and / or UDM preset domain name sip:nomtsms.jx.ctcims.cn, and the domain name resolution to the IP address 11.11.11.11, that is, the above-mentioned target address, where sip:nomtsms.jx.ctcims.cn can be any string, and 11.11.11.11 can be any certain unavailable IP address (or black hole routing, or an unavailable device, or a device that does not support MESSAGE messages, etc.).
[0088] For short message single stop rules, such as Figure 5 As shown, when user equipment 18912345678 subscribes to NO-MO-SMS iFC=333 and sends a short message to user equipment 18987654321, in the IMS domain, the number format of 18912345678 is sip: +86XXXXXXXXXXX@home network domain name and / or tel: +86XXXXXXXXXXX.
[0089] In the first header field (P-Asserted-Identity and / or From header field) of the session initiation protocol message (SIP MESSAGE message), the information of the P-Asserted-Identity header field is sip:+8618912345678@home network domain name, and the information of the From header field is tel:+8618912345678. The O-side S-CSCF transfers the SIP MESSAGE message to an unavailable IP address (10.10.10.10), i.e., the above-mentioned target address, according to the NO-MO-SMS iFC=333 signed by the user equipment 18912345678 and the triggering rule, so that 18912345678 fails to send the short message. 18912345678 achieves the technical effect of short message single stop. The entire process is completed on the O-side network ( Figure 5 The process ends at the left side of the user equipment UE_B.
[0090] It should be noted that in this process, the user device 18912345678 will seal the short message into the session initiation protocol message (SIP MESSAGE message) in advance, and send the short message to the S-CSCF network element through the edge access control device BAC or the proxy call session control function P-CSCF network element through the user device. At the same time, the S-CSCF network element will pre-set the trigger conditions of NO-MO-SMS iFC=333 and NO-MO-SMS iFC, that is, "the first header field (P-Asserted-Identity and / or From header field) of the SIP MESSAGE message starts with the target prefix number +86, and the SIP MESSAGE message is transferred to the preset unavailable 10.10.10.10 address".
[0091] For the short message double stop rule, when the user equipment 18987654321 signs NO-MO-SMS iFC=333 and sends a short message to other user equipment UE or a service provider (SP), the short message single stop principle is the same as above, and the process is as follows Figure 5 As shown, no further description is given here.
[0092] When the user equipment 18987654321 attempts to receive a short message sent by another user equipment UE or a service provider (SP), such as Figure 6 As shown, the short message sent by other user equipment or a service provider (SP) is encapsulated into a session initiation protocol message (SIP MESSAGE message), and the SIP MESSAGE message is sent to the T side ( Figure 6The S-CSCF network element on the right side of the O side network, the S-CSCF network element on the T side will determine whether the second header field (Request-URI and / or To header field) of the SIP MESSAGE message starts with the target prefix number +86 according to the NO-MT-SMS iFC=444 of the contract of 18987654321 and the triggering rule. At this time, the second header field (Request-URI and / or To header field) is the called number 18987654321, and the number format is sip:+8618987654321@home network domain name and / or tel:+8618987654321. Therefore, the S-CSCF network element on the T side transfers the SIP MESSAGE message to an unavailable IP address (11.11.11.11), causing 18987654321 to fail to receive the short message, and the entire process ends on the T side network, thereby achieving the technical effect of short message double stop.
[0093] Similarly, during this process, the S-CSCF network element will pre-set NO-MT-SMS iFC=444 and the triggering conditions of NO-MT-SMS iFC, that is, "the second header field (Request-URI and / or To header field) of the SIP MESSAGE message starts with the target prefix number + 86, and the SIP MESSAGE message is transferred to a preset unavailable 11.11.11.11 address."
[0094] In the embodiment of the present application, through two iFCs, iFC cannot send short messages, iFC cannot receive short messages, and it is possible to control the sending and receiving of short messages separately or simultaneously. At the same time, the iFC triggering rule is set based on the +86 in the relevant header fields (involving the first header field P-Asserted-Identity, From and the second header field Request-URI, To) in the SIPMESSAGE message, achieving the technical effects of single stop and double stop of short messages, saving additional investment, and achieving cost reduction and efficiency improvement for enterprises.
[0095] Figure 7 1 is a structural diagram of a short message control system provided according to an embodiment of the present application. Figure 7 As shown, the system includes: user equipment 70 and a serving call session control function S-CSCF network element 72;
[0096] The user equipment 70 is used to encapsulate the short message into the session initiation protocol SIP and send it to the service call session control function S-CSCF network element 72;
[0097] The service call session control function S-CSCF network element 72 is used to obtain a short message corresponding to the user equipment 70, wherein the short message includes a message to be sent or a message to be received by the user equipment; when the user equipment has signed a contract for a preset filtering rule, the short message containing the target information in the preset filtering rule is sent to a target address, wherein the target information includes header field information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
[0098] It should be noted that the above short message control system is used to execute Figure 2 Therefore, the relevant explanations in the above short message control method are also applicable to the short message control system, which will not be repeated here.
[0099] According to an embodiment of the present application, a short message control device is provided. It should be noted that the short message control device of the embodiment of the present application can be used to execute the short message control method provided by the embodiment of the present application. The short message control device provided by the embodiment of the present application is introduced below.
[0100] Figure 8 1 is a structural diagram of a short message control device provided according to an embodiment of the present application. Figure 8 As shown, the device comprises:
[0101] An acquisition module 80 is used to acquire a short message corresponding to a user device, wherein the short message includes a message to be sent or a message to be received by the user device;
[0102] The sending module 82 is used to send a short message containing target information in the preset filtering rule to a target address when the user equipment has signed a contract for the preset filtering rule, wherein the target information includes header information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
[0103] Through the acquisition module 80 and the sending module 82 in the above-mentioned short message control device, the purpose of flexibly controlling the sending and receiving of short messages through preset filtering rules and header information checking methods is achieved, thereby achieving the technical effect of improving the operating efficiency of operators and reducing cost consumption, and further solving the technical problem that the single-stop or double-stop effect of short messages in related technologies is controlled by eSMSC, which requires a large amount of software and hardware equipment resources to support, resulting in a large additional investment cost.
[0104] In the short message control device provided in the embodiment of the present application, the acquisition module is further used to receive a short message sent by the user equipment through the edge access control device BAC or the proxy call session control function P-CSCF network element.
[0105] In the short message control device provided in the embodiment of the present application, the sending module is further used to obtain header information of the short message, wherein the header information includes at least one of the following: a first header and a second header; determining the beginning content of the header information; comparing the beginning content with the target prefix number, and sending the short message to the target address when the beginning content is the same as the target prefix number.
[0106] In the short message control device provided in the embodiment of the present application, a determination module 84 is also included, which is used to determine the preset filtering rules and the triggering conditions of the preset filtering rules, wherein the triggering conditions include: the first header field of the short message starts with the target prefix number; and / or the second header field of the short message starts with the target prefix number. The preset filtering rules include at least one of the following: a short message single stop rule and a short message double stop rule, wherein the short message single stop rule is used to indicate that the user device cannot send a short message, and the short message double stop rule is used to indicate that the user device can neither send nor receive a short message. The short message single stop rule is used to indicate the rule associated with the first header field in the header field information, and the short message single stop rule includes: when the first header field starts with the target prefix number, the short message is sent to the target address, wherein the first header field includes at least one of the following: a P-Asserted-Identity header field, a From header field, and the target prefix number is the international prefix country code corresponding to the user device when sending or receiving a short message. The short message double stop rule is used to indicate a rule associated with the first header field and the second header field in the header field information. The short message double stop rule includes: when the first header field starts with a target prefix number, the short message is sent to the target address, wherein the first header field includes at least one of the following: a P-Asserted-Identity header field and a From header field; when the second header field starts with a target prefix number, the short message is sent to the target address, wherein the second header field includes at least one of the following: a Request-URI header field and a To header field.
[0107] An embodiment of the present application further provides an electronic device, including: a memory and a processor, wherein the memory is used to store program instructions; the processor is connected to the memory and is used to execute the control method for implementing the above short message.
[0108] It should be noted that the above electronic equipment is used to execute Figure 2 Therefore, the relevant explanations in the above short message control method are also applicable to the electronic device and will not be repeated here.
[0109] An embodiment of the present application further provides a non-volatile storage medium, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned short message control method by running the computer program.
[0110] It should be noted that the above non-volatile storage medium is used to execute Figure 2 Therefore, the relevant explanations in the above short message control method are also applicable to the non-volatile storage medium and will not be repeated here.
[0111] The embodiment of the present application also provides a computer program product, including computer instructions, which implement the above-mentioned short message control method when executed by a processor.
[0112] It should be noted that the above-mentioned computer program product is used to execute Figure 2 Therefore, the relevant explanations in the above short message control method are also applicable to the computer program product and will not be repeated here.
[0113] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0114] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0115] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0116] 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0117] In addition, each functional unit in each embodiment of the present application 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0118] If the integrated unit 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 application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0119] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling short messages, characterized in that: Applied to a service call session control function S-CSCF network element, the method comprises: Acquire a short message corresponding to a user device, wherein the short message includes a message to be sent or a message to be received by the user device; In the case where the user equipment has subscribed to the preset filtering rules, the short message containing the target information in the preset filtering rules is sent to the target address, wherein the target information includes the header field information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
2. The method according to claim 1, characterized in that The preset filtering rule includes at least one of the following: a short message single stop rule and a short message double stop rule, wherein the short message single stop rule is used to indicate that the user equipment cannot send the short message, and the short message double stop rule is used to indicate that the user equipment can neither send the short message nor receive the short message.
3. The method according to claim 2, characterized in that The short message single stop rule is used to represent a rule associated with the first header field in the header field information, and the short message single stop rule includes: In a case where the first header field starts with a target prefix number, the short message is sent to the target address, wherein the first header field includes at least one of the following: a P-Asserted-Identity header field and a From header field, and the target prefix number is an international prefix country code corresponding to when the user equipment sends or receives the short message.
4. The method according to claim 3, characterized in that The short message double stop rule is used to represent a rule associated with the first header field and the second header field in the header field information, and the short message double stop rule includes: In the case where the first header field starts with the target prefix number, the short message is sent to the target address, wherein the first header field includes at least one of the following: a P-Asserted-Identity header field and a From header field; In a case where the second header field starts with the target prefix number, the short message is sent to the target address, wherein the second header field includes at least one of the following: a Request-URI header field and a To header field.
5. The method according to claim 3 or 4, characterized in that: Sending the short message containing the target information in the preset filtering rule to the target address includes: Acquire header field information of the short message, wherein the header field information includes at least one of the following: a first header field and a second header field; Determine the beginning content of the header field information; The beginning content is compared with the target prefix number, and when the beginning content is identical to the target prefix number, the short message is sent to the target address.
6. The method according to claim 3 or 4, characterized in that: Before acquiring the short message sent by the user equipment, the method further includes: The preset filtering rule and a triggering condition of the preset filtering rule are determined, wherein the triggering condition includes: a first header field of the short message starts with the target prefix number; and / or a second header field of the short message starts with the target prefix number.
7. The method according to claim 1, characterized in that The method further comprises: The short message is received by the user equipment through the edge access control device BAC or the proxy call session control function P-CSCF network element.
8. A short message control system, characterized in that: The system comprises: user equipment and service call session control function S-CSCF network element; The user equipment is used to encapsulate the short message into the session initiation protocol SIP and send it to the service call session control function S-CSCF network element; The service call session control function S-CSCF network element is used to obtain a short message corresponding to a user device, wherein the short message includes a message to be sent or a message to be received by the user device; when the user device has subscribed to a preset filtering rule, the short message including the target information in the preset filtering rule is sent to a target address, wherein the target information includes header field information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
9. A short message control device, characterized in that: include: An acquisition module, configured to acquire a short message corresponding to a user device, wherein the short message includes a message to be sent or a message to be received by the user device; A sending module is used to send the short message containing the target information in the preset filtering rule to a target address when the user equipment has signed a contract for the preset filtering rule, wherein the target information includes the header field information and prefix number information corresponding to the short message, and the target address includes: an unavailable IP address.
10. An electronic device, characterized in that: include: A memory and a processor, wherein The memory is used to store program instructions; The processor is connected to the memory and is used to execute the short message control method according to any one of claims 1 to 7.
11. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the short message control method according to any one of claims 1 to 7 by running the computer program.
12. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the short message control method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method for filtering unknown international short message
CN102480703A
Short message sending control method and device
CN106912033A
Short message processing method, device and equipment
CN110753015A
Short message sending method and device during shutdown period of user and electronic equipment
CN114584935A
Short message management and control system, method and device and storage medium
CN114900804A