CN113596754A - Automatic message forwarding method and device suitable for each interface, intelligent terminal and medium - Google Patents

Automatic message forwarding method and device suitable for each interface, intelligent terminal and medium Download PDF

Info

Publication number
CN113596754A
CN113596754A CN202110758369.9A CN202110758369A CN113596754A CN 113596754 A CN113596754 A CN 113596754A CN 202110758369 A CN202110758369 A CN 202110758369A CN 113596754 A CN113596754 A CN 113596754A
Authority
CN
China
Prior art keywords
short message
forwarding
forwarded
received
preset
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.)
Granted
Application number
CN202110758369.9A
Other languages
Chinese (zh)
Other versions
CN113596754B (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.)
Xi'an Zhenyou Communication Technology Co ltd
Original Assignee
Xi'an Zhenyou Communication 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 Xi'an Zhenyou Communication Technology Co ltd filed Critical Xi'an Zhenyou Communication Technology Co ltd
Priority to CN202110758369.9A priority Critical patent/CN113596754B/en
Publication of CN113596754A publication Critical patent/CN113596754A/en
Application granted granted Critical
Publication of CN113596754B publication Critical patent/CN113596754B/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
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/16Communication-related supplementary services, e.g. call-transfer or call-hold
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/90Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Emergency Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Public Health (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method, a device, an intelligent terminal and a medium for automatically forwarding messages of each interface, wherein the method comprises the following steps: monitoring and detecting whether a short message is received; when receiving a short message, judging whether the received short message is a short message to be forwarded according to a preset forwarding rule; and when the received short message is the short message to be forwarded, forwarding the short message to be forwarded to a specified receiving terminal target number according to a preset forwarding rule. The invention provides a short message automatic forwarding method applied to different interfaces, which can be used for butting different short message interfaces according to the forwarding requirement of actual needs to realize the automatic forwarding of self-defined messages suitable for various interfaces.

Description

Automatic message forwarding method and device suitable for each interface, intelligent terminal and medium
Technical Field
The present invention relates to the field of message forwarding technologies, and in particular, to a method and an apparatus for automatically forwarding a message adapted to each interface, an intelligent terminal, and a storage medium.
Background
The emergency command scheduling platform adopts a multi-service fusion design mode, seamless fusion is carried out among different communication means, resource and information isolated islands are eliminated, and interactive fusion and comprehensive calling of voice, video and data services of various communication systems are realized. Resources are managed in a centralized mode, and resources such as communication, data, materials, personnel and vehicles are regulated and controlled in a centralized mode, so that the optimal control of the resources is achieved.
The method gives full play to engineering implementation and maintenance in various fields, has excellent expansibility, and certainly avoids a convenient and quick notification mode like short message notification. The short message communication means realizes the direct information interaction between the members in the emergency scene and between the scene and the command center, ensures that the emergency command center can know the relevant conditions of the emergency timely and accurately, and improves the timeliness and the scientificity of emergency disposal.
The emergency command dispatching platform in the prior art adopts a multi-service integration design mode, and the requirement of docking various short message interfaces is often met in the development of a dispatching system. Some interfaces have a perfect short message method, and some interfaces only have a basic short message receiving and sending function. In an actual application scene, the emergency command dispatching platform in the prior art often cannot meet the multifunctional requirements of customers.
Thus, there is still a need for improvement and development of the prior art.
Disclosure of Invention
The invention provides a method, a device, an intelligent terminal and a storage medium for automatically forwarding messages of various interfaces, aiming at the defects of the prior art.
The technical scheme adopted by the invention for solving the problems is as follows:
a message automatic forwarding method adapting to each interface is provided, wherein the method comprises the following steps:
monitoring and detecting whether a short message is received;
when receiving a short message, judging whether the received short message is a short message to be forwarded according to a preset forwarding rule;
and when the received short message is the short message to be forwarded, forwarding the short message to be forwarded to a specified receiving terminal target number according to a preset forwarding rule.
The method for automatically forwarding the message adapting to each interface comprises the following steps of monitoring and detecting whether the short message is received:
and presetting a forwarding rule which can adapt to the automatic forwarding of the custom messages of various interfaces.
The method for automatically forwarding the message adapting to each interface, wherein the step of presetting the forwarding rule which can adapt to the automatic forwarding of the self-defined message of each interface comprises the following steps:
presetting a sending terminal number to be forwarded by the short message and setting a receiving terminal target number to be forwarded and received by the short message.
The method for automatically forwarding the message adapting to each interface, wherein the step of presetting the forwarding rule which can adapt to the automatic forwarding of the self-defined message of each interface comprises the following steps:
pre-configuring short message forwarding parameters of short message module, and
and a short message module with a forwarding function and specified configuration is created in advance.
The method for automatically forwarding the message adapting to each interface, wherein when the message is received, the step of judging whether the received message is the message to be forwarded according to the preset forwarding rule comprises the following steps:
when receiving the short message, detecting the current short message as the original sending number sent by which number, judging whether the original sending number is the number to be forwarded recorded by the preset forwarding rule, and if so, judging that the received short message is the short message to be forwarded.
The method for automatically forwarding messages adapted to each interface, wherein if the received short message is a short message to be forwarded, forwarding the short message to be forwarded to a target number of a specified receiving end according to a preset forwarding rule includes:
and when the received short message is the short message to be forwarded, extracting a receiving end target number which is forwarded and received by the short message to be forwarded, and forwarding the receiving end target number according to a preset forwarding rule.
The method for automatically forwarding the message adapting to each interface, wherein, when the received short message is the short message to be forwarded, the step of forwarding the short message to be forwarded to the target number of the appointed receiving terminal according to the preset forwarding rule further comprises the following steps:
writing the short message forwarding record into a cache;
recording the forwarding records into a database in real time, and persistently storing data;
and after forwarding, recording the short message sending state in real time.
An apparatus for automatically forwarding a message for each interface, the apparatus comprising:
the monitoring detection module is used for monitoring and detecting whether the short message is received;
the judging module is used for judging whether the received short message is a short message to be forwarded according to a preset forwarding rule when the short message is received;
and the forwarding control module is used for forwarding the short message to be forwarded to a specified receiving terminal target number according to a preset forwarding rule when the received short message is the short message to be forwarded.
An intelligent terminal comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to implement the steps of any of the methods when the one or more programs are executed by one or more processors.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an electronic device, enable the electronic device to perform a method as any one of above.
The invention has the beneficial effects that: the embodiment of the invention provides a short message automatic forwarding method applied to different interfaces, which can be used for butting different short message interfaces according to forwarding requirements of actual needs. The method comprises the following steps: monitoring and detecting whether a short message is received; when receiving a short message, judging whether the received short message is a short message to be forwarded according to a preset forwarding rule; and when the received short message is the short message to be forwarded, forwarding the short message to be forwarded to a specified receiving terminal target number according to a preset forwarding rule. The invention provides a short message automatic forwarding method applied to different interfaces, which can be used for butting different short message interfaces according to the forwarding requirement of actual needs to realize the automatic forwarding of self-defined messages suitable for various interfaces.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a message automatic forwarding method adapted to each interface according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a message automatic forwarding method adapted to each interface according to an embodiment of the present invention.
Fig. 3 is a schematic block diagram of an automatic message forwarding apparatus adapted to each interface according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
The emergency command scheduling platform adopts a multi-service fusion design mode, seamless fusion is carried out among different communication means, resource and information isolated islands are eliminated, and interactive fusion and comprehensive calling of voice, video and data services of various communication systems are realized. Resources are managed in a centralized mode, and resources such as communication, data, materials, personnel and vehicles are regulated and controlled in a centralized mode, so that the optimal control of the resources is achieved.
The method gives full play to engineering implementation and maintenance in various fields, has excellent expansibility, and certainly avoids a convenient and quick notification mode like short message notification. The short message communication means realizes the direct information interaction between the members in the emergency scene and between the scene and the command center, ensures that the emergency command center can know the relevant conditions of the emergency timely and accurately, and improves the timeliness and the scientificity of emergency disposal.
Researches show that the emergency command and dispatch platform in the prior art adopts a multi-service integration design mode, and the demand of docking various short message interfaces is often met in the development of a dispatch system. Some interfaces have a perfect short message method, and some interfaces only have a basic short message receiving and sending function. In an actual application scene, the emergency command dispatching platform in the prior art often cannot meet the multifunctional requirements of customers.
In the embodiment of the invention, when a short message to be sent is detected, a short message platform server detects whether the short message to be sent currently accords with a preset forwarding rule or not, and when the short message to be sent accords with the preset forwarding rule, the short message to be sent is sent to a target number, so that the automatic forwarding method of the self-defined message to be suitable for various interfaces is realized.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides an automatic message forwarding method adapted to each interface, where in the embodiment of the present invention, the method includes the following steps:
s100, monitoring and detecting whether a short message is received;
the embodiment of the invention is based on a command scheduling communication system, and the forwarding rule which can adapt to the automatic forwarding of the custom messages of various interfaces is preset before specific real-time. The step of presetting the forwarding rule which can adapt to the automatic forwarding of the custom messages of various interfaces comprises the following steps:
presetting a number of a sending terminal to which the short message needs to be forwarded, namely, setting which number to receive the short message sent by needs to be forwarded; and setting a receiving end target number for forwarding and receiving the short message, namely setting a receiving end target number which needs to be forwarded correspondingly. In the embodiment of the invention, the short message sent by which number needs to be forwarded is set, and the target number of the receiving end to which the short message needs to be forwarded is set, so that the short message is forwarded according to various numbers corresponding to the preset forwarding rule when being forwarded, the short message forwarding method is not limited by interfaces, and the short message forwarding method can adapt to the automatic forwarding of the self-defined messages of various interfaces.
Further, in the embodiment of the present invention, the step of presetting the forwarding rule that is adaptable to the automatic forwarding of the custom message of each interface includes:
pre-configuring short message forwarding parameters of short message module, and
and a short message module with a forwarding function and specified configuration is created in advance.
The pre-configuring of the short message forwarding parameters of the short message module includes: the prefix of the forwarding number may be a set [1, 132, 114], or may be a single number. And forwarding the target number. Therefore, the short messages can be conveniently screened according to needs, only the concerned short messages are forwarded, and the forwarding target number can be appointed. The short messages are not missed, frequently sent and mistakenly sent.
The pre-created and configured short message module with forwarding function is exemplified by: and a short message module of a forwarding type is created, and the main program can automatically call the forwarding module. The related services of the short message can be executed according to the forwarding rule. In case of creating a general short message module, the short message service only relates to a transmission function. The benefits of this are: different short message module types can be created according to the field requirements and are obtained according to the requirements. The whole code only runs relevant service parts, and redundant modules do not need to be loaded, so that the situations of logic confusion, memory waste and the like are caused.
Step S200, when a short message is received, judging whether the received short message is a short message to be forwarded according to a preset forwarding rule;
in the embodiment of the invention, when a short message is received, whether the received short message is a short message to be forwarded is judged according to a preset forwarding rule, specifically, for example, when the short message is received, which number the current short message is sent to is detected, whether the original sending number is the number to be forwarded recorded by the preset forwarding rule is judged, and if the original sending number is the number to be forwarded, the received short message is judged to be the short message to be forwarded.
Step S300, when the received short message is the short message to be forwarded, forwarding the short message to be forwarded to a specified receiving end target number according to a preset forwarding rule.
In the embodiment of the invention, when the received short message is the short message to be forwarded, the short message to be forwarded at present is forwarded to the target number of the appointed receiving end according to the preset forwarding rule.
Specifically, when the received short message is a short message to be forwarded, a receiving end target number received by forwarding the short message to be forwarded is extracted, and the short message is forwarded to the receiving end target number according to a preset forwarding rule. For example, if the prefix of the forwarding number of the set forwarding rule is 132, the short message sent from the head of 132 will be forwarded one by one. If the set forwarding number is 10086, the short message sent from 10086 number is forwarded. And if the forwarding destination number set by the forwarding rule is set to 19991212141, the short message is automatically sent to 19991212141 when the forwarding condition is met.
In a further embodiment, when the received short message is a short message to be forwarded, the step of forwarding the short message to be forwarded to the target number of the designated receiving end according to the preset forwarding rule further includes:
in the embodiment of the invention, after the short message is forwarded, the short message forwarding record is written into the cache; the transmitted information is stored in the cache in the form of a key-value pair set. When the state is updated later, the state can be conveniently and quickly acquired through a Key value;
recording the forwarding records into a database in real time, and persistently storing data; for example, in the sending process, besides the short message record is put into the cache, the record also needs to be stored in the database, so that the later recovery is facilitated;
after forwarding, the sending state of the short message is recorded in real time, the short message forwarding is automatically executed, and the forwarding state also needs to be updated in real time.
The invention is described in further detail below by means of a specific application example:
the specific application embodiment of the invention provides a message automatic forwarding method suitable for each interface, which comprises the following steps:
step S10: pre-configuring short message forwarding parameters of a short message module;
in the embodiment, the configuration of the short message module is read from the configuration file, and the short message forwarding related parameters of the short message module are added into the configuration file of the main service.
For example: the parameters of the short message module may include: the prefix of the forwarding number may be a set [1, 132, 114], or may be a single number. And forwarding the target number. The benefits of this are: the short messages can be screened as required, only the concerned short messages are forwarded, and the forwarding target number can be appointed. The short messages are not missed, frequently sent and mistakenly sent.
Step S20: pre-creating and configuring a short message module with a designated forwarding function;
in this embodiment, a corresponding short message module type is created in the service code. The short message module has a forwarding function. Other types of modules are responsible for other traffic needs.
For example, a short message module of a forwarding type is created, and when a short message forwarding requirement exists, the main program automatically calls the short message module with the forwarding function. The related services of the short message can be executed according to the forwarding rule. In case of creating a common short message module, the short message service only involves a common sending function.
The advantages of this step are: different short message module types can be created according to the field requirements and are obtained according to the requirements. The whole code only runs relevant service parts, and redundant modules do not need to be loaded, so that the situations of logic confusion, memory waste and the like are caused.
Step S30: and acquiring a setting instruction, and setting the number of the sending end to which the short message needs to be forwarded. And setting which number short messages need to be forwarded. When the set condition is met, the short message is acquired.
For example, if the prefix of the forwarding number is set to 132, the short message sent from the head of 132 will be forwarded one by one. If the sender number for forwarding is 10086, the short message sent from 10086 number is forwarded. The benefits of this are: the method can well filter out useless short messages for the user, and only captures effective information to carry out corresponding flow operation.
Step S40: and setting a target number of a receiving end for forwarding and receiving the short message.
In this embodiment, a receiving end destination number for forwarding reception is set. When the forwarding condition is met, the short message is automatically forwarded to the target number. For example, when the destination number of the forwarding recipient is set to 19991212141, the sms will automatically send a copy to 19991212141 when the forwarding condition is met. The advantages of this step are: the method can be effectively combined with the forwarding number rule, and the concerned information can be received in real time. And the operation of adding contact persons, setting a plan and the like is carried out on the concerned module without going to a business system.
Step S50: monitoring the received short message, judging whether the received short message accords with the conversion rule, and if the received short message accords with the forwarding rule, forwarding the received short message to a target number of a receiving end.
In the embodiment of the invention, the received short message is monitored, whether the received short message accords with the conversion rule or not is judged, and if the received short message accords with the forwarding rule, the received short message is forwarded to the target number of the receiving end; after the operation, the downlink short message can be monitored in real time. Once the forwarding rule is satisfied, the short message is acquired and sent to a target number by using an internal sending method.
For example as described above: the forward number prefix is 132 and the destination number is 19991212141. When 13245454545 comes from a downlink message, the content is the task notification about the fire drill. The module will forward a copy of this message content to 19991212141. If 15941414141, the number sends a notification message about the meeting in the afternoon, the module in this embodiment of the present invention does not need to forward it. The advantages of this step are: the target number selectively selects the short message type. And content concerned by the user can be timely and quickly acquired.
In a further embodiment, the present invention further comprises the steps of:
step S60: and writing the short message forwarding record into a cache.
In the embodiment of the invention, the sent information is stored in a cache in a key-value pair set mode. When the state is updated later, the state can be conveniently and quickly acquired through the Key value. For example: 100 records are cached in the forwarding set, and at this time, the short message with id of 85 is successfully sent. Then the status of the short message can be updated to be successful by directly searching 85 corresponding short message entities in the cache set through the id. The advantages of this step are: the problem that faults occur in the sending process and normal operation of a software flow is hindered can be effectively prevented. In order to ensure the reliability of the data, the data integrity can be effectively maintained by saving the data to the cache.
Step S70: and recording the forwarding records into a database in real time, and persistently storing the data.
In the embodiment of the invention, in the sending process, the short message record is required to be put into the cache, and the record is required to be stored in the database. For example: on a certain day, for natural reasons, a sudden power outage results in service stoppage. The message module can not work, and where is the sent message? And cannot be found. At this time, data persistence plays a key role.
After the power supply is recovered, the records of the database still exist, and the business process is not influenced. If the server where the database is located also fails, then the data integrity can be ensured by policies such as remote backup in the aspect of data architecture.
The advantages of this step are: data persistence is based on the scenario of hardware failures to consider and design. The method mainly considers how a system should process under the condition that partial hardware can be damaged, the service is immediately terminated after data is stored in a database, and the service is restarted after the fault is recovered. Records can still be found from the database. Meanwhile, the data is persistent, and the client can conveniently inquire the short message records.
Step S80: and after forwarding, recording the short message sending state in real time.
In the embodiment of the invention, the short message forwarding is automatically executed, and the forwarding state also needs to be updated in real time. After the module invokes the forwarding method, the thread is required to keep track of what state the forwarded message is currently. And the obtained state is reflected to the client. If the transmission fails, a retransmission mechanism is triggered, and if the transmission succeeds, the report is informed.
For example: when 13245454545 comes from a downlink message, the content is the task notification about the fire drill. The module will forward a copy of this message content to 19991212141. However, during the forwarding process, the transmission is not successful due to network problems. When the network is recovered, the short message entity can be directly obtained from the cache according to the ID, and a retransmission mechanism is triggered. The benefit of this step is that: the retransmission mechanism is used for ensuring that the short message can be sent to the mobile phone of the user. And after the short message is retransmitted for 3 times, if the short message is still not successfully transmitted, the client is reminded of the failure of the short message transmission. The red and bright mark of the failed character is helpful for the user to find the failure problem in time. The change of the short message sending state is that the user can master the whole running state of the short message in front of the computer.
Exemplary device
As shown in fig. 3, an embodiment of the present invention provides an automatic message forwarding apparatus adapted to each interface, where the apparatus includes:
a monitoring detection module 510, configured to monitor and detect whether a short message is received;
the determining module 520 is configured to determine whether the received short message is a short message to be forwarded according to a preset forwarding rule when the short message is received;
the forwarding control module 430 is configured to, when the received short message is a short message to be forwarded, forward the short message to be forwarded to the specified receiving-end target number according to a preset forwarding rule, which is specifically described above.
Based on the above embodiment, the present invention further provides an intelligent terminal, and a schematic block diagram thereof may be as shown in fig. 4. The intelligent terminal comprises a processor, a memory, a network interface and a display screen which are connected through a system bus. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a method of automatic message forwarding that accommodates interfaces. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the intelligent terminal is arranged inside the intelligent terminal in advance and used for detecting the operating temperature of internal equipment.
It will be understood by those skilled in the art that the block diagram shown in fig. 4 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the intelligent terminal to which the solution of the present invention is applied, and a specific intelligent terminal may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In one embodiment, an intelligent terminal is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
monitoring and detecting whether a short message is received;
when receiving a short message, judging whether the received short message is a short message to be forwarded according to a preset forwarding rule;
and when the received short message is the short message to be forwarded, forwarding the short message to be forwarded to the specified receiving end target number according to a preset forwarding rule, specifically as described above.
Wherein, the step of monitoring and detecting whether the short message is received comprises the following steps:
and presetting a forwarding rule which can adapt to the automatic forwarding of the custom messages of various interfaces.
The step of presetting the forwarding rule which can adapt to the automatic forwarding of the custom messages of various interfaces comprises the following steps:
presetting a sending terminal number to be forwarded by the short message and setting a receiving terminal target number to be forwarded and received by the short message.
The step of presetting the forwarding rule which can adapt to the automatic forwarding of the custom messages of various interfaces comprises the following steps:
pre-configuring short message forwarding parameters of short message module, and
and a short message module with a forwarding function and specified configuration is created in advance.
When receiving a short message, judging whether the received short message is a short message to be forwarded according to a preset forwarding rule, wherein the step of judging whether the received short message is the short message to be forwarded comprises the following steps:
when receiving the short message, detecting the current short message as the original sending number sent by which number, judging whether the original sending number is the number to be forwarded recorded by the preset forwarding rule, and if so, judging that the received short message is the short message to be forwarded.
Wherein, if the received short message is a short message to be forwarded, forwarding the short message to be forwarded to a target number of a specified receiving end according to a preset forwarding rule includes:
and when the received short message is the short message to be forwarded, extracting a receiving end target number which is forwarded and received by the short message to be forwarded, and forwarding the receiving end target number according to a preset forwarding rule.
Wherein, the step of forwarding the short message to be forwarded to the target number of the designated receiving end according to the preset forwarding rule further comprises the following steps:
writing the short message forwarding record into a cache;
recording the forwarding records into a database in real time, and persistently storing data;
and after forwarding, recording the short message sending state in real time.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses an automatic message forwarding method, device, intelligent terminal and storage medium suitable for each interface, which can interface different short message interfaces according to the forwarding requirement of actual needs. The method comprises the following steps: monitoring and detecting whether a short message is received; when receiving a short message, judging whether the received short message is a short message to be forwarded according to a preset forwarding rule; and when the received short message is the short message to be forwarded, forwarding the short message to be forwarded to a specified receiving terminal target number according to a preset forwarding rule. The invention provides a short message automatic forwarding method applied to different interfaces, which can be used for butting different short message interfaces according to the forwarding requirement of actual needs to realize the automatic forwarding of self-defined messages suitable for various interfaces.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for automatically forwarding messages adapted to each interface, the method comprising:
monitoring and detecting whether a short message is received;
when receiving a short message, judging whether the received short message is a short message to be forwarded according to a preset forwarding rule;
and when the received short message is the short message to be forwarded, forwarding the short message to be forwarded to a specified receiving terminal target number according to a preset forwarding rule.
2. The method of claim 1, wherein the step of detecting whether the short message is received comprises:
and presetting a forwarding rule which can adapt to the automatic forwarding of the custom messages of various interfaces.
3. The method according to claim 2, wherein the step of presetting the forwarding rule for self-defining automatic forwarding of messages applicable to various interfaces comprises:
presetting a sending terminal number to be forwarded by the short message and setting a receiving terminal target number to be forwarded and received by the short message.
4. The method according to claim 3, wherein the step of presetting the forwarding rule for self-defining automatic forwarding of messages applicable to various interfaces comprises:
pre-configuring short message forwarding parameters of short message module, and
and a short message module with a forwarding function and specified configuration is created in advance.
5. The method as claimed in claim 1, wherein the step of determining whether the received sms is the sms to be forwarded according to the predetermined forwarding rule when the sms is received comprises:
when receiving the short message, detecting the current short message as the original sending number sent by which number, judging whether the original sending number is the number to be forwarded recorded by the preset forwarding rule, and if so, judging that the received short message is the short message to be forwarded.
6. The method of claim 1, wherein the step of forwarding the received short message to a target number of a designated receiving end according to a preset forwarding rule comprises:
and when the received short message is the short message to be forwarded, extracting a receiving end target number which is forwarded and received by the short message to be forwarded, and forwarding the receiving end target number according to a preset forwarding rule.
7. The method according to claim 1, wherein the step of forwarding the short message to be forwarded to the target number of the designated receiving end according to the preset forwarding rule further comprises the following steps:
writing the short message forwarding record into a cache;
recording the forwarding records into a database in real time, and persistently storing data;
and after forwarding, recording the short message sending state in real time.
8. An apparatus for automatically forwarding a message adapted to each interface, the apparatus comprising:
the monitoring detection module is used for monitoring and detecting whether the short message is received;
the judging module is used for judging whether the received short message is a short message to be forwarded according to a preset forwarding rule when the short message is received;
and the forwarding control module is used for forwarding the short message to be forwarded to a specified receiving terminal target number according to a preset forwarding rule when the received short message is the short message to be forwarded.
9. An intelligent terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to implement the steps of the method according to any one of claims 1-7 when the one or more programs are executed by one or more processors.
10. A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1-7.
CN202110758369.9A 2021-07-05 2021-07-05 Automatic message forwarding method and device suitable for each interface, intelligent terminal and medium Active CN113596754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110758369.9A CN113596754B (en) 2021-07-05 2021-07-05 Automatic message forwarding method and device suitable for each interface, intelligent terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110758369.9A CN113596754B (en) 2021-07-05 2021-07-05 Automatic message forwarding method and device suitable for each interface, intelligent terminal and medium

Publications (2)

Publication Number Publication Date
CN113596754A true CN113596754A (en) 2021-11-02
CN113596754B CN113596754B (en) 2022-09-20

Family

ID=78245856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110758369.9A Active CN113596754B (en) 2021-07-05 2021-07-05 Automatic message forwarding method and device suitable for each interface, intelligent terminal and medium

Country Status (1)

Country Link
CN (1) CN113596754B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557571A (en) * 2009-05-25 2009-10-14 中兴通讯股份有限公司 Short message service monitoring method and system by mobile terminal and monitoring center
CN103227977A (en) * 2013-03-07 2013-07-31 王江浩 Method and system for implementing short message sending or mass texting in mobile communication network
CN103763690A (en) * 2014-01-28 2014-04-30 北京奇虎科技有限公司 Method and device for sending short messages to mobile terminal from detection fake base station
CN105141783A (en) * 2015-10-12 2015-12-09 重庆蓝岸通讯技术有限公司 Automatic mobile phone short message forwarding method
US9232367B1 (en) * 2008-04-22 2016-01-05 West Corporation System for receiving and processing multimedia messages sent to a mobile device and method thereof
CN105490912A (en) * 2014-09-16 2016-04-13 中兴通讯股份有限公司 Method and device for achieving conversion of short message into instant message
CN109089231A (en) * 2018-09-30 2018-12-25 闻泰通讯股份有限公司 Retransmission method, device, server and the medium of identifying code short message
CN111294404A (en) * 2020-02-11 2020-06-16 深圳震有科技股份有限公司 Processing method and device, computer equipment and medium suitable for various external short message services

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9232367B1 (en) * 2008-04-22 2016-01-05 West Corporation System for receiving and processing multimedia messages sent to a mobile device and method thereof
CN101557571A (en) * 2009-05-25 2009-10-14 中兴通讯股份有限公司 Short message service monitoring method and system by mobile terminal and monitoring center
CN103227977A (en) * 2013-03-07 2013-07-31 王江浩 Method and system for implementing short message sending or mass texting in mobile communication network
CN103763690A (en) * 2014-01-28 2014-04-30 北京奇虎科技有限公司 Method and device for sending short messages to mobile terminal from detection fake base station
CN105490912A (en) * 2014-09-16 2016-04-13 中兴通讯股份有限公司 Method and device for achieving conversion of short message into instant message
CN105141783A (en) * 2015-10-12 2015-12-09 重庆蓝岸通讯技术有限公司 Automatic mobile phone short message forwarding method
CN109089231A (en) * 2018-09-30 2018-12-25 闻泰通讯股份有限公司 Retransmission method, device, server and the medium of identifying code short message
CN111294404A (en) * 2020-02-11 2020-06-16 深圳震有科技股份有限公司 Processing method and device, computer equipment and medium suitable for various external short message services

Also Published As

Publication number Publication date
CN113596754B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
US6438707B1 (en) Fault tolerant computer system
CN108712501B (en) Information sending method and device, computing equipment and storage medium
CN103067230A (en) Method for achieving hyper text transport protocol (http) service monitoring through embedding monitoring code
CN113596754B (en) Automatic message forwarding method and device suitable for each interface, intelligent terminal and medium
CN110809262A (en) Internet of things equipment operation and maintenance management method based on COAP protocol
CN110312245A (en) A kind of business monitoring method and device of transnational roaming terminal
CN113114716B (en) Edge cloud collaborative control system and method
CN108460160B (en) Off-line method, device, terminal and storage medium of database instance
JPH10247911A (en) System monitor information management equipment in multi-server configuration and system monitor information management method in the multi-server configuration
JP2006277685A (en) Fault occurrence notification program and notifying device
CN111309456B (en) Task execution method and system
CN111367934A (en) Data consistency checking method, device, server and medium
CN114422100B (en) Up-and-down connection processing system, computer equipment and medium of national standard signaling service terminal
JP4608532B2 (en) Security monitoring control system
CN101159524B (en) Automatic protection rearrangement checking method and device
CN111654671B (en) Video data storage method, device, equipment and storage medium
JP2007141007A (en) Support systemization for failure in system operation monitoring
CN109921940B (en) System and method for realizing off-line arrangement processing of network service based on SDWAN scene
CN108848147B (en) SNMP proxy equipment registration method, device, computer equipment and storage medium
CN105808348A (en) Data service scheduling apparatus, system and method
EP0511925A2 (en) Dynamic backup and recovery of focal points in a computer network
CN109981796A (en) A kind of connection method and device
CN112783733B (en) Interface fusing control method, device, medium and electronic equipment
CN114500157B (en) Redundancy implementation system based on CAN gateway, electronic device and computer readable storage medium
CN113240945B (en) Flight telegraph automatic processing fault-tolerant system and method in main and standby civil aviation system

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