CN109275112A - SMS processing method, server and computer readable storage medium - Google Patents

SMS processing method, server and computer readable storage medium Download PDF

Info

Publication number
CN109275112A
CN109275112A CN201811250118.4A CN201811250118A CN109275112A CN 109275112 A CN109275112 A CN 109275112A CN 201811250118 A CN201811250118 A CN 201811250118A CN 109275112 A CN109275112 A CN 109275112A
Authority
CN
China
Prior art keywords
short message
identified
transmit queue
refuse messages
processing method
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.)
Pending
Application number
CN201811250118.4A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811250118.4A priority Critical patent/CN109275112A/en
Publication of CN109275112A publication Critical patent/CN109275112A/en
Pending legal-status Critical Current

Links

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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/12Detection or prevention of fraud
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a kind of SMS processing method, server and computer readable storage mediums, by being identified in server-side to the short message to be identified in transmit queue, and when identifying short message to be identified is refuse messages, the refuse messages that will identify that are rejected from transmit queue, and then transmit queue is reintegrated, the transmit queue after integration is transmitted to terminal.Refuse messages will not be received by allowing for terminal in this way, and all refuse messages are all intercepted in server-side, thus will not terminal side would not there are problems that the notice prompt of refuse messages, the user experience is improved.Further, since refuse messages are all intercepted in server-side, thus will not occupied terminal memory source, also, the workload and end cell loss of terminal handler can also be reduced, extend the service life of terminal.

Description

SMS processing method, server and computer readable storage medium
Technical field
The present invention relates to fields of communication technology, more specifically to a kind of SMS processing method, server and computer Readable storage medium storing program for executing.
Background technique
With the continuous development of the communication technology, the daily information interchange of people is also more and more frequent.And people day when short message A kind of major way often linked up simple, easily can carry out information transmitting between men.However, due to there is The phenomenon that user information is revealed, many advertisers, criminal get the communication number of user through various channels, to user Various advertisement SMSs even fraud text message is sent, user is caused to harass.
Currently, blacklist is usually arranged at the terminal for the interception of refuse messages, and then black name is received in terminal When short message in list, it is confirmed that it is refuse messages.But in this scheme, terminal still has notice prompt, needs user Clicking the notice can not just reresent later, poor user experience, and refuse messages still can store at the terminal, occupied terminal Memory source.
Summary of the invention
The technical problem to be solved in the present invention is that: current intercepting rubbish short message mode, terminal still have notice and mention Show, can not just reresent after needing user to click the notice, poor user experience, and refuse messages still can be stored in terminal On, the memory source of occupied terminal.For the technical problem, the present invention provides a kind of SMS processing method, server and calculating Machine readable storage medium storing program for executing.
In order to solve the above technical problems, the present invention provides a kind of SMS processing method, the SMS processing method is applied to Server-side, the SMS processing method include:
Short message to be identified in transmit queue is identified;
When identifying the short message to be identified is refuse messages, the refuse messages that will identify that are from the transmission team It is rejected in column;
The transmit queue is reintegrated, and the transmit queue after integration is transmitted to terminal.
Optionally, the transmit queue by after integration is transmitted includes: to terminal
Transmit queue after integration is transmitted and is distributed processing to application layer;
The short message that application layer finishes distribution processor is respectively sent to corresponding terminal.
Optionally, when the data packet that the application layer finishes distribution processor is respectively sent to corresponding terminal, further includes:
The data packet being disposed is saved in database by the application layer.
Optionally, the short message to be identified in transmit queue, which identify, includes:
It is identified the short message being newly joined in the transmit queue as short message to be identified.
Optionally, the short message to be identified in transmit queue, which identify, includes:
Word segmentation processing is carried out to the short message to be identified in the transmit queue, obtains at least one of the short message to be identified Segment phrase;
According to matching result of the participle phrase of the short message to be identified in default dictionary, the short message to be identified is calculated For the probability value of refuse messages;
When the probability value of the short message to be identified is greater than preset threshold, determine that the short message to be identified is that rubbish is short Letter.
Optionally, the short message to be identified received at described Dui carries out before word segmentation processing, further includes:
According to the frequency that the phrase in the default dictionary occurs in history refuse messages, assigned for each participle phrase Corresponding weight.
Optionally, matching result of the participle phrase according to the short message to be identified in default dictionary, calculates institute Stating the probability value that short message to be identified is refuse messages includes:
According to the weight that each participle phrase is matched in the default dictionary, the weight of the short message to be identified is calculated Average value;
The quantity for obtaining the participle phrase that weight is matched in the default dictionary accounts in the short message to be identified The ratio of all participle phrase quantity;
According to the weight average value and the ratio of the short message to be identified, calculating the short message to be identified is refuse messages Probability value.
Optionally, the short message to be identified in transmit queue, which identify, includes:
Obtain the source numbers of the short message to be identified in the transmit queue;
The source numbers are matched in preset number blacklist;
In successful match of the source numbers in the preset number blacklist, the short message to be identified is determined For refuse messages.
Further, the present invention also provides a kind of server, the server includes that processor, memory and communication are total Line;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize said short message processing side The step of method.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of said short message processing method.
Beneficial effect
SMS processing method, server and computer readable storage medium provided by the invention, it is short for current rubbish Believe that interception mode, terminal still have notice prompt, can not just reresent after needing user to click the notice, user experience The technical issues of difference, and refuse messages still can store at the terminal, the memory source of occupied terminal, by server-side pair Short message to be identified in transmit queue identified, and when identifying short message to be identified is refuse messages, the rubbish that will identify that Rubbish short message is rejected from transmit queue, and then reintegrates transmit queue, and the transmit queue after integration is transmitted to terminal. Refuse messages will not be received by allowing for terminal in this way, and all refuse messages are all intercepted in server-side, thus will not Terminal side would not have the notice prompt of refuse messages, and the user experience is improved.Further, since refuse messages all exist Server-side is intercepted, thus will not occupied terminal memory source, also, the workload of terminal handler can also be reduced And end cell loss, extend the service life of terminal.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 optional terminal of each embodiment to realize the present invention;
A kind of optional communications network system architecture diagram of Fig. 2 each embodiment to realize the present invention;
The structural schematic diagram of Fig. 3 each embodiment one optional server to realize the present invention;
Fig. 4 is a kind of basic procedure schematic diagram for SMS processing method that first embodiment of the invention provides;
Fig. 5 is that a kind of transmit queue by short message identification process that first embodiment of the invention provides changes schematic diagram;
Fig. 6 illustrates the transmit queue variation in short message identification process for another that first embodiment of the invention provides Figure;
Fig. 7 is a kind of short message processing flow schematic diagram that second embodiment of the invention provides;
Fig. 8 is a kind of structural schematic diagram for server that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as with bending Mobile phone, tablet computer, laptop, palm PC, personal digital assistant (the Personal Digital of function Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device, wearable set The fixed terminals such as the mobile terminals such as standby, Intelligent bracelet, pedometer, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage carries out in memory 109 (or other computer readable storage mediums) or via radio frequency unit 101 or WiFi module 102 It sends.Microphone 1042 can be in telephone calling model, logging mode, speech recognition mode etc. operational mode via Mike Wind 1042 receives sound (audio data), and can be audio data by such acoustic processing.Treated audio (language Sound) data can be converted in the case where telephone calling model to be sent to mobile communication base station via radio frequency unit 101 Format output.Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and received with eliminating (or inhibition) With the noise or interference generated during transmission audio signal.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
As shown in figure 3, the structural schematic diagram of each embodiment one optional server to realize the present invention, the server It includes at least: input and output (IO) bus 31, processor 32, memory 33, memory 34 and communication device 35.Wherein,
Input and output (IO) bus 31 respectively with itself belonging to server other components (processor 32, memory 33, Memory 34 and communication device 35) connection, and transmission lines are provided for other components.
Processor 32 usually controls the overall operation of the server belonging to itself.For example, processor 32 execute calculate and really The operation such as recognize.Wherein, processor 32 can be central processing unit (CPU).
Communication device 35, generally includes one or more components, allows server and wireless communication system belonging to itself Radio communication between system or network.
The software code that 33 storage processor of memory is readable, processor is executable, it includes be used for control processor 32 Execute the instruction (i.e. software execution function) of functions described herein.
Based on above-mentioned mobile terminal hardware configuration, communications network system and server architecture, propose that the method for the present invention is each Embodiment.
First embodiment
For current intercepting rubbish short message mode, terminal still has notice prompt, needs user to click this and notifies it Can not just it reresent afterwards, poor user experience, and refuse messages still can store at the terminal, the memory source of occupied terminal Technical problem present embodiments provides a kind of SMS processing method.Shown in Figure 4, Fig. 4 is that one kind provided in this embodiment is short Believe the basic procedure schematic diagram of processing method, be applied to server-side, comprising:
S401: the short message to be identified in transmit queue is identified;
It in this embodiment, can be when server-side receives a short message and is added in transmit queue, i.e., to the short message It is identified.That is: it can be identified in the present embodiment using the short message being newly joined in transmit queue as short message to be identified.
It in the present embodiment, can also be after a transmit queue have been expired, to all short messages one in the transmit queue It rises and is identified.That is: it can also be carried out together using all short messages in transmit queue as short message to be identified in the present embodiment Identification.
In addition, can also be identified to transmit queue in the present embodiment in batches, such as can will be in a transmit queue Short message be divided into n crowd, every a batch m is a, and when every a batch has expired m short message, the m short message that will should just criticize is as short message to be identified It is identified.
S402: when identifying short message to be identified is refuse messages, the refuse messages that will identify that are picked from transmit queue It removes;
It should be noted that due to that can be carried out by the way of batch identification to short message to be identified in the present embodiment Identification, therefore, when by the way of using batch identification, it is understood that there may be the certain short messages to be identified identified are that rubbish is short Letter, and other short message to be identified be normal short message the case where.At this moment processing can be distinguished to this multiple short message to be identified, That a part of short message for being identified as refuse messages is rejected from transmit queue, retain be identified as normal short message that is a part of short Letter.For example, see shown in Fig. 5, server-side simultaneously identifies short message A, B, C in transmit queue 1, after end of identification, if Short message A is refuse messages, and short message B and C are normal short message, then retains short message B and C in last transmit queue 1, short message A is picked It removes.
S403: transmit queue is reintegrated, and the transmit queue after integration is transmitted to terminal.
It should be noted that if being identified using the mode of batch identification to short message to be identified in the present embodiment , if then being had identified in the present embodiment there are when refuse messages, the integration of progress transmit queue is specific after rejecting There are two types of modes: one is directly beaten the transmit queue that remaining short message is constituted as a complete transmit queue Packet;And another kind is after rejecting refuse messages, the short message for continuing newly to receive is added in transmit queue, and is added to new Short message identified and carried out the rejecting according to recognition result, until transmit queue is full by the addition of normal short message.
It should be understood that for the side for identifying the short message being newly joined in transmit queue as short message to be identified For formula (i.e. single to know otherwise), constantly the short message newly received can be identified in the present embodiment, and is identifying Transmit queue is rejected when it is refuse messages out.It, will be short if terminal newly receives a short message A for example, see shown in Fig. 6 Believe that the end of transmit queue 1 is added in A, and short message A is identified, if short message A sets as refuse messages, i.e., by short message A from hair It send in queue 1 and rejects;And if receive a short message B, by short message B be added 1 end of transmit queue, and to short message B carry out Short message B is retained in the end of transmit queue 1 if short message B sets as normal short message by identification.In this way, in this embodiment can be with The short message constantly received to property identifies, and carries out the rejecting according to recognition result, until transmit queue is by normal short Until letter addition is full.
In the present embodiment, after the transmit queue after integrating is packaged, it can will send packet and be sent to application layer progress Distribution processor;And the short message that application layer finishes distribution processor is respectively sent to corresponding terminal.Meanwhile application layer can will be located The data packet finished is managed to be saved in database.In this way, refuse messages will not incoming terminal side, do not have any pass in terminal side In the prompt of refuse messages, there will not be the case where refuse messages expend terminal memory.
In the present embodiment, it in order to guarantee the identification of validity and reliability to(for) short message to be identified, is mentioned in this implementation Following several feasible identification methods are supplied.
In a kind of embodiments possible of the present embodiment, the short message to be identified in transmit queue can be carried out at participle Reason obtains at least one participle phrase of short message to be identified;And then according to the participle phrase of short message to be identified in default dictionary Matching result, calculate short message to be identified be refuse messages probability value;When the probability value of short message to be identified is greater than preset threshold When, determine that short message to be identified is refuse messages.
It is when server-side receives a new message, then first when in the present embodiment, using single know otherwise Word segmentation processing first is carried out to the short message, which is resolved into several specific phrases;When by the way of batch identification, point Other each short message to be identified in transmit queue carries out word segmentation processing, and it is specific that each short message to be identified is resolved into several Phrase.In the present embodiment, phrase length is determined by segmenting used specific segmentation methods, and avoids decomposing as far as possible Phrase that is too long to length, being made of excessive word, to guarantee in subsequent processes to the lookup of refuse messages Feature Words The accuracy matched.
In the present embodiment, the dictionary of refuse messages for identification has been pre-established, it is short to store rubbish in the dictionary Believe most commonly used phrase.Specifically, simultaneously analysis of history refuse messages can be collected, and right by the cloud advantage of server-side The phrase occurred in history refuse messages carries out frequency statistics, and the part phrase high for the frequency of occurrences counted is carrying out After the filtering of the function words such as adverbial word, preposition, conjunction, auxiliary word, interjection, the phrase that will be provided with refuse messages feature is stored into refuse messages Dictionary, using as judge short message that mobile terminal receives whether be refuse messages important evidence.For example, will " ", " more Add " etc. function words filtering after, extract the feature phrase that " prize-winning ", " opening quotation " etc. often occur in refuse messages, store into In dictionary.
It in the present embodiment, can be while establishing dictionary, according to the phrase in preset dictionary in history rubbish The frequency occurred in short message assigns corresponding weight for each phrase.That is, to the phrase stored in dictionary according to the frequency of statistics Rate height assigns corresponding weight, and the weight that the higher phrase of frequency is endowed is higher, and the lower phrase of frequency is endowed Weight it is lower.
A kind of feasible calculation at this point for probability value is, can be according to each participle phrase in default dictionary The weight being fitted on calculates the weight average value of short message to be identified, while obtaining the participle word that weight is matched in default dictionary The quantity of group accounts for the ratio of all participle phrase quantity in the short message to be identified;And then according to the weight average value of short message to be identified With the ratio, the probability value that the short message to be identified is refuse messages is calculated.
Specifically, can be by obtained weight average value multiplied by the ratio value got, the short message, which is thus calculated, is The probability value of refuse messages.It is contemplated that the weight for being also based on short message is flat in addition to the algorithm provided in the present embodiment The probability value of the short message is calculated by other algorithms for mean value and ratio, different one illustrates herein.It should be understood that It is that the probability value that is calculated is bigger, then it represents that a possibility that short message to be identified is refuse messages is higher, and if being calculated Probability value it is smaller, then it represents that the short message be refuse messages a possibility that it is smaller.Therefore one can be set in the present embodiment Threshold value determines whether short message to be identified is refuse messages.It should be clear that the threshold value can be by related personnel such as engineers Rule of thumb or many experiments are analyzed to obtain, and do not discuss in this programme for the setting of threshold value.
And in another embodiments possible of the present embodiment, server-side can preset a number blacklist, And then when identifying to the short message to be identified in transmit queue, the source number of the short message to be identified in transmit queue is obtained Code;And then the source numbers are matched in preset number blacklist;If source numbers are in the black name of preset number Successful match (such as there are the source numbers in preset number blacklist) in list, it is determined that short message to be identified is rubbish Short message.
In the present embodiment, number blacklist can be by historical reception to customer complaint or user's mark come It arrives.Such as server-side largely receives the complaint for a number for a long time, then this number can be then added Into number blacklist.
In addition, in the present embodiment, different number blacklists can be set up respectively for different user.Specifically, The address list of available user, and then be directed to the user, if there are the number in number blacklist in address list, should number Code is rejected from the corresponding number blacklist of the user.It should be noted that in order to save server-side resource, it can be for communication There are the user of the number in number blacklist in record, it is set as sharing preset number blacklist;Or it can be default Number blacklist in there are the user of the number in number blacklist, user's mark is carried out at corresponding number in address list Note, so that the short message that the number is sent is without rejecting when being directed to the user.
It should be understood that above two embodiment can be in conjunction with implementation.For example, first carrying out second of embodiment Identification if second embodiment is identified by, then carries out the identification of the first embodiment.The advantage of doing so is that by For being significantly less than the first embodiment when the expense of server-side when using second of embodiment, therefore first using the Server-side expense can be effectively reduced when being identified compared to only with the first embodiment in two kinds of embodiments;And it is adopting After being identified by with second of embodiment, then the first embodiment is used to be identified, then due to the first implementation Mode is identified that compared to second embodiment accuracy can be higher, it is ensured that accurate to the identification of short message to be identified Property.
It should be understood that each step of said short message processing method can be by server as shown in Figure 3 Lai independent It realizes.Specifically, one or more programs of above-mentioned each step can be realized by storing in memory 33, by processor 32 execute the program, to realize each step of said short message processing method.Further, it should be noted that server and end Short message interacting between end can be realized by communications network system as shown in Figure 2, and the basic structure of terminal can join Structure as shown in Figure 1.
SMS processing method provided in this embodiment, by by server-side to the short message to be identified in transmit queue into Row identification, and when identifying short message to be identified is refuse messages, the refuse messages that will identify that are rejected from transmit queue, into And transmit queue is reintegrated, the transmit queue after integration is transmitted to terminal.Allowing for terminal in this way will not receive Refuse messages, all refuse messages are all intercepted in server-side, thus will not terminal side would not have refuse messages Notice prompt the problem of, the user experience is improved.Further, since refuse messages are all intercepted in server-side, therefore also not The memory source of meeting occupied terminal, also, the workload and end cell loss of terminal handler can also be reduced, extend eventually The service life at end.
Second embodiment
The present embodiment provides a kind of intercepting rubbish short message schemes at the net end of short message, and the refuse messages recognized are directly existed It is just directly abandoned when being transferred to frame, terminal source code is without any processing, also without storage, to reach the mesh of interception , also, the workload and battery loss of processor can also be reduced, extend and uses.
Specifically, short message can identify short message when being transferred to frame side, confirm its be refuse messages or Normal short message directly weeds out the information if being identified as refuse messages from transmit queue, then again by queue Integration is packaged into the application layer that new transmission packet is sent and is distributed processing, database is saved in after application layer process is complete, concurrently It is sent in Activity (application) and is shown.In this way, refuse messages do not have any prompt in mobile phone terminal, will not occupy Memory.
Specifically, short message process flow shown in Figure 7, comprising:
S701: the short message received is identified;
In the present embodiment, server-side can carry out word segmentation processing to the short message received, obtain at least the one of the short message A participle phrase;And then the matching result according to the participle phrase of the short message in default dictionary, calculating the short message is that rubbish is short The probability value of letter;When the probability value of the short message is greater than preset threshold, determine that short message to be identified is refuse messages.
In the present embodiment, server-side can also preset a number blacklist, and then in the short message received, Obtain the source numbers of the short message received;And then the source numbers are matched in preset number blacklist;If Successful match of the source numbers in preset number blacklist, it is determined that the short message is refuse messages.
S702: when the short message received is refuse messages, which is rejected from transmit queue;
In this embodiment, it is retained after will not being backed up to it after refuse messages being rejected.
S703: transmit queue is reintegrated and is packaged into the application layer that new transmission packet is sent and is distributed processing;
S704: being saved in database after application layer process is complete, and be sent on Activity and shown.
In this way, refuse messages do not have any prompt in mobile phone terminal, it will not committed memory.
The intercepting rubbish short message scheme at net end is provided through this embodiment, and terminal will not receive refuse messages, therefore not There can be the prompt to refuse messages, the user experience is improved.Simultaneously as terminal will not receive refuse messages, therefore not Meeting occupied terminal storage resource, while the workload and battery loss of terminal handler can also be reduced, extend terminal and uses Service life.
3rd embodiment
A kind of server is present embodiments provided, it is shown in Figure 8 comprising processor 801, memory 802 and logical Believe bus 803.Wherein:
Communication bus 803 is for realizing the connection communication between processor 801 and memory 802.
Processor 801 is for executing the one or more programs stored in memory 802, to realize above-mentioned first embodiment And/or in second embodiment short message treatment process each step.
The present embodiment provides a kind of computer readable storage mediums, such as floppy disk, CD, hard disk, flash memory, USB flash disk, CF card, SD Card, mmc card etc. are stored with one or more program for realizing above-mentioned each step in the computer readable storage medium, This one or more program can be executed by one or more processor, to realize above-mentioned first embodiment and/or second in fact Apply each step of the short message treatment process in example.Details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, the computer software product be stored in one it is computer-readable In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, calculate Machine, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of SMS processing method, which is characterized in that the SMS processing method is applied to server-side, the short message processing side Method includes:
Short message to be identified in transmit queue is identified;
When identifying the short message to be identified is refuse messages, the refuse messages that will identify that are from the transmit queue It rejects;
The transmit queue is reintegrated, and the transmit queue after integration is transmitted to terminal.
2. SMS processing method as described in claim 1, which is characterized in that the transmit queue by after integration is packaged Being sent to terminal includes:
Transmit queue after integration is transmitted and is distributed processing to application layer;
The short message that application layer finishes distribution processor is respectively sent to corresponding terminal.
3. SMS processing method as claimed in claim 2, which is characterized in that the data that the application layer finishes distribution processor When packet is respectively sent to corresponding terminal, further includes:
The data packet being disposed is saved in database by the application layer.
4. SMS processing method as described in claim 1, which is characterized in that the short message to be identified in transmit queue into Row identifies
It is identified the short message being newly joined in the transmit queue as short message to be identified.
5. SMS processing method according to any one of claims 1-4, which is characterized in that it is described in transmit queue wait know Other short message carries out identification
Word segmentation processing is carried out to the short message to be identified in the transmit queue, obtains at least one participle of the short message to be identified Phrase;
According to matching result of the participle phrase of the short message to be identified in default dictionary, calculating the short message to be identified is rubbish The probability value of rubbish short message;
When the probability value of the short message to be identified is greater than preset threshold, determine that the short message to be identified is refuse messages.
6. SMS processing method as claimed in claim 5, which is characterized in that the short message to be identified received at described Dui carries out Before word segmentation processing, further includes:
According to the frequency that the phrase in the default dictionary occurs in history refuse messages, assigned for each participle phrase corresponding Weight.
7. SMS processing method as claimed in claim 6, which is characterized in that the participle word according to the short message to be identified Matching result of the group in default dictionary, calculating the probability value that the short message to be identified is refuse messages includes:
According to the weight that each participle phrase is matched in the default dictionary, the weight average of the short message to be identified is calculated Value;
The quantity for obtaining the participle phrase that weight is matched in the default dictionary, which accounts in the short message to be identified, to be owned Segment the ratio of phrase quantity;
According to the weight average value and the ratio of the short message to be identified, calculating the short message to be identified is the general of refuse messages Rate value.
8. SMS processing method according to any one of claims 1-4, the short message to be identified in transmit queue is carried out Identification includes:
Obtain the source numbers of the short message to be identified in the transmit queue;
The source numbers are matched in preset number blacklist;
In successful match of the source numbers in the preset number blacklist, determine that the short message to be identified is rubbish Rubbish short message.
9. a kind of server, which is characterized in that the server includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of SMS processing method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in SMS processing method the step of.
CN201811250118.4A 2018-10-25 2018-10-25 SMS processing method, server and computer readable storage medium Pending CN109275112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811250118.4A CN109275112A (en) 2018-10-25 2018-10-25 SMS processing method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811250118.4A CN109275112A (en) 2018-10-25 2018-10-25 SMS processing method, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109275112A true CN109275112A (en) 2019-01-25

Family

ID=65195204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811250118.4A Pending CN109275112A (en) 2018-10-25 2018-10-25 SMS processing method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109275112A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453231A (en) * 2021-06-25 2021-09-28 亚信创新技术(南京)有限公司 Anti-spam short message device, system and method
CN113453173A (en) * 2021-05-14 2021-09-28 国网河北省电力有限公司衡水供电分公司 Short message sending method and device and terminal equipment
CN114780954A (en) * 2022-05-02 2022-07-22 北京万合恒安科技有限公司 Management system and equipment for monitoring communication big data based on cloud platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7269431B1 (en) * 2004-01-16 2007-09-11 Cingular Wireless Ii, Llc System for forwarding SMS messages to other devices
CN101350957A (en) * 2008-07-28 2009-01-21 杨沁沁 Method and equipment for shielding rubbish short message
US8082304B2 (en) * 2004-12-10 2011-12-20 Cisco Technology, Inc. Guaranteed delivery of application layer messages by a network element
CN103458384A (en) * 2013-09-27 2013-12-18 武钢集团昆明钢铁股份有限公司 Enterprise short message sending system and method
CN104794125A (en) * 2014-01-20 2015-07-22 中国科学院深圳先进技术研究院 Method and device for recognizing junk short message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7269431B1 (en) * 2004-01-16 2007-09-11 Cingular Wireless Ii, Llc System for forwarding SMS messages to other devices
US8082304B2 (en) * 2004-12-10 2011-12-20 Cisco Technology, Inc. Guaranteed delivery of application layer messages by a network element
CN101350957A (en) * 2008-07-28 2009-01-21 杨沁沁 Method and equipment for shielding rubbish short message
CN103458384A (en) * 2013-09-27 2013-12-18 武钢集团昆明钢铁股份有限公司 Enterprise short message sending system and method
CN104794125A (en) * 2014-01-20 2015-07-22 中国科学院深圳先进技术研究院 Method and device for recognizing junk short message

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453173A (en) * 2021-05-14 2021-09-28 国网河北省电力有限公司衡水供电分公司 Short message sending method and device and terminal equipment
CN113453231A (en) * 2021-06-25 2021-09-28 亚信创新技术(南京)有限公司 Anti-spam short message device, system and method
CN114780954A (en) * 2022-05-02 2022-07-22 北京万合恒安科技有限公司 Management system and equipment for monitoring communication big data based on cloud platform

Similar Documents

Publication Publication Date Title
CN109039862A (en) Message prompt method, terminal and computer readable storage medium
CN107918850A (en) A kind of express delivery information processing method, terminal and computer-readable recording medium
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN108829476A (en) A kind of message display method, terminal and storage medium
US20170109756A1 (en) User Unsubscription Prediction Method and Apparatus
CN108768775A (en) Information processing method, electronic equipment and computer storage media
CN107277250A (en) Display is concerned the method, terminal and computer-readable recording medium of chat message
CN108600330A (en) Deferred information method for pushing, equipment and computer readable storage medium
CN108898046A (en) Fingerprint power consumption control method, terminal and computer readable storage medium under a kind of screen
CN108537021A (en) Unlocked by fingerprint method, terminal and computer readable storage medium based on double-sided screen
CN110177177A (en) Message back method, mobile terminal and computer readable storage medium
CN108898428A (en) A kind of terminal user enlivens determination method, server and the storage medium of index
CN109219004A (en) Short message unsubscription method, device, mobile terminal and readable storage medium storing program for executing
CN109275112A (en) SMS processing method, server and computer readable storage medium
CN109428923A (en) Information push method, server, terminal and computer readable storage medium
CN110213444A (en) Display methods, device, mobile terminal and the storage medium of mobile terminal message
CN110401806A (en) A kind of video call method of mobile terminal, mobile terminal and storage medium
CN110347306A (en) A kind of multi-screen display method, terminal and computer readable storage medium
CN109151216A (en) Using starting method, mobile terminal, server and computer readable storage medium
CN108958932A (en) A kind of control method of background application, terminal and computer readable storage medium
CN108306856A (en) A kind of interface merging method, client, server and computer readable storage medium
CN110334559A (en) A kind of barcode scanning recognition methods, terminal and computer readable storage medium
CN110083294A (en) Screen interception method, terminal and computer readable storage medium
CN109766211A (en) Method, terminal and the storage medium of shuangping san false-touch prevention
CN109788132A (en) A kind of message treatment method, mobile terminal and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125

RJ01 Rejection of invention patent application after publication