[go: up one dir, main page]

CN111225350B - Intelligent routing method and device for short messages - Google Patents

Intelligent routing method and device for short messages Download PDF

Info

Publication number
CN111225350B
CN111225350B CN201911412176.7A CN201911412176A CN111225350B CN 111225350 B CN111225350 B CN 111225350B CN 201911412176 A CN201911412176 A CN 201911412176A CN 111225350 B CN111225350 B CN 111225350B
Authority
CN
China
Prior art keywords
short message
channel
channel set
acquiring
message channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911412176.7A
Other languages
Chinese (zh)
Other versions
CN111225350A (en
Inventor
蔡朱奎
姜洪亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Zhonghui Information Technology Co ltd
Original Assignee
Guangzhou Zhonghui Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Zhonghui Information Technology Co ltd filed Critical Guangzhou Zhonghui Information Technology Co ltd
Priority to CN201911412176.7A priority Critical patent/CN111225350B/en
Publication of CN111225350A publication Critical patent/CN111225350A/en
Application granted granted Critical
Publication of CN111225350B publication Critical patent/CN111225350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an intelligent routing method and device of short messages, which are used for receiving the short messages sent by users; acquiring a target routing mode of the short message according to a preset intelligent routing strategy, wherein the target routing mode comprises the following steps: any one of template routing, provincial network routing, default routing and manual routing; acquiring a sending channel set of the short message according to the target routing mode; determining a target short message channel from the short message sending channel set according to a priority mode selected by the channel; and sending the short message to a receiving end through the target short message channel, wherein the channel selection priority mode comprises the following steps: security priority, cost priority, and speed priority.

Description

Intelligent routing method and device for short messages
Technical Field
The invention relates to the technical field of short message transmission, in particular to an intelligent short message routing method and device.
Background
The existing short message routing strategies of most short message platforms depend on manual processing, and in the aspect of safety, whether the signature and the content of the short message are in compliance or not and whether a sending number needs to be shielded or not need to be manually judged; in the aspect of cost, manual evaluation is needed to send the optimal cost from which short message channel, so that time and labor are wasted, and errors are easy to occur; in the aspect of speed, when the sending amount of the short messages is large, more people and audit are needed, and the labor cost is increased dramatically. In summary, the manual participation greatly reduces the reliability and the sending efficiency of the short message platform.
Disclosure of Invention
The invention provides an intelligent routing method and device of short messages, which are used for solving the problem of low reliability and low sending efficiency of a short message platform.
An intelligent routing method of short messages is characterized by comprising the following steps:
receiving a short message sent by a user;
acquiring a target routing mode of the short message according to a preset intelligent routing strategy, wherein the target routing mode comprises the following steps: any one of template routing, provincial network routing, default routing and manual routing;
acquiring a sending channel set of the short message according to the target routing mode;
determining a target short message channel from the short message sending channel set according to a priority mode selected by the channel;
sending the short message to a receiving end through the target short message channel, wherein,
the channel selection preference mode includes: security priority, cost priority, and speed priority. Further: the method for acquiring the sending channel set of the short message according to the target routing mode comprises the following steps:
acquiring the short message content, the number information and the short message signature;
matching the short message signature according to a preset sensitive word and sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, judging whether a sending number needs to be shielded according to the unsubscribing complaint history of the number information, and acquiring a first short message channel set in compliance;
according to the number information, acquiring the attribution, the channel unit price, the success rate and the charging mode of the number, and acquiring a second short message channel set with optimal cost;
judging whether the short message content and the short message information are preset aging numbers or aging messages, and if the short message content and the short message code are the preset aging numbers or aging messages, acquiring a directly connected third short message channel set;
when the short message content does not exist, the manual channel is acquired and used as a fourth short message channel set, wherein the manual channel cannot be transmitted from the first short message channel set, the second short message channel set and the third short message channel set;
further: the method comprises the following steps of matching the short message signature according to a preset sensitive word sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, judging whether a sending number needs to be shielded according to the unsubscribing complaint history of the number information, and acquiring a first short message channel set in compliance, wherein the steps comprise:
judging whether the content is in compliance through short message content matching and signature matching: acquiring short message content, matching with a sensitive word sentence library and executing the following steps: let r be a sensitive word sentence library, and r be a list of sensitive words in the sensitive word sentence library1,r2,r3……ri) Constructing a word segmentation list (f, f) of the short message content2,f3……fi) Wherein f isiEstablishing a similarity matrix N for the ith word in the word segmentation list:
Figure BDA0002350259230000031
by a list of sensitive words (r) in a library r of sensitive word periods in the similarity matrix1,r2,r3……ri) And a word segmentation list (f, f) of the short message content2,f3……fi) Calculating the similarity between the participles in the short message content and the sensitive words, and setting the similarity P:
Figure BDA0002350259230000032
when the similarity P is 0, the short message content is in compliance, when the similarity P is more than 0 and less than 0.5, manual review is carried out, and when the similarity P is more than or equal to 0.5, the short message content is not in compliance;
the signature matching comprises the following steps:
acquiring a character string T of the short message signature, and presetting a standard signature character string as L;
judging whether the character string T is matched with the character string L through a KMP algorithm, and acquiring a matching result;
judging whether the signature is a compliant signature or not according to the matching result;
and judging the number quality: extracting the number service subscription cancellation information and number complaint history information according to the number information, judging whether the number is in a normal complaint and cancellation range according to a preset service subscription cancellation standard and a preset number complaint standard, and acquiring a judgment result;
judging whether the number is in compliance according to the judgment result;
and when the content, the number information and the short message signature of the short message are all in compliance, the acquired short message channel set is used as a first short message channel set.
Further: the obtaining of the attribution, the channel unit price, the success rate and the charging mode of the number according to the number information and the obtaining of the second short message channel set with the optimal cost comprise:
obtaining the distance L between the number attribution place and the short message sending placeiI ═ 1, 2.. i), i denotes the cost short message channel
Obtaining a preset channel unit price S (S ═ S)1、S2、S3、S4......Si) Obtaining success coefficient q of any channelsObtaining a cost short message channel set
Figure BDA0002350259230000041
Wherein, giA short message channel with any cost;
and sorting the cost short message channels in the cost short message channel set according to the sizes, and acquiring the short message channel with the lowest cost as a second short message channel set.
Further: the method comprises the steps of judging whether the short message content and the number information are preset aging numbers or aging messages, and if the short message content and the short message number are the preset aging numbers or aging messages, acquiring a directly connected third short message channel set, wherein the steps comprise:
determining whether the time period number is a preset time period number, wherein the time period number is at least one of the following numbers: fixed short number, government affair number, police affair number and member number;
determining whether the aging message is a preset aging message, wherein the aging message is at least one of the following: police service message, complaint message, help seeking message and verification message;
and when the short message is determined to be the preset aging number and the aging message, acquiring a preset direct connection short message channel as a third short message channel set.
Further: the method for determining the target short message channel from the short message sending channel set according to the priority mode selected by the channel comprises the following steps:
acquiring channel attributes of the first short message channel set, the second short message channel set, the third short message channel set and the fourth short message channel, wherein,
the channel attributes include: number attribute, service coverage attribute, speed attribute, extension attribute and signature attribute;
according to a security priority mode, screening short message channels with the same channel attribute in the first short message channel set to serve as a first priority short message channel set;
according to a cost priority mode, screening short message channels with the same channel attribute in the second short message channel set to serve as a second priority short message channel set;
according to a speed priority mode, screening short message channels with the same channel attribute in the third short message channel set to serve as a third priority short message channel set;
and acquiring the short message channels with the same channel attribute and the most items according to the first priority short message channel set, the second priority short message channel set and the third priority short message channel set, and determining the short message channels as the target short message channel.
An intelligent routing device for short messages is characterized by comprising:
a receiving module: the short message receiving device is used for receiving a short message sent by a user;
a first obtaining module: and a target routing mode for acquiring the short message according to a preset intelligent routing strategy, wherein the target routing mode comprises the following steps: any one of template routing, provincial network routing, default routing and manual routing;
a second obtaining module: the sending channel set is used for acquiring the short message according to the target routing mode;
a determination module: the short message sending device is used for determining a target short message channel from the short message sending channel set according to a priority mode selected by a channel;
sending the short message to a receiving end through the target short message channel, wherein,
the channel selection preference mode includes: security priority, cost priority, and speed priority.
Further: the second acquisition module includes:
a first obtaining submodule: the short message signing device is used for acquiring the content, number information and short message signature of the short message;
a second obtaining submodule: the short message service system is used for matching the short message signature according to a preset sensitive word and sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, and judging whether a sending number needs to be shielded or not by the number information unsubscribing complaint history to obtain a first short message channel set in compliance;
a third obtaining submodule: the short message channel collection module is used for acquiring the attribution, channel unit price, success rate and charging mode of the number according to the number information and acquiring a second short message channel collection with optimal cost;
a fourth obtaining submodule: the system comprises a short message content acquisition module, a short message sending module and a short message sending module, wherein the short message content acquisition module is used for judging whether the short message content and the short message sending module are preset aging numbers or aging messages or not according to the short message content and the short message sending code, and acquiring a directly connected third short message channel set if the short message content and the short message sending code are the preset aging numbers or aging messages;
a fifth obtaining submodule: and the artificial channel is used for acquiring the artificial channel as a fourth short message channel set when the short message content can not be transmitted from the first short message channel set, the second short message channel set and the third short message channel set.
Further: the second acquisition sub-module includes:
a matching unit: matching the short message content with a sensitive word sentence library, and matching the signature with a preset character string;
a first judgment unit: judging whether the content is in compliance, and acquiring a first short message channel set;
the third obtaining sub-module includes:
a first acquisition unit: the attribution, the unit price of the channel, the success rate and the charging mode for obtaining the number are obtained;
a second acquisition unit: the short message channel collection module is used for acquiring a second short message channel collection through cost calculation according to the attribution of the number, the channel unit price, the success rate and the charging mode;
the fourth obtaining sub-module includes:
a first recognition unit: the system is used for identifying the preset fixed short number, the government affair number, the police affair number and the member number and acquiring an identification result;
a second recognition unit: the system is used for identifying the preset police service message, the complaint message, the help seeking message and the verification message and acquiring an identification result;
a third acquisition unit: the short message channel acquisition module is used for acquiring a third short message channel set according to the identification result;
the fifth obtaining sub-module includes:
a fourth acquisition unit: and the fourth short message channel set is obtained.
Further: the determining module comprises:
a fifth acquisition unit: used for obtaining the channel attributes of the first short message channel set, the second short message channel set, the third short message channel set and the fourth short message channel, wherein,
the channel attributes include: number attribute, service coverage attribute, speed attribute, extension attribute and signature attribute;
a first screening unit: the short message channel selection module is used for selecting short message channels with the same channel attribute in the first short message channel set according to a security priority mode to serve as a first priority short message channel set;
a second screening unit: the short message channel selection module is used for selecting short message channels with the same channel attribute in the second short message channel set according to a cost priority mode to serve as a second priority short message channel set;
a third screening unit: the short message channel selection module is used for selecting the short message channels with the same channel attribute in the third short message channel set according to a speed priority mode to serve as a third priority short message channel set;
a sixth acquisition unit: and the short message channel acquisition module is used for acquiring the short message channels with the same channel attribute and the most items according to the first priority short message channel set, the second priority short message channel set and the third priority short message channel set, and determining the short message channels as the target short message channel.
The invention has the advantages that the short message routing of the short message platform is selected by the system, the basic attribute and the sending strategy mode of the short message channel are set, the manual intervention is not needed at all, the short message platform automatically selects the optimal routing to send, the time and the labor are saved, the labor cost is greatly reduced, and the reliability and the sending efficiency of the short message platform are improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow diagram of an intelligent routing strategy in an embodiment of the invention;
FIG. 2 is a diagram of the composition structure and policy schema in an embodiment of the present invention
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
As shown in fig. 1 and fig. 2, the intelligent routing method for short messages of the present invention includes:
step 100: receiving a short message sent by a user;
step 101: acquiring a target routing mode of the short message according to a preset intelligent routing strategy, wherein the target routing mode comprises the following steps: any one of template routing, provincial network routing, default routing and manual routing;
step 102: acquiring a sending channel set of the short message according to the target routing mode;
the method comprises the following steps: 103, according to the priority mode selected by the channel, determining a target short message channel from the short message sending channel set;
sending the short message to a receiving end through the target short message channel, wherein,
the channel selection preference mode includes: security priority, cost priority, and speed priority.
The principle of the invention is that based on the short message receiving and sending function and the short message channel selection function of the mobile phone, the short message sent by the user is received, the channel set sent by the short message is determined by the routing mode of the routing strategy selected intelligently, and finally, an optimal short message channel is determined by the priority mode of the routing strategy.
The invention has the advantages that the routing mode of the short message transmitted by the user is selected by the system, the basic attribute and the sending strategy mode of the short message channel are set, the manual intervention is not needed, the optimal route is automatically selected for issuing, the time and the labor are saved, the labor cost is greatly reduced, the reliability and the sending efficiency of the short message platform are improved, a plurality of short message channels can be determined according to the intelligent selection of the routing mode, and finally, the only optimal short message channel is obtained by the intelligent selection mode of the intelligent routing strategy to be used as the target channel. The method greatly shortens the time from sending to receiving of the short message, filters out the short message channels which are not in compliance, determines the short message channel set which can be transmitted, increases the working efficiency, eliminates the short message and the channels which are not in compliance in the work, reduces the cost, reduces the working process and accelerates the transmission speed.
As an embodiment of the present invention:
the method for acquiring the sending channel set of the short message according to the target routing mode comprises the following steps:
acquiring the short message content, the number information and the short message signature;
matching the short message signature according to a preset sensitive word and sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, and determining whether a sending number needs to be shielded according to the number information unsubscribing complaint history to obtain a first short message channel set in compliance;
according to the number information, acquiring the attribution, the channel unit price, the success rate and the charging mode of the number, and acquiring a second short message channel set with optimal cost;
judging whether the short message content and the number information are preset aging numbers or aging messages, and if the short message content and the short message code are the preset aging numbers or aging messages, acquiring a directly connected third short message channel set;
and when the short message content does not exist, the manual channel can not be transmitted from the first short message channel set, the second short message channel set and the third short message channel set, and the manual channel is obtained to be used as a fourth short message channel set.
The principle of the invention is as follows: after the content, number information and short message signature of the short message are acquired, a set capable of carrying out data transmission is screened out through filtering, matching, cost calculation and presetting of an aging number and a message, a first short message channel set, a second short message channel set and a third short message channel set can acquire short message channels more quickly, and a unique short message channel set with higher quality is determined from an existing short message channel set.
The invention has the beneficial effects that: the selection of the short message channel is more intelligent and rapid, and the sending efficiency of the short message is increased. The short message channel set which meets the safety and the compliance, has the lowest cost, the short message channel set which is directly connected, timely and rapid and the manually controllable channel set can be screened out in advance. The short message sending is safer, the cost is lower, and the short message sending is quicker and manually controllable.
As an embodiment of the present invention: the method comprises the following steps of matching the short message signature according to a preset sensitive word sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, judging whether a sending number needs to be shielded according to the unsubscribing complaint history of the number information, and acquiring a first short message channel set in compliance, wherein the steps comprise:
judging whether the content is in compliance through short message content matching and signature matching: acquiring short message content, matching with a sensitive word sentence library and executing the following steps: let the sensitive word sentence library be r, the sensitivityThe list of sensitive words in the word sentence library r is (r)1,r2,r3……ri) Constructing a word segmentation list (f, f) of the short message content2,f3……fi) Wherein f isiEstablishing a similarity matrix N for the ith word in the word segmentation list:
Figure BDA0002350259230000101
by the list of sensitive words in the library r of sensitive word periods in the similarity matrix
(r1,r2,r3……ri) And a word segmentation list (f, f) of the short message content2,f3……fi) Calculating the similarity between the participles in the short message content and the sensitive words, and setting the similarity P:
Figure BDA0002350259230000111
when the similarity P is 0, the short message content is in compliance, when the similarity P is more than 0 and less than 0.5, manual review is carried out, and when the similarity P is more than or equal to 0.5, the short message content is not in compliance;
the signature matching comprises the following steps:
acquiring a character string T of the short message signature, and presetting a standard signature character string as L;
judging whether the character string T is matched with the character string L through a KMP algorithm, and acquiring a matching result;
judging whether the signature is a compliant signature or not according to the matching result;
and judging the number quality: extracting the number service subscription cancellation information and number complaint history information according to the number information, judging whether the number is in a normal complaint and cancellation range according to a preset service subscription cancellation standard and a preset number complaint standard, and acquiring a judgment result;
judging whether the number is in compliance according to the judgment result;
and when the content, the number information and the short message signature of the short message are all in compliance, the acquired short message channel set is used as a first short message channel set.
The principle of the invention is as follows: firstly, based on the filtering rule of the short message content, the similarity between the short message and a preset sensitive word sentence library is calculated through a similarity matrix, and whether the short message is in compliance or not is judged according to the similarity value. And finally, verifying whether the short message is in compliance through the two parts by acquiring the character string of the short message signature and the character string rule preset by the short message platform through the matching rule based on the short message signature and the KMP algorithm. Whether the short message content is in compliance is judged by matching the short message signature and detecting the filter words in the short message content, whether the sending number needs to be shielded is judged by unsubscribing the complaint history, and a proper short message channel set is selected. And acquiring the short message channel under the condition of compliance, and directly deleting the short message channel under the condition of non-compliance. And acquiring a first short message channel. The similarity matrix of the sensitive word sentence library and the short message content is established mainly through a preset content filtering rule and a signature matching rule. And matching the signature with a signature preset by a short message platform according to the signature matching rule, specifically matching through a character string rule, and judging whether the signature is in compliance according to the length of the character string, the meaning of characters in the character string and a KMP algorithm.
The invention has the beneficial effects that: firstly, the safety of the short message is monitored, the non-compliant short message is deleted, and the channel resource of the short message is prevented from being occupied. Some short messages which are not in compliance are deleted mainly through matching of the content excess rate and the signature, so that the transmission quantity of a short message channel is reduced, and the transmission cost is further reduced. The transmission efficiency of other compliance information is improved. The short message channel indirectly improves the short message sending rate and reduces the channel use cost. The timeliness and the effectiveness of the short message are increased indirectly. The processing speed of the short messages is increased on the whole, so that the short messages are processed more conveniently and quickly, and the principles of program saving and cost saving are met. The short messages which are not in compliance can be filtered out, and the use cost of the short message channel is saved. The propagation of the non-compliant short messages is prevented, so that the short messages are more in line with laws and regulations.
As an embodiment of the present invention: the obtaining of the attribution, the channel unit price, the success rate and the charging mode of the number according to the number information and the obtaining of the second short message channel set with the optimal cost comprise:
obtaining the distance L between the number attribution place and the short message sending placeiI ═ 1, 2.. i), i denotes the cost short message channel
Obtaining a preset channel unit price S (S ═ S)1、S2、S3、S4......Si) Obtaining success coefficient q of any channelsObtaining a cost short message channel set
Figure BDA0002350259230000121
Wherein, giA short message channel with any cost;
and sorting the cost short message channels in the cost short message channel set according to the sizes, and acquiring the short message channel with the lowest cost as a second short message channel set.
The principle of the invention is as follows: the number information is used for acquiring the attribution, the channel unit price, the success rate and the charging mode of the number, a cost short message channel set is obtained by acquiring the distance L between the attribution of the number and the short message sending place, and an optimal cost short message channel set is obtained as a second short message channel set according to the cost in the cost channel set.
The invention has the beneficial effects that: the cost required by the short messages of the transmission users of all the short message channels can be obtained, and the short message channel with the lowest cost can be obtained from the cost. The cost of the short message channel is visualized and digitalized. And the optimal short message channel can be obtained as a second short message channel set by taking the lowest-cost short message channel as a reference. The short message channels can be rapidly screened through cost calculation.
As an embodiment of the present invention: the method comprises the steps of judging whether the short message content and the short message number are preset aging numbers or aging messages, and if the short message content and the short message number are the preset aging numbers or aging messages, acquiring a third short message channel set which is directly connected, wherein the steps comprise:
determining whether the time period number is a preset time period number, wherein the time period number is at least one of the following numbers: fixed short number, government affair number, police affair number and member number;
determining whether the aging message is a preset aging message, wherein the aging message is at least one of the following: police service message, complaint message, help seeking message and verification message;
and when the short message is determined to be the preset aging number and the aging message, acquiring a preset direct connection short message channel as a third short message channel set.
The principle of the invention is that whether the content in the short message meets the standards of the aging number and the aging message is judged by using the preset aging number and the aging message, so as to obtain a direct connection short message channel, and the direct connection short message channel is used as a third short message channel set.
The invention has the beneficial effects that: the method can judge whether the short message is an aging number and an aging message, further improve the sending efficiency of the short message, and acquire the direct connection short message channel under the condition that the short message is transmitted by the direct connection short message channel. The short message is sent more quickly. For the special short message, the transmission rate is increased, and the timeliness of the short message cannot be reduced due to the problem of a short message channel.
As an embodiment of the present invention: the method for determining the target short message channel from the short message sending channel set according to the priority mode selected by the channel comprises the following steps:
acquiring channel attributes of the first short message channel set, the second short message channel set, the third short message channel set and the fourth short message channel, wherein,
the channel attributes include: number attribute, service coverage attribute, speed attribute, extension attribute and signature attribute;
according to a security priority mode, screening short message channels with the same channel attribute in the first short message channel set to serve as a first priority short message channel set;
according to a cost priority mode, screening short message channels with the same channel attribute in the second short message channel set to serve as a second priority short message channel set;
according to a speed priority mode, screening short message channels with the same channel attribute in the third short message channel set to serve as a third priority short message channel set;
and acquiring the short message channels with the same channel attribute and the most items according to the first priority short message channel set, the second priority short message channel set and the third priority short message channel set, and determining the short message channels as the target short message channel.
The principle of the invention is as follows: and acquiring a short message channel with the most channel attribute as the only optimal short message channel according to the principle of saving more and obtaining more channel attributes by the priority selection mode according to the condition that the channel attributes in the first short message channel set, the second short message channel set, the third short message channel set and the fourth short message channel are the same.
The invention has the beneficial effects that: the only optimal short message channel is obtained through the channel attribute and the modes of safety priority, speed priority and cost priority, short messages can be transmitted safely, cost is low, speed is high, short message receivers can receive the short messages more quickly, and operation cost of a communication company is reduced. The short message transmission speed and the short message sending cost are improved.
As an embodiment of the present invention:
a receiving module: the short message receiving device is used for receiving a short message sent by a user;
a first obtaining module: and a target routing mode for acquiring the short message according to a preset intelligent routing strategy, wherein the target routing mode comprises the following steps: any one of template routing, provincial network routing, default routing and manual routing;
a second obtaining module: the sending channel set is used for acquiring the short message according to the target routing mode;
a determination module: the short message sending device is used for determining a target short message channel from the short message sending channel set according to a priority mode selected by a channel;
sending the short message to a receiving end through the target short message channel, wherein,
the channel selection preference mode includes: security priority, cost priority, and speed priority.
The principle of the invention is as follows: the principle of the invention is that based on the short message receiving and sending function and the short message channel selection function of a short message platform, the short message sent by a user is received, the channel set sent by the short message is determined through the routing mode of the routing strategy intelligently selected by a routing strategy module, and finally, an optimal short message channel is determined through the priority mode selected by the channel in the routing strategy to be used as a target short message channel.
The method has the advantages that in practical implementation, the short message sent by a user is received through the short message platform, the route mode of transmission is completely intelligently selected by the system, after the basic attribute and the sending strategy mode of the short message channel are set, manual intervention is completely not needed, the optimal route is automatically selected for issuing, time and labor are saved, labor cost is greatly reduced, reliability and sending efficiency of the short message platform are improved, a plurality of short message channels can be determined according to intelligent selection of the route mode, and finally the only optimal short message channel is obtained through the intelligent selection mode of the intelligent route strategy. The method greatly shortens the time from sending to receiving of the short message, filters out the short message channels which are not in compliance, determines the short message channel set which can be transmitted, increases the working efficiency, eliminates the short message and the channels which are not in compliance in the work, reduces the cost, reduces the working process and accelerates the transmission speed.
As an embodiment of the present invention: the second acquisition module includes:
a first obtaining submodule: the short message signing device is used for acquiring the content, number information and short message signature of the short message;
a second obtaining submodule: the short message service system is used for matching the short message signature according to a preset sensitive word and sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, and judging whether a sending number needs to be shielded or not by the number information unsubscribing complaint history to obtain a first short message channel set in compliance;
a third obtaining submodule: the short message channel collection module is used for acquiring the attribution, channel unit price, success rate and charging mode of the number according to the number information and acquiring a second short message channel collection with optimal cost;
a fourth obtaining submodule: the system comprises a short message content acquisition module, a short message sending module and a short message sending module, wherein the short message content acquisition module is used for judging whether the short message content and the short message sending module are preset aging numbers or aging messages or not according to the short message content and the short message sending code, and acquiring a directly connected third short message channel set if the short message content and the short message sending code are the preset aging numbers or aging messages;
a fifth obtaining submodule: and the artificial channel is used for acquiring the artificial channel as a fourth short message channel set when the short message content can not be transmitted from the first short message channel set, the second short message channel set and the third short message channel set.
As an embodiment of the present invention: the second acquisition sub-module includes:
a matching unit: matching the short message content with a sensitive word sentence library, and matching the signature with a preset character string;
a first judgment unit: judging whether the content is in compliance, and acquiring a first short message channel set;
the third obtaining sub-module includes:
a first acquisition unit: the attribution, the unit price of the channel, the success rate and the charging mode for obtaining the number are obtained;
a second acquisition unit: the short message channel collection module is used for acquiring a second short message channel collection through cost calculation according to the attribution of the number, the channel unit price, the success rate and the charging mode;
the fourth obtaining sub-module includes:
a first recognition unit: the system is used for identifying the preset fixed short number, the government affair number, the police affair number and the member number and acquiring an identification result;
a second recognition unit: the system is used for identifying the preset police service message, the complaint message, the help seeking message and the verification message and acquiring an identification result;
a third acquisition unit: the short message channel acquisition module is used for acquiring a third short message channel set according to the identification result;
the fifth obtaining sub-module includes:
a fourth acquisition unit: and the fourth short message channel set is obtained.
The principle of the invention is as follows: the principle of the invention is as follows: firstly, based on the filtering method of the matching unit, similarity is calculated with a preset sensitive word sentence library through a similarity matrix, and whether the short message is in compliance is judged according to the similarity value. And finally, verifying whether the short message is in compliance through the two parts by acquiring the character string of the short message signature and the character string rule preset by the short message platform through the matching rule based on the short message signature and the KMP algorithm. Whether the sending number needs to be shielded or not is judged through the history of the complaints of the unsubscription, and a proper short message channel set is selected. And acquiring the short message channel under the condition of compliance, and directly deleting the short message channel under the condition of non-compliance. And acquiring a first short message channel set. The short messages which are not in compliance can be filtered out, and the use cost of the short message channel is saved. The propagation of the non-compliant short messages is prevented, so that the short messages are more in line with laws and regulations. Based on the cost calculation of the first acquisition unit and the second acquisition unit, acquiring the attribution, the channel unit price, the success rate and the charging mode of the number; thereby obtaining a short message channel with low cost.
The invention has the beneficial effects that: firstly, the safety of the short message is monitored, the non-compliant short message is deleted, and the channel resource of the short message is prevented from being occupied. Some short messages which are not in compliance are deleted mainly through matching of the content excess rate and the signature, so that the transmission quantity of a short message channel is reduced, and the transmission cost is further reduced. The transmission efficiency of other compliance information is improved. The short message channel indirectly improves the short message sending rate and reduces the channel use cost. The timeliness and the effectiveness of the short message are increased indirectly. The processing speed of the short messages is increased on the whole, so that the short messages are processed more conveniently and quickly, and the principles of program saving and cost saving are met. The short messages which are not in compliance can be filtered out, and the use cost of the short message channel is saved. The propagation of the non-compliant short messages is prevented, so that the short messages are more in line with laws and regulations. The fixed short number, the government affair number, the police affair number and the member number can be positioned as the aging number through the aging rule; police, complaint, help messages are positioned as aging messages so that they can be received more quickly by the intended recipient. The sending efficiency of the short messages needing high timeliness is increased.
As an embodiment of the present invention: the determining module comprises:
a fifth acquisition unit: used for obtaining the channel attributes of the first short message channel set, the second short message channel set, the third short message channel set and the fourth short message channel, wherein,
the channel attributes include: number attribute, service coverage attribute, speed attribute, extension attribute and signature attribute;
a first screening unit: the short message channel selection module is used for selecting short message channels with the same channel attribute in the first short message channel set according to a security priority mode to serve as a first priority short message channel set;
a second screening unit: the short message channel selection module is used for selecting short message channels with the same channel attribute in the second short message channel set according to a cost priority mode to serve as a second priority short message channel set;
a third screening unit: the short message channel selection module is used for selecting the short message channels with the same channel attribute in the third short message channel set according to a speed priority mode to serve as a third priority short message channel set;
a sixth acquisition unit: and the short message channel acquisition module is used for acquiring the short message channels with the same channel attribute and the most items according to the first priority short message channel set, the second priority short message channel set and the third priority short message channel set, and determining the short message channels as the target short message channel.
The principle of the invention is as follows: all the same channel attributes of the first short message channel set, the second short message channel set, the third short message channel set and the fourth short message channel are obtained, all the short message channel sets are screened through a screening module, and the only optimal short message channel is obtained as a target short message channel based on the standards of lowest cost, fastest speed and safest.
The invention has the beneficial effects that: the autonomous selectivity of the channel in the short message sending process is increased by an intelligent routing mode, and the efficiency and the transmission speed of short message sending are improved based on the autonomous selectivity.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. An intelligent routing method of short messages is characterized by comprising the following steps:
receiving a short message sent by a user;
acquiring a target routing mode of the short message according to a preset intelligent routing strategy, wherein the target routing mode comprises the following steps: any one of template routing, provincial network routing, default routing and manual routing;
acquiring a sending channel set of the short message according to the target routing mode;
determining a target short message channel from the short message sending channel set according to a priority mode selected by the channel;
sending the short message to a receiving end through the target short message channel, wherein,
the channel selection preference mode includes: security priority, cost priority and speed priority;
the method for acquiring the sending channel set of the short message according to the target routing mode comprises the following steps:
acquiring the short message content, number information and short message signature of the short message;
matching the short message signature according to a preset sensitive word and sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, judging whether a sending number needs to be shielded according to the unsubscribing complaint history of the number information, and acquiring a first short message channel set in compliance;
according to the number information, acquiring the attribution, the channel unit price, the success rate and the charging mode of the number, and acquiring a second short message channel set with optimal cost;
judging whether the short message content and the number information are preset aging numbers or aging messages, and if the short message content and the short message number are the preset aging numbers or aging messages, acquiring a directly connected third short message channel set;
and when the first short message channel set, the second short message channel set and the third short message channel set do not exist, acquiring an artificial channel as a fourth short message channel set.
2. The intelligent routing method of short messages according to claim 1, characterized in that: the method comprises the following steps of matching the short message signature according to a preset sensitive word sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, judging whether a sending number needs to be shielded according to the unsubscribing complaint history of the number information, and acquiring a first short message channel set in compliance, wherein the method comprises the following steps:
whether the content is in compliance is judged through short message content matching, signature matching and number quality, and the steps are as follows: the short message content is matched, and a sensitive word sentence library is set as
Figure 177102DEST_PATH_IMAGE001
Said sensitive word sentence library
Figure 109286DEST_PATH_IMAGE001
The list of sensitive words in (a) is
Figure 407674DEST_PATH_IMAGE002
) (ii) constructing a word segmentation list of the short message content
Figure 374493DEST_PATH_IMAGE003
) Wherein
Figure 614982DEST_PATH_IMAGE004
is the first in the word segmentation list
Figure 486991DEST_PATH_IMAGE005
The number of the word-segmentation is,
Figure 838338DEST_PATH_IMAGE006
as the first in the sensitive word sentence library
Figure 659664DEST_PATH_IMAGE005
Establishing a similarity matrix N by the sensitive word list:
Figure 71054DEST_PATH_IMAGE007
by the sensitive word sentence library in the similarity matrix
Figure 991212DEST_PATH_IMAGE001
List of sensitive words in (
Figure 880670DEST_PATH_IMAGE002
) And the word segmentation list of the short message content (
Figure 822082DEST_PATH_IMAGE003
) Calculating the similarity between the participles in the short message content and the sensitive words, and setting the similarity P:
Figure 404373DEST_PATH_IMAGE008
when the similarity P =0, the short message content is in compliance, when the similarity 0 is larger than and smaller than 0.5, manual review is carried out, and when the similarity P is larger than or equal to 0.5, the short message content is not in compliance;
the signature matching comprises the following steps:
acquiring a character string T of the short message signature, and presetting a standard signature character string as L;
judging whether the character string T is matched with the character string L through a KMP algorithm, and acquiring a matching result;
judging whether the signature is a compliant signature or not according to the matching result;
and judging the number quality: extracting the number service subscription cancellation information and number complaint history information according to the number information, judging whether the number is in a normal complaint and cancellation range according to a preset service subscription cancellation standard and a preset number complaint standard, and acquiring a judgment result;
judging whether the number is in compliance according to the judgment result;
and when the content, the number information and the short message signature of the short message are all in compliance, the acquired short message channel set is used as a first short message channel set.
3. The intelligent routing method of short messages according to claim 1, characterized in that: the obtaining of the attribution, the channel unit price, the success rate and the charging mode of the number according to the number information and the obtaining of the second short message channel set with the optimal cost comprise:
acquiring a distance Li between a number attribution place and a short message sending place, wherein i = (1, 2.... i), and i represents a cost short message channel;
acquiring preset channel unit price S (S = S1, S2, S3 and S4
Figure 47712DEST_PATH_IMAGE009
Obtaining a cost short message channel set
Figure 944124DEST_PATH_IMAGE010
Figure 474463DEST_PATH_IMAGE011
(ii) a Wherein,
Figure 978387DEST_PATH_IMAGE010
a short message channel with any cost;
and sorting the cost short message channels in the cost short message channel set according to the sizes, and acquiring the short message channel with the lowest cost as a second short message channel set.
4. The intelligent routing method of short messages according to claim 1, characterized in that: the method comprises the steps of judging whether the short message content and the number information are preset aging numbers or aging messages, and if the short message content and the short message number are the preset aging numbers or aging messages, acquiring a directly connected third short message channel set, wherein the steps comprise:
determining whether the time period number is a preset time period number, wherein the time period number is at least one of the following numbers: fixed short number, government affair number, police affair number and member number;
determining whether the aging message is a preset aging message, wherein the aging message is at least one of the following: police service message, complaint message, help seeking message and verification message;
and when the short message is determined to be the preset aging number and the aging message, acquiring a preset direct connection short message channel as a third short message channel set.
5. The intelligent routing method of short messages according to claim 1, characterized in that: the method for determining the target short message channel from the short message sending channel set according to the priority mode selected by the channel comprises the following steps:
acquiring channel attributes of the first short message channel set, the second short message channel set, the third short message channel set and the fourth short message channel, wherein,
the channel attributes include: number attribute, service coverage attribute, speed attribute, extension attribute and signature attribute;
according to a security priority mode, screening short message channels with the same channel attribute in the first short message channel set to serve as a first priority short message channel set;
according to a cost priority mode, screening short message channels with the same channel attribute in the second short message channel set to serve as a second priority short message channel set;
according to a speed priority mode, screening short message channels with the same channel attribute in the third short message channel set to serve as a third priority short message channel set;
and acquiring the short message channels with the same channel attribute and the most items according to the first priority short message channel set, the second priority short message channel set and the third priority short message channel set, and determining the short message channels as the target short message channel.
6. An intelligent routing device for short messages is characterized by comprising:
a receiving module: the short message receiving device is used for receiving a short message sent by a user;
a first obtaining module: and a target routing mode for acquiring the short message according to a preset intelligent routing strategy, wherein the target routing mode comprises the following steps: any one of template routing, provincial network routing, default routing and manual routing;
a second obtaining module: the sending channel set is used for acquiring the short message according to the target routing mode;
a determination module: the short message sending device is used for determining a target short message channel from the short message sending channel set according to a priority mode selected by a channel;
sending the short message to a receiving end through the target short message channel, wherein,
the channel selection preference mode includes: security priority, cost priority and speed priority; the second acquisition module includes:
a first obtaining submodule: the short message signing device is used for acquiring the content, number information and short message signature of the short message;
a second obtaining submodule: the short message service system is used for matching the short message signature according to a preset sensitive word and sentence library and detecting filter words in the short message content to judge whether the short message content is in compliance, and judging whether a sending number needs to be shielded or not by the number information unsubscribing complaint history to obtain a first short message channel set in compliance;
a third obtaining submodule: the short message channel collection module is used for acquiring the attribution, channel unit price, success rate and charging mode of the number according to the number information and acquiring a second short message channel collection with optimal cost;
a fourth obtaining submodule: the system comprises a short message sending module, a short message receiving module, a short message sending module and a short message sending module, wherein the short message sending module is used for judging whether the short message sending module is a preset aging number or an aging message according to the short message content and the short message code, and acquiring a directly connected third short message channel set if the short message content and the short message code are the preset aging number or the aging message;
a fifth obtaining submodule: and the artificial channel is used for acquiring the artificial channel as a fourth short message channel set when the short message content can not be transmitted from the first short message channel set, the second short message channel set and the third short message channel set.
7. The intelligent routing device of short messages according to claim 6, wherein:
the second acquisition sub-module includes:
a matching unit: matching the short message content with a sensitive word sentence library, and matching the signature with a preset character string;
a first judgment unit: judging whether the content is in compliance, and acquiring a first short message channel set;
the third obtaining sub-module includes:
a first acquisition unit: the attribution, the unit price of the channel, the success rate and the charging mode for obtaining the number are obtained;
a second acquisition unit: the short message channel collection module is used for acquiring a second short message channel collection through cost calculation according to the attribution of the number, the channel unit price, the success rate and the charging mode;
the fourth obtaining sub-module includes:
a first recognition unit: the system is used for identifying the preset fixed short number, the government affair number, the police affair number and the member number and acquiring an identification result;
a second recognition unit: the system is used for identifying the preset police service message, the complaint message, the help seeking message and the verification message and acquiring an identification result;
a third acquisition unit: the short message channel acquisition module is used for acquiring a third short message channel set according to the identification result;
the fifth obtaining sub-module includes:
a fourth acquisition unit: and the fourth short message channel set is obtained.
8. The intelligent routing device of short messages according to claim 6, wherein: the determining module comprises:
a fifth acquisition unit: used for obtaining the channel attributes of the first short message channel set, the second short message channel set, the third short message channel set and the fourth short message channel, wherein,
the channel attributes include: number attribute, service coverage attribute, speed attribute, extension attribute and signature attribute;
a first screening unit: the short message channel selection module is used for selecting short message channels with the same channel attribute in the first short message channel set according to a security priority mode to serve as a first priority short message channel set;
a second screening unit: the short message channel selection module is used for selecting short message channels with the same channel attribute in the second short message channel set according to a cost priority mode to serve as a second priority short message channel set;
a third screening unit: the short message channel selection module is used for selecting the short message channels with the same channel attribute in the third short message channel set according to a speed priority mode to serve as a third priority short message channel set;
a sixth acquisition unit: and the short message channel acquisition module is used for acquiring the short message channels with the same channel attribute and the most items according to the first priority short message channel set, the second priority short message channel set and the third priority short message channel set, and determining the short message channels as the target short message channel.
CN201911412176.7A 2019-12-31 2019-12-31 Intelligent routing method and device for short messages Active CN111225350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911412176.7A CN111225350B (en) 2019-12-31 2019-12-31 Intelligent routing method and device for short messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911412176.7A CN111225350B (en) 2019-12-31 2019-12-31 Intelligent routing method and device for short messages

Publications (2)

Publication Number Publication Date
CN111225350A CN111225350A (en) 2020-06-02
CN111225350B true CN111225350B (en) 2021-07-27

Family

ID=70829210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911412176.7A Active CN111225350B (en) 2019-12-31 2019-12-31 Intelligent routing method and device for short messages

Country Status (1)

Country Link
CN (1) CN111225350B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891257B (en) * 2020-07-03 2023-03-17 千寻位置网络有限公司 Short message sending method and system
CN114727241B (en) * 2022-03-31 2024-06-25 重庆米帕斯科技有限公司 Method for improving short message group sending efficiency
CN115002693B (en) * 2022-06-29 2024-03-29 上海淇玥信息技术有限公司 Short message sending method and device based on intelligent routing and electronic equipment
CN115696238A (en) * 2022-09-16 2023-02-03 广州市玄武无线科技股份有限公司 Channel intelligent scheduling method and system
CN117896681B (en) * 2024-03-13 2024-05-14 深圳市诚立业科技发展有限公司 Intelligent self-adaptive selection method for short message channel

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695155A (en) * 2009-10-23 2010-04-14 中兴通讯股份有限公司 Method and system for controlling internetwork short message final calling
CN103619032A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Wireless routing equipment optimizing method and device
CN109787843A (en) * 2019-03-14 2019-05-21 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9901036D0 (en) * 1999-01-18 1999-03-10 Pathfinder Tech Resources Ltd Apparatus and method for routing communications
US7672267B2 (en) * 2003-02-07 2010-03-02 Sybase 365, Inc. Intermediary network system and method for facilitating message exchange between wireless networks
CN100382610C (en) * 2004-10-10 2008-04-16 华为技术有限公司 A Method of Short Message Routing Selection under Multipath
US8275830B2 (en) * 2009-01-28 2012-09-25 Headwater Partners I Llc Device assisted CDR creation, aggregation, mediation and billing
US8229484B2 (en) * 2009-06-11 2012-07-24 Genesys Telecommunications Laboratories, Inc. System and methods for integrating short message service messaging with contact center applications
CN103593794B (en) * 2012-08-14 2017-03-15 腾讯科技(深圳)有限公司 The implementation method of information exchange and device
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets
CN110121157B (en) * 2019-04-28 2021-09-10 天通畅达(深圳)科技有限公司 Multi-network converged communication terminal, communication system and converged communication method
CN110493734B (en) * 2019-07-22 2021-11-09 苏宁云计算有限公司 Channel selection method and device for sending short messages

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695155A (en) * 2009-10-23 2010-04-14 中兴通讯股份有限公司 Method and system for controlling internetwork short message final calling
CN103619032A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Wireless routing equipment optimizing method and device
CN109787843A (en) * 2019-03-14 2019-05-21 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine

Also Published As

Publication number Publication date
CN111225350A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN111225350B (en) Intelligent routing method and device for short messages
US8971859B2 (en) Method for blocking crank calls by using cloud computing and a system thereof
CN110267214A (en) A kind of note transmission method, server and storage medium
CN107889069B (en) Short message gateway selection method, device, server and readable storage medium
CN111638948B (en) Multi-channel high-availability big data real-time decision making system and decision making method
CN105808694A (en) Online customer service response system and method
US20100106781A1 (en) Automatic update of contact information in messaging
CN105095223A (en) Method for classifying texts and server
CN102438205B (en) Method and system for pushing service based on action of mobile user
CN111931189B (en) API interface reuse risk detection method, device and API service system
CN116367102B (en) Method and device for automatically switching short message route
WO2019157779A1 (en) Incoming call processing method, electronic device and computer-readable storage medium
CN105337837A (en) Message transmitting method and device
US8738717B2 (en) System and method for delivering variable size messages based on spam probability
CN103874033B (en) A kind of method that irregular refuse messages are identified based on Chinese word segmentation
CN110209794A (en) Processing method, device and the storage medium of evaluation information
CN110348801B (en) Data error stream changing method, device, computer equipment and storage medium
CN114466075A (en) Request processing method and device, electronic equipment and storage medium
CN107610453A (en) A kind of share-car method and system based on the positioning of closely bluetooth hot spot
CN111859078B (en) Information identification method and device and electronic equipment
CN117061232B (en) Early warning method for message security in network communication
CN116260864A (en) Information pushing method and device based on multiple channels and storage medium
CN115118688B (en) Method for sending message based on message template, storage medium and electronic equipment
CN117522591A (en) Processing method, device and equipment of claim data and computer readable storage medium
CN115277916A (en) Call origination number intercepting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant