[go: up one dir, main page]

CN108243397B - A short message sending method and short message gateway device - Google Patents

A short message sending method and short message gateway device Download PDF

Info

Publication number
CN108243397B
CN108243397B CN201611216041.XA CN201611216041A CN108243397B CN 108243397 B CN108243397 B CN 108243397B CN 201611216041 A CN201611216041 A CN 201611216041A CN 108243397 B CN108243397 B CN 108243397B
Authority
CN
China
Prior art keywords
short message
gateway device
destination
sms
transit
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.)
Expired - Fee Related
Application number
CN201611216041.XA
Other languages
Chinese (zh)
Other versions
CN108243397A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201611216041.XA priority Critical patent/CN108243397B/en
Publication of CN108243397A publication Critical patent/CN108243397A/en
Application granted granted Critical
Publication of CN108243397B publication Critical patent/CN108243397B/en
Expired - Fee Related 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
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

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

Abstract

The invention provides a short message sending method and a short message gateway device, wherein the method comprises the following steps: receiving a short message to be sent to a target short message gateway device; judging whether a transmission link between the target short message gateway equipment and the target short message gateway equipment has a fault or not; and if a transmission link between the target short message gateway equipment and the short message transmission device has a fault, sending the short message to transfer short message gateway equipment, wherein the transfer short message gateway equipment is used for transferring the short message to the target short message gateway equipment. When a transmission link between the short message gateway equipment and the target short message gateway equipment has a fault, the embodiment of the invention selects the transfer short message gateway equipment to forward the short message, so that the short message can still be sent to the target short message gateway equipment.

Description

一种短信发送方法和短信网关设备A short message sending method and short message gateway device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种短信发送方法和短信网关设备。The invention relates to the technical field of communication, in particular to a short message sending method and short message gateway equipment.

背景技术Background technique

随着通信技术的迅速发展,移动终端已经成为人们生活中必不可少的一种工具,并且为用户之间的沟通带来了极大的便捷。用户可以使用移动终端打电话或者发送短信。有些短信需要两个短信网关设备之间进行传输,例如从一个省份发送到另一个省份的短信,就需要在不同的网关设备之间进行传输。但是,当两个短信网关设备之间传输链路存在故障时,其中一短信网关设备无法向另一短信网关设备发送短信消息。With the rapid development of communication technology, mobile terminals have become an indispensable tool in people's lives, and have brought great convenience to communication between users. Users can use mobile terminals to make calls or send text messages. Some short messages need to be transmitted between two short message gateway devices, for example, short messages sent from one province to another need to be transmitted between different gateway devices. However, when there is a fault in the transmission link between the two short message gateway devices, one of the short message gateway devices cannot send short message messages to the other short message gateway device.

可见,现有技术中,当两个短信网关设备之间传输链路存在故障时,其中一短信网关设备无法向另一个短信网关设备发送短信消息。It can be seen that, in the prior art, when the transmission link between two short message gateway devices fails, one of the short message gateway devices cannot send short message messages to the other short message gateway device.

发明内容Contents of the invention

本发明实施例的目的在于提供一种短信发送方法和短信网关设备,解决了当两个短信网关设备之间传输链路存在故障时,其中一短信网关设备无法向另一个短信网关设备发送短信消息的问题。The purpose of the embodiments of the present invention is to provide a short message sending method and a short message gateway device, which solves the problem that one of the short message gateway devices cannot send short message messages to another short message gateway device when there is a fault in the transmission link between the two short message gateway devices The problem.

为了达到上述目的,本发明实施例提供一种短信发送方法,包括:In order to achieve the above object, an embodiment of the present invention provides a short message sending method, including:

接收需要发送至目的短信网关设备的短信消息;Receive SMS messages that need to be sent to the destination SMS gateway device;

判断与所述目的短信网关设备之间的传输链路是否存在故障;Judging whether there is a fault in the transmission link with the destination short message gateway device;

若与所述目的短信网关设备之间的传输链路存在故障,将所述短信消息发送至中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。If there is a fault with the transmission link between the purpose short message gateway equipment, the short message message is sent to the transit short message gateway equipment, and the short message gateway equipment is used to forward the short message message to the purpose short message gateway equipment .

本发明实施例还提供一种短信网关设备,包括:The embodiment of the present invention also provides a short message gateway device, including:

接收模块,用于接收需要发送至目的短信网关设备的短信消息;The receiving module is used to receive the short message message that needs to be sent to the destination short message gateway device;

判断模块,用于判断与所述目的短信网关设备之间的传输链路是否存在故障;A judging module, configured to judge whether there is a fault in the transmission link with the destination SMS gateway device;

发送模块,用于若所述判断模块判断与所述目的短信网关设备之间的传输链路存在故障,将所述短信消息发送至中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。The sending module is used to send the short message message to the transit short message gateway device if the judgment module judges that there is a fault in the transmission link with the destination short message gateway device, and the transit short message gateway device is used to send the short message message to the transit short message gateway device. The short message message is forwarded to the destination short message gateway device.

本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行的一个或多个程序,所述一个或多个程序被所述计算机执行时使所述计算机执行如上述提供的一种短信发送方法。An embodiment of the present invention also provides a computer storage medium, wherein one or more programs executable by the computer are stored in the computer storage medium, and when the one or more programs are executed by the computer, the computer performs the above-mentioned A method for sending SMS messages is provided.

上述技术方案中的一个技术方案具有如下优点或有益效果:One of the above technical solutions has the following advantages or beneficial effects:

本发明实施例,接收需要发送至目的短信网关设备的短信消息;判断与所述目的短信网关设备之间的传输链路是否存在故障;若与所述目的短信网关设备之间的传输链路存在故障,将所述短信消息发送至中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。这样,在与目的短信网关设备的传输链路存在故障时,选择中转短信网关设备进行短信消息的转发,使短信消息依然能发送到目的短信网关设备。In the embodiment of the present invention, receiving a short message message that needs to be sent to the destination short message gateway device; judging whether there is a fault with the transmission link between the destination short message gateway device; if there is a transmission link with the destination short message gateway device fault, sending the short message message to a transit short message gateway device, and the transit short message gateway device is used to forward the short message message to the destination short message gateway device. In this way, when there is a failure in the transmission link with the destination short message gateway device, the relay short message gateway device is selected to forward the short message message, so that the short message message can still be sent to the destination short message gateway device.

附图说明Description of drawings

图1为本发明实施例提供的一种短信发送方法的流程图;Fig. 1 is a flow chart of a short message sending method provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种短信发送方法的流程图;Fig. 2 is the flowchart of another short message sending method provided by the embodiment of the present invention;

图3为本发明实施例提供的一种中转省份网关设备转发短信消息的示意图;FIG. 3 is a schematic diagram of a gateway device in a transit province forwarding a short message according to an embodiment of the present invention;

图4为本发明实施例提供的一种短信消息的中转流程图;Fig. 4 is a transfer flow chart of a short message message provided by an embodiment of the present invention;

图5为本发明实施例提供的一种不同网关账号发送的示意图;Fig. 5 is a schematic diagram of a different gateway account sending provided by an embodiment of the present invention;

图6为本发明实施例提供的一种不同网关账号转发的示意图;FIG. 6 is a schematic diagram of forwarding by different gateway accounts provided by an embodiment of the present invention;

图7为本发明实施例提供的一种短信网关设备的结构图;FIG. 7 is a structural diagram of a short message gateway device provided by an embodiment of the present invention;

图8为本发明实施例提供的另一种短信网关设备的结构图;FIG. 8 is a structural diagram of another short message gateway device provided by an embodiment of the present invention;

图9为本发明实施例提供的另一种短信网关设备的结构图;FIG. 9 is a structural diagram of another short message gateway device provided by an embodiment of the present invention;

图10为本发明实施例提供的另一种短信网关设备的结构图。FIG. 10 is a structural diagram of another short message gateway device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

如图1所示,本发明实施例一种短信发送方法,包括以下步骤:As shown in Figure 1, a kind of short message sending method of the embodiment of the present invention comprises the following steps:

步骤S101、接收需要发送至目的短信网关设备的短信消息。Step S101. Receive a short message that needs to be sent to a destination short message gateway device.

步骤S102、判断与所述目的短信网关设备之间的传输链路是否存在故障。Step S102, judging whether there is a fault in the transmission link with the destination short message gateway device.

步骤S103、若是,将所述短信消息发送至中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。Step S103. If yes, send the short message message to a relay short message gateway device, and the relay short message gateway device is used to forward the short message message to the destination short message gateway device.

本实施例中,上述短信网关设备,可以理解为一种用来管理短信收发的设备。它可以管理集团或者企业向个人发送的短信,或者也可以管理个人向企业或者集团发送的短信,企业集团可以是移动集团、联通集团、电信集团或者某个银行集团等等。上述目的短信网关设备,可以河北、湖北、湖南或者其他省份的短信网关设备。In this embodiment, the above short message gateway device may be understood as a device for managing sending and receiving of short messages. It can manage the short messages sent by groups or enterprises to individuals, or it can also manage the short messages sent by individuals to enterprises or groups. Enterprise groups can be China Mobile Group, China Unicom Group, Telecom Group or a certain banking group, etc. The short message gateway equipment for the above purpose may be the short message gateway equipment in Hebei, Hubei, Hunan or other provinces.

本实施例中,上述若目的短信网关设备无法接收本端短信网关设备发送的短信消息,可以认为传输链路存在故障;或者目的短信网关设备可以接收短信消息,但是丢失率极高,也可以认为传输链路存在故障。若与目的短信网关设备之间的传输链路不存在故障,可以直接向目的短信网关设备发送短信消息,也可以结束流程,本发明实施中的图1以结束流程进行举例说明。In this embodiment, if the above-mentioned destination SMS gateway device cannot receive the short message message sent by the local SMS gateway device, it can be considered that there is a fault in the transmission link; or the destination SMS gateway device can receive the SMS message, but the loss rate is extremely high, it can also be considered The transmission link is faulty. If there is no failure in the transmission link with the destination SMS gateway device, a short message message can be directly sent to the destination SMS gateway device, or the process can be ended. Figure 1 in the implementation of the present invention uses the end process as an example for illustration.

本实施例中,上述中转短信网关设备可以这样理解。例如:河北省的短信网关设备要向湖北省的短信网关设备发送短信消息,但是它们之间的传输链路存在故障,于是河北省的短信网关设备先向河南省的短信网关设备发送短信消息,再由河南省的短信网关设备向湖北省的短信网关设备发送短信消息,这样河南省的短信网关设备就可以认为是中转短信网关设备。In this embodiment, the above-mentioned relay short message gateway device can be understood in this way. For example: the SMS gateway device in Hebei Province wants to send SMS messages to the SMS gateway device in Hubei Province, but there is a fault in the transmission link between them, so the SMS gateway device in Hebei Province first sends SMS messages to the SMS gateway device in Henan Province, Then the short message gateway equipment in Henan Province sends a short message message to the short message gateway equipment in Hubei Province, so that the short message gateway equipment in Henan Province can be considered as a transit short message gateway equipment.

本发明实施例,接收需要发送至目的短信网关设备的短信消息;判断与所述目的短信网关设备之间的传输链路是否存在故障;若是,将所述短信消息发送至中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。这样,在与目的短信网关设备的传输链路存在故障时,选择中转短信网关设备进行短信消息的转发,使短信消息依然能发送到目的短信网关设备。In the embodiment of the present invention, receive a short message message that needs to be sent to the destination short message gateway device; judge whether there is a fault in the transmission link between the destination short message gateway device; if so, send the short message message to the transit short message gateway device, and The relay short message gateway device is used to forward the short message message to the destination short message gateway device. In this way, when there is a failure in the transmission link with the destination short message gateway device, the relay short message gateway device is selected to forward the short message message, so that the short message message can still be sent to the destination short message gateway device.

如图2所示,本发明实施例还提供另一种短信发送方法,包括以下步骤:As shown in Figure 2, the embodiment of the present invention also provides another short message sending method, including the following steps:

步骤S201、接收需要发送至目的短信网关设备的短信消息。Step S201, receiving a short message that needs to be sent to a destination short message gateway device.

步骤S202、判断与所述目的短信网关设备之间的传输链路是否存在故障。Step S202, judging whether there is a fault in the transmission link with the destination short message gateway device.

步骤S203、若是,从多个中转短信网关设备中确定一个中转短信网关设备。Step S203, if yes, determine a transit short message gateway device from a plurality of transit short message gateway devices.

步骤S204、将所述短信消息发送至确定的中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。Step S204, sending the short message message to the determined transit short message gateway device, and the transit short message gateway device is configured to forward the short message message to the destination short message gateway device.

本实施例中,上述短信网关设备、目的短信网关设备和中转短信网关设备在步骤S101-S103中作了解释,在此不再赘述。In this embodiment, the foregoing short message gateway device, destination short message gateway device and transit short message gateway device are explained in steps S101-S103, and will not be repeated here.

本实施例中,上述从多个中转短信网关设备中确定一个中转短信网关设备可以这样理解。例如:有山西、山东和湖南三个短信网关设备用来中转短信消息,可以确定山西的短信网关设备为中转短信网关设备,可以确定山东的短信网关设备为中转短信网关设备,也可以确定湖南的短信网关设备为中转短信网关设备。当然这里除了这些省份的短信网关设备可以作为中转短信网关设备,其他的一些省份的短信网关设备也是可以作为中转短信网关设备的。在有多个中转短信网关设备的情况下,如果某一个短信网关设备出现了问题还可以采用其他的中转短信网关进行短信消息的发送,这样确保短信消息能发送至目的省份。In this embodiment, the determination of a transit message gateway device from multiple transit message gateway devices can be understood in this way. For example, if there are three SMS gateway devices in Shanxi, Shandong and Hunan to transfer SMS messages, you can determine that the SMS gateway device in Shanxi is a relay SMS gateway device, you can determine that the SMS gateway device in Shandong is a relay SMS gateway device, and you can also determine that the SMS gateway device in Hunan is a relay SMS gateway device. The short message gateway device is a transit short message gateway device. Of course, in addition to the SMS gateway devices in these provinces that can be used as relay SMS gateway devices, the SMS gateway devices in other provinces can also be used as relay SMS gateway devices. In the case of multiple transit SMS gateway devices, if a problem occurs in a certain SMS gateway device, other transit SMS gateways can be used to send SMS messages, so as to ensure that the SMS messages can be sent to the destination province.

当然,在确定了中转短信网关设备之后,可以将中转短息网关设备进行锁定,避免其他再短信网关设备再使用该中转短信网关设备转发短信,待故障处理完成后,再解锁中转短信网关设备,恢复正常,中转短信网关设备可以继续转发其他省份的中转短信。当与目的短信网关设备之间的传输链路恢复正常后,就可以使用正常的传输链路进行传输,可以不再使用中转短信网关设备进行中转。Of course, after the relay SMS gateway device is determined, the relay SMS gateway device can be locked to prevent other SMS gateway devices from using the relay SMS gateway device to forward SMS messages, and then unlock the relay SMS gateway device after the troubleshooting is completed. After returning to normal, the relay SMS gateway device can continue to forward the relay SMS of other provinces. When the transmission link with the destination short message gateway device returns to normal, the normal transmission link can be used for transmission, and the relay short message gateway device can no longer be used for transfer.

本实施例中,若与目的短信网关设备之间的传输链路不存在故障,可以直接向目的短信网关设备发送短信消息,也可以结束流程,本发明实施中的图2 以结束流程进行举例说明。In this embodiment, if there is no failure in the transmission link between the destination SMS gateway device, a short message message can be directly sent to the destination SMS gateway device, or the flow process can be ended. Figure 2 in the implementation of the present invention is illustrated by ending the flow process .

为了理解短信消息中转的流程,我们可以参见图3,图3为本发明实施例提供的一种中转省份网关设备转发短信消息的示意图。图中我们可以看到,当 A省和C省之间的传输链路发生故障时,C省向A省发送短信消息的时候,可以通过B省进行中转;A省向C省发送短信消息的时候,可以通过D省进行中转。这样哪怕A省与C省之间的传输链路发生了故障,短信消息依然能发送到目的省份。In order to understand the process of transferring short message messages, we can refer to FIG. 3 , which is a schematic diagram of forwarding short message messages by a gateway device in a transit province provided by an embodiment of the present invention. We can see in the figure that when the transmission link between province A and province C fails, when province C sends a short message to province A, it can be transferred through province B; At that time, you can transit through province D. In this way, even if the transmission link between province A and province C fails, the SMS message can still be sent to the destination province.

为了更好的理解短信消息中转的详细流程,我们还可以参见图4,图4为本发明实施例提供的一种短信消息的中转流程图。图中我们可以看到,首先由 A省的客户集团将短息发送至A省的短信网关设备,A省的短信网关设备向A 省的客户集团发送响应请求,表示收到客户集团的短信。但是在向B省短信网关设备发送短信消息的时候发现B省异常,无法进行短信消息的发送,于是向中转省份C省短信网关设备转发该短信。在对中转省份C省进行的选择的时候,可以是动态的选择,也可以是静态的选择。动态选择可以理解为一种实时的判断,看哪个省份的短信网关设备不是很忙就运用这个省份的短信网关进行短信消息的转发;静态选择可以理解与预先设置好的一些省份,当传输链路出现故障时,就根据预先设置好的这些省份中选择一个省份进行发送。当C 省的短信网关设备接收到A省的短信网关设备发送的短信消息,可以向A省短信网关设备发送一个提示消息,表示已经收到A省短信网关设备的短信。In order to better understand the detailed flow of short message message transfer, we can also refer to FIG. 4 , which is a flow chart of short message message transfer provided by an embodiment of the present invention. We can see in the figure that firstly, the customer group in province A sends a short message to the SMS gateway device in province A, and the SMS gateway device in province A sends a response request to the customer group in province A, indicating that it has received the short message from the customer group. However, when sending a short message message to the short message gateway device in province B, it is found that the province B is abnormal, and the short message message cannot be sent, so the short message is forwarded to the short message gateway device in province C, which is the transit province. When selecting the transit province C, it can be a dynamic selection or a static selection. Dynamic selection can be understood as a kind of real-time judgment, see which province’s SMS gateway device is not very busy, use the province’s SMS gateway to forward SMS messages; static selection can be understood and pre-set provinces, when the transmission link When a failure occurs, select a province to send according to these pre-set provinces. When the short message gateway device in province C receives the short message sent by the short message gateway device in province A, it can send a prompt message to the short message gateway device in province A, indicating that it has received the short message from the short message gateway device in province A.

当C短信网关设备接收到A省的短信网关设备发送的短信消息时,可以根据短信消息里面的被叫号码判断是不是中转短信,因为如果是发送到本省的短信,号码就是本省的号码,但是如果被叫号码是其他省份的号码,就可以判断为中转短信,然后对该短信进行中转。C省短信网关设备向B省的短信网关设备发送中转短信,B省短信网关设备在接收到该中转短信时可以向C省发送一个响应消息,表示接收到C省发送的中转短信。B省短信网关设备再将接收到的中转短信发送给B省的短信中心,并可以接收B省短信中心返回的响应消息,表示已经接收到该中转短信。这样B省的短信中心就能将该中转短信发送给B省的用户,在A省短信网关设备与B省短信网关设备之间的传输链路出现问题的额时候,依然能正常接收A省发送的短信。当然,由个体用户向企业集团发送中转短信,类似与上述的流程。When the short message gateway device of C receives the short message message sent by the short message gateway device in province A, it can judge whether it is a transit short message according to the called number in the short message message, because if it is a short message sent to this province, the number is the number of this province, but If the called number is a number of another province, it can be judged as a relay message, and then the message is relayed. The short message gateway device in province C sends a transit message to the short message gateway device in province B. When receiving the transit short message, the short message gateway device in province B can send a response message to province C, indicating that it has received the transit short message sent by province C. The short message gateway device in province B sends the received transit short message to the short message center in province B, and can receive the response message returned by the short message center in province B, indicating that the transit short message has been received. In this way, the SMS center in province B can send the transit SMS to the users in province B. When there is a problem with the transmission link between the SMS gateway device in province A and the SMS gateway device in province B, it can still receive the message sent by province A normally. SMS. Of course, the individual user sends a transit message to the enterprise group, which is similar to the above-mentioned process.

可选的,所述判断与所述目的短信网关设备之间的传输链路是否存在故障的步骤,包括:Optionally, the step of judging whether there is a fault in the transmission link with the destination SMS gateway device includes:

判断与所述目的短信网关设备之间是否有数据的交互;Judging whether there is data interaction with the destination SMS gateway device;

若与所述目的短信网关设备之间没有数据的交互,则确定与所述目的短信网关设备之间的传输链路存在故障;或者If there is no data interaction with the destination SMS gateway device, it is determined that there is a fault in the transmission link with the destination SMS gateway device; or

判断与所述目的短信网关设备之间的短信消息发送成功率是否小于预设阈值;Judging whether the success rate of sending short message messages with the destination short message gateway device is less than a preset threshold;

若与所述目的短信网关设备之间的短信消息发送成功率小于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障;或者If the success rate of sending short message messages with the destination short message gateway device is less than the preset threshold, then determine that there is a fault in the transmission link with the destination short message gateway device; or

判断与所述目的短信网关设备之间的短信发送失败编码出现的次数是否大于预设阈值;Judging whether the number of occurrences of the short message sending failure code between the destination short message gateway device is greater than a preset threshold;

若与所述目的短信网关设备之间的短信发送失败编码出现的次数大于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障。If the number of occurrences of the short message transmission failure codes with the destination short message gateway device is greater than the preset threshold, it is determined that there is a fault in the transmission link with the destination short message gateway device.

本实施例中,上述判断与所述目的短信网关设备之间是否有数据的交互,这里的数据可以是短信数据,可以是一些链路状态信息,也可以是短信网关的信息,多种形式的数据在这里都是可以的。In this embodiment, whether there is data interaction between the above-mentioned judgment and the destination SMS gateway device, the data here can be SMS data, some link state information, or information of the SMS gateway, in various forms Data are all available here.

本实施例中,上述短信消息发送成功率可以显示在短信网关设备上,可以是实时显示的短信消息发送成功率,也可以是某一段时间内的短信消息发送成功率。判断短信消息发送成功率是否小于预设阈值,这里的预设阈值可以是 95%、96%、97%或者任意用户自定义的一个数值。In this embodiment, the above-mentioned short message sending success rate may be displayed on the short message gateway device, and may be a real-time displayed short message sending success rate, or may be a short message sending success rate within a certain period of time. It is judged whether the success rate of sending the SMS message is less than the preset threshold, where the preset threshold can be 95%, 96%, 97% or any user-defined value.

本实施例中,上述短信发送失败编码出现的次数大于所述预设阈值,这里的预设阈值可以是200次、300次或者400次,当然也可以是用户自定义的其他的次数。这里可以是某一段时间短信发送失败编码出现的次数,例如3月至4月出现的失败编码的次数,或者也可以是3月至今出现所有的失败编码的次数,对此本发明实施例不作限定。In this embodiment, the number of occurrences of the above short message sending failure code is greater than the preset threshold, where the preset threshold can be 200, 300 or 400 times, and of course it can also be other times defined by the user. Here it can be the number of failed codes sent in a certain period of time, such as the number of failed codes from March to April, or the number of all failed codes from March to now, which is not limited by this embodiment of the present invention .

当然,除了使用其中一种方式进行判断链路的故障,也可以将三种方式中的某几种方式进行结合,或者三种方式结合一起进行判断,这种方式也是可以的。Of course, in addition to using one of the methods to judge the fault of the link, some of the three methods can also be combined, or the three methods can be combined to judge, and this method is also possible.

可选的,所述从多个中转短信网关设备中确定一个中转短信网关设备的步骤,包括:Optionally, the step of determining a transit message gateway device from a plurality of transit message gateway devices includes:

从预设的包括多个中转短信网关设备的数据表中,选择一个中转短信网关设备;或者Select a transit SMS gateway device from a preset data table including multiple transit SMS gateway devices; or

收集多个中转短信网关设备的忙闲信息、网关状态信息和传输链路状态信息;Collect busy/busy information, gateway status information and transmission link status information of multiple transit SMS gateway devices;

按照所述忙闲信息、所述网关状态信息和所述传输链路状态信息,确定一个中转短信网关设备。According to the busy/idle information, the gateway state information and the transmission link state information, a transit short message gateway device is determined.

本实施例中,上述从预设的包括多个中转短信网关设备的数据表中,选择一个中转短信网关设备,可以是顺序选择,也可以是随机选择,任意的选择方式在这里都是可以的。In this embodiment, the above-mentioned selection of a transit message gateway device from the preset data table including a plurality of transit message gateway devices can be sequential selection or random selection, and any selection method is all possible here .

本实施例中,预先收集多个中转短信网关设备的忙闲信息、网关状态信息和传输链路状态信息,可以是预先收集,也可以是实时收集。例如预先收集的前两个月的这些状态信息,或者也可以是当时对多个中转网关设备信息进行的收集。上述忙闲信息可以理解为短信网关设备一段时间内处理了了多少条短信,处理的多表示比较忙,处理的少表示比较闲,当然这里的多少可以是预先定义的某一个数值。上述网关状态信息可以理解为此时这个网关有没有在处理短信,此时处理的短信是多还是少。上述传输链路状态信息表示两个短信网关设备之间的传输链路是否导通,是否正常。In this embodiment, the pre-collection of busy/idle information, gateway status information and transmission link status information of a plurality of transit short message gateway devices may be pre-collection or real-time collection. For example, the pre-collected state information of the first two months, or the collection of information on multiple transit gateway devices at that time. The above busy/busy information can be understood as how many short messages the SMS gateway device has processed within a certain period of time. More processing means that it is busy, and less processing means that it is idle. Of course, the number here can be a predefined value. The above gateway state information can be understood as whether the gateway is processing short messages at this time, and whether there are many or few short messages processed at this time. The above transmission link state information indicates whether the transmission link between the two short message gateway devices is connected and normal.

本实施例中,上述按照所述忙闲信息、所述网关状态信息和所述传输链路状态信息,确定一个中转短信网关设备可以这样理解。例如:短信网关设备一的忙闲信息、网关状态信息和传输链路状态信息为前个月处理4万条、此时正在处理3000条和导通;短信网关设备二的忙闲信息、网关状态信息和传输链路状态信息为前个月处理3万条、此时正在处理2500条和导通,这样就可以选择短信网关设备二为中转短信网关设备。当然,这里也可以进行某种函数或者某种算法对这些信息进行计算和判断,例如对不同的信息加上不同的系数,然后进行计算得到中转短信网关设备,这种方式也是可以的。这样选用不太忙的短信网关设备进行中转,既能使短信消息能够发送到目的短信网关设备,也能缓解中转短信网关设备的压力,采用不太忙的中转短信网关设备进行中转,为繁忙的中转短信网关设备缓解了压力。In this embodiment, the determination of a relay short message gateway device based on the busy/idle information, the gateway status information and the transmission link status information can be understood in this way. For example: the busy/busy information, gateway status information and transmission link status information of SMS gateway device 1 processed 40,000 pieces in the previous month, and 3,000 pieces are being processed and connected at this time; the busy/busy information and gateway status of SMS gateway device 2 30,000 pieces of information and transmission link status information were processed in the previous month, and 2,500 pieces are being processed and turned on at this time, so that the second SMS gateway device can be selected as the transit SMS gateway device. Of course, some function or algorithm can also be used to calculate and judge the information, for example, adding different coefficients to different information, and then performing calculations to obtain the relay SMS gateway device. This method is also possible. In this way, the short message gateway device that is not too busy is selected for transfer, which can not only enable the short message message to be sent to the destination short message gateway device, but also relieve the pressure on the transfer short message gateway device. Transit SMS gateway equipment relieves the pressure.

可选的,所述将所述短信消息发送至中转短信网关设备的步骤,包括:Optionally, the step of sending the short message message to the transit short message gateway device includes:

采用与所述中转短信网关设备关联的网关账号,将所述短信消息发送至中转短信网关设备。The gateway account associated with the transit short message gateway device is used to send the short message message to the transit short message gateway device.

本实施例中,上述与所述中转短信网关设备关联的网关账号,可以是一个网关账号关联一个中转短信网关设备,也可以是一个网关账号关联某几个中转短信网关设备。例如:网关账号一关联中转短信网关设备一,网关账号二关联中转短信网关设备二,网关账号三关联中转短信网关设备三;或者也可以是网关账号一关联中转短信网关设备一,网关账号二关联中转短信网关设备二和中转短信网关设备三,这种关联方式也是可以的。这样使用不同的账号管理不同的中转短信网关设备,使管理更加便捷,并且在某个账号出问题时可以用其他账号进行短信的发送。In this embodiment, the above-mentioned gateway account associated with the relay SMS gateway device may be a gateway account associated with a relay SMS gateway device, or a gateway account associated with several relay SMS gateway devices. For example: gateway account 1 is associated with relay SMS gateway device 1, gateway account 2 is associated with relay SMS gateway device 2, gateway account 3 is associated with relay SMS gateway device 3; or gateway account 1 can be associated with relay SMS gateway device 1, and gateway account 2 can be associated This association method is also possible for the relay SMS gateway device 2 and the relay SMS gateway device 3. In this way, different accounts are used to manage different relay SMS gateway devices, which makes the management more convenient, and when a certain account has a problem, other accounts can be used to send SMS.

为了更好的理解网关账号,我们可以参阅图5,图5为不同网关账号发送的示意图。当A省行业网关向C省的行业网关发送消息时,网关账号1无法进行发送,于是使用网关账号2向B省的行业网关发送消息。我们再参阅图6,图6为不同网关账号转发的示意图。图6中,B省的行业网关账号3接收到A 省的短信,对短信进行识别判断为中转短信,于是通过网关账号4向C省进行转发,这样就将A省发出的短信顺利发送至C省,其间在B省进行了中转。In order to better understand the gateway account, we can refer to Figure 5, which is a schematic diagram of sending by different gateway accounts. When the industry gateway in province A sends a message to the industry gateway in province C, gateway account 1 cannot send messages, so gateway account 2 is used to send a message to the industry gateway in province B. Let's refer to Figure 6 again, Figure 6 is a schematic diagram of forwarding by different gateway accounts. In Figure 6, the industry gateway account 3 in province B receives a text message from province A, recognizes the text message as a transit message, and then forwards it to province C through gateway account 4, so that the text message sent by province A is successfully sent to C province, during which a transit was carried out in province B.

本发明实施例,接收需要发送至目的短信网关设备的短信消息;判断与所述目的短信网关设备之间的传输链路是否存在故障;若是,从多个中转短信网关设备中确定一个中转短信网关设备;将所述短信消息发送至确定的中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。这样,在与目的短信网关设备的传输链路存在故障时,选择中转短信网关设备进行短信消息的转发,使短信消息依然能发送到目的短信网关设备。并且能在多个中转短信网关设备中选择一个不繁忙的中转短信网关设备,这样就不会使用到繁忙的中转短信网关设备,减小了繁忙中转短信网关设备的压力。In the embodiment of the present invention, receive a short message message that needs to be sent to the destination short message gateway device; judge whether there is a fault in the transmission link between the destination short message gateway device; if so, determine a transit short message gateway device from a plurality of transit short message gateway devices device; sending the short message message to a determined transit short message gateway device, and the transit short message gateway device is configured to forward the short message message to the destination short message gateway device. In this way, when there is a failure in the transmission link with the destination short message gateway device, the relay short message gateway device is selected to forward the short message message, so that the short message message can still be sent to the destination short message gateway device. Moreover, a non-busy transit message gateway device can be selected among multiple transit message gateway devices, so that the busy transit message gateway device will not be used, reducing the pressure on the busy transit message gateway device.

如图7所示,本发明实施例还提供一种短信网关设备70 ,包括以下模块:As shown in Figure 7, the embodiment of the present invention also provides a short message gateway device 70, including the following modules:

接收模块701,用于接收需要发送至目的短信网关设备的短信消息;Receiving module 701, for receiving the short message message that needs to be sent to destination short message gateway device;

判断模块702,用于判断与所述目的短信网关设备之间的传输链路是否存在故障;A judging module 702, configured to judge whether there is a fault in the transmission link with the destination SMS gateway device;

发送模块703,用于若所述判断模块702判断与所述目的短信网关设备之间的传输链路存在故障,将所述短信消息发送至中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。Sending module 703, is used for if described judging module 702 judges that the transmission link between the destination short message gateway device has a failure, sends the short message message to the transit short message gateway device, and the transit short message gateway device is used to send the short message message to the short message gateway device The short message message is forwarded to the destination short message gateway device.

可选的,如图8所示,所述判断模块702,包括:Optionally, as shown in FIG. 8, the judging module 702 includes:

第一判断单元7021,用于判断与所述目的短信网关设备之间是否有数据的交互;The first judging unit 7021 is configured to judge whether there is data interaction with the destination SMS gateway device;

第一确定单元7022,用于若所述第一判断单元7021判断与所述目的短信网关设备之间没有数据的交互,则确定与所述目的短信网关设备之间的传输链路存在故障;或者The first determination unit 7022 is configured to determine that there is a fault in the transmission link with the destination SMS gateway device if the first judgment unit 7021 judges that there is no data interaction with the destination SMS gateway device; or

第二判断单元7023,用于判断与所述目的短信网关设备之间的短信消息发送成功率是否小于预设阈值;The second judging unit 7023 is configured to judge whether the success rate of sending short messages with the destination short message gateway device is less than a preset threshold;

第二确定单元7024,用于若所述第二判断单元7023判断与所述目的短信网关设备之间的短信消息发送成功率小于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障;或者The second determination unit 7024 is configured to determine whether to send a short message message with the destination SMS gateway device if the second determination unit 7023 judges that the success rate of sending the SMS message with the destination SMS gateway device is less than the preset threshold. There is a failure in the transmission link; or

第三判断单元7025,用于判断与所述目的短信网关设备之间的短信发送失败编码出现的次数是否大于预设阈值;The third judging unit 7025 is used to judge whether the number of occurrences of the short message transmission failure codes with the destination short message gateway device is greater than a preset threshold;

第三确定单元7026,用于若所述第三判断单元7025判断与所述目的短信网关设备之间的短信发送失败编码出现的次数大于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障。The third determination unit 7026 is used to determine the connection with the destination SMS gateway device if the third determination unit 7025 judges that the number of failed SMS sending codes with the destination SMS gateway device occurs more than the preset threshold. There is a fault in the transmission link between them.

可选的,如图9所示,所述发送模块703,包括:Optionally, as shown in FIG. 9, the sending module 703 includes:

第四确定单元7031,用于从多个中转短信网关设备中确定一个中转短信网关设备;The fourth determination unit 7031 is used to determine a transit message gateway device from a plurality of transit message gateway devices;

发送单元7032,用于将所述短信消息发送至确定的中转短信网关设备。The sending unit 7032 is configured to send the short message to the determined transit short message gateway device.

可选的,所述第四确定单元7031用于从预设的包括多个中转短信网关设备的数据表中,选择一个中转短信网关设备;或者Optionally, the fourth determining unit 7031 is configured to select a transit message gateway device from a preset data table including a plurality of transit message gateway devices; or

如图10所示,所述第四确定单元7031包括:As shown in Figure 10, the fourth determination unit 7031 includes:

收集子单元70311,用于收集多个中转短信网关设备的忙闲信息、网关状态信息和传输链路状态信息;The collection subunit 70311 is used to collect the busy/busy information, gateway status information and transmission link status information of multiple transit SMS gateway devices;

确定子单元70312,用于按照所述忙闲信息、所述网关状态信息和所述传输链路状态信息,确定一个中转短信网关设备。The determination subunit 70312 is configured to determine a transit short message gateway device according to the busy/idle information, the gateway status information and the transmission link status information.

可选的,所述发送模块703用于采用与所述中转短信网关设备关联的网关账号,将所述短信消息发送至中转短信网关设备。Optionally, the sending module 703 is configured to use the gateway account associated with the relay short message gateway device to send the short message message to the relay short message gateway device.

本实施例中,上述短信网关设备可以是图1-图2所示的实施例中的短信网关设备,且图1-图2所示的实施例中短信网关设备的任何实施方式都可以被本实施例中的短信网关设备所实现,这里不再赘述。上述短信网关设备,可以在与目的短信网关设备的传输链路存在故障时,选择中转短信网关设备进行短信消息的转发,使短信消息依然能发送到目的短信网关设备。In this embodiment, the above-mentioned short message gateway device can be the short message gateway device in the embodiment shown in Fig. 1-Fig. 2, and any implementation mode of the short message gateway device in the embodiment shown in Fig. 1-Fig. It is implemented by the short message gateway device in the embodiment, which will not be repeated here. The above short message gateway device can select the relay short message gateway device to forward the short message message when the transmission link with the destination short message gateway device fails, so that the short message message can still be sent to the destination short message gateway device.

本领域普通技术人员可以理解实现上述实施例方法的全部或者部分步骤是可以通过程序指令相关的硬件来完成,所述的程序可以存储于一计算机可读取介质中,该程序在执行时,包括以下步骤:Those of ordinary skill in the art can understand that all or part of the steps to realize the methods of the above embodiments can be completed by hardware related to program instructions, and the program can be stored in a computer-readable medium. When the program is executed, it includes The following steps:

接收需要发送至目的短信网关设备的短信消息;Receive SMS messages that need to be sent to the destination SMS gateway device;

判断与所述目的短信网关设备之间的传输链路是否存在故障;Judging whether there is a fault in the transmission link with the destination short message gateway device;

若与所述目的短信网关设备之间的传输链路存在故障,将所述短信消息发送至中转短信网关设备,所述中转短信网关设备用于将所述短信消息转发至所述目的短信网关设备。If there is a fault with the transmission link between the purpose short message gateway equipment, the short message message is sent to the transit short message gateway equipment, and the short message gateway equipment is used to forward the short message message to the purpose short message gateway equipment .

可选的,所述判断与所述目的短信网关设备之间的传输链路是否存在故障的步骤,包括:Optionally, the step of judging whether there is a fault in the transmission link with the destination SMS gateway device includes:

判断与所述目的短信网关设备之间是否有数据的交互;Judging whether there is data interaction with the destination SMS gateway device;

若与所述目的短信网关设备之间没有数据的交互,则确定与所述目的短信网关设备之间的传输链路存在故障;或者If there is no data interaction with the destination SMS gateway device, it is determined that there is a fault in the transmission link with the destination SMS gateway device; or

判断与所述目的短信网关设备之间的短信消息发送成功率是否小于预设阈值;Judging whether the success rate of sending short message messages with the destination short message gateway device is less than a preset threshold;

若与所述目的短信网关设备之间的短信消息发送成功率小于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障;或者If the success rate of sending short message messages with the destination short message gateway device is less than the preset threshold, then determine that there is a fault in the transmission link with the destination short message gateway device; or

判断与所述目的短信网关设备之间的短信发送失败编码出现的次数是否大于预设阈值;Judging whether the number of occurrences of the short message sending failure code between the destination short message gateway device is greater than a preset threshold;

若与所述目的短信网关设备之间的短信发送失败编码出现的次数大于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障。If the number of occurrences of the short message transmission failure codes with the destination short message gateway device is greater than the preset threshold, it is determined that there is a fault in the transmission link with the destination short message gateway device.

可选的,所述将所述短信消息发送至中转短信网关设备的步骤,包括:Optionally, the step of sending the short message message to the transit short message gateway device includes:

从多个中转短信网关设备中确定一个中转短信网关设备;Determining a transit message gateway device from a plurality of transit message gateway devices;

将所述短信消息发送至确定的中转短信网关设备。Send the short message message to the determined transit short message gateway device.

可选的,所述从多个中转短信网关设备中确定一个中转短信网关设备的步骤,包括:Optionally, the step of determining a transit message gateway device from a plurality of transit message gateway devices includes:

从预设的包括多个中转短信网关设备的数据表中,选择一个中转短信网关设备;或者Select a transit SMS gateway device from a preset data table including multiple transit SMS gateway devices; or

收集多个中转短信网关设备的忙闲信息、网关状态信息和传输链路状态信息;Collect busy/busy information, gateway status information and transmission link status information of multiple transit SMS gateway devices;

按照所述忙闲信息、所述网关状态信息和所述传输链路状态信息,确定一个中转短信网关设备。According to the busy/idle information, the gateway state information and the transmission link state information, a transit short message gateway device is determined.

可选的,所述将所述短信消息发送至中转短信网关设备的步骤,包括:Optionally, the step of sending the short message message to the transit short message gateway device includes:

采用与所述中转短信网关设备关联的网关账号,将所述短信消息发送至中转短信网关设备。The gateway account associated with the transit short message gateway device is used to send the short message message to the transit short message gateway device.

所述的存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (6)

1.一种短信发送方法,其特征在于,包括:1. A short message sending method is characterized in that, comprising: 接收需要发送至目的短信网关设备的短信消息;Receive SMS messages that need to be sent to the destination SMS gateway device; 判断与所述目的短信网关设备之间的传输链路是否存在故障;Judging whether there is a fault in the transmission link with the destination short message gateway device; 若与所述目的短信网关设备之间的传输链路存在故障,收集多个中转短信网关设备的忙闲信息、网关状态信息和传输链路状态信息,其中,所述忙闲信息包括所述短信网关设备的月处理短信上限、和本月已经处理的短信条数的总数;If there is a failure in the transmission link with the destination short message gateway device, collect busy and idle information, gateway status information and transmission link status information of a plurality of transit short message gateway devices, wherein the busy and busy information includes the short message The monthly upper limit of the gateway device's SMS processing and the total number of SMS messages that have been processed this month; 按照所述忙闲信息、所述网关状态信息和所述传输链路状态信息,确定一个中转短信网关设备;According to the busy and idle information, the gateway state information and the transmission link state information, determine a transit short message gateway device; 将所述短信消息发送至所确定的中转短信网关设备,使所确定的中转短信网关设备将所述短信消息转发至所述目的短信网关设备;Send the short message message to the determined transit short message gateway device, so that the determined transit short message gateway device forwards the short message message to the destination short message gateway device; 其中,在所述故障存在的期间,将所述所确定的中转短信网关设备进行锁定,限制所述所确定的中转短信网关设备作为其它短信网关设备的中转短信网关设备;Wherein, during the existence of the fault, the determined transit message gateway device is locked, and the determined transit message gateway device is restricted as the transit message gateway device of other message gateway devices; 所述将所述短信消息发送至中转短信网关设备的步骤,包括:The described short message message is sent to the step of transit short message gateway equipment, comprising: 采用与所述中转短信网关设备关联的网关账号,将所述短信消息发送至中转短信网关设备。The gateway account associated with the transit short message gateway device is used to send the short message message to the transit short message gateway device. 2.根据权利要求1所述的方法,其特征在于,所述判断与所述目的短信网关设备之间的传输链路是否存在故障的步骤,包括:2. The method according to claim 1, characterized in that, the step of whether there is a fault in the transmission link between the judgment and the destination SMS gateway device, comprising: 判断与所述目的短信网关设备之间是否有数据的交互;Judging whether there is data interaction with the destination SMS gateway device; 若与所述目的短信网关设备之间没有数据的交互,则确定与所述目的短信网关设备之间的传输链路存在故障;或者If there is no data interaction with the destination SMS gateway device, it is determined that there is a fault in the transmission link with the destination SMS gateway device; or 判断与所述目的短信网关设备之间的短信消息发送成功率是否小于预设阈值;Judging whether the success rate of sending short message messages with the destination short message gateway device is less than a preset threshold; 若与所述目的短信网关设备之间的短信消息发送成功率小于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障;或者If the success rate of sending short message messages with the destination short message gateway device is less than the preset threshold, then determine that there is a fault in the transmission link with the destination short message gateway device; or 判断与所述目的短信网关设备之间的短信发送失败编码出现的次数是否大于预设阈值;Judging whether the number of occurrences of the short message sending failure code between the destination short message gateway device is greater than a preset threshold; 若与所述目的短信网关设备之间的短信发送失败编码出现的次数大于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障。If the number of occurrences of the short message transmission failure codes with the destination short message gateway device is greater than the preset threshold, it is determined that there is a fault in the transmission link with the destination short message gateway device. 3.一种短信网关设备,其特征在于,包括:3. A short message gateway device, characterized in that, comprising: 接收模块,用于接收需要发送至目的短信网关设备的短信消息;The receiving module is used to receive the short message message that needs to be sent to the destination short message gateway device; 判断模块,用于判断与所述目的短信网关设备之间的传输链路是否存在故障;A judging module, configured to judge whether there is a fault in the transmission link with the destination SMS gateway device; 发送模块,用于若所述判断模块判断与所述目的短信网关设备之间的传输链路存在故障,收集多个中转短信网关设备的忙闲信息、网关状态信息和传输链路状态信息;按照所述忙闲信息、所述网关状态信息和所述传输链路状态信息,确定一个中转短信网关设备;将所述短信消息发送至所确定的中转短信网关设备,使所确定的中转短信网关设备将所述短信消息转发至所述目的短信网关设备,其中,所述忙闲信息包括所述短信网关设备的月处理短信条数上限、和本月已经处理的短信的总数;Sending module, is used for if described judging module judges and the transmission link between described purpose short message gateway equipment has trouble, collects busy information, gateway state information and transmission link state information of a plurality of transit short message gateway equipments; According to The busy and idle information, the gateway state information and the transmission link state information determine a transit short message gateway device; the short message message is sent to the determined transit short message gateway device, so that the determined transit short message gateway device Forwarding the SMS message to the destination SMS gateway device, wherein the busy information includes the upper limit of the number of SMS messages processed by the SMS gateway device and the total number of processed SMS messages this month; 其中,在所述故障存在的期间,将所述所确定的中转短信网关设备进行锁定,限制所述所确定的中转短信网关设备作为其它短信网关设备的中转短信网关设备;Wherein, during the existence of the fault, the determined transit message gateway device is locked, and the determined transit message gateway device is restricted as the transit message gateway device of other message gateway devices; 其中,所述发送模块用于采用与所述中转短信网关设备关联的网关账号,将所述短信消息发送至中转短信网关设备。Wherein, the sending module is used to send the short message message to the relay short message gateway device by using the gateway account associated with the relay short message gateway device. 4.根据权利要求3所述的短信网关设备,其特征在于,所述判断模块,包括:4. The short message gateway device according to claim 3, wherein the judging module includes: 第一判断单元,用于判断与所述目的短信网关设备之间是否有数据的交互;The first judging unit is used to judge whether there is data interaction with the destination SMS gateway device; 第一确定单元,用于若所述第一判断单元判断与所述目的短信网关设备之间没有数据的交互,则确定与所述目的短信网关设备之间的传输链路存在故障;或者The first determination unit is configured to determine that there is a fault in the transmission link with the destination SMS gateway device if the first judgment unit judges that there is no data interaction with the destination SMS gateway device; or 第二判断单元,用于判断与所述目的短信网关设备之间的短信消息发送成功率是否小于预设阈值;The second judging unit is used to judge whether the success rate of sending short message messages with the destination short message gateway device is less than a preset threshold; 第二确定单元,用于若所述第二判断单元判断与所述目的短信网关设备之间的短信消息发送成功率小于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障;或者The second determination unit is used to determine the transmission with the destination SMS gateway device if the second judgment unit judges that the success rate of sending the SMS message with the destination SMS gateway device is less than the preset threshold the link is faulty; or 第三判断单元,用于判断与所述目的短信网关设备之间的短信发送失败编码出现的次数是否大于预设阈值;The third judging unit is used to judge whether the number of occurrences of the short message sending failure code between the destination short message gateway device is greater than a preset threshold; 第三确定单元,用于若所述第三判断单元判断与所述目的短信网关设备之间的短信发送失败编码出现的次数大于所述预设阈值,则确定与所述目的短信网关设备之间的传输链路存在故障。The third determination unit is used to determine the connection with the destination SMS gateway device if the third determination unit judges that the number of failed SMS sending codes with the destination SMS gateway device occurs more than the preset threshold value. The transmission link is faulty. 5.根据权利要求3或4所述的短信网关设备,其特征在于,所述发送模块,包括:5. The short message gateway device according to claim 3 or 4, wherein the sending module includes: 第四确定单元,用于从多个中转短信网关设备中确定一个中转短信网关设备;The fourth determination unit is used to determine a transit message gateway device from a plurality of transit message gateway devices; 发送单元,用于将所述短信消息发送至确定的中转短信网关设备。A sending unit, configured to send the short message message to a determined transit short message gateway device. 6.根据权利要求5所述的短信网关设备,其特征在于,所述第四确定单元包括:6. The short message gateway device according to claim 5, wherein the fourth determining unit comprises: 收集子单元,用于收集多个中转短信网关设备的忙闲信息、网关状态信息和传输链路状态信息;The collection subunit is used to collect busy/busy information, gateway status information and transmission link status information of multiple transit SMS gateway devices; 确定子单元,用于按照所述忙闲信息、所述网关状态信息和所述传输链路状态信息,确定一个中转短信网关设备。The determining subunit is configured to determine a transit short message gateway device according to the busy/idle information, the gateway status information and the transmission link status information.
CN201611216041.XA 2016-12-26 2016-12-26 A short message sending method and short message gateway device Expired - Fee Related CN108243397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611216041.XA CN108243397B (en) 2016-12-26 2016-12-26 A short message sending method and short message gateway device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611216041.XA CN108243397B (en) 2016-12-26 2016-12-26 A short message sending method and short message gateway device

Publications (2)

Publication Number Publication Date
CN108243397A CN108243397A (en) 2018-07-03
CN108243397B true CN108243397B (en) 2023-02-17

Family

ID=62704925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611216041.XA Expired - Fee Related CN108243397B (en) 2016-12-26 2016-12-26 A short message sending method and short message gateway device

Country Status (1)

Country Link
CN (1) CN108243397B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737260A (en) * 2017-04-13 2018-11-02 中国移动通信集团上海有限公司 A kind of industry short message sending method, controller, interchanger and system
CN111698685B (en) * 2020-06-15 2023-05-12 珠海高凌信息科技股份有限公司 System and method for identifying false calling disguised as number-carrying network-forwarding number

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1453979A (en) * 2002-04-23 2003-11-05 华为技术有限公司 Short message system
CN101400032A (en) * 2007-09-29 2009-04-01 中兴通讯股份有限公司 Short message gateway, system and implementing method thereof
CN101616383A (en) * 2008-06-27 2009-12-30 中国移动通信集团公司 Short message routing method, system and network element interconnected with international gateway
CN101925028A (en) * 2009-06-16 2010-12-22 中兴通讯股份有限公司 Short message gateway and short message isomerous network communication processing method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1453979A (en) * 2002-04-23 2003-11-05 华为技术有限公司 Short message system
CN101400032A (en) * 2007-09-29 2009-04-01 中兴通讯股份有限公司 Short message gateway, system and implementing method thereof
CN101616383A (en) * 2008-06-27 2009-12-30 中国移动通信集团公司 Short message routing method, system and network element interconnected with international gateway
CN101925028A (en) * 2009-06-16 2010-12-22 中兴通讯股份有限公司 Short message gateway and short message isomerous network communication processing method thereof

Also Published As

Publication number Publication date
CN108243397A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN103491256B (en) Communication processing method and terminal device
CN104604189A (en) Efficient presence distribution mechanism for a large enterprise
KR20110020223A (en) Extended messaging platform
WO2016082710A1 (en) Call control method, diameter protocol forwarding device, and system
CN101369989A (en) Method and system for tracking delivered e-mail
CN101170747A (en) Relay state adjusting method and device
CN103795569A (en) Server connection method and device based on connection pool
CN110413424A (en) Configurable third-party message callback method, device, server and storage medium
CN108243397B (en) A short message sending method and short message gateway device
CN104618432A (en) Event sending and receiving handling method and system
CN102960000B (en) The method, system, control device and the terminal device that send a notification message
KR100704898B1 (en) Icon conversion system and service method
CN107086951B (en) Industry SMS transmission method, SMS gateway and industry SMS access gateway
CN101977396B (en) System and method for realizing network element service switching in multimedia messaging service
CN110830934A (en) Method and device for handling call failure
CN104821889B (en) A kind of processing method and equipment of backup message
CN103927680A (en) Delivery release sending method and device for products related to network application
CN106488416A (en) Industry short message sending method and device
CN108306815A (en) A kind of method, apparatus, equipment and computer readable storage medium obtaining message
CN107483635A (en) A business request processing method, processing system and message middleware
CN105451203A (en) Short message cancellation method and device
CN108696829A (en) A kind of supplementary service setting processing method and processing device
CN1770759B (en) Method for holding uniformity of media gateway controller and resource state on media gateway
JP6096688B2 (en) Unified communication system and message transmission method thereof
CN105207795A (en) IOT communication method and device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230217

CF01 Termination of patent right due to non-payment of annual fee