CN105744494A - Short message sending method and device - Google Patents

Short message sending method and device Download PDF

Info

Publication number
CN105744494A
CN105744494A CN 201410767851 CN201410767851A CN105744494A CN 105744494 A CN105744494 A CN 105744494A CN 201410767851 CN201410767851 CN 201410767851 CN 201410767851 A CN201410767851 A CN 201410767851A CN 105744494 A CN105744494 A CN 105744494A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
smsc
service
message
index
service type
Prior art date
Application number
CN 201410767851
Other languages
Chinese (zh)
Inventor
胡丽蓉
钱建阳
Original Assignee
中兴通讯股份有限公司
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS 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]

Abstract

The invention discloses a short message sending method. According to the method, an SMSC index list in matching with a business type is acquired by the protocol stack processing equipment according to the business type of a received business message sent by a business subsystem; the business message comprises a business type identification and the short message content; the SMSC index list is polled, the business message is sent to the SMSC when the SMSC corresponding to a polled SMSC index is determined to satisfy preset short message sending conditions. The invention further discloses a short message sending device.

Description

_种短信发送方法和装置 _ Species transmission method and apparatus SMS

技术领域 FIELD

[0001] 本发明涉及移动通信领域,特别涉及一种短信发送方法及装置。 [0001] The present invention relates to the field of mobile communications, particularly to a method and apparatus for transmitting messages.

背景技术 Background technique

[0002] 随着移动终端的普及,短信业务得到了广泛应用,其业务涵盖各种资讯类服务、以及基于短消息平台的订阅与点播业务,其内容涵盖信息发布、个人信息管理、交易、娱乐、行业应用以及与位置相关的六大类服务。 [0002] With the popularity of mobile terminals, SMS has been widely used, its business covers a variety of information services category, as well as short messaging platform based on subscription and on-demand services, which covers information dissemination, personal information management, trading, entertainment , industry applications, and location-related service six categories. 随着业务种类的增多,用户业务量迅速的增长,尤其在除夕、圣诞等节假日短信业务流量急增,单一节点的网关设备已经远不能承担重负荷。 With the increase of business types, the rapid growth of user traffic, especially in the New Year's Eve, Christmas and other holidays surge in SMS traffic, the gateway device has a single node can not bear heavy loads far. 目前一些运营商已米用多节点短信服务中心(SMSC,Short Message Service Center)或短信网关设备实现短信负荷分担,但如何有效发挥各节点处理能力,提升整体业务处理能力,仍是一重要任务。 At present, some operators have meters with multi-node short message service center (SMSC, Short Message Service Center) or SMS gateway device implements SMS load sharing, but how to play each node processing capabilities to enhance overall operational capacity, still is an important task.

[0003] 为解决短信负荷分担问题,现有技术中公开了根据各节点处理能力的比例值按比例进行短信分发的方案,该方案的主要处理流程包括:先将各节点的业务处理能力的比例值求和得到基数,再用短信特征值对求得的基数取模后根据比例值确定短信发往哪一个节点。 [0003] To solve the problem of balancing the load short, the prior art discloses a scheme for distributing messages in proportion to the scale value of each node processing capability, the main processing flow of the program include: the proportion of each service processing capability of the first node values ​​are summed to obtain the base, and then the message characteristic value determined modulo base node to determine where to send messages according to the ratio value.

[0004] 上述方案存在以下不足: [0004] The scheme has the following disadvantages:

[0005] I)短信收发有一定丢失率。 [0005] I) messaging has a certain loss rate. 首先,设备的处理能力比例值是很难明确定量的,按照估算的设备处理能力比例值分发很难保证某个设备不出现过负荷运行,尤其是在处理海量短信业务时,若某个设备已处于过负荷运行状态却仍然不停地收到短信,必然会导致部分短信丢失;此外,缺乏负荷分担保护机制,在设备即将或已经过负荷时,应该将消息分发至其它节点设备。 First, the processing capacity of the proportion of the value of the device is difficult to clearly quantify, according to the capacity proportion of the estimated value of the processing equipment is difficult to ensure a distribution device does not appear overload operation, especially when dealing with mass SMS, if one of the devices in overload status is still running constantly receive text messages, will inevitably lead to the loss of part of the message; in addition, the lack of protection mechanisms for load sharing, when the device has been or is about to load, you should distribute the message to the other node devices.

[0006] 2)出现故障时无法快速定位具体业务,定位具体故障原因。 [0006] 2) inability to quickly locate the specific business case of failure, locating the specific cause of the malfunction. 由于是简单地按比例取模分发,各种业务发往的目的短信中心具有随机性,在发生故障后很难第一时间定位出具体业务。 Because it is simply scaled modulus distribution, sent to various business purposes SMSC randomness, in a first time after a failure it is difficult to locate the particular service.

发明内容 SUMMARY

[0007] 为了解决现有存在的技术问题,本发明实施例期望提供一种短信发送方法和装置。 [0007] In order to solve the problems of the prior art exists to provide a desirable embodiment of the method and apparatus of transmitting messages embodiment of the present invention.

[0008] 本发明实施例提供了一种短信发送方法,所述方法包括: [0008] The embodiment provides a message transmission method according to the present invention, the method comprising:

[0009] 协议栈处理设备根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的短信服务中心SMSC索引列表;所述业务消息包括:业务类型标识和短信内容; [0009] protocol stack processing device obtains the service type matches the SMSC short message service according to the service type of the service index list received message sent by the service subsystem; the message service comprises: message content and service type identifier;

[0010] 轮询所述SMSC索引列表,当确定被轮询到的SMSC索引对应的SMSC满足预设短信发送条件时,将所述业务消息发送至所述SMSC。 [0010] poll the SMSC index list, when it is determined to be polled index corresponding SMSC SMS SMSC satisfies a preset condition, the service message to the SMSC.

[0011] 上述方案中,协议栈处理设备根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表,包括: [0011] In the above-described embodiment, the protocol stack processing device obtains the service type matches the index list SMSC service message according to the service type of the service subsystem of the received transmission, comprising:

[0012] 协议栈处理设备对所述业务消息进行解析获得业务类型标识,将所述业务类型标识作为关键字在本地内存中查找与所述业务标识相匹配的SMSC索引列表。 [0012] protocol stack processing apparatus parses the message to obtain the service type of the service identifier, the service type identifier as a key to find the local memory of the SMSC service identifier matches the index list.

[0013] 上述方案中,当将所述业务类型标识作为关键字在本地内存中没有查找到与所述业务标识相匹配的SMSC索引列表时,所述方法还包括: [0013] In the above embodiment, when the service type identifier as the key is not found to match the service identifier in the local SMSC index list memory, the method further comprising:

[0014] 协议栈处理设备将所述业务类型标识作为关键字在本地数据库的业务类型标识与SMSC索引的配置关系表中查找与所述业务类型标识存在映射关系的SMSC索引; [0014] The protocol stack processing device as a key lookup service type identifier of the service in a service type identifier and the local SMSC index database configuration table type identifier in the SMSC index mapping relationship exists;

[0015] 根据查找到的与所述业务类型标识存在映射关系的SMSC索引,生成与所述业务类型相匹配的SMSC索引列表; [0015] The lookup index to SMSC mapping relationship exists with the type of service identifier, the service type to generate matches SMSC index list;

[0016] 将生成的SMSC索引列表保存于本地内存中。 [0016] The resulting index list SMSC stored in local memory.

[0017] 上述方案中,通过以下方式确定被轮询到的SMSC满足预设短信发送条件: [0017] In the above embodiment, it is determined to be polled by the following manner SMSC SMS satisfies a preset condition:

[0018] 判断当前业务消息拆分后的短信数与已发送至所述轮询到的SMSC、且等待处理的短信数之和是否小于等于相应SMSC所支持的短信数;如果小于等于,则判断所述SMSC的链路是否处于激活状态,如果是,则确认SMSC满足预设短信发送条件。 [0018] Analyzing the current number of the short message service message has been sent to the SMSC split and to the polling, and the number of messages waiting to be processed, and is smaller than the number of messages equal to the corresponding SMSC supported; if less, it is determined the SMSC whether the link is active, and if so, confirmation SMS SMSC satisfies a preset condition.

[0019] 上述方案中,所述协议栈处理设备判断所述SMSC的链路是否处于激活状态之前,所述方法还包括: [0019] In the above embodiment, the processing apparatus determines the protocol stack of the SMSC before the link is in the active state, the method further comprising:

[0020] 协议栈处理设备通过以下方式对SMSC的链路状态进行管理: [0020] protocol stack processing apparatus manages link status SMSC in the following ways:

[0021 ] 每次发送业务消息至SMSC后,检测业务消息状态,如果所述SMSC对业务消息响应超时或响应失败,则使预设的异常计数器加I ; [0021] After sending each service message to the SMSC, state detection service message, if the SMSC of the service times out, or response message in response to a failure, the cause of the abnormality counter is increased by a preset I;

[0022] 若异常计数值在第一预设时间内达到预设次数,则去激活此SMSC对应的链路,设置定时器,并在所设置的定时器达到第二预设时间时,激活所述SMSC对应的链路;若异常计数器的计数时间到达第一预设时间、但异常计数值未达到预设次数时,将异常计数器的计数值清零,并重新进行下一周期业务消息状态检测;若异常计数值未达到预设次数、且异常计数器的计数时间未到达第一预设时间,继续检测业务消息状态。 When [0022] When the count value reaches a preset abnormal number of times within a first predetermined time, the SMSC corresponding to activate the link, set a timer, and reaches a second predetermined time set in the timer, the activation SMSC corresponding to said link; if the count time of the abnormality counter reaches a first predetermined time, the abnormality count value does not reach the predetermined number, the count value of the abnormality counter is cleared, and again the next cycle state detecting traffic messages ; abnormal if the count value does not reach the preset number of times, and the abnormal count of the counter does not reach the first predetermined time period, the message continues to be detected traffic status.

[0023] 进一步的,所述方法还包括:当轮询完所述SMSC索引列表,没有找到满足预设短信发送条件的SMSC时,向业务子系统返回错误响应消息以指示当前短信不能发送的原因。 [0023] Further, the method further comprising: when a polling finish the SMSC index list is not found to meet the predetermined condition when the SMSC SMS, to the service subsystem returns an error message indicating the cause of the response can not be transmitted by SMS .

[0024] 本发明实施例提供了一种短信发送装置,所述装置包括:短信服务中心SMSC索引列表获取模块、处理模块及业务消息发送模块;其中, [0024] The embodiment provides a short message transmitting apparatus of the present invention, the apparatus comprising: a short message service center SMSC index list obtaining module, a service processing module and a message sending module; wherein,

[0025] 所述SMSC索引列表获取模块,用于根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表;所述业务消息包括:业务类型标识和短ig内容; [0025] The SMSC index list obtaining module, configured to obtain a service type message to the service type of the received service subsystem sends matched index list SMSC; the service message comprises: a service type identifier, and short ig content;

[0026] 所述处理模块,用于轮询所述SMSC索引列表,并在确定被轮询到的SMSC索引对应的SMSC满足预设短信发送条件时,触发业务消息发送模块; [0026] The processing module is configured to poll the SMSC index list, and is determined to be polled SMSC SMSC corresponding to the index satisfies a predetermined message transmission conditions, triggering service message sending module;

[0027] 所述业务消息发送模块,用于被处理模块触发时,将业务消息发送给所述SMSC。 When the [0027] service message sending module, a processing module for being triggered to send a service message to the SMSC.

[0028] 上述方案中,所述SMSC索引列表获取模块通过以下方式获取与所述业务消息的业务类型相匹配的SMSC索引列表: [0028] In the above embodiment, the SMSC index list acquisition module acquires the service type of the service message matches SMSC index list by:

[0029] SMSC索引列表获取模块对所述业务消息进行解析获得业务类型标识,将所述业务类型标识作为关键字在本地内存中查找与所述业务标识相匹配的SMSC索引列表。 [0029] SMSC index list acquisition module parses the message to obtain the service type of the service identifier, the service type identifier as a key to find the local memory of the SMSC service identifier matches the index list.

[0030] 上述方案中,所述SMSC索引列表获取模块,还用于在本地内存中没有查找到与所述业务标识相匹配的SMSC索引列表时,通过以下方式生成SMSC索引列表: [0030] In the above embodiment, the SMSC index list acquisition module is further configured to find no service identifier and the list of indexes that match the SMSC in the local memory, the SMSC generating an index list by:

[0031] SMSC索引列表获取模块将所述业务类型标识作为关键字在本地数据库的业务类型标识与SMSC索引的配置关系表中查找与所述业务类型标识存在映射关系的SMSC索引; [0031] SMSC SMSC index list acquisition module index of the service type identifier as a key to find the service in a service type identifier and the local SMSC index database configuration table type identifier in the mapping relationship exists;

[0032] 根据查找到的与所述业务类型标识存在映射关系的SMSC索引,生成与所述业务类型相匹配的SMSC索引列表;所述SMSC索引列表中包括查找到的所有与所述业务类型标识存在映射关系的SMSC索引; [0032] The lookup index to SMSC mapping relationship exists with the type of service identifier, the service type to generate index list matches SMSC; the SMSC included in the index list to find all of the service type identifier maps into SMSC index;

[0033] 将生成的SMSC索引列表保存于本地内存中。 [0033] The resulting index list SMSC stored in local memory.

[0034] 上述方案中,所述处理模块通过以下方式确定被轮询到的SMSC满足预设短信发送条件: [0034] In the above embodiment, the processing module being polled is determined by way of the SMSC to send message satisfies a preset condition:

[0035] 判断所述业务消息拆分后的短信数与已发送至所述轮询到的SMSC、且等待处理的短信数之和是否小于等于相应SMSC所支持的短信数;如果小于等于,则判断所述SMSC的链路是否处于激活状态,如果是,则确认SMSC满足预设短信发送条件。 Whether the number of the message [0035] Analyzing and split the service message has been sent to the SMSC to the polling, and the number of messages waiting to be processed and less than equal to the corresponding number of supports SMS SMSC; if less, then the SMSC determines whether the link is active, and if so, confirmation SMS SMSC satisfies a preset condition.

[0036] 上述方案中,所述装置还包括链路状态管理模块,用于在处理模块判断SMSC的链路是否处于激活状态之前,通过以下方式对SMSC的链路状态进行管理: [0036] In the above embodiment, the apparatus further comprises a link state management module, the processing module for prior SMSC determines whether the link is activated, the link state managed by the SMSC in the following manner:

[0037] 每次发送业务消息至SMSC后,检测业务消息状态,如果所述SMSC对业务消息响应超时或响应失败,则使预设的异常计数器加I ; [0037] After sending each service message to the SMSC, state detection service message, if the SMSC of the service times out, or response message in response to a failure, the cause of the abnormality counter is increased by a preset I;

[0038] 若异常计数值在第一预设时间内达到预设次数,则去激活此SMSC对应的链路,设置定时器,并在所设置的定时器达到第二预设时间时,激活所述SMSC对应的链路;若异常计数器的计数时间到达第一预设时间、但异常计数值未达到预设次数时,将异常计数器的计数值清零,并重新进行下一周期业务消息状态检测;若异常计数值未达到预设次数、且异常计数器的计数时间未到达第一预设时间,继续检测业务消息状态。 When [0038] When the count value reaches a preset abnormal number of times within a first predetermined time, the SMSC corresponding to activate the link, set a timer, and reaches a second predetermined time set in the timer, the activation SMSC corresponding to said link; if the count time of the abnormality counter reaches a first predetermined time, the abnormality count value does not reach the predetermined number, the count value of the abnormality counter is cleared, and again the next cycle state detecting traffic messages ; abnormal if the count value does not reach the preset number of times, and the abnormal count of the counter does not reach the first predetermined time period, the message continues to be detected traffic status.

[0039] 上述方案中,所述装置还包括:响应模块,用于在处理模块轮询完所述SMSC索引列表,没有找到满足预设短信发送条件的SMSC时,向业务子系统返回错误响应消息以指示当前短信不能发送的原因。 [0039] In the above embodiment, the apparatus further comprising: a response module, the processing module is used when a polling finish the SMSC index list is not found to meet the predetermined condition SMS SMSC, return an error response message to the service subsystem to indicate the cause of the current message is not sent.

[0040] 本发明实施例所提供的一种短信发送方法和装置,协议栈处理设备根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表;所述业务消息包括:业务类型标识和短信内容;轮询所述SMSC索引列表,当确定被轮询到的SMSC索引对应的SMSC满足预设短信发送条件时,将所述业务消息发送至所述SMSC。 A short transmission method and apparatus provided by the embodiment [0040] of the present invention, the protocol stack processing device obtains the service type matches the index list SMSC service message according to the service type of the service subsystem of the received transmission; the said service message comprising: service type identifier and a message content; poll the SMSC index list, when it is determined to be polled index corresponding SMSC SMS SMSC satisfies a preset condition, sending the service message to the SMSC . 如此,协议栈处理设备可以根据业务消息的业务类型为业务消息选择可发送的SMSC,并在选择出的SMSC中对SMSC是否满足短信发送条件进行判断,并只在满足短信发送条件时,才将业务消息发送到相应的SMSC,因此,以业务类型对业务消息进行划分,仅在与所述业务类型相匹配的SMSC中进行轮询从而选取满足短信发送条件的SMSC进行短信发送,可以使SMSC对短信业务进行合理的负荷分担,且通过这种有保护机制的短信发送方式选择SMSC进行短信发送时,短信发送成功的概率也大大增加;另外,由于短信发送时所选取的SMSC具有更强的规律性,因此,出现故障时,也可以进行故障的快速定位。 When so, the protocol stack processing apparatus can be selected according to the service type of the service message is a service message SMSC can be transmitted, and the selected SMSC the message transmission condition of the SMSC is satisfied is judged, and message transmission conditions were met, it will service message sent to the corresponding SMSC, so as to divide the service type of the service message, thereby selecting only the polling condition is satisfied SMSC SMS messages for transmitting to the service type matches the SMSC, so that the SMSC can for when SMS reasonable load sharing, and in this manner protection SMS SMSC selection mechanism for SMS message delivery is also greatly increased the probability of success; Further, since the messages are sent with the selected SMSC stronger laws , therefore, when a failure occurs, you can quickly locate the fault.

附图说明 BRIEF DESCRIPTION

[0041]图1为本发明实施例提供的短信发送方法流程图; [0041] FIG 1 message transmission method provided in embodiments of the present invention, a flow chart;

[0042] 图2为本发明实施例提供的生成与业务类型标识相匹配的SMSC索引列表的方法流程图; Method [0042] Figure 2 provides a service type identifier generating SMSC index list matches a flowchart embodiment of the invention;

[0043] 图3为本发明实施例提供的业务类型标识与SMSC索引之间映射关系图一; [0043] FIG. 3 mapping relationship between the identifier and the service type provided by the SMSC index showing an embodiment of the present invention;

[0044] 图4为本发明实施例提供的业务类型标识与SMSC索引之间映射关系图二; [0044] Embodiment 4 FIG mapping relationship between the identifier and the service type index SMSC provided in Figure II of the present invention;

[0045]图5为本发明实施例提供的用于实现短信发送的系统结构; [0045] FIG. 5 embodiment provides a system configuration for implementing the present invention, SMS;

[0046] 图6为本发明实施例提供的对SMSC的链路状态进行管理的流程图; [0046] FIG 6 is a flowchart of the link status managing SMSC according to an embodiment of the present invention;

[0047]图7为本发明实施例提供的短信发送装置的基本结构图; [0047] The basic configuration of FIG 7 FIG send SMS apparatus according to an embodiment of the present invention;

[0048]图8为本发明实施例提供的短信发送方法示例流程图一; [0048] Figure 8 is an example of message transmission method provided in an embodiment of the invention a flow chart;

[0049]图9为本发明实施例提供的短信发送方法示例流程图二。 [0049] FIG. 9 SMS exemplary flowchart of a method provided in two embodiments of the present invention.

具体实施方式 Detailed ways

[0050] 本发明实施例中,协议栈处理设备根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表;所述业务消息至少包括:业务类型标识和短信内容;轮询所述SMSC索引列表,当确定被轮询到的SMSC索引对应的SMSC满足预设短信发送条件时,将所述业务消息发送至所述SMSC。 [0050] The embodiments of the present invention, the protocol stack processing device obtains the service type matches the index list SMSC service message according to the service type of the service subsystem of the received transmission; and the service message comprising at least: a service type identifier and message content; poll the SMSC index list, when it is determined to be polled index corresponding SMSC SMS SMSC satisfies a preset condition, the service message to the SMSC.

[0051] 下面通过附图及具体实施例对本发明做进一步的详细说明。 [0051] By following drawings and specific embodiments described in detail further embodiment of the present invention.

[0052] 实施例一 [0052] Example a

[0053] 本发明实施例一提供了一种短信发送方法,如图1所示,该方法包括以下步骤: [0053] Embodiments of the present invention provides a method of transmitting a short message shown in Figure 1, the method comprising the steps of:

[0054] 步骤101:协议栈处理设备根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表; [0054] Step 101: Stack processing device obtains the service type matched index list SMSC service message according to the service type of the service subsystem of the received transmission;

[0055] 具体的,所述业务消息包括:业务类型标识、短信内容和目的终端号码。 [0055] Specifically, the traffic message comprising: service type identifier, and a destination terminal number of the message content.

[0056] 具体的,业务子系统通过业务消息中的业务类型标识对所述业务消息的业务类型进行标识,也就是说,业务子系统通过业务消息中携带的业务类型标识来区分不同的业务类型;因而,协议栈处理设备根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表,包括:协议栈处理设备对所述业务消息进行解析获得业务类型标识;将所述业务类型标识作为关键字在本地内存中查找与所述业务标识相匹配的SMSC索引列表;当查找到相匹配的SMSC索引列表时,直接转至步骤102继续执行;当没有查找到与所述业务类型标识相匹配的SMSC索引列表时,继续执行以下处理流程以生成与业务类型标识相匹配的SMSC索引列表,其流程图如图2所示: [0056] Specifically, the service subsystem of the service type identified by the service message service message service type identifier, i.e., the service subsystem to distinguish different types of services by service type identifier carried in the message service ; Accordingly, the protocol stack processing device obtains the service type matches the index list SMSC service message according to the service type of the service subsystem of the received transmission, comprising: a protocol stack processing apparatus parses the message to obtain service service type identifier; the identifier as a keyword search service type to the service identity matches the index list SMSC in the local memory; when looking to match the index list SMSC, proceed directly to step 102; if not found when the service type identifier matches SMSC index list, proceed with the following processing flow to generate a service type identifier matches SMSC index list, the flow chart shown in Figure 2:

[0057] 步骤S201:协议栈处理设备将所述业务类型标识作为关键字在本地数据库中的业务类型标识与SMSC索引的配置关系表中查找与所述业务类型标识存在映射关系的SMSC索引; [0057] Step S201: the protocol stack processing device lookup service type identifier mapping relationship between the index and the presence of the SMSC service type identifier in the local database as a key service type identifies the configuration SMSC index relationship table;

[0058] 需要说明的是,由于实际应用中,所述业务类型标识与SMSC可以为一对一映射、一对多映射、多对一映射或者多对多映射,因此,在所述配置关系表中查找到的SMSC索引可以为一个或多个。 [0058] Incidentally, since the actual application, the service type identification may be a one to one mapping with the SMSC, many mapping, or many-to-many mapping, and therefore, in the configuration table SMSC to find the index may be one or more.

[0059] 图3是根据本发明实施例的业务类型标识与SMSC索引之间映射关系图一,以此作为一个例子来描述映射关系的分配过程,如图3所示,SMSCU SMSC2的处理能力较强,而业务类型标识为USSD、AA的业务流量较大,因此,可以按照图3的关系分配,将USSD和AA业务分别与SMSCl和SMSC2之间建立映射关系,而其它流量较小的业务,包括:BB、CC、DD均与SMSC3建立映射关系。 [0059] FIG. 3 is a service type between the SMSC identifies the index of the present invention is an embodiment view of a mapping relationship, as an example to describe the mapping relationship between the allocation process, as shown in FIG, SMSCU SMSC2 processing capacity than 3 strong, and service type identifier for the larger traffic USSD, AA, and therefore, can be and AA USSD service mapping relationship according to the relationship between the distribution of FIG. 3, respectively SMSCl SMSC2 and with other traffic services and smaller, They include: BB, CC, DD were established mapping relationship with SMSC3.

[0060] 以索引标识号0、1、2分别代表SMSC1、SMSC2、SMSC3,存储于本地数据库的业务类型标识与SMSC索引的配置关系表里会保存5种业务类型标识,每种业务类型标识与SMSC存在一个对应关系,图3中示出的对应关系有:USSD(0,1)、AA(0,1)、BB(2)、CC(2)、DD(2),即,USSD 与SMSC I 和SMSC 2 对应,AA 与SMSC I 和SMSC 2 对应,BB、CC 和DD 均与SMSC 3对应。 [0060] 0,1,2 identification number to the index representing the positional relationship between the table SMSC1, SMSC2, SMSC3, stored in a local database and service type ID index SMSC will save five kinds of service type identifier, and each service type ID SMSC there is a correspondence relationship, the correspondence relationship shown in FIG. 3 are shown: USSD (0,1), AA (0,1), BB (2), CC (2), DD (2), i.e., USSD and SMSC I and the corresponding SMSC 2, AA I with the SMSC and SMSC 2 correspond, BB, CC and DD corresponding to each SMSC 3.

[0061] 图4是根据本发明实施例的业务类型标识与SMSC索引之间映射关系图二,以此为例描述映射关系的分配,如图4所示: [0061] FIG. 4 is a mapping relationship between the service type in accordance with Figure II identifies the index SMSC embodiment of the present invention, is described as an example of the mapping between, shown in Figure 4:

[0062] 假如3个SMSC处理能力相当,业务类型为AA的流量较大,可以分配所有的SMSC给它,即,将AA与所有SMSC对应,剩下业务类型标识USSD和BB可以轮询两个短信中心; [0062] If the processing ability is quite SMSC 3, the service type is the larger volume of AA may be allocated to it all of the SMSC, i.e. the SMSC corresponding to AA and all remaining USSD service type identifier can be polled and two BB SMSC;

[0063] 以索引标识号0、1、2分别代表SMSCl、SMSC2、SMSC3,存储于本地的SMSC索引表里会保存3种业务类型标识,每种业务类型标识与SMSC存在一个对应关系,图4中示出的对应关系有:USSD(0,I),AA(0,1,2),BB(1,2),SP,USSD 与SMSC I 和SMSC 2 对应、AA 与SMSC [0063] In the index representing the identification number 0,1,2 SMSCl, SMSC2, SMSC3, stored in the local index table are saved SMSC three kinds of service type identifier, a correspondence relation exists for each service type identifier and SMSC, FIG. 4 shown in a correspondence relationship has: USSD (0, I), AA (0,1,2), BB (1,2), SP, USSD SMSC and SMSC 2 and corresponding to the I, AA and SMSC

1、SMSC 2 和SMSC 3 对应,BB 与SMSC 2 和SMSC 3 对应。 1, SMSC 2 and the SMSC 3 corresponds, BB with the corresponding SMSC 2 and the SMSC 3.

[0064] 在实际应用中,由于不同种类业务需要的流量大小与SMSC的处理能力各不相同,需要根据实际情况做映射关系。 [0064] In practical applications, due to different types of business with the desired size of the flow of the processing capacity of each SMSC is not the same, the mapping relationship needs to be done according to the actual situation. 极端情况下,举个例子,如图4所示稍作变化,可以使所有种类业务都与SMSC USMSC 2与SMSC 3对应,这样,也可以达到负荷分担效果,只是业务之间没有进行隔离。 In extreme cases, for example, a slight variation shown in Figure 4, can have all types of business and SMSC USMSC 2 corresponds to the SMSC 3, so that the effect may be to achieve load balancing, but no separating services.

[0065] 步骤S202:根据查找到的与所述业务类型标识存在映射关系的SMSC索引,生成与所述业务类型相匹配的SMSC索引列表; [0065] Step S202: The mapping relationship exists to find a service type identifier of the SMSC index, generates the service type matched SMSC index list;

[0066] 步骤S203:将生成的SMSC索引列表保存于本地内存中,并转至步骤102,轮询所述生成的SMSC索引列表。 [0066] Step S203: The SMSC generated index list stored in the local memory, and go to Step 102, the SMSC generates the polling list of indexes.

[0067] 步骤102:轮询所述SMSC索引列表,当确定被轮询到的SMSC满足预设短信发送条件时,将所述业务消息发送至所述SMSC。 [0067] Step 102: the SMSC polling index list, when it is determined to be polled SMS SMSC satisfies a preset condition, the service message to the SMSC.

[0068] 用于实现短信发送的系统结构如图5所示,从图5可知,业务子系统与协议栈处理设备相连,协议栈处理设备分别与多个SMSC相连,实现短信的发送; [0068] The system configuration for implementing the short message transmitted, it is seen from FIG. 5, FIG. 5 is connected to the service subsystem and protocol stack processing apparatus, a protocol stack processing apparatus are connected to a plurality of the SMSC, send text messages to achieve;

[0069] 另外,本领域技术人员应该理解的是所述协议栈处理设备在实际实现时,可以位于业务子系统内。 [0069] Further, those skilled in the art will appreciate that the protocol stack processing device in actual implementation, may be located within the service subsystem.

[0070] 这一步骤中,初次轮询所述SMSC索引列表时,可以根据实际需要基于多种方式确定轮询的索引初始值,即选择从哪一个SMSC索引开始轮询;示例性的,可以采用以下三种方法选定索引条目的初始值: [0070] In this step, the initial polling SMSC index list, the index may need to determine the initial value of the actual polling based on a number of ways in accordance with, i.e. which SMSC selection index starts polling; exemplary, can be following three methods selected index entries initial value:

[0071] 方法一:取SMSC索引列表里的索引条目个数作为基数,用当前业务消息的目终端号码的尾数对基数取模后的值作为索引初始值,到SMSC索引列表中查找对应的SMSC索引;例如,可以选择目的终端号码的末尾三位数或末尾四位数等等; [0071] Method a: taking the number of index entries in the index list SMSC as the base, with the mantissa destination terminal number of the current service message modulo base value as an index to find the corresponding initial value, the index to the SMSC SMSC list index; for example, select the destination terminal number at the end of the three-digit or four-digit end like;

[0072] 方法二:取上一次该业务类型消息发送成功对应的SMSC索引的下一个索引作为索引条目的初始值;如果是第一次轮询该业务类型的SMSC索引列表,S卩,第一次创建生成SMSC索引列表时,则取SMSC索引列表中第一个SMSC索引作为索引条目的初始值; [0072] Method two: taking the initial value of the primary messaging service type SMSC next index as the index of success corresponding to the index entry; if this is the first time polling service type index list SMSC, S Jie, a first when creating time index list generated SMSC, the SMSC take the initial value of the first index SMSC index list as index entries;

[0073] 方法三:随机选择SMSC索引列表中的某个SMSC索引作为索引初始值。 [0073] Method three: randomly select a SMSC SMSC index index index list as an initial value.

[0074] 当确定索引初始值之后,轮询该索引初始值对应的SMSC,判断所述SMSC是否满足短信发送条件;如果不满足则继续轮询所述索引初始值的下一个索引,并判断相应的SMSC是否满足短信发送条件;依次类推,直到遍历完SMSC索引列表中的所有SMSC索引,如果仍没有找到满足短信发送条件的SMSC,则直接向业务子系统返回错误信息,以指示短信发送不成功;或者,执行以下处理步骤: [0074] After determining the initial value of the index, the index polls the initial value corresponding to the SMSC, determines whether the SMSC short message transmission condition is satisfied; if not then continue to poll the initial index value of the next index, and determines the corresponding whether the SMSC SMS satisfy the conditions; and so on, until you have traversed all SMSC SMSC index index list, if the conditions are met SMSC SMS is still not found, an error message is returned directly to the service subsystem to indicate unsuccessful SMS ; Alternatively, the following process steps:

[0075] 设置定时器,并在定时器超时时,轮询SMSC索引列表中的SMSC,直到找到满足短信发送条件SMSC ;如何仍没有找到,重复执行该步骤; [0075] set a timer, and when the timer expires, the index list of polling SMSC SMSC, send text messages until you find satisfying the conditions SMSC; how is still not found, repeat the procedure;

[0076] 通常在执行以上步骤轮询所述SMSC索引列表特定次数后,还没有找到满足短信发送条件的SMSC时,向业务子系统返回错误信息,以指示短信发送不成功;其中,所述特定次数可以根据实际需要进行设置。 After [0076] In the above steps typically poll the SMSC index list for a specific number of times, SMS SMSC condition is satisfied has not been found, return an error message to the service sub-system to indicate the unsuccessful short message transmission; wherein said specific the number of times can be set according to actual needs.

[0077] 下面结合图4对该方法一进行举例说明: [0077] FIG. 4 in conjunction with the following be exemplified a method of:

[0078] 对于业务类型标识为AA的业务,其映射关系为AA (0,I,2),根据方法一,取业务消息中目的终端号码末尾4位数字,假设末尾4位为6911,又由于索引列表中包括3个元素,因此,取模基数为3,用6911对3取模后的结果为2,则选定2为轮询索引的初始值,索引2对应的是SMSC 3。 [0078] For the service type ID is AA service, which mappings between AA (0, I, 2), according to the method, take the traffic message the destination terminal number at the end of 4 digits, assuming the end of 4 to 6911, and because index list includes three elements, therefore, modulo base 3, 6911 pairs with the result modulo 2 3, 2 is selected as an initial value of the poll index, the index 2 corresponds to SMSC 3.

[0079] 针对每一次轮询到的SMSC索引,需要判断相应的SMSC是否满足预设短信发送条件,具体的,通过以下方法判断SMSC是否满足预设短信发送条件: [0079] For each poll the SMSC to the index needs to judge whether the corresponding SMSC SMS satisfies a preset condition, specifically, whether the SMSC is determined by the following method satisfies a preset condition SMS:

[0080] 判断当前业务消息拆分后的短信数与已发送至相应SMSC、且等待处理的短信数之和是否小于等于相应SMSC所支持的短信数;如果大于,则确定相应SMSC不满足预设短信发送条件;如果小于等于,则进一步确认相应SMSC的链路是否处于激活状态,如果是,则确认SMSC满足预设短信发送条件,将业务消息发送至相应SMSC,并结束当前短信发送流程,如果否,则确认SMSC不满足预设短信发送条件。 [0080] Analyzing the current number of the short message service message already sent to the corresponding split SMSC, and the number of messages waiting to be processed, and is smaller than the number of messages equal to the corresponding SMSC supported; if yes, determining a respective SMSC does not satisfy the preset message transmission conditions; if less, it is further confirmed whether or not the corresponding SMSC link is active, and if so, confirmation SMS SMSC satisfies a preset condition, to transmit the service message to the corresponding SMSC, and ends the current message sending process, if No, it does not meet the pre-set SMS confirmation SMSC conditions. 需要说明的是,业务消息中包含的短信内容字数可能较多,根据相关字数要求需要被拆分为多条短信进行发送;如果所述短信内容的字数符合相关字数要求,则不需要进行拆分。 Incidentally, the message content words contained in the service message may be large, according to the relevant word request requires split into a number of messages transmitted; if the number of words in the message content words comply with the requirements, there is no need to split .

[0081] 具体的,所述SMSC所支持的短信数通过SMSC的滑动窗口大小进行表征,因此,在实际操作中,可以将拆分后的短信数与已发送至相应SMSC、且等待处理的短信数相加求和,并比较相加后的结果是否小于等于相应SMSC的滑动窗口大小,若小于等于所述滑动窗口大小,则进一步确认相应SMSC的链路是否处于激活状态;若大于所述滑动窗口大小,则确定所述SMSC不满足短信发送条件。 SMS [0081] Specifically, the number of the SMSC SMS supported by SMSC characterization sliding window size, and therefore, in practice, the number of messages may be split after already sent to the corresponding SMSC, and waiting to be processed and summing the number, and compares the added result is smaller than the sliding window size equal to the corresponding SMSC, and if less than or equal to the size of the sliding window, it is further confirmed whether the link corresponding SMSC in the active state; if the slide is greater than window size, determining that the SMSC short message does not satisfy the transmission condition.

[0082] 具体的,在这一步骤之前,协议栈处理设备每次向相应SMSC发送短信后,会将这些短信的个数记录为已发送给SMSC、且等待处理的短信个数,同时当SMSC处理完相应短信(即,将短信发送给特定终端)时,会向协议栈处理设备返回响应消息,此时,协议栈处理设备更新本地记录的已发送给SMSC、且等待处理的短信个数,即,将收到响应消息的短信个数从上述记录的短信个数中减去。 After [0082] Specifically, prior to this step, the protocol stack processing device each time the corresponding SMSC to send text messages, the number of these messages will be recorded as the number of messages sent to the SMSC, and is waiting to be processed, and when SMSC when the corresponding message has been processed (i.e., the message sent to a specific terminal), returns to the protocol stack processing apparatus a response message, this time, the protocol stack updates the local processing device has been sent to the SMSC, and the number of messages waiting for processing, That is, the number of the received SMS message in response to the above message is subtracted from the number recorded.

[0083] 具体的,在确认相应SMSC的链路是否处于激活状态之前,所述方法还包括:协议栈处理设备对SMSC的链路状态进行管理,所述链路状态包括:激活状态和去激活状态,激活状态下链路可用,去激活状态下表示链路不可用;具体的,通过以下方式对SMSC的链路状态进行管理,其流程图如图6所示: [0083] Specifically, the respective SMSC before confirming whether the link is active, the method further comprising: a protocol stack processing apparatus to manage a link state SMSC, the link state comprises: an activated state and deactivated state, an activated state of the link is available, showing a state deactivated link is unavailable; specifically, the link state managed by the SMSC in the following manner, the flow chart shown in Figure 6:

[0084] S601:每次发送业务消息至SMSC后,检测业务消息状态; [0084] S601: service message sent to each SMSC, detecting a traffic state message;

[0085] S602:判断业务消息状态是否为响应超时或响应失败; [0085] S602: judging whether the service message in response to a timeout status or failed to respond;

[0086] 即,检测SMSC是否对业务消息响应超时或响应失败; [0086] That is, whether the detection SMSC service message in response to a timeout or failure to respond;

[0087] 如果是,则转至步骤S603 ;如果否,则转至步骤S601继续检测业务消息状态,即,重新进行下一周期的业务消息状态检测; [0087] If yes, then go to step S603; if no, go to step S601 continues to detect the state of a service message, i.e., state of the next message service re-detection period;

[0088] S603:使预设的异常计数器加I ; [0088] S603: allow the preset abnormality counter is increased by I;

[0089] S604:判断异常计数值是否达到预设次数X次; [0089] S604: judging whether the count value reaches a preset abnormal number X;

[0090] 若是,则转到S605 ;否则,转到S608 ; [0090] If yes, go to S605; otherwise, go to S608;

[0091] S605:去激活此SMSC对应的链路,并设置定时器; [0091] S605: deactivating the SMSC corresponding to this link, and sets a timer;

[0092] S606:判断定时器是否到达第二预设时间Z分钟;如果是,则转至步骤S607 ;如果否,则维持当前状态继续计时并继续判断; [0092] S606: judging whether the second timer reaches the preset time Z min; if yes, then go to step S607; if no, continue to maintain the current state of the timer and continue processing;

[0093] S607:使链路处于激活状态,该SMSC的链路恢复可用; [0093] S607: so that the link is active, the SMSC link becomes available;

[0094] S608:判断异常计数器计数时间是否到达第一预设时间;如果是,则转至步骤S609 ;如果否则直接转至步骤S601继续进行业务消息检测; [0094] S608: abnormality determination time counter reaches a first predetermined time; if yes, then go to step S609; if otherwise, proceed directly to step S601 detects service message;

[0095] 步骤S609:将异常计数器的计数值清零,并在清零后直接返回步骤S601重新进行业务消息检测。 [0095] Step S609: The count value of the abnormality counter is cleared, and the clearing process returns to step S601 to re-direct traffic messages is detected.

[0096] 以上步骤中,X、Y及Z的值可以根据实际需要进行配置,例如,Y可以设置在5分钟到10分钟之间;Χ可以设置在20次至100次之间,优选的,可以将X设置在20次至30次之间;Ζ的取值可以设置在3分钟至5分钟之间;另外,默认当X、Y及Z的值为O时不启用该异常检测功能。 [0096] In the above steps, the value of X, Y and Z may be arranged according to the actual needs, for example, Y may be set between 5 to 10 minutes; [chi] can be set between 20 to 100 times, preferably, X may be provided between 20 to 30; the value [zeta] may be provided between 3-5 minutes; in addition, the abnormality detection function is not enabled by default when the X, Y and Z value of O.

[0097] 当确认当前轮询的SMSC不满足预设短信发送条件时,继续轮询所述SMSC索引列表中的下一个SMSC索引,并判断下一个SMSC是否满足短信发送条件,如果是,则将业务消息发送至相应SMSC ;如果否,则继续轮询SMSC索引列表中下一个SMSC,直到被轮询到的SMSC满足短信发送条件,将业务消息发送至相应SMSC并结束当前短信发送流程; [0097] When the confirmation message does not satisfy the current polling transmission condition preset SMSC, the SMSC continue to poll the next index list index SMSC, and the SMSC determines whether a message transmission condition is satisfied, and if so, message to the appropriate SMSC service; if no, continue to poll the next index list SMSC SMSC, short message transmission condition until polled to meet SMSC to send the service message to the corresponding SMSC and ends the current message sending process;

[0098] 如果对所述SMSC索引列表进行一次轮询后,没有找到满足预设短信发送条件的SMSC时,向业务子系统返回错误响应消息以指示当前短信不能发送的原因;或者,也可以设置定时器,并在定时器超时时,重新轮询,并在总共进行特定次数(例如三次,该值实际应用中可以根据需要设置)轮询后仍没有找到满足预设短信发送条件的SMSC时,向业务子系统返回错误响应消息以指示当前短信不能发送的原因;所述当前短信不能发送的原因,包括:链路异常、SMSC负荷过重(S卩,SMSC发送窗口均满)等等。 [0098] If the SMSC index list are polled, not found to meet the predetermined condition SMSC SMS, the service subsystem returns an error response to the message to indicate the cause can not be transmitted by SMS; or may be provided timer and when the timer times out, re-polling, and a total of a specific number (for example, three times the value of practical application can be set) when the polling is still not satisfied with a predetermined message transmission conditions SMSC find, returns an error to the service subsystem response message indicating the cause can not be transmitted by SMS; the reason for this message can not be transmitted, comprising: a link error, the SMSC overload (S Jie, the SMSC transmits windows are full) and the like.

[0099] 在这一步骤中,将业务消息发送至相应的SMSC之后,SMSC对所述业务消息进行解析,根据短信内容生成短信,并将生成的短信发送至目的终端号码。 After [0099] In this step, the service message sent to the corresponding SMSC, SMSC service message for the parsing, generating message according to the message content, and transmits the generated message to the destination terminal number.

[0100] 实施例三 [0100] Example three

[0101] 本发明实施例三提供了一种短信发送装置,应用于协议栈处理设备中,如图7所示,所述装置包括=SMSC索引列表获取模块71、处理模块72及业务消息发送模块73 ;其中, Example [0101] The present invention provides a three SMS apparatus is applied to processing apparatus in the protocol stack, shown in Figure 7, the apparatus comprising an index = SMSC list acquisition module 71, processing module 72 and a service message sending module 73; wherein,

[0102] 所述SMSC索引列表获取模块71,用于根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表;所述业务消息至少包括:业务类型标识和短信内容; [0102] The SMSC index list acquisition module 71, for obtaining the service type matched index list SMSC service message according to the service type of the service subsystem of the received transmission; and the service message comprising at least: a service type logo and message content;

[0103] 所述处理模块72,用于轮询所述SMSC索引列表,并在确定被轮询到的SMSC索引对应的SMSC满足预设短信发送条件时,触发业务消息发送模块73 ; When [0103] the processing module 72, the SMSC index list for polling and polled to determine the index of the corresponding SMSC SMS SMSC satisfies a preset condition, triggering service message sending module 73;

[0104] 所述业务消息发送模块73,用于被处理模块72触发时,将业务消息发送给所述SMSC0 [0104] The service message sending module 73, a processing module 72, when triggered, sends a service message to the SMSC0

[0105] 具体的,所述SMSC索引列表获取模块71通过以下方式获取与所述业务消息的业务类型相匹配的SMSC索引列表: [0105] Specifically, the SMSC index list acquisition module 71 acquires the service type of the service message matches SMSC index list by:

[0106] SMSC索引列表获取模块71对所述业务消息进行解析获得业务类型标识;将所述业务类型标识作为关键字在本地内存中查找与所述业务标识相匹配的SMSC索引列表。 [0106] SMSC index list acquisition module 71 parses the message service to obtain the service type identifier; the service type identifier as a key to find the local memory of the SMSC service identifier matches the index list.

[0107] 进一步的,所述SMSC索引列表获取模块71,还用于在没有查找到与所述业务标识相匹配的SMSC索引列表时,通过以下步骤生成SMSC索引列表: [0107] Further, the SMSC index list obtaining module 71 is further configured when the service is not found to match the SMSC identifier index list SMSC index list generated by the steps of:

[0108] SMSC索引列表获取模块71将所述业务类型标识作为关键字,在本地数据库的业务类型标识与SMSC索引的配置关系表中查找与所述业务类型标识存在映射关系的SMSC索弓I ; [0108] SMSC index list obtaining module 71 to the service type identifier as a key, and the lookup service type identifier index maps into bow I SMSC identifier in a local database of the service type and configuration SMSC index relationship table;

[0109] 根据查找到的与所述业务类型标识存在映射关系的SMSC索引,生成与所述业务类型相匹配的SMSC索引列表;所述SMSC索引列表中包括查找到的所有与所述业务类型标识存在映射关系的SMSC索引; [0109] The lookup index to SMSC mapping relationship exists with the type of service identifier, the service type to generate index list matches SMSC; the SMSC included in the index list to find all of the service type identifier maps into SMSC index;

[0110] 将生成的SMSC索引列表保存于本地内存。 [0110] The resulting index list SMSC stored in local memory.

[0111] 具体的,所述处理模块72通过以下方式确定被轮询到的SMSC满足预设短信发送条件: [0111] Specifically, the processing module 72 is determined by the polled manner SMS SMSC satisfies a preset condition:

[0112] 判断所述业务消息拆分后的短信数与已发送至所述轮询到的SMSC、且等待处理的短信数之和是否小于等于相应SMSC所支持的短信数;如果小于等于,进一步判断所述SMSC的链路是否处于激活状态,如果是,则确认SMSC满足预设短信发送条件。 Messages in the [0112] Analyzing and split the service message has been sent to the SMSC to the polling, and the number of messages waiting to be processed is smaller than and equal to the corresponding SMSC number of supported message; if less, further the SMSC determines whether the link is active, and if so, confirmation SMS SMSC satisfies a preset condition.

[0113] 进一步的,所述装置还包括链路状态管理模块74,用于在处理模块72判断SMSC的链路是否处于激活状态之前,通过以下方式对SMSC的链路状态进行管理: [0113] Further, the apparatus further comprises a link state management module 74, processing module 72 for prior SMSC determines whether the link is activated, the link state managed by the SMSC in the following manner:

[0114] 每次发送业务消息至SMSC后,检测业务消息状态,如果所述SMSC对业务消息响应超时或响应失败,则使预设的异常计数器加I ; [0114] After sending each service message to the SMSC, state detection service message, if the SMSC of the service times out, or response message in response to a failure, the cause of the abnormality counter is increased by a preset I;

[0115] 若异常计数值在第一预设时间内达到预设次数,则去激活此SMSC对应的链路,设置定时器,并在所设置的定时器达到第二预设时间时,激活所述SMSC对应的链路;若异常计数器的计数时间到达第一预设时间、但异常计数值未达到预设次数时,将异常计数器的计数值清零,并重新进行下一周期业务消息状态检测;若异常计数值未达到预设次数、且异常计数器的计数时间未到达第一预设时间,继续检测业务消息状态。 When [0115] When the count value reaches a preset abnormal number of times within a first predetermined time, the SMSC corresponding to activate the link, set a timer, and reaches a second predetermined time set in the timer, the activation SMSC corresponding to said link; if the count time of the abnormality counter reaches a first predetermined time, the abnormality count value does not reach the predetermined number, the count value of the abnormality counter is cleared, and again the next cycle state detecting traffic messages ; abnormal if the count value does not reach the preset number of times, and the abnormal count of the counter does not reach the first predetermined time period, the message continues to be detected traffic status.

[0116] 进一步的,所述装置还包括:响应模块75,用于在处理模块72轮询完所述SMSC索引列表,没有找到满足预设短信发送条件的SMSC时,向业务子系统返回错误响应消息以指示当前短信不能发送的原因;具体的,可以是在I次轮询之后,也可以是在N次轮询之后没有找到满足预设短信发送条件的SMSC时,向业务子系统返回错误响应消息。 [0116] Further, the apparatus further comprising: a response module 75, processing module 72 for polling the SMSC End index list is not found to meet the predetermined condition when the SMSC SMS, to the service subsystem returns an error response message indicating the cause is not transmitted by SMS; specifically, the following may be I th polling, may be found not to meet the predetermined condition SMS SMSC after N polls, returning an error response to the service subsystem messages.

[0117] 下面通过两个具体示例,对本发明实施例所述方法作以下详细介绍; [0117] By following two specific examples, the present invention will be detailed below embodiments of the method;

[0118]示例一 [0118] Example a

[0119] 如图8所示,该示例包括以下步骤: [0119] As shown in FIG. 8, the sample comprising the steps of:

[0120] 步骤801:接收业务消息并提取业务类型标识; [0120] Step 801: receiving a service message and extracts the service type identifier;

[0121] 步骤802:遍历本地内存区业务类型标识数组,查找该业务类型标识对应的SMSC索引列表List,如果查找到则直接进入S804步骤,否则进入S803步骤; [0121] Step 802: traversing the local service type identifier memory area array, looks up the corresponding service type identifier index list List SMSC, if found directly into the step S804, otherwise, proceed to step S803;

[0122] 上述SMSC索引列表是根据预先设置的业务类型标识与SMSC的配置关系表在内存区建立的索引表; [0122] The SMSC index list is an index table according to the service type identifier configuration preset SMSC established relationship table in memory area;

[0123] 步骤803:创建SMSC索引列表并追加至已有列表; [0123] Step 803: Create SMSC index list and added to the existing list;

[0124] 具体的,在本地预先设置的业务类型标识与SMSC的配置关系表里搜索所述业务标识类型对应的SMSC并创建该业务类型标识对应的索引列表,追加至本地内存区已有列表; [0124] Specifically, the positional relationship between the service type ID in the local preset SMSC searches the table corresponding to the type of the service identifier and create SMSC index list corresponding to the service type ID, is added to the list of existing local memory region;

[0125] 步骤804:轮询所述SMSC索引列表; [0125] Step 804: the SMSC polling index list;

[0126] 如果是初次轮询当前SMSC索引列表,则在所述SMSC索引列表里选定一个索引初始值,并从该初始值对应的SMSC索引开始轮询,并在轮询完一个SMSC索引且该SMSC索引对应的SMSC不满足短信发送条件时,顺序轮询下一个SMSC索引; [0126] If this is the first time a polling SMSC index list, the selected index in the list an index SMSC initial value, and begins polling the SMSC corresponding to the index of the initial value, and a polling completion index SMSC and the SMSC message index corresponding SMSC does not satisfy the transmission condition, a polling sequence index SMSC;

[0127] 步骤805:判断当前短消息数N与等待SMSC响应的短消息数之和是否小于SMSC的发送窗口大小; [0127] Step 805: determining the number N of the current short message waiting message number of the SMSC in response to a transmission window size and is smaller than the SMSC;

[0128] 其中,所述当前短消息数是指当前业务消息中包含的短消息数;所述等待SMSC响应的短消息数是指:已发送至当前轮询到的SMSC且在等待所述SMSC响应的消息数;这一步骤中,如果判断结果为是,则转入步骤806继续处理,否则,转入步骤808 ; [0128] wherein the number of the current short message refers to a number of short message service message contained in the current; the number of short message SMSC response waiting means: the current poll has been sent to the SMSC to the SMSC and waiting message response number; this step, if the judgment result is YES, the process proceeds to step 806 continues, otherwise, proceeds to step 808;

[0129] 步骤806:判断当前所轮询的SMSC的链路是否处于激活状态,若是,则转入步骤807,否则转入步骤808 ; [0129] Step 806: The SMSC determines the current polling whether the link is active, and if yes, proceeds to step 807, otherwise proceeds to step 808;

[0130] 步骤807:将业务消息中的N条短消息发送至SMSC,并将等待该SMSC响应的短信计数器增加N ; [0130] Step 807: the service message is sent to the N SMSC short messages, and message waiting counter is increased in response to the SMSC N;

[0131] 在该步骤中,还需要记录当前业务类型对应的SMSC索引,以便用于下一次该业务消息类型的消息轮询时选取索引初始值(假设按上述方式二选初始值); [0131] In this step, the SMSC needs to record the current service type corresponding to the index, so the index for the next selection of the initial value of a polling message service message type (assuming two selected from the above-described embodiment the initial value);

[0132] 步骤808:判断轮询次数是否达到SMSC索引列表List里元素总数,若未达到转入步骤804继续轮询下一个SMSC索引;否则,转入步骤809 ; [0132] Step 808: the number of polling to determine whether the total number of elements in List index list SMSC, if no progress is transferred to step 804 to continue to poll the next SMSC index; otherwise, the process proceeds to step 809;

[0133] 步骤809:记录短信发送失败原因并结束流程。 [0133] Step 809: Record SMS reasons for the failure and end the process.

[0134]示例二 [0134] Example Two

[0135] 如图9所示,该示例包括以下步骤: [0135] As shown in FIG. 9, the sample comprising the steps of:

[0136] 步骤901:接收业务消息并提取业务类型标识; [0136] Step 901: receiving a service message and extracts the service type identifier;

[0137] 步骤902:遍历本地内存区业务类型标识数组,查找该业务类型标识对应的SMSC索引列表List,如果查找到则直接进入步骤904,否则进入步骤903 ; [0137] Step 902: traversing the local service type identifier memory area array, looks up the corresponding service type identifier index list List SMSC, if found directly proceeds to step 904, otherwise, proceed to step 903;

[0138] 上述SMSC索引列表是根据预先设置的业务类型标识与SMSC的配置关系表在内存区建立的索引表; [0138] The SMSC index list is an index table according to the service type identifier configuration preset SMSC established relationship table in memory area;

[0139] 步骤903:创建SMSC索引列表并追加至已有列表; [0139] Step 903: Create SMSC index list and added to the existing list;

[0140] 在本地预先设置的业务类型标识与SMSC的配置关系表里搜索所述业务标识类型对应的SMSC并创建该业务类型标识对应的索引列表,追加至本地内存区已有列表; [0140] Local service type identifier in a preset relation to the configuration of the table search service identifier corresponding to the type of SMSC and SMSC to create index list corresponding to the service type ID, is added to the list of existing local memory region;

[0141] 步骤904:轮询所述SMSC索引列表; [0141] Step 904: the SMSC polling index list;

[0142] 如果是初次轮询当前SMSC索引列表,则在所述SMSC索引列表里选定一个索引初始值,并从该初始值对应的SMSC索引开始轮询,并在轮询完一个SMSC索引且该SMSC索引对应的SMSC不满足短信发送条件时,顺序轮询下一个SMSC索引; [0142] If this is the first time a polling SMSC index list, the selected index in the list an index SMSC initial value, and begins polling the SMSC corresponding to the index of the initial value, and a polling completion index SMSC and the SMSC message index corresponding SMSC does not satisfy the transmission condition, a polling sequence index SMSC;

[0143] 步骤905:判断当前短消息数N与等待SMSC响应的短消息数之和是否小于SMSC的发送窗口大小; [0143] Step 905: determining the number N of the current short message waiting message number of the SMSC in response to a transmission window size and is smaller than the SMSC;

[0144] 其中,所述当前短消息数是指当前业务消息中包含的短消息数;所述等待SMSC响应的短消息数是指:已发送至当前轮询到的SMSC且在等待所述SMSC响应的消息数;这一步骤中,如果判断结果为是,则转入步骤906继续处理,否则,转入步骤908 ; [0144] wherein the number of the current short message refers to a number of short message service message contained in the current; the number of short message SMSC response waiting means: the current poll has been sent to the SMSC to the SMSC and waiting message response number; this step, if the judgment result is YES, the process proceeds to step 906 continues, otherwise, proceeds to step 908;

[0145] 步骤906:判断当前所轮询的SMSC的链路是否处于激活状态,若是,则转入步骤907,否则转入步骤908 ; [0145] Step 906: The SMSC determines the current polling whether the link is active, and if yes, proceeds to step 907, otherwise proceeds to step 908;

[0146] 步骤907:将业务消息中的N条短消息发送至SMSC,并将等待该SMSC响应的短信计数器增加N ; [0146] Step 907: the service message is sent to the N SMSC short messages, and message waiting counter is increased in response to the SMSC N;

[0147] 在该步骤中,还需要记录当前业务类型对应的SMSC索引,以便用于下一次该业务消息类型的消息轮询时选取索引初始值(假设按上述方式二选初始值); [0147] In this step, the SMSC needs to record the current service type corresponding to the index, so the index for the next selection of the initial value of a polling message service message type (assuming two selected from the above-described embodiment the initial value);

[0148] 步骤908:判断轮询次数是否达到SMSC索引列表List里元素总数,若未达到转入步骤904继续轮询下一个SMSC索引;否则,转入步骤909 ; [0148] Step 908: the number of polling to determine whether the total number of elements in List index list SMSC, if not reach the next proceeds to step 904 to continue to poll a SMSC index; otherwise, the process proceeds to step 909;

[0149] 步骤909:遍历计数器计数值加I ; [0149] Step 909: traversing the counter count value I;

[0150] 具体的,遍历计数器是用于统计遍历完SMSC中所有元素的次数,即,对SMSC中所有元素轮询完时,将遍历计数器的数值加I ; [0150] Specifically, the traverse count number for the counter SMSC been traversed all the elements, i.e., all the elements of the SMSC End polling the traverse counter by the value I;

[0151] 步骤910:判断遍历计数器是否达到特定阈值; [0151] Step 910: determining whether to traverse the counter reaches a certain threshold;

[0152] 在这一步骤之前,可以根据实际需要设置遍历计数器的阈值;当遍历计数器达到特定阈值时,转步骤911 ;当遍历计数器未达到特定阈值时,转步骤912 ; [0152] Prior to this step, it can be set as required to traverse counter threshold; when traversing the counter reaches a certain threshold, proceed to step 911; when a certain threshold traverse counter has not reached, proceed to step 912;

[0153] 步骤911:记录短信发送失败原因; [0153] Step 911: SMS recording failure reason;

[0154] 步骤912:设置定时器; [0154] Step 912: setting a timer;

[0155] 步骤913:判断定时器是否超时;并在定时器超时时,重新轮询所述SMSC索引列表;定时器未超时时返回继续计时,并在定时器超时时重新轮询所述SMSC。 [0155] Step 913: determining whether the timer times out; and when the timer expires, the re-polling SMSC index list; return to continue counting the timer does not expire, and to re-poll the SMSC when the timer expires.

[0156] 在具体实施过程中,上述SMSC索引列表获取模块71、处理模块72、业务消息发送模块73、链路状态管理模块74和响应模块75可以由协议栈处理设备内的中央处理器(CPU, Central Processing Unit)、微处理器(MPU,Micro Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程逻辑阵列(FPGA,Field — ProgrammableGate Array)来实现。 [0156] In a specific embodiment the process of the SMSC index list obtaining module 71, a processing module 72, a service message sending module 73, a link state management module 74 and module 75 may be in response by the central processor in the protocol stack processing device (CPU , Central Processing Unit), a microprocessor (MPU, Micro Processing Unit), a digital signal processor (DSP, digital signal processor) or a programmable logic array (FPGA, Field - ProgrammableGate array) is achieved.

[0157] 本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。 [0157] skilled in the art should understand that the embodiments of the present invention may provide a method, system, or computer program product. 因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。 Thus, embodiments of the present invention be implemented in hardware, software embodiment, or an embodiment in conjunction with the form of software and hardware aspects. 而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。 Further, in the present invention may comprise one or more of which computer usable storage medium having computer-usable program code (including but not limited to disk storage, and optical storage) in the form of a computer program product implemented on.

[0158] 本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。 [0158] The present invention has been described in accordance with the method of Example of the present invention, apparatus (systems) and computer program products flowchart and / or block diagrams described. 应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。 It should be understood and implemented by computer program instructions and block, and the flowchart / or block diagrams each process and / or flowchart illustrations and / or block diagrams of processes and / or blocks. 可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 These computer program instructions may be provided to a processor a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus generating in a device for implementing the flow chart or more flows and / or block diagram block or blocks in a specified functions.

[0159] 这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 [0159] These computer program instructions may also be stored in a computer can direct a computer or other programmable data processing apparatus to function in a particular manner readable memory produce an article of manufacture such that the storage instruction means comprises a memory in the computer-readable instructions the instruction means implemented in a flowchart or more flows and / or block diagram block or blocks in a specified function.

[0160] 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。 [0160] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps on the computer or other programmable apparatus to produce a computer implemented so that the computer or other programmable apparatus execute instructions to provide processes for implementing a process or flows and / or block diagram block or blocks a function specified step.

[0161] 以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 [0161] The above are only preferred embodiments of the present invention but are not intended to limit the scope of the present invention.

Claims (12)

1.一种短信发送方法,其特征在于,所述方法包括: 协议栈处理设备根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的短信服务中心SMSC索引列表;所述业务消息包括:业务类型标识和短信内容; 轮询所述SMSC索引列表,当确定被轮询到的SMSC索引对应的SMSC满足预设短信发送条件时,将所述业务消息发送至所述SMSC。 A message transmission method, wherein the method comprises: a protocol stack processing device obtains the service type matches the index list SMSC SMSC service message according to the service type of the received service subsystem sends the ; the service message comprises: message content and service type identifier; poll the SMSC index list, when it is determined to be polled index corresponding SMSC SMS SMSC satisfies a preset condition, the service message is sent to the said SMSC.
2.根据权利要求1所述的方法,其特征在于,协议栈处理设备根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表,包括: 协议栈处理设备对所述业务消息进行解析获得业务类型标识,将所述业务类型标识作为关键字在本地内存中查找与所述业务标识相匹配的SMSC索引列表。 2. The method according to claim 1, wherein the protocol stack processing device obtains the service type matches the index list SMSC service message according to the service type of the service subsystem of the received transmission, comprising: a protocol stack processing apparatus parses the message to obtain the service type of the service identifier, the service type identifier as a key to find the local memory of the SMSC service identifier matches the index list.
3.根据权利要求2所述的方法,其特征在于,当将所述业务类型标识作为关键字在本地内存中没有查找到与所述业务标识相匹配的SMSC索引列表时,所述方法还包括: 协议栈处理设备将所述业务类型标识作为关键字在本地数据库的业务类型标识与SMSC索引的配置关系表中查找与所述业务类型标识存在映射关系的SMSC索引; 根据查找到的与所述业务类型标识存在映射关系的SMSC索引,生成与所述业务类型相匹配的SMSC索引列表; 将生成的SMSC索引列表保存于本地内存中。 The method according to claim 2, wherein when the service type identifier as a key is not found to match the service identifier in the local SMSC index list memory, the method further comprises : the protocol stack processing device as a key service type identifier in the configuration table lookup service type identifier with a local database with the index SMSC there is a mapping relationship of the service type identifier of the SMSC index; according to the found with the there is a mapping relationship between the service type identifier index SMSC generates the service type matched index list SMSC; SMSC generated index list stored in local memory.
4.根据权利要求1、2或3所述的方法,其特征在于,通过以下方式确定被轮询到的SMSC满足预设短信发送条件: 判断当前业务消息拆分后的短信数与已发送至所述轮询到的SMSC、且等待处理的短信数之和是否小于等于相应SMSC所支持的短信数;如果小于等于,则判断所述SMSC的链路是否处于激活状态,如果是,则确认SMSC满足预设短信发送条件。 4. The method of claim 1, 2 or 3, characterized in that, in the following manner is determined to be polled SMS SMSC satisfies a preset condition: determining the current number of SMS service message already sent to the split SMSC to the polling, and the number of messages waiting to be processed is less than equal to the number and the corresponding message is supported by the SMSC; if less, then the SMSC determines whether the link is active, and if so, the SMSC to confirm satisfies a preset SMS conditions.
5.根据权利要求4所述的方法,其特征在于,所述协议栈处理设备判断所述SMSC的链路是否处于激活状态之前,所述方法还包括: 协议栈处理设备通过以下方式对SMSC的链路状态进行管理: 每次发送业务消息至SMSC后,检测业务消息状态,如果所述SMSC对业务消息响应超时或响应失败,则使预设的异常计数器加I ; 若异常计数值在第一预设时间内达到预设次数,则去激活此SMSC对应的链路,设置定时器,并在所设置的定时器达到第二预设时间时,激活所述SMSC对应的链路;若异常计数器的计数时间到达第一预设时间、但异常计数值未达到预设次数时,将异常计数器的计数值清零,并重新进行下一周期业务消息状态检测;若异常计数值未达到预设次数、且异常计数器的计数时间未到达第一预设时间,继续检测业务消息状态。 The method according to claim 4, characterized in that, prior to said protocol stack processing apparatus determines whether the SMSC link in an active state, the method further comprising: a protocol stack processing device by way of the SMSC link status management: send each message to SMSC service, state detection service message, if the SMSC of the service response message in response to a timeout or failure, the cause of the abnormality counter is increased by a preset I; abnormal if the count value of the first when the preset time reaches a preset number of times, the SMSC corresponding to activate the link, set a timer, and the timer reaches a second predetermined time set by activating the SMSC corresponding to the link; if abnormality counter when the count time reaches a first predetermined time, the abnormality count value does not reach the predetermined number, the count value of the abnormality counter is cleared, and again the next service cycle state detection message; if the number of times the count value does not reach a preset abnormal and the count is not the first time of the abnormality counter reaches the preset time, the message continues to be detected traffic status.
6.根据权利要求1、2或3所述的方法,其特征在于,所述方法还包括:当轮询完所述SMSC索引列表,没有找到满足预设短信发送条件的SMSC时,向业务子系统返回错误响应消息以指示当前短信不能发送的原因。 6. The method according to claim 2 or 3, characterized in that the method further comprises: when a polling finish the SMSC index list is not found to meet the preset SMSC message transmission condition, to the service sub the system returns an error message indicating the cause of the response can not be transmitted by SMS.
7.一种短信发送装置,其特征在于,所述装置包括:短信服务中心SMSC索引列表获取模块、处理模块及业务消息发送模块;其中, 所述SMSC索引列表获取模块,用于根据接收到的业务子系统发送的业务消息的业务类型获得与所述业务类型相匹配的SMSC索引列表;所述业务消息包括:业务类型标识和短信内容; 所述处理模块,用于轮询所述SMSC索引列表,并在确定被轮询到的SMSC索引对应的SMSC满足预设短信发送条件时,触发业务消息发送模块; 所述业务消息发送模块,用于被处理模块触发时,将业务消息发送给所述SMSC。 A message transmitting apparatus, wherein the apparatus comprises: a short message service center SMSC index list obtaining module, a service processing module and a message sending module; wherein the SMSC index list obtaining module, according to the received service type service subsystem sends the message to obtain the service type matches the index list SMSC; the traffic message comprising: service type identifier and a message content; the processing module is configured to poll the SMSC index list when and polled to determine the index corresponding SMSC SMS SMSC satisfies a preset condition, triggering service message sending module; when the service message sending module, a processing module for being triggered, the message to the service SMSC.
8.根据权利要求7所述的装置,其特征在于,所述SMSC索引列表获取模块通过以下方式获取与所述业务消息的业务类型相匹配的SMSC索引列表: SMSC索引列表获取模块对所述业务消息进行解析获得业务类型标识,将所述业务类型标识作为关键字在本地内存中查找与所述业务标识相匹配的SMSC索引列表。 8. The apparatus according to claim 7, wherein said SMSC index list acquisition module acquires the service type of the service message matches the index list SMSC in the following ways: SMSC index list obtaining the service module message is parsed to obtain the service type identifier, the service type identifier as a key to find the local memory of the SMSC service identifier matches the index list.
9.根据权利要求8所述的装置,其特征在于,所述SMSC索引列表获取模块,还用于在本地内存中没有查找到与所述业务标识相匹配的SMSC索引列表时,通过以下方式生成SMSC索引列表: SMSC索引列表获取模块将所述业务类型标识作为关键字在本地数据库的业务类型标识与SMSC索引的配置关系表中查找与所述业务类型标识存在映射关系的SMSC索引; 根据查找到的与所述业务类型标识存在映射关系的SMSC索引,生成与所述业务类型相匹配的SMSC索引列表;所述SMSC索引列表中包括查找到的所有与所述业务类型标识存在映射关系的SMSC索引; 将生成的SMSC索引列表保存于本地内存中。 9. The apparatus according to claim 8, wherein said SMSC index list acquisition module is further configured to find no match with the service identifier of the SMSC in the local index list memory, generated in the following manner SMSC index list: list acquisition module SMSC index the lookup service type identifier as a key identifier in a local database of the service type and configuration SMSC index table mapping relationship exists with the service type identifier of the SMSC index; according to the found the SMSC index maps into the service type identifier, the service type to generate index list matches SMSC; index list of the SMSC included in the searched mapping relationship exists with all service type identifier of the SMSC index ; the resulting index list SMSC stored in local memory.
10.根据权利要求7、8或9所述的装置,其特征在于,所述处理模块通过以下方式确定被轮询到的SMSC满足预设短信发送条件: 判断所述业务消息拆分后的短信数与已发送至所述轮询到的SMSC、且等待处理的短信数之和是否小于等于相应SMSC所支持的短信数;如果小于等于,则判断所述SMSC的链路是否处于激活状态,如果是,则确认SMSC满足预设短信发送条件。 10. The apparatus of claim 7, 8 or claim 9, wherein the processing module determines polled message to SMSC satisfies a preset condition transmitted by: determining whether the short message service message after splitting whether the number has been sent to the SMSC to the polling, and the number of messages waiting to be processed and less than equal to the corresponding number of supports SMS SMSC; if less, then the SMSC determines whether the link is active, if yes, the SMSC meet preset SMS to confirm the condition.
11.根据权利要求10所述的装置,其特征在于,所述装置还包括链路状态管理模块,用于在处理模块判断SMSC的链路是否处于激活状态之前,通过以下方式对SMSC的链路状态进行管理: 每次发送业务消息至SMSC后,检测业务消息状态,如果所述SMSC对业务消息响应超时或响应失败,则使预设的异常计数器加I ; 若异常计数值在第一预设时间内达到预设次数,则去激活此SMSC对应的链路,设置定时器,并在所设置的定时器达到第二预设时间时,激活所述SMSC对应的链路;若异常计数器的计数时间到达第一预设时间、但异常计数值未达到预设次数时,将异常计数器的计数值清零,并重新进行下一周期业务消息状态检测;若异常计数值未达到预设次数、且异常计数器的计数时间未到达第一预设时间,继续检测业务消息状态。 11. The apparatus according to claim 10, wherein said apparatus further comprises a link state management module, the processing module determines for the SMSC before the link is in the active state, by way of a link to the SMSC management state: after every transmission to the SMSC service message, state detection service message, if the SMSC of the service response message in response to a timeout or failure, the cause of the abnormality counter is increased by a preset I; abnormal if the count value in the first predetermined upon reaching a preset number of times, this time to activate the corresponding SMSC link, set a timer, and the timer reaches a second predetermined time set by activating the SMSC corresponding to the link; if the count of the abnormality counter when the time reaches a first predetermined time, the abnormality count value does not reach the predetermined number, the count value of the abnormality counter is cleared, and again the next service cycle state detection message; abnormal if the count value does not reach the predetermined number, and a first abnormality counter count time has not reached the preset time, the message continues to be detected traffic status.
12.根据权利要求7、8或9所述的装置,其特征在于,所述装置还包括:响应模块,用于在处理模块轮询完所述SMSC索引列表,没有找到满足预设短信发送条件的SMSC时,向业务子系统返回错误响应消息以指示当前短信不能发送的原因。 12. The apparatus of claim 7, 8 or claim 9, characterized in that said apparatus further comprising: a response module, an index list for the SMSC processing module End polling message sent does not meet the predetermined conditions found the SMSC, the subsystem returns an error message indicating the cause of this response message can not be sent to the service.
CN 201410767851 2014-12-12 2014-12-12 Short message sending method and device CN105744494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410767851 CN105744494A (en) 2014-12-12 2014-12-12 Short message sending method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201410767851 CN105744494A (en) 2014-12-12 2014-12-12 Short message sending method and device
PCT/CN2015/074968 WO2016090764A1 (en) 2014-12-12 2015-03-24 Short message transmitting method and device and computer storage medium

Publications (1)

Publication Number Publication Date
CN105744494A true true CN105744494A (en) 2016-07-06

Family

ID=56106538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410767851 CN105744494A (en) 2014-12-12 2014-12-12 Short message sending method and device

Country Status (2)

Country Link
CN (1) CN105744494A (en)
WO (1) WO2016090764A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI109511B (en) * 1997-06-03 2002-08-15 Nokia Corp Short Message routing
KR20010035726A (en) * 1999-10-01 2001-05-07 서평원 E-Mail Transceive Method Of Using Mobile Telecommunication Network
US7941165B2 (en) * 2005-03-02 2011-05-10 Cisco Technology, Inc. System and method for providing a proxy in a short message service (SMS) environment
CN100455055C (en) * 2006-08-02 2009-01-21 侯万春;冯庆元 System and method for implementing short message additional service

Also Published As

Publication number Publication date Type
WO2016090764A1 (en) 2016-06-16 application

Similar Documents

Publication Publication Date Title
US20140106704A1 (en) System and method for triggering on platform usage
US20140006597A1 (en) Method, system, and device for managing server hardware resources in a cloud scheduling environment
KR20110074096A (en) Method, device and system for monitoring trouble of distributed home-network
US20090092131A1 (en) Method and Device for Rejecting Redundantly Retransmitted SIP Messages
US20140126356A1 (en) Intelligent Network
US20140307858A1 (en) Returning calls to emergency callers without valid telephone numbers
CN101902681A (en) Method for processing M2M (Machine to Machine) platform service and M2M platform
US7817563B1 (en) Adaptive data stream sampling
US20150142940A1 (en) Methods, systems, and computer readable media for a network function virtualization information concentrator
US20090164632A1 (en) Web service multi-key rate limiting method and system
US8693981B1 (en) Monitoring persistent client connection status in a distributed server environment
KR20090029348A (en) Apparatus and method for call distribution in diameter system
US20110191624A1 (en) Systems, methods, and computer readable media for providing instantaneous failover of packet processing elements in a network
US20070110070A1 (en) Techniques for sequencing system log messages
US20130308651A1 (en) Packet Processing Method, Device and System
US8977595B1 (en) Message-recovery file log locating and monitoring
CN101710856A (en) Method and equipment for detection processing of loopback of aggregation link
CN102231739A (en) Code matching method and device
US20130152196A1 (en) Throttling of rogue entities to push notification servers
CN103346912A (en) Method, device and system for conducting warning correlation analysis
US20140358985A1 (en) Failover for mobile devices
CN104113842A (en) Fake wireless network access point identification method, device and server and mobile terminal
US9122546B1 (en) Rapid processing of event notifications
US9106516B1 (en) Routing and analyzing business-to-business service requests
CN102098659A (en) Method and system for fast verifying international mobile equipment identity (IMEI)

Legal Events

Date Code Title Description
C06 Publication
SE01