









技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种挂机短信传输方法、服务器、终端设备、系统及存储介质。Embodiments of the present invention relate to the field of communication technologies, and in particular, to an on-hook short message transmission method, a server, a terminal device, a system, and a storage medium.
背景技术Background technique
挂机短信是指手机用户与订购挂机短信业务的个人或企业之间通话结束后,手机用户将收到由企业或个人预先设置好的短信,短信的内容可以是企业介绍、产品介绍、促销活动、节日祝福信息等,使得手机用户在收到短信的同时获取相关信息。On-hook SMS means that after the call between the mobile phone user and the individual or enterprise that subscribes to the on-hook SMS service, the mobile phone user will receive a short message pre-set by the enterprise or individual. Holiday blessing information, etc., enable mobile phone users to obtain relevant information while receiving short messages.
现有技术中,发送的挂机短信一般都是纯文本信息,信息的承载量低,并且用户对于纯文本短信的接受意愿低,用户体验较差,进而导致订购挂机短信业务的个人或企业的展销效果较差,商家需要在纯文本信息的基础上进一步编辑并发送其它信息,步骤繁琐,效率较低。In the prior art, the on-hook short messages sent are generally plain text messages, the information carrying capacity is low, the user's willingness to accept plain text messages is low, and the user experience is poor, which in turn leads to exhibition sales by individuals or enterprises who subscribe to the on-hook short message service. The effect is poor, and the merchant needs to further edit and send other information on the basis of the plain text information, which is cumbersome and inefficient.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种挂机短信传输方法、服务器、终端设备、系统及存储介质,以丰富挂机短信的内容,无需商家在纯文本信息的基础上进一步编辑并发送其它信息,提高了效率。Embodiments of the present invention provide an on-hook short message transmission method, server, terminal device, system and storage medium to enrich the content of on-hook short messages, without the need for merchants to further edit and send other information on the basis of plain text information, thereby improving efficiency.
第一方面,本发明实施例提供一种挂机短信传输方法,应用于挂机短信服务器,包括:In a first aspect, an embodiment of the present invention provides an on-hook short message transmission method, which is applied to an on-hook short message server, including:
接收挂机信令,并判断所述挂机信令是否满足发送挂机短信的条件;receiving on-hook signaling, and judging whether the on-hook signaling satisfies the conditions for sending on-hook short messages;
若满足发送挂机短信的条件,则通过短信息服务网关向接收方发送挂机短信;所述挂机短信为包含链接的短信,所述链接中包含由发送方号码、接收方号码和发送时间生成的标识码;If the conditions for sending an on-hook short message are met, the on-hook short message is sent to the receiver through the short message service gateway; the on-hook short message is a short message containing a link, and the link contains an identifier generated by the sender's number, the recipient's number and the sending time. code;
获取接收方在所述链接被触发时发送的指令,并根据所述链接中的标识码获取对应的富媒体文件;Obtain the instruction sent by the receiver when the link is triggered, and obtain the corresponding rich media file according to the identification code in the link;
将所述富媒体文件发送给接收方,以使接收方对接收的富媒体文件进行解析并展现。The rich media file is sent to the receiver, so that the receiver parses and presents the received rich media file.
可选的,所述通过短信息服务网关向接收方发送挂机短信,包括:Optionally, the sending an on-hook short message to the receiver through the short message service gateway includes:
根据所述发送方号码和接收方号码确定待发送的短信内容;所述待发送的短信内容包含富媒体文件;Determine the short message content to be sent according to the sender number and the recipient number; the short message content to be sent includes rich media files;
对所述待发送的短信内容进行预处理,得到包含链接的挂机短信;Preprocessing the content of the short message to be sent to obtain an on-hook short message containing a link;
将所述包含链接的挂机短信通过短信息服务网关发送给接收方。Send the on-hook short message containing the link to the receiver through the short message service gateway.
可选的,将所述富媒体文件发送给接收方,包括:Optionally, sending the rich media file to the recipient includes:
根据所述接收方号码确定挂机短信服务器至接收方的可用通道,获取所述可用通道的状态信息;Determine the available channel from the on-hook SMS server to the recipient according to the recipient number, and obtain the status information of the available channel;
根据待发送的富媒体文件和各个通道的状态信息确定发送通道;Determine the sending channel according to the rich media file to be sent and the status information of each channel;
将所述待发送的富媒体文件通过所述发送通道发送给接收方。Send the rich media file to be sent to the receiver through the sending channel.
可选的,根据所述挂机信令判断是否满足发送挂机短信的条件,包括:Optionally, judging whether the conditions for sending an on-hook short message are met according to the on-hook signaling, including:
对所述挂机信令进行预处理,获取用户号码;所述用户号码包括主叫号码和被叫号码;Preprocessing the on-hook signaling to obtain a subscriber number; the subscriber number includes a calling number and a called number;
根据用户号码判断主叫号码或被叫号码是否开启挂机短信业务;Determine whether the calling number or the called number has enabled the on-hook SMS service according to the user number;
若所述主叫号码或被叫号码开启挂机短信业务,则判断发送次数和/或发送时间是否满足预设条件,若满足,则判断所述挂机信令满足发送挂机短信的条件。If the calling number or the called number enables the on-hook short message service, it is judged whether the sending times and/or the sending time meet the preset conditions, and if so, it is judged that the on-hook signaling satisfies the conditions for sending on-hook short messages.
可选的,所述判断发送次数和/或发送时间是否满足预设条件,包括:Optionally, the judging whether the number of times of sending and/or the sending time meets a preset condition, including:
根据所述主叫号码和被叫号码确定发送次数,若所述发送次数小于预设发送次数阈值,则满足预设条件;The number of times of sending is determined according to the calling number and the called number, and if the number of times of sending is less than the preset number of times of sending threshold, the preset condition is satisfied;
和/或,获取当前时间,若当前时间为预设发送时间,则满足预设条件。And/or, the current time is obtained, and if the current time is the preset sending time, the preset condition is satisfied.
可选的,接收所述接收方发送的第一回执信息,并在接收到所述第一回执信息后对所述发送方的账户进行首次扣费;所述第一回执信息表示接收方接收到包含链接的挂机短信;Optionally, receive the first receipt information sent by the receiver, and debit the account of the sender for the first time after receiving the first receipt information; the first receipt information indicates that the receiver has received On-hook SMS with link;
以及,接收所述接收方发送的第二回执信息,并在接收到所述第二回执信息后对所述发送方的账户进行再次扣费;所述第二回执信息表示接收方接收到富媒体文件。and, receiving the second receipt information sent by the receiver, and debiting the account of the sender again after receiving the second receipt information; the second receipt information indicates that the receiver has received the rich media document.
可选的,所述通过短信息服务网关向接收方发送挂机短信之前,还包括:Optionally, before the on-hook short message is sent to the receiver through the short message service gateway, the method further includes:
接收发送方上传的用于制作富媒体文件的信息;Receive the information uploaded by the sender for making rich media files;
对所述信息进行排版处理和压缩处理,得到压缩处理后的富媒体文件,以使接收方在获取富媒体文件时,能够解析所述富媒体文件。Typesetting and compression are performed on the information to obtain a compressed rich media file, so that the receiver can parse the rich media file when acquiring the rich media file.
第二方面,本发明实施例提供一种挂机短信传输方法,应用于终端设备,包括:In a second aspect, an embodiment of the present invention provides an on-hook short message transmission method, applied to a terminal device, including:
接收短信息服务网关发送的挂机短信;所述挂机短信为包含链接的短信,所述链接中包含由发送方号码、接收方号码和发送时间生成的标识码;Receive the on-hook short message sent by the short message service gateway; the on-hook short message is a short message containing a link, and the link contains an identification code generated by the sender's number, the recipient's number and the sending time;
当所述链接被触发时,向挂机短信服务器发送所述链接被触发的指令,以使所述挂机短信服务器根据所述链接中的标识码获取对应的富媒体文件;When the link is triggered, send an instruction that the link is triggered to the on-hook SMS server, so that the on-hook SMS server obtains the corresponding rich media file according to the identification code in the link;
接收所述挂机短信服务器发送的富媒体文件,并对富媒体文件进行解析并展现。Receive the rich media file sent by the on-hook short message server, and parse and display the rich media file.
第三方面,本发明实施例提供一种挂机短信服务器,包括:至少一个处理器和存储器;In a third aspect, an embodiment of the present invention provides an on-hook short message server, including: at least one processor and a memory;
所述存储器存储计算机执行指令;the memory stores computer-executable instructions;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如第一方面任一项所述的挂机短信传输方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the on-hook short message transmission method according to any one of the first aspect.
第四方面,本发明实施例提供一种终端设备,包括:至少一个处理器和存储器;In a fourth aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory;
所述存储器存储计算机执行指令;the memory stores computer-executable instructions;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如第二方面所述的挂机短信传输方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for transmitting an on-hook short message according to the second aspect.
第五方面,本发明实施例提供一种挂机短信传输系统,包括:呼叫会话控制服务器、短信息服务网关、第三方面所述的挂机短信服务器以及第四方面所述的终端设备;其中,In a fifth aspect, an embodiment of the present invention provides an on-hook short message transmission system, including: a call session control server, a short message service gateway, the on-hook short message server described in the third aspect, and the terminal device described in the fourth aspect; wherein,
所述呼叫会话控制服务器,用于在判断主叫号码与被叫号码挂机后,向挂机短信服务器发送挂机信令;The call session control server is configured to send on-hook signaling to the on-hook short message server after judging that the calling number and the called number hang up;
所述短信息服务网关,用于在接收到所述挂机短信服务器发送的挂机短信后,将所述挂机短信发送给接收方。The short message service gateway is configured to send the on-hook short message to the receiver after receiving the on-hook short message sent by the on-hook short message server.
第六方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如第一方面和第二方面任一项所述的挂机短信传输方法。In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the first aspect and the second The on-hook short message transmission method according to any one of the aspects.
本发明实施例提供的挂机短信传输方法、服务器、终端设备、系统及存储介质,该方法通过接收挂机信令,并判断所述挂机信令是否满足发送挂机短信的条件,若满足发送挂机短信的条件,则通过短信息服务网关向接收方发送挂机短信;所述挂机短信为包含链接的短信,所述链接中包含由发送方号码、接收方号码和发送时间生成的标识码,获取接收方在所述链接被触发时发送的指令,并根据所述链接中的标识码获取对应的富媒体文件,将所述富媒体文件发送给接收方,以使接收方对接收的富媒体文件进行解析并展现,上述方法通过短信二次下发的方式,实现将富媒体文件在短信通道进行下发,丰富了挂机短信的内容,无需商家在纯文本信息的基础上进一步编辑并发送其它信息,提高了效率。The on-hook short message transmission method, server, terminal device, system and storage medium provided by the embodiments of the present invention receive on-hook signaling and determine whether the on-hook signaling satisfies the conditions for sending on-hook short messages. condition, then send an on-hook short message to the receiver through the short message service gateway; the on-hook short message is a short message containing a link, and the link contains an identification code generated by the sender's number, the receiver's number and the sending time. The instruction sent when the link is triggered, and the corresponding rich media file is obtained according to the identification code in the link, and the rich media file is sent to the receiver, so that the receiver can parse the received rich media file and It is shown that the above method realizes the delivery of rich media files in the short message channel through the secondary delivery of short messages, which enriches the content of the on-hook short message, and does not require the merchant to further edit and send other information on the basis of the plain text information, which improves the performance of the mobile phone. efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明实施例提供的挂机短信传输方法的应用场景示意图;1 is a schematic diagram of an application scenario of an on-hook short message transmission method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种挂机短信传输方法的流程示意图;2 is a schematic flowchart of a method for transmitting an on-hook short message according to an embodiment of the present invention;
图3为本发明实施例提供的另一种挂机短信传输方法的流程示意图;3 is a schematic flowchart of another on-hook short message transmission method provided by an embodiment of the present invention;
图4为本发明实施例提供的发送挂机短信的信令传输示意图;4 is a schematic diagram of signaling transmission for sending an on-hook short message according to an embodiment of the present invention;
图5为本发明实施例提供的判断挂机信令是否满足发送挂机短信条件的流程示意图;5 is a schematic flowchart of judging whether the on-hook signaling satisfies the conditions for sending on-hook short messages according to an embodiment of the present invention;
图6为本发明实施例提供的又一种挂机短信传输方法的流程示意图;6 is a schematic flowchart of yet another method for on-hook short message transmission provided by an embodiment of the present invention;
图7为本发明实施例提供的一种挂机短信传输装置的结构示意图;7 is a schematic structural diagram of an on-hook short message transmission device according to an embodiment of the present invention;
图8为本发明实施例提供的另一种挂机短信传输装置的结构示意图;8 is a schematic structural diagram of another on-hook short message transmission device provided by an embodiment of the present invention;
图9为本发明实施例提供的挂机短信服务器的硬件结构示意图;9 is a schematic diagram of a hardware structure of an on-hook short message server provided by an embodiment of the present invention;
图10为本发明实施例提供的终端设备的硬件结构示意图。FIG. 10 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to Describe a particular order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can, for example, be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
图1为本发明实施例提供的挂机短信发送方法的应用场景示意图,如图1所示,客户经常会作为主叫或被叫的方式与企业建立通话,当通话结束或繁忙以及无人应答时,挂机短信服务器会将企业设置的信息发送给客户,设置的信息可以为产品的介绍信息,还可以为体现用户关怀的信息。其中,此处的企业也可以是个人用户,如销售人员。例如,当未购买产品的客户在与4S店通话结束后,会接收到4S店的促销信息;当已购买产品的客户在与4S店通话结束后,会接收到4S店的客户关怀信息。Fig. 1 is a schematic diagram of an application scenario of the method for sending an on-hook short message provided by an embodiment of the present invention. As shown in Fig. 1, a customer often establishes a call with an enterprise as the calling or called method. When the call ends or is busy and no one answers , the on-hook SMS server will send the information set by the enterprise to the customer. The set information can be the introduction information of the product or the information that reflects the user's care. Among them, the enterprise here can also be an individual user, such as a salesperson. For example, when the customer who has not purchased the product ends the call with the 4S store, they will receive the promotion information of the 4S store; when the customer who has purchased the product ends the call with the 4S store, they will receive the customer care information of the 4S store.
在一些技术中,发送的挂机短信仅仅为纯文本信息,信息承载量低,且用户在众多的垃圾短信中对于纯文本短信的接收意愿会更低,用户体验较差,使得商家在纯文本信息的基础上需要进一步编辑并发送其它信息,步骤繁琐,效率较低。In some technologies, the on-hook short messages sent are only plain text messages, the information bearing capacity is low, and the user's willingness to receive plain text messages will be lower among the numerous spam messages, resulting in poor user experience. It is necessary to further edit and send other information on the basis of , the steps are cumbersome and the efficiency is low.
此外,现有的移动触达方式还有推送消息的方式。推送消息是指通过用户终端的系统应用或其他应用向用户推送内容,但是此种方式会受到主流厂商、操作系统及用户终端的访问控制的限制,使得推送服务的保活难度加大,推送到达的覆盖率不高。In addition, the existing mobile contact methods also include push messages. Push messages refer to pushing content to users through system applications or other applications of the user terminal, but this method will be restricted by the access control of mainstream manufacturers, operating systems and user terminals, which makes it more difficult to keep the push service alive, and the push arrives coverage is not high.
因此,为了解决上述问题,本申请基于WAP PUSH的协议,实现将富媒体文件在短信通道进行下发,并将短信下发和挂机信令进行结合,以实现用户可以接收到包含富媒体文件的短信。该过程无需对运营商基础网络进行改动,用户对包含富媒体文件的短信的接受度更高,可以丰富挂机短信的内容,无需商家在纯文本信息的基础上进一步编辑并发送其它信息,提高了效率,提高展销效果。此外,该方法能够将短信息发送至用户终端,可以解决推送消息的方式所带来的推送到达的覆盖率不高的问题。Therefore, in order to solve the above problems, based on the protocol of WAP PUSH, the present application realizes the delivery of rich media files in the short message channel, and combines the delivery of short messages with on-hook signaling, so that users can receive rich media files containing rich media files. Short message. This process does not require any changes to the operator's basic network. Users are more likely to accept text messages containing rich media files, and can enrich the content of on-hook text messages. There is no need for merchants to further edit and send other information on the basis of plain text information, which improves the efficiency of the process. Efficiency and improve the sales effect. In addition, the method can send the short message to the user terminal, which can solve the problem of low push arrival coverage caused by the way of pushing the message.
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
图2为本发明实施例提供的一种挂机短信传输方法的流程示意图,本实施例的方法可以由挂机短信服务器执行。如图2所示,本实施例的方法,可以包括:FIG. 2 is a schematic flowchart of a method for transmitting an on-hook short message according to an embodiment of the present invention. The method in this embodiment may be executed by an on-hook short message server. As shown in FIG. 2, the method of this embodiment may include:
S201、接收挂机信令,并判断所述挂机信令是否满足发送挂机短信的条件。S201. Receive on-hook signaling, and determine whether the on-hook signaling satisfies the condition for sending an on-hook short message.
在本实施例中,挂机短信服务器可以接收挂机信令。挂机信令是在通话双方在挂机后产生的信令,该信令可以从呼叫会话控制服务器来获取。具体的,当通话双方在挂机后呼叫会话控制服务器会产生挂机信令,并将生成的挂机信令传输给挂机短信服务器。In this embodiment, the on-hook short message server can receive the on-hook signaling. The on-hook signaling is the signaling generated after both parties hang up the call, and the signaling can be obtained from the call session control server. Specifically, when both parties on the call call the session control server after hanging up, an on-hook signaling will be generated, and the generated on-hook signaling will be transmitted to the on-hook short message server.
挂机短信服务器在接收到挂机信令后,可以判断挂机信令是否满足发送挂机短信的条件。其中,可以从挂机信令获取主叫号码、被叫号码和挂机时间等信息,根据上述信息可以判断是否满足发送挂机短信的条件。After receiving the on-hook signaling, the on-hook SMS server can determine whether the on-hook signaling satisfies the conditions for sending on-hook SMS. Among them, the calling number, the called number, the hanging time and other information can be obtained from the on-hook signaling, and according to the above information, it can be determined whether the conditions for sending the on-hook short message are satisfied.
例如,通过挂机信令得到的信息包括主叫号码A、被叫号码B和挂机时间C,根据主叫号码A、被叫号码B和挂机时间C可以确定是否满足发送挂机短信的条件。For example, the information obtained through on-hook signaling includes calling number A, called number B, and on-hook time C. Based on calling number A, called number B, and on-hook time C, it can be determined whether the conditions for sending on-hook short messages are met.
S202、若满足发送挂机短信的条件,则通过短信息服务网关向接收方发送挂机短信;所述挂机短信为包含链接的短信,所述链接中包含由发送方号码、接收方号码和发送时间生成的标识码。S202. If the conditions for sending an on-hook short message are met, send an on-hook short message to the receiver through the short message service gateway; the on-hook short message is a short message containing a link, and the link contains a message generated by the sender's number, the recipient's number and the sending time. 's identification code.
在本实施例中,当满足发送挂机短信的条件时,可以确定挂机短信的发送方和接收方,其中,发送方是指发送挂机短信的终端设备,接收方是指接收挂机短信的终端设备。发送方号码为设备对应的电话号码,发送方号码可以为企业固定电话号码,也可以为个人移动电话的号码。在确定发送方和接收方后,可以根据发送方和接收方获取待发送的短信内容,其中,发送方可以对短信内容进行设置,对于不同的接收方来设置不同的短信内容。例如,当接收方为未购买产品的用户对应的终端设备时,可以设置短信内容为促销信息;当接收方为已购买产品的用户对应的终端设备时,可以设置短信内容为关怀信息。其中,短信内容可以包括图片、视频、音频及文本等多种形式中的一种或多种。In this embodiment, when the conditions for sending the on-hook short message are met, the sender and receiver of the on-hook short message can be determined, wherein the sender refers to the terminal device that sends the on-hook short message, and the receiver refers to the terminal device that receives the on-hook short message. The sender number is the phone number corresponding to the device, and the sender number can be an enterprise fixed phone number or a personal mobile phone number. After the sender and the receiver are determined, the content of the short message to be sent can be obtained according to the sender and the receiver, wherein the sender can set the content of the short message, and set different contents of the short message for different receivers. For example, when the recipient is the terminal device corresponding to the user who has not purchased the product, the content of the short message can be set as promotion information; when the recipient is the terminal device corresponding to the user who has purchased the product, the content of the text message can be set as care information. Wherein, the content of the short message may include one or more of various forms such as pictures, videos, audios, and texts.
在确定待发送的短信内容后,可以针对短信内容选择合适的短信模板,以生成挂机短信。在生成挂机短信后,可以进一步将挂机短信进行处理,以得到包含链接的挂机短信,并通过短信网关将包含链接的挂机短信发送给接收方。其中,包含链接的挂机短信中的链接包含标识码,该标识码是根据发送方号码、接收方号码和发送时间得到的。其中,发送时间指的是生成包含链接的挂机短信的时间。After the content of the short message to be sent is determined, an appropriate short message template may be selected for the content of the short message to generate an on-hook short message. After the on-hook short message is generated, the on-hook short message can be further processed to obtain the on-hook short message containing the link, and the on-hook short message containing the link is sent to the receiver through the short message gateway. Wherein, the link in the on-hook short message containing the link contains an identification code, and the identification code is obtained according to the sender's number, the receiver's number and the sending time. The sending time refers to the time when the on-hook SMS containing the link is generated.
S203、获取接收方在所述链接被触发时发送的指令,并根据所述链接中的标识码获取对应的富媒体文件。S203: Acquire the instruction sent by the receiver when the link is triggered, and acquire the corresponding rich media file according to the identification code in the link.
当短信息服务网关在向接收方发送包含链接的短信后,接收方会接收到对应的包含链接的短信,接收方在打开短信后可以获取短信的基本信息,例如,短信模板的预览图片和短信的文本信息等,以便于吸引接收方去打开短信链接中的内容。此外,在打开短信时,还可以获知短信的形式,如图片、视频或音频等。When the SMS gateway sends a text message containing a link to the recipient, the recipient will receive the corresponding text message containing the link, and the recipient can obtain the basic information of the text message after opening the text message, such as the preview image of the text message template and the text message. text messages, etc., in order to attract recipients to open the content in the SMS link. In addition, when opening a text message, you can also learn the form of the text message, such as a picture, video or audio.
当接收方在获取短信后,若用户点击挂机短信中的链接,则表示短信中的链接被触发,接收方会向挂机短信服务器发送对应的指令,以使向挂机短信服务器请求富媒体文件。相应的,挂机短信服务器在接收到指令后,可以根据与指令对应的链接中的标识码来获取与挂机短信对应的富媒体文件。其中,标识码为发送方号码、接收方号码和发送时间,根据这三个信息可以确定生成挂机短信的富媒体文件。After the receiver obtains the SMS, if the user clicks the link in the on-hook SMS, it means that the link in the SMS is triggered, and the receiver will send the corresponding instruction to the on-hook SMS server to request the rich media file from the on-hook SMS server. Correspondingly, after receiving the instruction, the on-hook short message server can acquire the rich media file corresponding to the on-hook short message according to the identification code in the link corresponding to the instruction. The identification code is the sender's number, the receiver's number, and the sending time. According to these three pieces of information, it can be determined that a rich media file for generating the on-hook short message is generated.
通过在链接中设置发送方号码、接收方号码和发送时间可以便于挂机短信服务器确定要发送的富媒体文件,以便当接收方在发送请求富媒体文件的信息时,可以获取对应的富媒体文件。By setting the sender number, receiver number and sending time in the link, it is convenient for the on-hook SMS server to determine the rich media file to be sent, so that when the receiver sends the information requesting the rich media file, the corresponding rich media file can be obtained.
S204、将所述富媒体文件发送给接收方,以使接收方对接收的富媒体文件进行解析并展现。S204. Send the rich media file to the receiver, so that the receiver parses and presents the received rich media file.
挂机短信服务器在获取所述富媒体文件后,可以将获取的富媒体文件发送给接收方,接收方在获取富媒体文件后可以对接收的富媒体文件进行解析,其中,富媒体文件的格式为同步多媒体集成语言(Synchronized Multimedia Integration Language,SMIL)文件,需要对获取的文件进行解析,使得解析后的文件适合在接收方进行展现。After obtaining the rich media file, the on-hook SMS server can send the obtained rich media file to the receiver, and the receiver can parse the received rich media file after obtaining the rich media file, wherein the format of the rich media file is: Synchronized Multimedia Integration Language (SMIL) files need to parse the acquired files, so that the parsed files are suitable for presentation at the receiver.
其中,挂机短信服务器向接收方发送的富媒体文件的大小可以达到2M,而彩信网关发送的彩信文件的大小仅为几十KB,能够适应当前4G及5G的网络环境和客户需求。Among them, the size of the rich media file sent by the on-hook SMS server to the receiver can reach 2M, while the size of the MMS file sent by the MMS gateway is only tens of KB, which can adapt to the current 4G and 5G network environment and customer needs.
本申请基于WAP PUSH的协议,当挂机后,将包含链接的短信发送到支持WAP PUSH功能的手机上,当阅读短信后点击短信上的链接,就可以查看链接中的内容,查看的内容实际为WAP网页上的内容。通过二次短信下发的过程,可以实现先通过短信息服务网关将带链接的短信发送给接收方,再将富媒体文件下发给接收方,无需占用较多的短信息服务网关的内存,减小短信息服务网关的压力。This application is based on the WAP PUSH protocol. After hanging up, the text message containing the link will be sent to the mobile phone that supports the WAP PUSH function. After reading the text message, click the link on the text message to view the content in the link. The actual content is: Content on WAP pages. Through the process of secondary short message delivery, it is possible to first send the short message with the link to the recipient through the short message service gateway, and then deliver the rich media file to the recipient, without occupying a lot of memory of the short message service gateway. Reduce the pressure on SMS gateways.
上述实施例提供的方法,通过在挂机短信服务器中生成包含链接的挂机短信,将挂机短信通过短信息服务网关发送给接收方,当接收方在触发短信中的链接时,能够将对应的富媒体文件发送给接收方,可以使接收方接收到富媒体文件,可以解决发送纯文本的挂机短信所带来的信息承载量低,用户体验不佳的问题。上述过程无需对运营商基础网络进行改动,用户对包含富媒体文件的短信的接受度更高,无需商家在纯文本信息的基础上进一步编辑并发送其它信息,提高了效率。此外,该方法能够将短信息发送至用户终端,可以解决推送消息的方式所带来的推送到达的覆盖率不高的问题。In the method provided by the above embodiment, the on-hook short message containing the link is generated in the on-hook short message server, and the on-hook short message is sent to the receiver through the short message service gateway. When the receiver triggers the link in the short message, the corresponding rich media The file is sent to the receiver, so that the receiver can receive the rich media file, which can solve the problem of low information carrying capacity and poor user experience caused by sending plain text on-hook short messages. The above process does not need to modify the basic network of the operator, the user is more accepting of the short message containing the rich media file, and the merchant does not need to further edit and send other information on the basis of the plain text information, which improves the efficiency. In addition, the method can send the short message to the user terminal, which can solve the problem of low push arrival coverage caused by the way of pushing the message.
图3为本发明实施例提供的另一种挂机短信传输方法的流程示意图,图4为本发明实施例提供的发送挂机短信的信令传输示意图。结合图3及图4对对挂机短信的具体发送过程进行详细说明。FIG. 3 is a schematic flowchart of another method for transmitting an on-hook short message according to an embodiment of the present invention, and FIG. 4 is a schematic diagram of signaling transmission for sending an on-hook short message according to an embodiment of the present invention. The specific sending process of the on-hook short message will be described in detail with reference to FIG. 3 and FIG. 4 .
S301、接收挂机信令,并判断所述挂机信令是否满足发送挂机短信的条件。S301. Receive on-hook signaling, and determine whether the on-hook signaling satisfies the condition for sending an on-hook short message.
如图4所示,接收方可以通过主叫或被叫的方式与发送方进行通话,当结束通话后,即发送方与接收方挂机后,呼叫会话控制服务器可以生成挂机信令,并将挂机信令发送给挂机短信服务器。As shown in Figure 4, the receiver can talk to the sender by calling or called. After the call is ended, that is, after the sender and receiver hang up, the call session control server can generate an on-hook signaling and hang up the phone. The signaling is sent to the on-hook SMS server.
其中,步骤S301与上述实施例中的步骤S201类似,本实施例此处不做赘述。Wherein, step S301 is similar to step S201 in the foregoing embodiment, and details are not described herein in this embodiment.
S302、若满足发送挂机短信的条件,则根据所述发送方号码和接收方号码确定待发送的短信内容;所述待发送的短信内容包含富媒体文件;对所述待发送的短信内容进行预处理,得到包含链接的挂机短信;将所述包含链接的挂机短信通过短信息服务网关发送给接收方。S302. If the conditions for sending an on-hook short message are met, determine the content of the short message to be sent according to the sender number and the recipient number; the content of the short message to be sent includes a rich media file; and the content of the short message to be sent is pre-defined processing, to obtain the on-hook short message containing the link; and sending the on-hook short message containing the link to the receiver through the short message service gateway.
在本实施例中,挂机短信服务器可以判断挂机信令是否满足发送挂机短信的条件。具体的,当满足挂机条件时,可以获取待发送的短信内容,其中,待发送的短信内容可以通过发送方号码和接收方号码来确定,对于同一发送方号码可以针对不同的接收方号码来设置不同的短信内容。其中,短信内容可以包括图片、视频、音频及文本等。In this embodiment, the on-hook short message server can determine whether the on-hook signaling satisfies the conditions for sending on-hook short messages. Specifically, when the on-hook condition is met, the content of the short message to be sent can be obtained, wherein the content of the short message to be sent can be determined by the sender number and the recipient number, and the same sender number can be set for different recipient numbers Different SMS content. The content of the short message may include pictures, videos, audios, and texts.
在获取短信内容后,可以对短信内容进行预处理,将短信内容生成对应的链接,使得用户通过点击链接可以获取对应的富媒体文件。例如,可以通过链接生成器获取与富媒体文件对应的链接。After acquiring the short message content, the short message content can be preprocessed, and a corresponding link can be generated from the short message content, so that the user can obtain the corresponding rich media file by clicking the link. For example, links corresponding to rich media files can be obtained through a link generator.
在获取包含链接的短信后,可以将包含链接的短信发送给接收方,具体的,可以将包含链接的短信发送给服务提供商(Service Provider,SP)也就是短信管理单元,短信管理单元在获取到包含链接的短信后,可以将短信发送至短信息服务网关,使得短信息服务网关可以将包含链接的短信发送给接收方。After acquiring the short message containing the link, the short message containing the link can be sent to the receiver. Specifically, the short message containing the link can be sent to the service provider (Service Provider, SP), that is, the short message management unit, and the short message management unit obtains After the short message containing the link is received, the short message can be sent to the short message service gateway, so that the short message service gateway can send the short message containing the link to the receiver.
通过将待发送信息进行预处理得到包含链接的挂机短信,并通过短信息服务网关将包含链接的挂机短信发送给接收方,使得短信息服务网关处理的信息量较小,不会对短信息服务网关造成较大的压力。The on-hook short message containing the link is obtained by preprocessing the information to be sent, and the on-hook short message containing the link is sent to the receiver through the short message service gateway, so that the amount of information processed by the short message service gateway is small and will not affect the short message service. Gateways cause greater stress.
S303、获取接收方在所述链接被触发时发送的指令,并根据所述链接中的标识码获取对应的富媒体文件。S303. Acquire the instruction sent by the receiver when the link is triggered, and acquire the corresponding rich media file according to the identification code in the link.
如图4所示,接收方在接收到包含链接的短信时,通过点击短信中的连接请求富媒体文件,挂机短信服务器可以通过链接中的标识码获取富媒体文件,并发送给接收方。As shown in Figure 4, when the receiver receives a short message containing a link, it requests a rich media file by clicking the connection in the short message. The on-hook short message server can obtain the rich media file through the identification code in the link and send it to the receiver.
其中,步骤S303与上述实施例中的步骤S203类似,本实施例此处不做赘述。Wherein, step S303 is similar to step S203 in the foregoing embodiment, and details are not described here in this embodiment.
S304、根据所述接收方号码确定挂机短信服务器至接收方的可用通道,获取所述可用通道的状态信息;根据待发送的富媒体文件和各个通道的状态信息确定发送通道;将所述待发送的富媒体文件通过所述发送通道发送给接收方,以使接收方对接收的富媒体文件进行解析并展现。S304. Determine the available channel from the on-hook SMS server to the recipient according to the recipient number, and obtain the status information of the available channel; determine the sending channel according to the rich media file to be sent and the status information of each channel; The rich media file is sent to the receiver through the sending channel, so that the receiver parses and presents the received rich media file.
在本实施例中,挂机短信服务器在接收到接收方的指令时,可以向接收方下发对应的富媒体文件。其中,在下发富媒体文件时,可以先确定发送通道。具体的,可以根据接收方确定可用通道,例如,可以根据接收方所属的运营商以及接收方的归属地来确定可用通道,当接收方的所属的运营商不同时,挂机短信服务器与接收方建立连接的通道就会不同;当接收方的归属地为不同省市时,与挂机短信服务器建立的通道也不相同。因此,通过接收方号码可以确定所属的运营商及归属地,进而确定可用通道。In this embodiment, when receiving the instruction of the receiver, the on-hook short message server may deliver the corresponding rich media file to the receiver. Wherein, when delivering a rich media file, a sending channel may be determined first. Specifically, the available channels can be determined according to the receiver. For example, the available channels can be determined according to the carrier to which the receiver belongs and the location of the receiver. When the carrier to which the receiver belongs is different, the on-hook SMS server establishes a connection with the receiver. The connected channel will be different; when the recipient's home is in a different province or city, the channel established with the on-hook SMS server is also different. Therefore, the operator and home location to which the receiver belongs can be determined through the recipient number, and then the available channels can be determined.
在确定可用通道后,可以获取各个可用通道的状态信息,例如可用通道的拥堵情况,再根据可用通道的状态信息确定发送通道。例如,当确定可用通道为通道1、通道2及通道3时,且通道1较为拥堵,则可以确定发送通道为通道2或通道3,即采用通道2或通道3进行富媒体文件的传输。After the available channels are determined, the status information of each available channel, such as the congestion situation of the available channels, can be obtained, and then the sending channel is determined according to the status information of the available channels. For example, when it is determined that the available channels are channel 1, channel 2, and channel 3, and channel 1 is relatively congested, it can be determined that the sending channel is channel 2 or channel 3, that is, channel 2 or channel 3 is used to transmit rich media files.
此外,当接收方在接收到富媒体文件时,可以向挂机短信服务器发送回执信息,挂机短信服务器可以根据是否接收到回执信息来确定发送通道。例如,当通过通道2向接收方发送富媒体文件后,未接收到返回的回执短信时,则可以重新确定发送通道为通道3,并自动重新发送富媒体文件。接收方在接收到富媒体文件时,可以对富媒体文件进行解析并展现。In addition, when the receiver receives the rich media file, it can send receipt information to the on-hook short message server, and the on-hook short message server can determine the sending channel according to whether the receipt information is received. For example, when a rich media file is sent to the receiver through channel 2, and the return receipt short message is not received, the sending channel can be re-determined as channel 3, and the rich media file is automatically resent. When receiving the rich media file, the receiver can parse and present the rich media file.
上述方法可以实现在向接收方发送富媒体文件时,可以自动选择最优通道,以便接收方可以及时、准确地获取富媒体文件。The above method can realize that when sending a rich media file to the receiver, the optimal channel can be automatically selected, so that the receiver can obtain the rich media file in time and accurately.
可选的,所述方法还包括:Optionally, the method further includes:
接收所述接收方发送的第一回执信息,并在接收到所述第一回执信息后对所述发送方的账户进行首次扣费;所述第一回执信息表示接收方接收到包含链接的挂机短信;以及,接收所述接收方发送的第二回执信息,并在接收到所述第二回执信息后对所述发送方的账户进行再次扣费;所述第二回执信息表示接收方接收到富媒体文件。Receive the first receipt information sent by the receiver, and debit the account of the sender for the first time after receiving the first receipt information; the first receipt information indicates that the receiver receives an on-hook message containing a link and, receiving the second receipt information sent by the receiver, and debiting the account of the sender again after receiving the second receipt information; the second receipt information indicates that the receiver has received Rich media files.
在本实施例中,当接收方在接收到包含链接的挂机短信时,还可以向短信息服务网关发送第一回执信息,短信息服务网关还可以将接收到的第一回执信息发送给挂机短信服务器,当挂机短信服务器在接收到第一回执信息后,可以对发送方的对应的账户进行扣费操作,扣费则是对用户的预存金额进行扣除。In this embodiment, when the receiver receives the on-hook short message containing the link, it can also send the first receipt information to the short message service gateway, and the short message service gateway can also send the received first receipt information to the on-hook short message The server, when the on-hook SMS server receives the first receipt information, can perform a deduction operation on the corresponding account of the sender, and the deduction is to deduct the pre-stored amount of the user.
相应的,当接收方在接收到富媒体文件时,可以向挂机短信服务器发送第二回执信息,表示接收到富媒体文件,挂机短信服务器在接收到第二回执信息后,可以对发送方对应的账户进行第二次扣费。对发送方对应的账户进行扣费的过程采用的是事务操作与加分布式锁的方式来保证数据的一致性。Correspondingly, when the receiver receives the rich media file, it can send the second receipt information to the on-hook SMS server, indicating that the rich media file is received. The account is debited a second time. The process of debiting the account corresponding to the sender uses transaction operations and distributed locks to ensure data consistency.
通过根据接收方是否接收到包含链接的挂机短信以及是否接收到富媒体文件,能够对发送方对应的账户进行合理扣费,使得当仅接收到包含链接的挂机短信,而未接收到与链接对应的富媒体文件时,可以仅收取部分费用,使得对于费用的收取更加合理。According to whether the receiver receives the on-hook text message containing the link and whether it receives the rich media file, the account corresponding to the sender can be reasonably deducted, so that when only the on-hook text message containing the link is received, the corresponding link is not received. When the rich media files are generated, only part of the fee can be charged, which makes the charging of the fee more reasonable.
可选的,所述通过短信息服务网关向接收方发送挂机短信之前,还包括:Optionally, before the on-hook short message is sent to the receiver through the short message service gateway, the method further includes:
接收发送方上传的用于制作富媒体文件的信息;对所述信息进行排版处理和压缩处理,得到压缩处理后的富媒体文件,以使接收方在获取富媒体文件时,能够解析所述富媒体文件。Receive the information uploaded by the sender for making a rich media file; perform typesetting and compression processing on the information to obtain a compressed rich media file, so that the receiver can parse the rich media file when acquiring the rich media file. media files.
其中,在本实施例中,还包括接收发送方上传的用于制作富媒体文件的信息,即发送方可以将需要发送的挂机短信信息进行上传,发送方可以根据不同的接收方设置不同的挂机短信。接收方可以发送图片、视频、音频及文本等。发送方还可以对需要发送的挂机短信信息进行预览。Among them, in this embodiment, it also includes receiving the information uploaded by the sender for making a rich media file, that is, the sender can upload the on-hook short message information that needs to be sent, and the sender can set different on-hook according to different receivers. Short message. The recipient can send pictures, video, audio, and text. The sender can also preview the on-hook SMS information to be sent.
挂机短信服务器在接收到发送方上传的信息后,可以对上传的信息进行处理,如对信息进行排版和压缩。其中排版是指根据对接收的信息进行调整,使得接收方在接收到富媒体文件时,用户的可读性更好。在对信息进行排版后,还可以对排版后的信息进行压缩,使得压缩后的信息占用的内存更小,便于向接收方发送。挂机短信服务器中存储的排版及压缩后的信息可以供全国的内容分发网络来下载。After receiving the information uploaded by the sender, the on-hook SMS server can process the uploaded information, such as typesetting and compressing the information. The typesetting refers to adjusting according to the received information, so that when the receiver receives the rich media file, the user's readability is better. After the information is typeset, the typeset information can also be compressed, so that the compressed information occupies less memory and is convenient for sending to the receiver. The typesetting and compressed information stored in the on-hook SMS server can be downloaded by the national content distribution network.
通过向用户提供富媒体文件的编辑平台,可以使得发送方对待发送的短信内容进行编辑。By providing the user with an editing platform for rich media files, the sender can edit the content of the short message to be sent.
图5为本发明实施例提供的判断挂机信令是否满足发送挂机短信条件的流程示意图,用于对挂机短信的发送条件进行详细说明。如图5所示,根据所述挂机信令判断是否满足发送挂机短信的条件,可以包括:FIG. 5 is a schematic flowchart of judging whether the on-hook signaling satisfies the condition for sending an on-hook short message according to an embodiment of the present invention, and is used to describe in detail the sending condition of the on-hook short message. As shown in FIG. 5 , judging whether the condition for sending an on-hook short message is met according to the on-hook signaling may include:
S501、对所述挂机信令进行预处理,获取用户号码;所述用户号码包括主叫号码和被叫号码。S501. Preprocess the on-hook signaling to obtain a subscriber number; the subscriber number includes a calling number and a called number.
S502、根据用户号码判断主叫号码或被叫号码是否开启挂机短信业务。S502. Determine whether the calling number or the called number enables the on-hook short message service according to the user number.
S503、若所述主叫号码或被叫号码开启挂机短信业务,则判断发送次数和/或发送时间是否满足预设条件,若满足,则判断所述挂机信令满足发送挂机短信的条件。S503. If the calling number or the called number enables the on-hook short message service, determine whether the number of times of sending and/or the sending time meet preset conditions, and if so, determine that the on-hook signaling satisfies the conditions for sending on-hook short messages.
在本实施例中,在向接收方发送挂机短信时,需要先判断挂机信令是否满足发送挂机短信的条件。具体的,根据挂机信令可以确定主叫号码和被叫号码,在获取主叫号码和被叫号码后,可以判断主叫号码是否开启挂机短信业务,若主叫号码开启挂机短信业务,则判断被叫号码是否为移动终端对应的号码,若被叫号码是移动终端对应的号码,则可以继续判断发送次数和/或发送时间是否满足预设条件。In this embodiment, when sending an on-hook short message to the receiver, it is necessary to first determine whether the on-hook signaling satisfies the conditions for sending the on-hook short message. Specifically, the calling number and the called number can be determined according to the on-hook signaling. After obtaining the calling number and the called number, it can be determined whether the calling number has enabled the on-hook SMS service. If the calling number has enabled the on-hook SMS service, it can be determined Whether the called number is the number corresponding to the mobile terminal, and if the called number is the number corresponding to the mobile terminal, it can continue to determine whether the number of times of sending and/or the sending time meet the preset conditions.
在判断主叫号码是否开启挂机短信业务后,还可以判断被叫号码是否开启挂机短信业务。当主叫号码与被叫号码均开启挂机短信业务,且另一方为移动终端对应的号码,且发送次数和/或发送时间满足预设条件时,则可以分别将主叫号码与被叫号码设置的挂机短信发送给另一方。After judging whether the calling number has enabled the on-hook short message service, it can also be determined whether the called number has enabled the on-hook short message service. When both the calling number and the called number have the on-hook short message service enabled, and the other party is the number corresponding to the mobile terminal, and the number of times and/or the sending time meets the preset conditions, the calling number and the called number can be set respectively. The on-hook text message sent to the other party.
通过判断主叫号码或被叫号码是否开启挂机短信业务,以及对另一方是否为移动终端对应的号码进行判断,可以保证发送方和接收方满足发送挂机短信的条件。By judging whether the calling number or the called number enables the on-hook short message service, and judging whether the other party is the number corresponding to the mobile terminal, it can be ensured that the sender and the receiver meet the conditions for sending on-hook short messages.
可选的,所述判断发送次数和/或发送时间是否满足预设条件,包括:Optionally, the judging whether the number of times of sending and/or the sending time meets a preset condition, including:
根据所述主叫号码和被叫号码确定发送次数,若所述发送次数小于预设发送次数阈值,则满足预设条件;和/或,获取当前时间,若当前时间为预设发送时间,则满足预设条件。Determine the sending times according to the calling number and the called number, and if the sending times is less than the preset sending times threshold, the preset condition is satisfied; and/or, obtain the current time, if the current time is the preset sending time, then meet the preset conditions.
在确定主叫号码或被叫号码开启挂机短信业务后,可以继续判断发送次数和/或发送时间是否满足预设条件。具体的,发送次数可以是主叫号码与被叫号码之间的挂机短信发送次数,当主叫号码与被叫号码之间的挂机短信发送次数小于预设阈值时,则满足预设条件。此外,还可以获取当前时间,判断当前时间是否为预设发送时间。例如,当前时间为挂机时间,预设发送时间为挂机五分钟后的时刻,则当前时间不满足预设条件。After it is determined that the calling number or the called number has enabled the on-hook short message service, it can continue to determine whether the number of times of sending and/or the sending time meet the preset conditions. Specifically, the number of times of sending may be the number of on-hook short messages sent between the calling number and the called number. When the number of on-hook short messages sent between the calling number and the called number is less than a preset threshold, the preset condition is satisfied. In addition, the current time can also be obtained to determine whether the current time is the preset sending time. For example, if the current time is the on-hook time, and the preset sending time is five minutes after the on-hook, the current time does not meet the preset condition.
通过上述方法可以对发送次数和发送时间进行个性化设置。Through the above method, the sending times and sending time can be personalized.
图6为本发明实施例提供的又一种挂机短信传输方法的流程示意图,本实施例的方法可以由终端设备执行。如图6所示,本实施例的方法,可以包括:FIG. 6 is a schematic flowchart of another method for transmitting an on-hook short message according to an embodiment of the present invention. The method in this embodiment may be executed by a terminal device. As shown in FIG. 6, the method of this embodiment may include:
S601、接收短信息服务网关发送的挂机短信;所述挂机短信为包含链接的短信,所述链接中包含由发送方号码、接收方号码和发送时间生成的标识码。S601. Receive an on-hook short message sent by the short message service gateway; the on-hook short message is a short message including a link, and the link includes an identification code generated by the sender's number, the recipient's number and the sending time.
S602、当所述链接被触发时,向挂机短信服务器发送所述链接被触发的指令,以使所述挂机短信服务器根据所述链接中的标识码获取对应的富媒体文件。S602. When the link is triggered, send an instruction that the link is triggered to the on-hook short message server, so that the on-hook short message server acquires the corresponding rich media file according to the identification code in the link.
S603、接收所述挂机短信服务器发送的富媒体文件,并对富媒体文件进行解析并展现。S603. Receive the rich media file sent by the on-hook short message server, and parse and display the rich media file.
在本实施例中,对于终端设备这一侧,可以接收短信息服务网关发送的挂机短信,该挂机短信为包含链接的短信,当接收方的用户在接收到该包含链接的短信时,可以点击短信中的链接,挂机短信服务器将会收到链接被触发的指令,挂机短信服务器还可以根据该指令中的链接的标识码获取对应的富媒体文件,并发送给接收方,接收方可以接收富媒体文件,并对富媒体文件进行解析,并将解析后的富媒体文件进行展现。In this embodiment, the terminal device side can receive the on-hook short message sent by the short message service gateway, and the on-hook short message is a short message containing a link. When the receiver user receives the short message containing the link, he can click For the link in the SMS, the on-hook SMS server will receive an instruction that the link is triggered, and the on-hook SMS server can also obtain the corresponding rich media file according to the identification code of the link in the instruction, and send it to the receiver, and the receiver can receive the rich media file. media files, parse the rich media files, and display the parsed rich media files.
其中,本实施例中的终端设备为前述实施例所述的接收方。本实施例中的接收方接收挂机短信及接收富媒体文件的过程与前述实施例中的挂机短信服务器发送挂机短信及发送富媒体文件的过程相对应,此处不再赘述。Wherein, the terminal device in this embodiment is the receiver described in the foregoing embodiment. The process of receiving the on-hook short message and receiving the rich media file by the receiver in this embodiment corresponds to the process of sending the on-hook short message and sending the rich media file by the on-hook short message server in the foregoing embodiment, and will not be repeated here.
图7为本发明实施例提供的挂机短信传输装置的结构示意图,如图7所示,本实施例提供的挂机短信传输装置70,可以包括:信令接收模块701短信发送模块702、获取模块703和文件发送模块704。FIG. 7 is a schematic structural diagram of an on-hook short message transmission device provided by an embodiment of the present invention. As shown in FIG. 7 , the on-hook short message transmission device 70 provided in this embodiment may include: a
信令接收模块701,用于接收挂机信令,并判断所述挂机信令是否满足发送挂机短信的条件;A
短信发送模块702,用于若满足发送挂机短信的条件,则通过短信息服务网关向接收方发送挂机短信;所述挂机短信为包含链接的短信,所述链接中包含由发送方号码、接收方号码和发送时间生成的标识码;The short
获取模块703,用于获取接收方在所述链接被触发时发送的指令,并根据所述链接中的标识码获取对应的富媒体文件;The obtaining
文件发送模块704,用于将所述富媒体文件发送给接收方,以使接收方对接收的富媒体文件进行解析并展现。The
可选的,短信发送模块702,具体用于:Optionally, the short
根据所述发送方号码和接收方号码确定待发送的短信内容;所述待发送的短信内容包含富媒体文件;Determine the short message content to be sent according to the sender number and the recipient number; the short message content to be sent includes rich media files;
对所述待发送的短信内容进行预处理,得到包含链接的挂机短信;Preprocessing the content of the short message to be sent to obtain an on-hook short message containing a link;
将所述包含链接的挂机短信通过短信息服务网关发送给接收方。Send the on-hook short message containing the link to the receiver through the short message service gateway.
可选的,文件发送模块704,具体用于:Optionally, the
根据所述接收方号码确定挂机短信服务器至接收方的可用通道,获取所述可用通道的状态信息;Determine the available channel from the on-hook SMS server to the recipient according to the recipient number, and obtain the status information of the available channel;
根据待发送的富媒体文件和各个通道的状态信息确定发送通道;Determine the sending channel according to the rich media file to be sent and the status information of each channel;
将所述待发送的富媒体文件通过所述发送通道发送给接收方。Send the rich media file to be sent to the receiver through the sending channel.
可选的,信令接收模块701判断所述挂机信令是否满足发送挂机短信的条件时,具体用于:Optionally, when the
对所述挂机信令进行预处理,获取用户号码;所述用户号码包括主叫号码和被叫号码;Preprocessing the on-hook signaling to obtain a subscriber number; the subscriber number includes a calling number and a called number;
根据用户号码判断主叫号码或被叫号码是否开启挂机短信业务;Determine whether the calling number or the called number has enabled the on-hook SMS service according to the user number;
若所述主叫号码或被叫号码开启挂机短信业务,则判断发送次数和/或发送时间是否满足预设条件,若满足,则判断所述挂机信令满足发送挂机短信的条件。If the calling number or the called number enables the on-hook short message service, it is judged whether the sending times and/or the sending time meet the preset conditions, and if so, it is judged that the on-hook signaling satisfies the conditions for sending on-hook short messages.
可选的,信令接收模块701包括判断单元,所述判断单元具体用于:Optionally, the
根据所述主叫号码和被叫号码确定发送次数,若所述发送次数小于预设发送次数阈值,则满足预设条件;The number of times of sending is determined according to the calling number and the called number, and if the number of times of sending is less than the preset number of times of sending threshold, the preset condition is satisfied;
和/或,获取当前时间,若当前时间为预设发送时间,则满足预设条件。And/or, the current time is obtained, and if the current time is the preset sending time, the preset condition is satisfied.
可选的,挂机短信传输装置还包括回执信息接收模块,所述回执信息接收模块具体用于:Optionally, the on-hook short message transmission device further includes a receipt information receiving module, and the receipt information receiving module is specifically used for:
接收所述接收方发送的第一回执信息,并在接收到所述第一回执信息后对所述发送方的账户进行首次扣费;所述第一回执信息表示接收方接收到包含链接的挂机短信;Receive the first receipt information sent by the receiver, and debit the account of the sender for the first time after receiving the first receipt information; the first receipt information indicates that the receiver receives an on-hook message containing a link Short message;
以及,接收所述接收方发送的第二回执信息,并在接收到所述第二回执信息后对所述发送方的账户进行再次扣费;所述第二回执信息表示接收方接收到富媒体文件。and, receiving the second receipt information sent by the receiver, and debiting the account of the sender again after receiving the second receipt information; the second receipt information indicates that the receiver has received the rich media document.
可选的,挂机短信传输装置还包括编辑模块,所述编辑模块具体用于:Optionally, the on-hook short message transmission device further includes an editing module, and the editing module is specifically used for:
接收发送方上传的用于制作富媒体文件的信息;Receive the information uploaded by the sender for making rich media files;
对所述信息进行排版处理和压缩处理,得到压缩处理后的富媒体文件,以使接收方在获取富媒体文件时,能够解析所述富媒体文件。Typesetting and compression are performed on the information to obtain a compressed rich media file, so that the receiver can parse the rich media file when acquiring the rich media file.
本发明实施例提供的挂机短信传输装置,可以实现上述如图2、图3和图5所示的实施例的挂机短信传输方法,其实现原理和技术效果类似,此处不再赘述。The device for transmitting on-hook short messages provided by the embodiments of the present invention can implement the above-mentioned methods for transmitting on-hook short messages in the embodiments shown in FIG. 2 , FIG. 3 and FIG.
图8为本发明实施例提供的另一种挂机短信传输装置的结构示意图,如图8所示,本实施例提供的挂机短信传输装置80,可以包括:短信接收模块801、发送模块802和处理模块803。FIG. 8 is a schematic structural diagram of another on-hook short message transmission apparatus provided by an embodiment of the present invention. As shown in FIG. 8 , the on-hook short message transmission apparatus 80 provided in this embodiment may include: a short
短信接收模块801,用于接收短信息服务网关发送的挂机短信;所述挂机短信为包含链接的短信,所述链接中包含由发送方号码、接收方号码和发送时间生成的标识码。The short
发送模块802,用于当所述链接被触发时,向挂机短信服务器发送所述链接被触发的指令,以使所述挂机短信服务器根据所述链接中的标识码获取对应的富媒体文件。The sending
处理模块803,用于接收所述挂机短信服务器发送的富媒体文件,并对富媒体文件进行解析并展现。The
本发明实施例提供的挂机短信传输装置,可以实现上述如图6所示的实施例的挂机短信传输方法,其实现原理和技术效果类似,此处不再赘述。The on-hook short message transmission device provided by the embodiment of the present invention can realize the above-mentioned on-hook short message transmission method as shown in FIG.
图9为本发明实施例提供的挂机短信服务器的硬件结构示意图。如图9所示,本实施例提供的挂机短信服务器90包括:至少一个处理器901和存储器902。其中,处理器901、存储器902通过总线903连接。FIG. 9 is a schematic diagram of a hardware structure of an on-hook short message server provided by an embodiment of the present invention. As shown in FIG. 9 , the on-hook short message server 90 provided in this embodiment includes: at least one
在具体实现过程中,至少一个处理器901执行所述存储器902存储的计算机执行指令,使得至少一个处理器901执行上述方法实施例中的挂机短信处理方法。In a specific implementation process, at least one
处理器901的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。For the specific implementation process of the
图10为本发明实施例提供的终端设备的硬件结构示意图。如图10所示,本实施例提供的终端设备100包括:至少一个处理器1001和存储器1002。其中,处理器1001、存储器1002通过总线1003连接。FIG. 10 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention. As shown in FIG. 10 , the terminal device 100 provided in this embodiment includes: at least one
在具体实现过程中,至少一个处理器1001执行所述存储器1002存储的计算机执行指令,使得至少一个处理器1001执行上述方法实施例中的挂机短信处理方法。In a specific implementation process, at least one
处理器1001的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。For the specific implementation process of the
在上述的图9及图10所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application SpecificIntegrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above-mentioned embodiments shown in FIG. 9 and FIG. 10 , it should be understood that the processor may be a central processing unit (English: Central Processing Unit, CPU for short), or other general-purpose processors, digital signal processors ( English: Digital Signal Processor, referred to as: DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the invention can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器。The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(ExtendedIndustry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The bus can be divided into address bus, data bus, control bus and so on. For convenience of representation, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
本发明实施例还提供一种挂机短信传输系统,包括:呼叫会话控制服务器、短信息服务网关、上述实施例所述的挂机短信服务器以及终端设备。Embodiments of the present invention further provide an on-hook short message transmission system, including: a call session control server, a short message service gateway, the on-hook short message server described in the above embodiments, and a terminal device.
其中,呼叫会话控制服务器,用于在判断主叫号码与被叫号码挂机后,向挂机短信服务器发送挂机信令;短信息服务网关,用于在接收到所述挂机短信服务器发送的挂机短信后,将所述挂机短信发送给接收方。The call session control server is used to send an on-hook signaling to the on-hook SMS server after judging that the calling number and the called number are on-hook; the short message service gateway is used to receive the on-hook SMS sent by the on-hook SMS server after receiving the on-hook SMS. , and send the on-hook short message to the receiver.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现上述方法实施例的挂机短信传输方法。Embodiments of the present invention further provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the on-hook short message transmission method of the above method embodiment is implemented.
上述的计算机可读存储介质,上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned computer-readable storage medium, the above-mentioned readable storage medium can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific IntegratedCircuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。An exemplary readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium may be located in application specific integrated circuits (Application Specific Integrated Circuits, ASIC for short). Of course, the processor and the readable storage medium may also exist in the device as discrete components.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011499157.5ACN112637795B (en) | 2020-12-17 | 2020-12-17 | On-hook SMS transmission method, server, terminal equipment, system and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011499157.5ACN112637795B (en) | 2020-12-17 | 2020-12-17 | On-hook SMS transmission method, server, terminal equipment, system and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN112637795Atrue CN112637795A (en) | 2021-04-09 |
| CN112637795B CN112637795B (en) | 2023-09-19 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011499157.5AActiveCN112637795B (en) | 2020-12-17 | 2020-12-17 | On-hook SMS transmission method, server, terminal equipment, system and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN112637795B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115065946A (en)* | 2022-06-29 | 2022-09-16 | 北京飞天经纬科技股份有限公司 | Short message sending method, device, equipment and medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101917688A (en)* | 2010-08-16 | 2010-12-15 | 候万春 | Mobile phone, system and method supporting transmission of hang-up short message from called party to calling party |
| CN109862399A (en)* | 2018-12-14 | 2019-06-07 | 珠海市小源科技有限公司 | It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information |
| CN110059273A (en)* | 2019-03-14 | 2019-07-26 | 深圳市物联天下技术有限公司 | A kind of method showing Rich Media on mobile terminals and mobile terminal |
| CN110113247A (en)* | 2019-04-18 | 2019-08-09 | 深圳市梦网科技发展有限公司 | Rich media information receive-transmit system, transmission, methods of exhibiting and terminal device |
| CN111065062A (en)* | 2019-12-25 | 2020-04-24 | 中国联合网络通信集团有限公司 | Call signaling processing method, device and storage medium |
| US20200153969A1 (en)* | 2018-11-10 | 2020-05-14 | Nuance Communications, Inc. | Caller deflection and response system and method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101917688A (en)* | 2010-08-16 | 2010-12-15 | 候万春 | Mobile phone, system and method supporting transmission of hang-up short message from called party to calling party |
| US20200153969A1 (en)* | 2018-11-10 | 2020-05-14 | Nuance Communications, Inc. | Caller deflection and response system and method |
| CN109862399A (en)* | 2018-12-14 | 2019-06-07 | 珠海市小源科技有限公司 | It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information |
| CN110059273A (en)* | 2019-03-14 | 2019-07-26 | 深圳市物联天下技术有限公司 | A kind of method showing Rich Media on mobile terminals and mobile terminal |
| CN110113247A (en)* | 2019-04-18 | 2019-08-09 | 深圳市梦网科技发展有限公司 | Rich media information receive-transmit system, transmission, methods of exhibiting and terminal device |
| CN111065062A (en)* | 2019-12-25 | 2020-04-24 | 中国联合网络通信集团有限公司 | Call signaling processing method, device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115065946A (en)* | 2022-06-29 | 2022-09-16 | 北京飞天经纬科技股份有限公司 | Short message sending method, device, equipment and medium |
| Publication number | Publication date |
|---|---|
| CN112637795B (en) | 2023-09-19 |
| Publication | Publication Date | Title |
|---|---|---|
| US10999233B2 (en) | Scalable message fidelity | |
| US9892428B2 (en) | Electronic short messaging and advertising method and means | |
| US9548952B2 (en) | Method and radio communication device for the transmission efficient editing of multimedia messages | |
| WO2007033471A2 (en) | Apparatus and method for providing a context-sensitive multimedia message service response | |
| CN114979984B (en) | Message transmission method and device | |
| KR20050051665A (en) | Method for archiving multimedia messages | |
| KR20030031938A (en) | Dynamic image and text imformation display system and methed therefore | |
| CN102075875A (en) | Message signing method and device | |
| CN112637795B (en) | On-hook SMS transmission method, server, terminal equipment, system and storage medium | |
| CN101252704A (en) | Implementation method, system and related equipment of multimedia message service | |
| KR20050045779A (en) | System and method for multimedia contents transfering service via short message service | |
| CN113973306A (en) | Message processing method, device, terminal and storage medium | |
| CN105897569B (en) | A kind of method of reseptance and device of the network information | |
| CN108391240B (en) | Method and device for judging spam multimedia messages | |
| WO2018127008A1 (en) | Method and apparatus for acquiring voice message | |
| CN101656916B (en) | Method, apparatus and system for copying and distributing short message | |
| CN103179522B (en) | A kind of method for sending information, Apparatus and system | |
| KR100906767B1 (en) | Message conversion method and device | |
| KR101138874B1 (en) | Multmedia message service providing system using call network and method for providing multimedia message service using the same | |
| CN113657895A (en) | Electronic red packet processing method, device and system based on 5G message | |
| CN102905231B (en) | Realize message propagation operational approach and the system of content analysis | |
| WO2024074225A1 (en) | Method for operating a distribution server system | |
| CN117979299A (en) | 5G message processing method, 5G message complaint method, device and product | |
| KR20110089703A (en) | Apparatus and method for sending handwritten animated messages that can prevent spam messages | |
| CN102480695A (en) | Method and system for customizing multimedia message content service |
| 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 |