Short message routing communication method and system

By introducing an intelligent SMS routing center into the SMS service system, the most matching SMS gateway is identified based on multiple data analyses, the problems of low SMS arrival rate and high operating costs in the existing technology are solved, and more efficient and flexible SMS routing is achieved.

CN119521147AInactive Publication Date: 2025-02-25BEIJING SHUMI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411698406.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-02-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing SMS service system, the routing strategy is simple and cannot effectively handle complex operational needs, resulting in low SMS arrival rate and high operating costs.

Method used

Through the SMS routing center, the most matching SMS gateway is intelligently identified based on user attributes, mobile phone numbers, SMS content and recent data analysis, and dynamic routing adjustment is achieved.

Benefits of technology

It improves SMS arrival rate, reduces operating costs and SMS delays, and achieves more flexible and efficient SMS routing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119521147A_ABST
    Figure CN119521147A_ABST
Patent Text Reader

Abstract

The invention provides a short message routing communication method and system, and the method comprises the following steps: S1, receiving a short message of a user through a short message server, and storing the received short message data into a storage medium; s2, the short message routing center obtains a short message from a storage medium and calls an intelligent routing method to obtain a routing result, if the routing result is a short message gateway, a step S4 is entered to issue a short message, if the routing result is that manual intervention is needed, a next step S3 is entered, and if the routing result is interception, a step S5 is entered; s3, manually auditing the short message, if the auditing result is a short message gateway, entering the step S4, and if the auditing result is interception, skipping to the step S5; s4, the short message gateway issues a short message and obtains a short message state, if the short message state is successful, the next step S5 is executed, and if the short message state is failed, the short message is stored in the storage medium and skips to the step S2; and S5, returning the short message state to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of short message services, and in particular relates to a short message routing communication method and system. Background Art

[0002] At present, there are many customers connected to the SMS service system, and the mobile phone numbers, signatures and contents sent by each customer are diverse. At the same time, many operator gateways are also connected to the SMS service system, and the mobile phone numbers, signatures and contents that each operator gateway supports are different. At the same time, the unit prices and billing modes of customers and operator gateways are also different. In the past, in the SMS service system, the routing strategy was relatively simple and could not meet complex operational needs, which affected the arrival rate of SMS and increased operating costs.

[0003] In this application, a routing method is specially designed, which can preferentially identify the most matching SMS gateway at present according to the analysis of user attributes, mobile phone number, SMS content and related data sent recently, so as to achieve the effect of reducing costs and increasing efficiency, reducing SMS delay and improving SMS arrival rate. Summary of the invention

[0004] The present invention provides a short message routing communication method and system, which solves the problems of high short message cost and low short message arrival rate in the prior art.

[0005] The technical solution of the present invention is implemented as follows: a short message routing communication method, the method comprising the following steps:

[0006] S1: Receive user SMS messages through the SMS server and store the received SMS data in the storage medium;

[0007] S2: The SMS routing center collects the received data from the storage medium and calls the routing method to obtain the routing result. If the routing result is the SMS gateway, it proceeds to step S4 to send the SMS. If the routing result is that manual intervention is required, it proceeds to the next step S3. If the routing result is interception, it proceeds to step S5.

[0008] S3: Manually review the SMS. If the review result is SMS gateway, proceed to the next step S4. If the review result is interception, jump to step S5.

[0009] S4: The SMS gateway sends the SMS and obtains the SMS status. If the SMS status is successful, it proceeds to the next step S5. If the SMS status is failed, it is stored in the storage medium and jumps to step S2, and the SMS routing center performs subsequent operations;

[0010] S5: Return the SMS status to the user.

[0011] This application document receives data through the SMS service end and stores the received data in the storage medium. The SMS routing center collects the received data from the storage medium and automatically determines the appropriate SMS gateway for sending the SMS. The SMS gateway stores the status of the SMS sending in the storage medium and is read by the SMS routing center; the SMS routing center collects the data returned by the SMS gateway from the storage medium, and intelligently determines whether it needs to be resent based on the SMS status. If resent is required, it is routed to the appropriate SMS gateway. If resent is not required, the final status is returned to the user.

[0012] Furthermore, the SMS routing center performs intelligent routing for the first submitted SMS message, and selects a suitable gateway group according to the SMS attribute, and the gateway group is a collection of gateways that match the SMS attribute.

[0013] Furthermore, SMS attributes can be divided into: verification code SMS, industry notification SMS and member marketing SMS, etc. Account attributes can be dynamically added and deleted according to actual business scenarios.

[0014] Furthermore, a gateway group is a group that collects one or more gateways with the same attributes. The gateway group generally has the same attributes, such as all are verification code gateways, all are gateways that support the same number of extended bits, all are gateways with relatively low unit prices, etc.

[0015] Furthermore, the SMS status is generally divided into success and failure. The routing center has the function of automatic failure retransmission, and can perform failure retransmission processing according to the failure status code. Sometimes there are many failure status codes, and the SMS routing center can classify the status codes and perform failure retransmission processing according to a certain category.

[0016] Furthermore, the SMS routing center will make routing decisions based on the number of times a mobile phone number sends messages within a certain period of time. If a mobile phone number sends messages more than a certain number of times within the set period of time, it will be judged as a risky number and will be manually intervened or directly blocked. During manual intervention, the number can be blocked or a designated SMS gateway can be specified for delivery.

[0017] Furthermore, when processing failed resends, the SMS routing center can route different rules based on the SMS attributes. If it is a verification code SMS, it is subject to timeliness requirements, generally not exceeding 1 minute or 30 seconds. If it exceeds the set timeout period, it will not be resent and will be directly intercepted; if it does not exceed the set timeout period, it will be routed to the appropriate SMS gateway for failed resend processing.

[0018] Furthermore, when processing failed retransmissions, the SMS routing center will also use different routing rules based on the number of failed retransmissions. If the number of failed retransmissions exceeds the set number, it will be directly intercepted; if the number of failed retransmissions does not exceed the set number, it will be routed to the appropriate SMS gateway for failed retransmission processing.

[0019] Furthermore, when the SMS routing center processes a failed resend, if it is a long SMS, it will automatically combine the long SMS. If one of the status codes in the long SMS is a failure, the long SMS will be processed as a failure.

[0020] As a preferred embodiment, the storage medium includes a database, a cache database and a message queue middleware, wherein the message queue middleware adopts an asynchronous transmission mechanism distributed cluster architecture and supports horizontal dynamic expansion. The storage medium includes a database, a cache database and a message queue middleware, wherein the message queue middleware adopts an asynchronous transmission mechanism distributed cluster architecture and supports horizontal dynamic expansion. The message queue middleware is a service for managing and sending messages. It can store received messages in a distributed cluster and send messages to multiple clients as needed. When a new message is sent, the message queue middleware will first check whether the old message is expired. If it is expired, the old message will be discarded, and the new data will be updated to the cache library after the new message arrives. This architecture can improve the performance and scalability of the system and provide better service quality. The database is a commonly used storage device that can store a large amount of data and can be used for query and processing. The cache database is a device that stores data in advance. When the data needs to be used, the data can be read directly from the cache. The message queue middleware, database and cache are all specially designed for managing and sending messages. Unlike databases and caches, message queue middleware does not need to store large amounts of data, but uses an asynchronous transmission mechanism to handle high-concurrency queries and sends. This architecture can provide better performance and higher reliability, and supports horizontal dynamic expansion.

[0021] As a preferred embodiment, the storage medium is a transfer medium, which receives data storage from the SMS service end and the SMS routing center, and provides data to the SMS service end and the SMS routing center for reading. The storage medium is a transfer medium, which means that there is an intermediate node between two different networks, and this node can be a server or a terminal device. This intermediate node can be used to store and query data, and can also be used as a transfer port between the SMS service end and the SMS routing center. When the SMS service end needs to store and query data, it can read data directly from the transfer medium, or use the SMS service end API (such as IPSec) or a third-party SMS service end server to read data. In this way, the SMS service end and the SMS routing center can directly exchange data without going through a complex forwarding or storage process. The design of the transfer medium can improve the efficiency and stability of network transmission, because it does not need to go through a complex forwarding or storage process, but directly stores the data in the transfer medium, which can reduce the transmission pressure and delay in the network. At the same time, the transfer medium can also be used as a transfer port between the SMS service end and the SMS routing center to read and query data.

[0022] As a preferred implementation, the routing rules of the SMS routing center will dynamically change according to the current SMS delivery situation to prevent the previously set rules from not meeting the current delivery requirements.

[0023] As a preferred implementation, the SMS routing center uses a cache database Redis to store SMS data. Redis is a distributed cache database that can be used to store a large amount of data, and can also be used as a cache between the SMS service end and the SMS routing center. This can improve the storage efficiency of data, reduce the delay and latency of data transmission, and also improve the scalability of the system. The SMS routing center stores the user's SMS data in Redis and updates the data by regularly performing read and write operations on Redis.

[0024] As a preferred implementation, the SMS routing center adopts a distributed cluster architecture design to support horizontal dynamic expansion. This means that the SMS routing center can expand its functions through a distributed cluster architecture to meet the growing demand for SMS. The cluster architecture can combine multiple machines into a complete server or client, thereby providing higher processing power and performance. In addition, the distributed cluster architecture can also support horizontal dynamic expansion, that is, machines can be added or deleted when needed to adapt to changes in business needs.

[0025] A short message routing communication method and system, comprising a user end, a short message service end, a storage medium, a short message gateway and a short message routing center, wherein the short message service end receives the short message sent by the user end and stores it in the storage medium, the short message routing center retrieves the data in the storage medium for intelligent routing, after routing to the short message gateway, the short message gateway sends the short message, the short message gateway simultaneously obtains the status of the short message sending, and feeds back the result to the storage medium, the short message routing center obtains the short message sending status from the storage medium, intelligently determines whether resending is required according to the mobile phone number, content, sending delay and sending times, if resending is required, routes to a suitable short message gateway for sending, if resending is not required, stores the final status in the storage medium, the short message service end obtains the short message sending result from the storage medium and feeds back to the user end.

[0026] After adopting the above technical scheme, the beneficial effect of the present invention is: compared with the traditional SMS sending method, the present invention can dynamically adjust the routing rules, better route to the appropriate SMS gateway, or can timely intercept SMS content that does not need to be sent, and automatically resend SMS due to SMS failure, which can significantly improve the SMS arrival rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0028] Figure 1 A short message routing communication method and system flow chart provided by an embodiment of the present invention;

[0029] Figure 2 A short message routing communication method and system framework diagram provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] Embodiment 1:

[0032] like Figure 1 As shown, the method comprises the following steps:

[0033] Step S1: The SMS service receives the SMS message and stores it in the storage medium

[0034] Step S2: The SMS routing center obtains the SMS message from the storage medium and performs routing processing.

[0035] The SMS routing center also provides a method for combining long SMS messages, including:

[0036] Determine whether it is a long text message based on tp_udhi. If the value is 1, it is a long text message. If the value is 0, it is a normal text message.

[0037] Determine whether the long SMS is assembled based on tp_pid, pk_total, and pk_number. When the number of SMS messages is equal to pk_total and pk_number is fully assembled, the long SMS is merged.

[0038] The SMS routing center first obtains the corresponding gateway or gateway group based on the SMS attributes. For example, if the SMS attribute is a notification SMS, the notification gateway group is obtained. The gateway group brings together a group of gateways with relevant attributes. The priority and weight strategy can be configured for the gateways in the gateway group, and the SMS routing center will automatically adjust the priority and weight of the gateway according to the actual delivery situation.

[0039] The SMS routing center routes based on mobile phone numbers. Mobile phone numbers can be divided into China Mobile, China Unicom and China Telecom. In addition, mobile phone numbers can be configured with blacklists and whitelists. The blacklist refers to mobile phone numbers that do not need to send SMS for some reason. Therefore, if a blacklist is configured, the SMS routing center will directly intercept the blacklisted mobile phone numbers and not send them to the gateway; the whitelist refers to mobile phone numbers that will be sent many times due to business reasons. For example, a mobile phone number may receive hundreds or thousands of alarm SMS messages from a business system. Due to the interception strategy of the SMS routing center, if the whitelist is not set, the mobile phone number will be intercepted. If the whitelist is set, the SMS routing center will release the mobile phone number and send SMS messages normally.

[0040] The SMS routing center routes SMS messages based on their content. The SMS content will first match the template, which can be bound to a gateway or gateway group. SMS content that does not match the template can be directly intercepted according to the policy and will not be sent. SMS content that matches the template will be routed to the gateway or gateway group bound to the template for SMS delivery.

[0041] Step S3: Manually review the SMS. If the review result is SMS gateway, proceed to the next step S4. If the review result is interception, jump to step S5.

[0042] Step S4: The SMS gateway sends the SMS and obtains the SMS status. If the SMS status is successful, the next step S5 is entered. If the SMS status is failed, the SMS is stored in the storage medium and jumps to step S2, and the SMS routing center performs subsequent operations.

[0043] The SMS routing center also provides a method for resending failed SMS messages, including:

[0044] Resend the failed SMS according to the failed SMS status code. The SMS routing center can configure the maximum resend times, resend gateway or gateway group and timeout time for each status code; if the failed SMS has timed out, no resend is performed and the process goes directly to step S5; if the failed SMS resend times exceed the maximum resend times, no resend is performed and the process goes directly to step S5; if the failed SMS has neither timed out nor exceeded the maximum resend times, it is resent according to the bound resend gateway or gateway group.

[0045] Resend the failed SMS according to the number of SMS resending. The SMS routing center configures the maximum number of resending. If the maximum number of resending is exceeded, no resending is performed and the process directly proceeds to step S5. Otherwise, resending is performed.

[0046] The SMS fails and is resent according to the SMS timeout period. The SMS routing center configures the timeout period for failed resending of different SMS attributes. If the timeout period is exceeded, the SMS fails and is not resent, and the process directly proceeds to step S5; otherwise, the SMS fails and is resent.

[0047] Step S5: Return the SMS status to the user.

[0048] Embodiment 2

[0049] like Figure 2 As shown, a short message routing communication system includes a user end, a short message service end, a storage medium, a short message gateway and a short message routing center. The short message service end receives the short message sent by the user end and stores it in the storage medium. The short message routing center retrieves the data in the storage medium for intelligent routing distribution and feeds back the result to the storage medium. The short message gateway sends the short message and stores the result of the short message sending in the storage medium. The short message routing center retrieves the data in the storage medium for resending failed short messages. The short message service end obtains the result of the short message sending from the storage medium and feeds back to the user end.

[0050] The SMS server receives SMS messages submitted by users and feeds back the submission results to users; the storage medium is a transit medium, including traditional databases, cache databases and message queue middleware, which receives data storage from the SMS server, SMS gateway and SMS routing center, and provides data to the SMS server, SMS gateway and SMS routing center for reading.

[0051] The SMS routing center obtains the SMS message from the storage medium, first determines whether it is a failed SMS, and if so, resends the failed SMS. If not, the SMS is routed normally, and finally the routing result is stored in the storage medium.

[0052] The embodiment of the present invention provides a short message routing communication method and system, wherein the modules and system architecture included are designed as distributed clusters, which have the advantages of high availability, scalability, and convenient maintenance. The asynchronous processing mechanism and cache database of the message queue middleware are introduced to greatly improve the performance.

[0053] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A short message routing communication method, characterized in that: The method comprises the following steps: S1: Receive data through the SMS server and store the received data in the storage medium; S2: The SMS routing center collects the received data from the storage medium and calls the routing method to obtain the routing result. If the routing result is the SMS gateway, it proceeds to step S4 to send the SMS. If the routing result is that manual intervention is required, it proceeds to the next step S3. If the routing result is interception, it proceeds to step S5. S3: Manually review the SMS. If the review result is SMS gateway, proceed to the next step S4. If the review result is interception, jump to step S5. S4: The SMS gateway sends the SMS and obtains the SMS status. If the SMS status is successful, it proceeds to the next step S5. If the SMS status is failed, it is stored in the storage medium and jumps to step S2, and the SMS routing center performs subsequent operations; S5: Return the SMS status to the user.

2. A SMS routing communication method as claimed in claim 1, characterized in that: The storage medium includes a database, a cache database and a message queue middleware, wherein the message queue middleware adopts an asynchronous transmission mechanism distributed cluster architecture and supports horizontal dynamic expansion.

3. A SMS routing communication method as claimed in claim 2, characterized in that: The storage medium is a transfer medium, which receives data storage from the SMS service end, the SMS routing center, manual review and the SMS gateway, and provides data to the SMS service end and the SMS routing center for reading.

4. A SMS routing communication method as claimed in claim 1, characterized in that: The SMS routing center obtains routing results based on the mobile phone number and SMS content. The routing results can be divided into SMS gateway, manual review and interception. Different steps are entered according to different routing results to perform subsequent operations.

5. A short message routing communication method as claimed in claim 1, characterized in that: The SMS routing center uses cache database Redis and RocketMQ to store and distribute SMS data.

6. A SMS routing communication method as claimed in claim 1, characterized in that: The SMS routing center adopts a distributed cluster architecture design and supports horizontal dynamic expansion.

7. A short message routing communication system, characterized in that: It includes a user end, a short message service end, a storage medium, a short message gateway and a short message routing center. The short message service end receives the short message sent by the user end and stores it in the storage medium. The short message routing center retrieves the data in the storage medium for judgment and gives a routing result. The short message is distributed or intercepted according to the routing result, and the final short message status is fed back to the storage medium. The short message service end obtains the short message status from the storage medium and pushes it to the user end.

Citation Information

Patent Citations

  • Video short message issuing method, device and system

    CN118354284A

  • Short message route acquisition method and device, equipment, storage medium and program product

    CN119012144A

  • Multi-service upstream and downstream multi-protocol access platform and method based on saas mode

    WO2024178909A1