Movatterモバイル変換


[0]ホーム

URL:


CN103428376B - Junk call preventing method, device and system - Google Patents

Junk call preventing method, device and system
Download PDF

Info

Publication number
CN103428376B
CN103428376BCN201310325820.3ACN201310325820ACN103428376BCN 103428376 BCN103428376 BCN 103428376BCN 201310325820 ACN201310325820 ACN 201310325820ACN 103428376 BCN103428376 BCN 103428376B
Authority
CN
China
Prior art keywords
terminal
calling terminal
identifying code
called
center
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310325820.3A
Other languages
Chinese (zh)
Other versions
CN103428376A (en
Inventor
田新雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co LtdfiledCriticalChina United Network Communications Group Co Ltd
Priority to CN201310325820.3ApriorityCriticalpatent/CN103428376B/en
Publication of CN103428376ApublicationCriticalpatent/CN103428376A/en
Application grantedgrantedCritical
Publication of CN103428376BpublicationCriticalpatent/CN103428376B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明提供一种垃圾电话防范方法、终端及系统,该方法包括:主叫终端在垃圾电话防范中心进行注册,获取验证码;所述主叫终端通过互联网协议IP通道向被叫终端发起通信交互请求,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址;所述主叫终端与所述被叫终端交互,以使所述被叫终端根据所述验证码对所述主叫终端是否合法进行判断。本发明通过主叫终端的注册和被叫终端对主叫终端的合法性验证,判断是否接通主叫终端发起的通信交互,以防止IP网络大量垃圾电话的产生,保证通信的可靠性,增强客户体验。

The present invention provides a spam call prevention method, terminal and system. The method includes: the calling terminal registers at the spam call prevention center and obtains a verification code; the calling terminal initiates a communication interaction with the called terminal through the Internet Protocol IP channel request, the communication interaction request carries the name of the calling terminal and the IP address of the calling terminal; the calling terminal interacts with the called terminal so that the called terminal can pair the It is judged whether the calling terminal is legal. Through the registration of the calling terminal and the verification of the validity of the calling terminal by the called terminal, the present invention judges whether to connect to the communication interaction initiated by the calling terminal, so as to prevent the generation of a large number of spam calls in the IP network, ensure the reliability of communication, and enhance Customer Experience.

Description

Translated fromChinese
垃圾电话防范方法、设备及系统Spam call prevention method, device and system

技术领域technical field

本发明涉及移动通信技术,尤其涉及一种垃圾电话防范方法、设备及系统。The invention relates to mobile communication technology, in particular to a method, device and system for preventing spam calls.

背景技术Background technique

随着互联网和通信技术的发展,互联网协议电话(Voice over InternetPortocol,简称:VoIP)技术应运而生。该技术应用场景中,手机接入互联网后,任何一个手机只要知道另一个手机的互联网协议(Internet Portocol,简称:IP)地址,就可以直接发起通信交互。这样,当该手机伪造其他用户号码发起通信交互时,按照现有的方法,无法进行识别和阻断。With the development of Internet and communication technology, Voice over Internet Protocol (Voice over Internet Portocol, referred to as: VoIP) technology came into being. In the application scenario of this technology, after a mobile phone is connected to the Internet, any mobile phone can directly initiate communication interaction as long as it knows the Internet Protocol (Internet Portocol, IP) address of another mobile phone. In this way, when the mobile phone forges other user numbers to initiate communication interaction, it cannot be identified and blocked according to the existing method.

发明内容Contents of the invention

本发明提供一种用于垃圾电话防范方法、设备及系统,以防止IP网络大量垃圾电话的产生。The invention provides a method, device and system for preventing spam calls, so as to prevent the generation of a large number of spam calls in the IP network.

第一方面,本发明提供一种垃圾电话防范方法,包括:In a first aspect, the present invention provides a method for preventing spam calls, including:

主叫终端在垃圾电话防范中心进行注册,获取验证码;The calling terminal registers with the spam prevention center and obtains a verification code;

所述主叫终端通过互联网协议IP通道向被叫终端发起通信交互请求,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址;The calling terminal initiates a communication interaction request to the called terminal through the Internet Protocol IP channel, and the communication interaction request carries the name of the calling terminal and the IP address of the calling terminal;

所述主叫终端与所述被叫终端交互,以使所述被叫终端根据所述验证码对所述主叫终端是否合法进行判断。The calling terminal interacts with the called terminal, so that the called terminal judges whether the calling terminal is legal according to the verification code.

第二方面,本发明提供一种垃圾电话防范方法,包括:In a second aspect, the present invention provides a method for preventing spam calls, including:

被叫终端在互联网协议IP通道内接收主叫终端发起的通信交互请求,其中,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址;The called terminal receives a communication interaction request initiated by the calling terminal in the Internet Protocol IP channel, wherein the communication interaction request carries the name of the calling terminal and the IP address of the calling terminal;

所述被叫终端与所述主叫终端交互,根据所述主叫终端在垃圾电话防范中心注册获取的验证码对所述主叫终端是否合法进行判断。The called terminal interacts with the calling terminal, and judges whether the calling terminal is legal according to the verification code registered and obtained by the calling terminal at the spam prevention center.

第三方面,本发明提供一种垃圾电话防范方法,包括:In a third aspect, the present invention provides a method for preventing spam calls, including:

垃圾电话防范中心接收终端发送的注册请求,根据终端发送的所述注册请求生成验证码,并保存,且返回给所述终端;The spam call prevention center receives the registration request sent by the terminal, generates a verification code according to the registration request sent by the terminal, saves it, and returns it to the terminal;

在被叫终端基于互联网协议IP通道建立与主叫终端的通信前,所述垃圾电话防范中心接收被叫终端发送的所述主叫终端名称和被叫终端产生的随机数,并根据自身预存的第二预设算法以及与所述主叫终端所对应的验证码和随机数,生成第二运算结果;Before the called terminal establishes communication with the calling terminal based on the Internet Protocol IP channel, the spam prevention center receives the name of the calling terminal sent by the called terminal and the random number generated by the called terminal, and a second preset algorithm and a verification code and a random number corresponding to the calling terminal to generate a second operation result;

所述垃圾电话防范中心发送所述第二运算结果给所述被叫终端,以使所述被叫终端根据所述第二运算结果对所述主叫终端是否合法进行判断。The spam call prevention center sends the second calculation result to the called terminal, so that the called terminal can judge whether the calling terminal is legitimate according to the second calculation result.

第四方面,本发明提供一种主叫终端,包括:In a fourth aspect, the present invention provides a calling terminal, including:

第一注册模块,用于在垃圾电话防范中心进行注册,获取验证码;The first registration module is used to register at the spam call prevention center and obtain a verification code;

第一发送模块,用于通过互联网协议IP通道向被叫终端发起通信交互请求,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址;The first sending module is configured to initiate a communication interaction request to the called terminal through the Internet Protocol IP channel, and the communication interaction request carries the name of the calling terminal and the IP address of the calling terminal;

第一处理模块,用于与所述被叫终端交互,以使所述被叫终端根据所述验证码对所述主叫终端是否合法进行判断。The first processing module is configured to interact with the called terminal, so that the called terminal can judge whether the calling terminal is legal according to the verification code.

第五方面,本发明提供一种被叫终端,包括:In a fifth aspect, the present invention provides a called terminal, including:

第一接收模块,用于在互联网协议IP通道内接收主叫终端发起的通信交互请求,其中,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址;The first receiving module is configured to receive a communication interaction request initiated by the calling terminal in the Internet Protocol IP channel, wherein the communication interaction request carries the name of the calling terminal and the IP address of the calling terminal;

第二处理模块,用于与所述主叫终端交互,根据所述主叫终端在垃圾电话防范中心注册获取的验证码对所述主叫终端是否合法进行判断。The second processing module is configured to interact with the calling terminal, and judge whether the calling terminal is legal according to the verification code obtained by the calling terminal registered at the spam prevention center.

第六方面,本发明提供一种服务器,包括:In a sixth aspect, the present invention provides a server, including:

第二注册模块,用于接收终端发送的注册请求,根据终端发送的所述注册请求生成验证码,并保存,且返回给所述终端;The second registration module is used to receive the registration request sent by the terminal, generate a verification code according to the registration request sent by the terminal, save it, and return it to the terminal;

第三处理模块,用于在被叫终端基于互联网协议IP通道建立与主叫终端的通信前,接收被叫终端发送的所述主叫终端名称和被叫终端产生的随机数,并根据自身预存的第二预设算法以及与所述主叫终端所对应的验证码和随机数,生成第二运算结果;The third processing module is used to receive the name of the calling terminal sent by the called terminal and the random number generated by the called terminal before the called terminal establishes communication with the calling terminal based on the Internet Protocol IP channel, and perform the pre-stored The second preset algorithm and the verification code and random number corresponding to the calling terminal to generate a second operation result;

第二发送模块,用于发送所述第二运算结果给所述被叫终端,以使所述被叫终端根据所述第二运算结果对所述主叫终端是否合法进行判断。The second sending module is configured to send the second calculation result to the called terminal, so that the called terminal can judge whether the calling terminal is legal according to the second calculation result.

第七方面,本发明提供一种垃圾电话防范系统,包括:如第四方面提供的主叫终端、如第五方面提供的被叫终端和如第六方面提供的服务器。In a seventh aspect, the present invention provides a spam call prevention system, including: the calling terminal as provided in the fourth aspect, the called terminal as provided in the fifth aspect, and the server as provided in the sixth aspect.

本发明提供的垃圾电话方法、设备及系统通过主叫终端的注册和被叫终端对所述主叫终端是否合法的验证,确定是否接通所述主叫终端发起的通信交互请求,从而防止IP网络大量垃圾电话的产生,保证通信的可靠性,增强客户体验。The garbage call method, device and system provided by the present invention determine whether to connect to the communication interaction request initiated by the calling terminal through the registration of the calling terminal and the verification of whether the calling terminal is legal by the called terminal, thereby preventing IP The generation of a large number of spam calls on the network ensures the reliability of communication and enhances customer experience.

附图说明Description of drawings

图1为本发明垃圾电话防范方法实施例一的流程示意图;FIG. 1 is a schematic flow diagram of Embodiment 1 of the method for preventing spam calls of the present invention;

图2为本发明垃圾电话防范方法实施例二的流程示意图;2 is a schematic flow diagram of Embodiment 2 of the method for preventing spam calls of the present invention;

图3为本发明垃圾电话防范方法实施例三的流程示意图;FIG. 3 is a schematic flow diagram of Embodiment 3 of the method for preventing spam calls of the present invention;

图4和图5为本发明垃圾电话防范方法实施例四的流程示意图;FIG. 4 and FIG. 5 are schematic flow charts of Embodiment 4 of the spam call prevention method of the present invention;

图6和图7为本发明垃圾电话防范方法实施例四中的注册流程示意图;6 and 7 are schematic diagrams of the registration process in Embodiment 4 of the spam call prevention method of the present invention;

图8为本发明主叫终端实施例一的结构示意图;FIG. 8 is a schematic structural diagram of Embodiment 1 of the calling terminal of the present invention;

图9为本发明主叫终端实施例二的结构示意图;FIG. 9 is a schematic structural diagram of Embodiment 2 of the calling terminal of the present invention;

图10为本发明主叫终端实施例三的结构示意图;FIG. 10 is a schematic structural diagram of Embodiment 3 of the calling terminal of the present invention;

图11为本发明被叫终端实施例一的结构示意图;FIG. 11 is a schematic structural diagram of Embodiment 1 of the called terminal of the present invention;

图12为本发明服务器实施例一的结构示意图;FIG. 12 is a schematic structural diagram of Embodiment 1 of the server of the present invention;

图13为本发明服务器实施例二的结构示意图;FIG. 13 is a schematic structural diagram of Embodiment 2 of the server of the present invention;

图14为本发明垃圾电话防范系统实施例一的结构示意图。FIG. 14 is a schematic structural diagram of Embodiment 1 of the spam call prevention system of the present invention.

具体实施方式Detailed ways

实施例一Embodiment one

图1为本发明垃圾电话防范方法实施例一的流程示意图,本实施例提供一种垃圾电话防范方法,该方法可以由主叫终端执行,该主叫终端可以为智能手机等终端设备。如图1所示,本实施例的方法,包括:FIG. 1 is a schematic flowchart of Embodiment 1 of the method for preventing spam calls according to the present invention. This embodiment provides a method for preventing spam calls. The method can be executed by a calling terminal, which can be a terminal device such as a smart phone. As shown in Figure 1, the method of this embodiment includes:

步骤101、主叫终端在垃圾电话防范中心进行注册,获取验证码。Step 101, the calling terminal registers with the spam prevention center and obtains a verification code.

具体地,终端开启互联网协议(Internet Protocol,简称:IP)通信的功能软件后,首先在垃圾电话防范中心进行注册,以使每个终端在垃圾电话防范中心备注自身信息,获取区别于其它终端的验证码。该验证码与发起注册请求的终端对应存储在垃圾电话防范中心;同时,该验证码保存在该发起注册请求的终端中。其中,终端包括主叫终端和被叫终端,二者是相对的,发起通信交互请求的终端为主叫终端,接收通信交互请求的终端即为被叫终端。Specifically, after the terminal starts the function software of Internet Protocol (Internet Protocol, referred to as: IP) communication, it first registers with the spam prevention center, so that each terminal can note its own information in the spam prevention center, and obtain information different from other terminals. Captcha. The verification code is stored in the spam prevention center corresponding to the terminal that initiated the registration request; meanwhile, the verification code is stored in the terminal that initiated the registration request. Wherein, the terminal includes a calling terminal and a called terminal, the two are relative, the terminal that initiates the communication interaction request is the calling terminal, and the terminal that receives the communication interaction request is the called terminal.

主叫终端在垃圾电话防范中心进行注册,可以通过以下两种方式获取验证码:The calling terminal registers with the spam prevention center, and can obtain the verification code in the following two ways:

方式一、单通道获取验证码。Method 1: Obtain the verification code through one channel.

1、主叫终端向垃圾电话防范中心发送注册请求,所述注册请求中携带主叫终端名称,例如,callerdomain.com,和主叫终端IP地址;1. The calling terminal sends a registration request to the spam prevention center, and the registration request carries the name of the calling terminal, for example, callerdomain.com, and the IP address of the calling terminal;

2、主叫终端通过IP通道接收并存储垃圾电话防范中心根据主叫终端名称,例如,callerdomain.com,生成的验证码。2. The calling terminal receives and stores the verification code generated by the spam prevention center according to the name of the calling terminal, for example, callerdomain.com, through the IP channel.

方式二、双通道获取验证码。Method 2: Obtain the verification code through two channels.

1、主叫终端向垃圾电话防范中心发送注册请求,所述注册请求中携带所述主叫终端号码,例如,15612345678;主叫终端名称,例如,callerdomain.com;主叫终端IP地址;1. The calling terminal sends a registration request to the spam prevention center, and the registration request carries the calling terminal number, for example, 15612345678; the calling terminal name, for example, callerdomain.com; the calling terminal IP address;

2、主叫终端通过短信通道,即移动交换网,接收垃圾电话防范中心根据主叫终端号码,15612345678,生成的第一验证码;2. The calling terminal receives the first verification code generated by the spam prevention center according to the calling terminal number, 15612345678, through the SMS channel, that is, the mobile switching network;

3、主叫终端通过IP通道接收垃圾电话防范中心根据主叫终端名称,例如,callerdomain.com,生成的第二验证码;3. The calling terminal receives the second verification code generated by the spam prevention center according to the name of the calling terminal, for example, callerdomain.com, through the IP channel;

4、主叫终端采用第一预设算法,对第一验证码和第二验证码进行计算得到验证码,并保存。4. The calling terminal uses the first preset algorithm to calculate the first verification code and the second verification code to obtain the verification code, and saves it.

步骤102、所述主叫终端通过IP通道向被叫终端发起通信交互请求。Step 102, the calling terminal initiates a communication interaction request to the called terminal through the IP channel.

其中,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址。主叫终端,例如,手机,接入互联网以后,通过IP通道发起通信交互请求,该通信交互请求中携带主叫终端名称,例如,callerdomain.com和主叫终端IP地址,例如,10.1.2.3,且该通信交互请求不局限于语音通话。Wherein, the communication interaction request carries the name of the calling terminal and the IP address of the calling terminal. After the calling terminal, such as a mobile phone, is connected to the Internet, it initiates a communication interaction request through the IP channel. The communication interaction request carries the name of the calling terminal, such as callerdomain.com, and the IP address of the calling terminal, such as 10.1.2.3, And the communication interaction request is not limited to voice calls.

步骤103、所述主叫终端与所述被叫终端交互,以使所述被叫终端根据所述验证码对所述主叫终端是否合法进行判断。Step 103, the calling terminal interacts with the called terminal, so that the called terminal judges whether the calling terminal is legal according to the verification code.

具体地,主叫终端发起通信交互请求后,其对应端的被叫终端接收该通信交互请求,获取该通信交互请求中携带的主叫终端名称和主叫终端IP地址,并对该主叫终端是否合法进行判断。Specifically, after the calling terminal initiates a communication interaction request, the called terminal at the corresponding end receives the communication interaction request, obtains the name of the calling terminal and the IP address of the calling terminal carried in the communication interaction request, and checks whether the calling terminal judge legally.

以下列举一种可行的实施方式说明主叫终端与被叫终端交互,以使被叫终端根据验证码对主叫终端是否合法进行判断:A feasible implementation mode is listed below to illustrate the interaction between the calling terminal and the called terminal, so that the called terminal can judge whether the calling terminal is legal according to the verification code:

主叫终端,例如,callerdomain.com,通过IP通道接收被叫终端,例如,calleedomain.com,发送的随机数,该随机数是被叫终端在接收到主叫终端发起的通信交互请求后随机生成的,例如,该随机数可以为aaa;The calling terminal, for example, callerdomain.com, receives the random number sent by the called terminal, for example, calleedomain.com, through the IP channel. The random number is randomly generated by the called terminal after receiving the communication interaction request initiated by the calling terminal , for example, the random number can be aaa;

主叫终端根据自身预存的第二预设算法和验证码,以及随机数,例如,aaa,生成第一运算结果;The calling terminal generates the first operation result according to its pre-stored second preset algorithm, verification code, and random number, for example, aaa;

主叫终端发送该第一运算结果给被叫终端,以使被叫终端根据第一运算结果对主叫终端是否合法进行判断,若否,则阻断该次通信交互。The calling terminal sends the first calculation result to the called terminal, so that the called terminal judges whether the calling terminal is legal according to the first calculation result, and if not, blocks the communication interaction.

在被叫终端根据第一运算结果对主叫终端是否合法进行判断时,同时依据由垃圾电话防范中心根据自身预存的第二预设算法,主叫终端所对应的验证码,以及所述随机数生成的第二运算结果,比较该第一运算结果和第二运算结果是否一致,进而判断该主叫终端是否合法。When the called terminal judges whether the calling terminal is legal according to the first operation result, at the same time, according to the second preset algorithm pre-stored by the spam prevention center itself, the verification code corresponding to the calling terminal, and the random number The second operation result generated compares whether the first operation result is consistent with the second operation result, and then determines whether the calling terminal is legitimate.

本发明通过主叫终端的注册和被叫终端对所述主叫终端是否合法的验证,确定是否接通所述主叫终端发起的通信交互,从而防止IP网络大量垃圾电话的产生,保证通信的可靠性,增强客户体验。The present invention determines whether to connect to the communication interaction initiated by the calling terminal through the registration of the calling terminal and the verification of whether the calling terminal is legal by the called terminal, so as to prevent the generation of a large number of spam calls in the IP network and ensure the reliability of communication. Reliability and enhanced customer experience.

实施例二Embodiment two

图2为本发明垃圾电话防范方法实施例二的流程示意图,本实施例提供一种垃圾电话防范方法,该方法可以由被叫终端执行,该被叫终端可以为智能手机等终端设备。如图2所示,本实施例的方法,包括:FIG. 2 is a schematic flowchart of Embodiment 2 of the method for preventing spam calls according to the present invention. This embodiment provides a method for preventing spam calls. The method can be executed by a called terminal, which can be a terminal device such as a smart phone. As shown in Figure 2, the method of this embodiment includes:

步骤201、被叫终端在IP通道内接收主叫终端发起的通信交互请求。Step 201, the called terminal receives a communication interaction request initiated by the calling terminal in the IP channel.

其中,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址。本步骤是实施例一中步骤102对应侧的操作,在此不再赘述。Wherein, the communication interaction request carries the name of the calling terminal and the IP address of the calling terminal. This step is the operation on the side corresponding to step 102 in the first embodiment, and will not be repeated here.

步骤202、所述被叫终端与所述主叫终端交互,根据所述主叫终端在垃圾电话防范中心注册获取的验证码对所述主叫终端是否合法进行判断。Step 202, the called terminal interacts with the calling terminal, and judges whether the calling terminal is legal according to the verification code obtained by the calling terminal registered at the spam prevention center.

具体地,发起通信交互请求的主叫终端在垃圾电话防范中心注册获取验证码,即主叫终端和垃圾电话防范中心均保存有该主叫终端对应的验证码,根据该验证码由被叫终端对该主叫终端的合法性进行判断。Specifically, the calling terminal that initiates the communication interaction request registers with the spam call prevention center to obtain a verification code, that is, both the calling terminal and the spam call prevention center have the verification code corresponding to the calling terminal, and the called terminal receives the verification code based on the verification code. The legitimacy of the calling terminal is judged.

在上述基础上,以下列举一种可行的实施方式说明被叫终端与主叫终端交互,根据主叫终端在垃圾电话防范中心注册获取的验证码对主叫终端是否合法进行判断:On the basis of the above, a feasible implementation mode is listed below to illustrate the interaction between the called terminal and the calling terminal, and judge whether the calling terminal is legal according to the verification code obtained by the calling terminal registered with the spam prevention center:

被叫终端,例如,calleedomain.com,生成随机数,例如,aaa,与步骤101中保持一致;The called terminal, for example, calleedomain.com, generates a random number, for example, aaa, which is consistent with step 101;

被叫终端将随机数,例如,aaa,通过IP通道发送给主叫终端,例如,callerdomain.com;The called terminal sends the random number, for example, aaa, to the calling terminal through the IP channel, for example, callerdomain.com;

被叫终端将随机数,例如,aaa,和主叫终端名称,例如,callerdomain.com,发送给垃圾电话防范中心;The called terminal sends a random number, such as aaa, and the name of the calling terminal, such as callerdomain.com, to the spam prevention center;

被叫终端从主叫终端接收第一运算结果,该第一运算结果为主叫终端根据自身预存的第二预设算法和自身的验证码,以及随机数,例如,aaa,生成的,具体生成过程在实施例一中已有详细介绍,此处不再赘述;The called terminal receives the first calculation result from the calling terminal, and the first calculation result is generated by the calling terminal according to its own pre-stored second preset algorithm, its own verification code, and a random number, for example, aaa, specifically generated The process has been introduced in detail in Embodiment 1, and will not be repeated here;

被叫终端从垃圾电话防范中心接收第二运算结果,该第二运算结果为垃圾电话防范中心根据自身预存的第二预设算法,主叫终端所对应的验证码,以及随机数,例如,aaa,生成的,具体生成过程详见实施例三,此处不再赘述;The called terminal receives the second calculation result from the spam prevention center. The second calculation result is the second preset algorithm stored by the spam prevention center itself, the verification code corresponding to the calling terminal, and a random number, for example, aaa , generated, the specific generation process is detailed in Embodiment 3, and will not be repeated here;

被叫终端判断第一运算结果和第二运算结果是否一致,若一致,则主叫终端合法;若否,则主叫终端不合法。The called terminal judges whether the first calculation result is consistent with the second calculation result, and if they are consistent, the calling terminal is legal; if not, the calling terminal is illegal.

本实施例中,被叫终端对发起通信交互请求,且在垃圾电话防范中心注册获取验证码的主叫终端的合法性进行判断,通过该判断结果确定是否接通该主叫终端发起的通信交互,从而防止IP网络大量垃圾电话的产生,保证通信的可靠性,增强客户体验。In this embodiment, the called terminal judges the legitimacy of the calling terminal that initiates a communication interaction request and registers with the spam prevention center to obtain a verification code, and determines whether to connect to the communication interaction initiated by the calling terminal based on the judgment result. , so as to prevent a large number of spam calls on the IP network, ensure the reliability of communication, and enhance customer experience.

实施例三Embodiment Three

图3为本发明垃圾电话防范方法实施例三的流程示意图,本实施例提供一种垃圾电话防范方法,该方法可以由垃圾电话防范中心执行,该垃圾电话防范中心可以具体为服务器。如图3所示,本实施例的方法,包括:Fig. 3 is a schematic flowchart of Embodiment 3 of the spam call prevention method of the present invention. This embodiment provides a spam call prevention method, which can be executed by a spam call prevention center, which can be specifically a server. As shown in Figure 3, the method of this embodiment includes:

步骤301、垃圾电话防范中心接收终端发送的注册请求,根据终端发送的所述注册请求生成验证码,并保存,且返回给所述终端。Step 301, the spam call prevention center receives the registration request sent by the terminal, generates a verification code according to the registration request sent by the terminal, saves it, and returns it to the terminal.

在该步骤中,终端包括主叫终端和被叫终端,发起通信交互请求的终端作为主叫终端,主叫终端和被叫终端对应存在。该步骤与实施例一中的主叫终端在垃圾电话防范中心进行注册,获取验证码操作对应设置,垃圾电话防范中心接收主叫终端发送的注册请求,根据该注册请求中携带的主叫终端信息生成主叫终端对应的区别于其它终端的验证码,并将该验证码与获取该验证码的主叫终端对应保存在垃圾电话防范中心中;垃圾电话防范中心还将该验证码返回给主叫终端,由该主叫终端保存。In this step, the terminals include a calling terminal and a called terminal, and the terminal that initiates the communication interaction request serves as the calling terminal, and the calling terminal and the called terminal exist correspondingly. This step is the same as that of the calling terminal in Embodiment 1 registering at the spam prevention center and obtaining the verification code corresponding to the setting. The spam prevention center receives the registration request sent by the calling terminal, and according to the calling terminal information carried in the registration request Generate a verification code corresponding to the calling terminal that is different from other terminals, and store the verification code in the spam prevention center corresponding to the calling terminal that obtained the verification code; the spam prevention center also returns the verification code to the caller Terminal, saved by the calling terminal.

具体地,垃圾电话防范中心可以根据如下两种方式生成验证码:Specifically, the spam prevention center can generate verification codes in the following two ways:

方式一、单通道生成验证码。Method 1: Single-channel generation of verification codes.

1、垃圾电话防范中心获取注册请求中的终端名称,例如,callerdomain.com,和终端IP地址;1. The spam prevention center obtains the terminal name in the registration request, for example, callerdomain.com, and the terminal IP address;

2、垃圾电话防范中心根据终端名称,例如,callerdomain.com,生成验证码;2. The spam call prevention center generates a verification code according to the terminal name, for example, callerdomain.com;

3、垃圾电话防范中心对应保存验证码及终端名称和终端IP地址,并通过IP通道将该验证码发送给终端。3. The spam call prevention center correspondingly saves the verification code, the terminal name and the terminal IP address, and sends the verification code to the terminal through the IP channel.

方式二、双通道生成验证码。Method 2: Generate verification codes through two channels.

1、垃圾电话防范中心获取注册请求中的终端名称,例如,callerdomain.com;终端号码,例如,15612345678;终端IP地址;1. The spam prevention center obtains the terminal name in the registration request, for example, callerdomain.com; the terminal number, for example, 15612345678; the terminal IP address;

2、垃圾电话防范中心根据终端号码,15612345678,生成并保存第一验证码,通过短信通道发送给终端;2. The spam call prevention center generates and saves the first verification code according to the terminal number, 15612345678, and sends it to the terminal through the SMS channel;

3、垃圾电话防范中心根据终端名称,例如,callerdomain.com,生成并保存第二验证码,通过IP通道发送给终端;3. The spam call prevention center generates and saves the second verification code according to the terminal name, for example, callerdomain.com, and sends it to the terminal through the IP channel;

4、垃圾电话防范中心根据自身预存的第一预设算法、第一验证码和第二验证码生成验证码,并保存。该第一预设算法与实施例一中第一预设算法是相同的,且这里的保存是指将第一验证码、第二验证码和验证码与终端对应保存在垃圾电话防范中心中。4. The spam call prevention center generates a verification code according to its pre-stored first preset algorithm, first verification code and second verification code, and saves it. The first preset algorithm is the same as the first preset algorithm in Embodiment 1, and saving here refers to saving the first verification code, the second verification code and the verification codes corresponding to the terminals in the spam prevention center.

步骤302、在被叫终端基于IP通道建立与主叫终端的通信前,所述垃圾电话防范中心接收被叫终端发送的所述主叫终端名称和被叫终端产生的随机数,并根据自身预存的第二预设算法以及与所述主叫终端所对应的验证码和随机数,生成第二运算结果。Step 302, before the called terminal establishes communication with the calling terminal based on the IP channel, the spam prevention center receives the name of the calling terminal sent by the called terminal and the random number generated by the called terminal, The second preset algorithm and the verification code and random number corresponding to the calling terminal to generate a second operation result.

具体地,被叫终端,例如,calleedomain.com,在接收到主叫终端发送的通信交互请求后,获取该通信交互请求中携带的主叫终端名称,例如,callerdomain.com,和主叫终端IP地址,例如,10.1.2.3,同时,生成一随机数,例如,aaa,并将主叫终端名称和随机数发送给垃圾中心防范中心。垃圾电话防范中心接收该主叫终端名称和随机数,并根据自身预存的第二预设算法以及该主叫终端名称对应的验证码和随机数,生成第二运算结果。其中,垃圾电话防范中心预存的第二预设算法和主叫终端中预存的第二预设算法是相同的。Specifically, the called terminal, for example, calleedomain.com, after receiving the communication interaction request sent by the calling terminal, obtains the name of the calling terminal carried in the communication interaction request, for example, callerdomain.com, and the IP address of the calling terminal. Address, for example, 10.1.2.3, at the same time, generate a random number, for example, aaa, and send the name of the calling terminal and the random number to the garbage center prevention center. The spam prevention center receives the name of the calling terminal and the random number, and generates a second operation result according to the second preset algorithm stored in itself and the verification code corresponding to the name of the calling terminal and the random number. Wherein, the second preset algorithm prestored in the spam prevention center is the same as the second preset algorithm prestored in the calling terminal.

步骤303、所述垃圾电话防范中心发送所述第二运算结果给所述被叫终端,以使所述被叫终端根据所述第二运算结果对所述主叫终端是否合法进行判断。Step 303, the spam call prevention center sends the second calculation result to the called terminal, so that the called terminal can judge whether the calling terminal is legal according to the second calculation result.

具体地,所述垃圾电话防范中心发送所述第二运算结果给所述被叫终端,相应地,所述被叫终端接收该第二运算结果,并根据该第二运算结果以及发起该次通信交互请求的主叫终端发送的第一运算结果判断该主叫终端是否合法,进而决定是否接通该次通信交互。Specifically, the spam call prevention center sends the second calculation result to the called terminal, and accordingly, the called terminal receives the second calculation result, and initiates the communication according to the second calculation result and The first calculation result sent by the calling terminal of the interaction request judges whether the calling terminal is legitimate, and then decides whether to connect to the communication interaction.

本实施例中,垃圾电话防范中心接受各终端的注册请求,使得其自身与各终端具有相同的验证码;根据该验证码生成第二运算结果并反馈给被叫终端,由被叫终端根据该第二运算结果判断发起该次通信交互请求的主叫终端是否合法,从而防止IP网络大量垃圾电话的产生,保证通信的可靠性,增强客户体验。In this embodiment, the spam prevention center accepts the registration request of each terminal, so that itself has the same verification code as each terminal; generates the second calculation result according to the verification code and feeds it back to the called terminal, and the called terminal according to the verification code The second calculation result judges whether the calling terminal that initiates the communication interaction request is legal, thereby preventing the generation of a large number of spam calls on the IP network, ensuring the reliability of communication, and enhancing customer experience.

需要说明的是,在本发明所有实施例中,对主叫终端合法性的验证过程的执行主体为被叫终端,存在以下安全隐患:It should be noted that, in all embodiments of the present invention, the execution subject of the verification process of the validity of the calling terminal is the called terminal, and there are the following potential safety hazards:

1、黑客伪装成被叫终端,不停的发送报文给垃圾电话防范中心,造成防范中心海量运算;1. The hacker pretends to be the called terminal and continuously sends messages to the spam prevention center, resulting in massive calculations by the prevention center;

2、黑客伪装成被叫终端,企图通过多次通信中垃圾电话防范中心反馈的某终端对应的运算结果的海量数据来计算出该终端的验证码。2. The hacker pretends to be the called terminal, and tries to calculate the verification code of the terminal through the massive data of calculation results corresponding to a certain terminal fed back by the spam call prevention center in multiple communications.

因此,在上述步骤的基础上,所述垃圾电话防范中心发送所述第二运算结果给所述被叫终端之前,还可以包括:所述垃圾电话防范中心根据所述被叫终端发送报文的行为判断被叫终端是否合法。Therefore, on the basis of the above steps, before the spam call prevention center sends the second calculation result to the called terminal, it may further include: the spam call prevention center sends a message according to the called terminal The behavior judges whether the called terminal is legal.

具体地,通过以下操作判断被叫终端是否合法:Specifically, judge whether the called terminal is legal through the following operations:

垃圾电话防范中心判断被叫终端在设定时间内发送的报文数是否达到设定数量;若报文数达到设定数量时,则判断各报文的主叫终端是否相同;若主叫终端相同时,向主叫终端发送确认请求以验证被叫终端发送的报文是否异常;根据主叫终端返回的报文是否异常的确认结果,确定被叫终端是否合法。其中,对被叫终端合法性验证过程详见实施例四中步骤501。通过对被叫终端合法性验证可避免黑客伪造成被叫终端,攻击垃圾电话防范中心,或蓄意获取其它终端的验证码,实现通信质量的保证。The spam call prevention center judges whether the number of messages sent by the called terminal within the set time reaches the set number; if the number of messages reaches the set number, it judges whether the calling terminal of each message is the same; if the calling terminal At the same time, send a confirmation request to the calling terminal to verify whether the message sent by the called terminal is abnormal; determine whether the called terminal is legal according to the confirmation result of whether the message returned by the calling terminal is abnormal. Wherein, for the legitimacy verification process of the called terminal, refer to step 501 in the fourth embodiment. By verifying the legitimacy of the called terminal, hackers can prevent hackers from forging the called terminal, attacking the spam prevention center, or deliberately obtaining verification codes of other terminals, so as to ensure the communication quality.

实施例四Embodiment four

本实施例为主叫终端、被叫终端和垃圾电话防范中心之间交互的实施例。本实施例的应用场景为主叫终端和被叫终端在垃圾电话防范中心完成注册,获取各自的验证码。This embodiment is an embodiment of interaction between the calling terminal, the called terminal and the spam prevention center. The application scenario of this embodiment is that the calling terminal and the called terminal complete registration at the spam prevention center and obtain respective verification codes.

图4为本发明垃圾电话防范方法实施例四的流程示意图,如图4所示,该方法可以包括:Fig. 4 is a schematic flow chart of Embodiment 4 of the method for preventing spam calls according to the present invention. As shown in Fig. 4, the method may include:

步骤401、发送通信交互请求。Step 401, sending a communication interaction request.

主叫终端通过IP通道向被叫终端发送通信交互请求,该通信交互请求中携带主叫终端名称和主叫终端IP地址。其中,该次通信交互不局限于语音通信。The calling terminal sends a communication interaction request to the called terminal through the IP channel, and the communication interaction request carries the name of the calling terminal and the IP address of the calling terminal. Wherein, this communication interaction is not limited to voice communication.

步骤402、获取主叫终端名称和主叫终端IP地址,生成随机数。Step 402, acquire the name of the calling terminal and the IP address of the calling terminal, and generate a random number.

被叫终端接收到主叫终端通过IP通道发送的通信交互请求后,获取该通信交互请求中携带的主叫终端名称和主叫终端IP地址,同时,生成一随机数。After receiving the communication interaction request sent by the calling terminal through the IP channel, the called terminal obtains the name of the calling terminal and the IP address of the calling terminal carried in the communication interaction request, and generates a random number at the same time.

步骤403、发送随机数。Step 403, sending random numbers.

被叫终端将其生成的随机数通过IP通道发送给主叫终端。The called terminal sends the random number generated by it to the calling terminal through the IP channel.

步骤404、生成第一运算结果。Step 404, generating a first calculation result.

主叫终端通过IP通道接收被叫终端发送的随机数,并根据自身预存的第二预设算法对其自身预存的验证码和该随机数进行计算,生成第一运算结果。The calling terminal receives the random number sent by the called terminal through the IP channel, and calculates its own pre-stored verification code and the random number according to its own pre-stored second preset algorithm to generate a first calculation result.

步骤405、发送第一运算结果。Step 405, sending the first calculation result.

主叫终端发送第一运算结果给被叫终端,以使被叫终端根据该第一运算结果对主叫终端是否合法进行判断,若否,则阻断该次通信交互。The calling terminal sends the first calculation result to the called terminal, so that the called terminal judges whether the calling terminal is legal according to the first calculation result, and if not, blocks the communication interaction.

步骤403-步骤405为主叫终端生成第一运算结果所涉及的操作。Steps 403 to 405 are operations involved in generating the first calculation result for the calling terminal.

步骤406、发送主叫终端名称和随机数。Step 406, sending the name of the calling terminal and the random number.

被叫终端将其生成的随机数和所获取的主叫终端名称发送给垃圾电话防范中心。The called terminal sends the generated random number and the acquired name of the calling terminal to the spam prevention center.

步骤407、生成第二运算结果。Step 407, generating a second calculation result.

垃圾电话防范中心接收被叫终端发送的随机数和主叫终端名称,并根据自身预存的第二预设算法对其自身预存的该主叫终端名称对应的验证码和该随机数进行计算,生成第二运算结果。其中,该步骤中的第二预设算法与步骤404中的第二预设算法是同一算法。The spam prevention center receives the random number and the name of the calling terminal sent by the called terminal, and calculates the verification code corresponding to the calling terminal name and the random number stored in itself according to the second preset algorithm stored in itself, and generates The result of the second operation. Wherein, the second preset algorithm in this step is the same algorithm as the second preset algorithm in step 404 .

步骤408、发送第二运算结果。Step 408, sending the second calculation result.

垃圾电话防范中心发送第二运算结果给被叫终端,以使被叫终端根据该第二运算结果对主叫终端是否合法进行判断。The spam prevention center sends the second calculation result to the called terminal, so that the called terminal can judge whether the calling terminal is legal according to the second calculation result.

步骤406-步骤408为垃圾电话防范中心生成第二运算结果所涉及的操作。其中,第一运算结果和第二运算结果可以同时生成,即步骤403-步骤405与步骤406-步骤408可以并行执行,以提高时间效率。Steps 406 to 408 are operations involved in generating the second calculation result by the spam prevention center. Wherein, the first operation result and the second operation result can be generated simultaneously, that is, step 403-step 405 and step 406-step 408 can be executed in parallel to improve time efficiency.

步骤409、主叫终端合法性验证。Step 409, verifying the legitimacy of the calling terminal.

被叫终端从主叫终端接收第一运算结果,从垃圾电话防范中心接收第二运算结果;判断该第一运算结果和第二运算结果是否一致,若一致,则确定主叫终端合法,执行步骤410;若否,则确定主叫终端不合法,执行步骤411。The called terminal receives the first calculation result from the calling terminal, and receives the second calculation result from the spam prevention center; judges whether the first calculation result is consistent with the second calculation result, and if they are consistent, then determines that the calling terminal is legal, and performs the steps 410; if not, determine that the calling terminal is illegal, and go to step 411.

步骤410、通信交互。Step 410, communication interaction.

执行至该步骤说明主叫终端是合法的,则被叫终端接通主叫终端发起的该次通信交互。Execution to this step indicates that the calling terminal is legal, and the called terminal connects to the communication interaction initiated by the calling terminal.

步骤411、将主叫终端加入黑名单。Step 411, adding the calling terminal to the blacklist.

执行至该步骤说明主叫终端是不合法的,则被叫终端拒绝主叫终端发起的该次通信交互,并将主叫终端IP地址设置到该被叫终端的黑名单中,同时执行步骤412,其中,主叫终端IP地址与主叫终端号码是相互绑定,一一对应的。Execution to this step shows that the calling terminal is illegal, then the called terminal rejects the communication interaction initiated by the calling terminal, and sets the IP address of the calling terminal to the blacklist of the called terminal, and executes step 412 at the same time , wherein, the IP address of the calling terminal and the number of the calling terminal are bound to each other and have a one-to-one correspondence.

步骤412、上报主叫终端信息。Step 412, reporting the calling terminal information.

被叫终端将不合法的主叫终端信息,例如,主叫终端名称和主叫终端IP地址等信息,上报给垃圾电话防范中心,由垃圾电话防范中心进行后续处理。The called terminal reports the illegal calling terminal information, such as the name of the calling terminal and the IP address of the calling terminal, to the spam prevention center for subsequent processing.

本实施例对主叫终端、被叫终端和垃圾电话防范中心的交互过程进行了详细的说明,通过对在垃圾电话防范中心中完成注册,获取验证码的主叫终端的合法性的验证,确定是否接通该主叫终端发起的通信交互,从而防止IP网络垃圾电话的产生,保证通信的可靠性。In this embodiment, the interaction process between the calling terminal, the called terminal, and the spam prevention center is described in detail. By completing the registration in the spam prevention center and verifying the legitimacy of the calling terminal that obtains the verification code, it is determined that Whether to connect to the communication interaction initiated by the calling terminal, so as to prevent the generation of IP network spam calls and ensure the reliability of communication.

上述步骤中,对主叫终端合法性的验证过程的执行主体为被叫终端,存在同实施例三中同样的安全隐患。因此,如图5所示,在图4的基础上,垃圾电话防范中心发送第二运算结果给被叫终端之前,还可以包括:In the above steps, the calling terminal is executed by the called terminal in the process of verifying the legitimacy of the calling terminal, and there are the same potential safety hazards as in the third embodiment. Therefore, as shown in Figure 5, on the basis of Figure 4, before the spam prevention center sends the second calculation result to the called terminal, it may also include:

步骤501、被叫终端合法性验证。Step 501, the called terminal legitimacy verification.

垃圾电话防范中心根据被叫终端发送报文的行为判断被叫终端是否合法。该步骤可以细化为以下操作:The spam prevention center judges whether the called terminal is legal according to the behavior of the called terminal sending a message. This step can be refined into the following operations:

1、垃圾电话防范中心判断被叫终端在设定时间内发送的报文数是否达到设定数量。1. The spam prevention center judges whether the number of messages sent by the called terminal within the set time reaches the set number.

当垃圾电话防范中心在设定时间内,例如,180秒,接收到的来自被叫终端的报文数是否达到了设定数量,例如,5条,若是,执行2;若否,说明该被叫终端合法,则发送第二运算结果给被叫终端。When the spam call prevention center is within the set time, for example, 180 seconds, whether the number of messages received from the called terminal reaches the set number, for example, 5, if yes, execute 2; if not, indicate that the called terminal If the calling terminal is valid, the second calculation result is sent to the called terminal.

2、若报文数达到设定数量时,则判断各报文的主叫终端是否相同。2. If the number of messages reaches the set number, it is judged whether the calling terminals of each message are the same.

若报文数达到设定数量时,则垃圾电话防范中心查询各报文是否包含同一个主叫终端的信息,若是,执行3;若否,则认为该伪造的被叫终端为恶意攻击用户,垃圾电话防范中心拒绝该被叫终端IP地址的报文接收,即拒绝接通该次通信交互,并将其列入黑名单。If the message number reaches the set number, then the spam call prevention center inquires whether each message contains the information of the same calling terminal, if so, execute 3; if not, then think that the fake called terminal is a malicious attacking user, The spam prevention center refuses to receive the message from the IP address of the called terminal, that is, refuses to connect to the communication interaction, and puts it in the blacklist.

3、若主叫终端相同时,向所述主叫终端发送确认请求以验证所述被叫终端发送的报文是否异常。3. If the calling terminal is the same, send a confirmation request to the calling terminal to verify whether the message sent by the called terminal is abnormal.

若主叫终端相同,垃圾电话防范中心通过移动交换网或IP通道向该主叫终端发送确认请求,验证是否该主叫终端对该被叫终端发起了该数目的通信交互请求。If the calling terminals are the same, the spam prevention center sends a confirmation request to the calling terminal through the mobile switching network or IP channel to verify whether the calling terminal has initiated the number of communication interaction requests to the called terminal.

4、根据所述主叫终端返回的报文是否异常的确认结果,确定所述被叫终端是否合法。4. Determine whether the called terminal is legitimate according to the confirmation result of whether the message returned by the calling terminal is abnormal.

若该主叫终端确认结果为报文正常,则垃圾电话防范中心认为该被叫终端为合法,向该被叫终端发送第二运算结果;若该主叫终端确认结果为报文异常,则垃圾电话防范中心认为该被叫终端为非法用户,则垃圾电话防范中心拒绝该被叫终端的IP地址的报文接收,并将其列入黑名单。If the calling terminal confirms that the message is normal, the spam prevention center considers the called terminal to be legal, and sends the second calculation result to the called terminal; if the calling terminal confirms that the message is abnormal, the spam When the call prevention center thinks that the called terminal is an illegal user, the spam call prevention center rejects the message reception of the IP address of the called terminal and puts it in the blacklist.

通过上述操作,即可避免黑客伪造成被叫终端,攻击垃圾电话防范中心,或蓄意获取其它终端的验证码,实现通信质量的保证。Through the above operations, it is possible to prevent hackers from pretending to be called terminals, attacking the spam prevention center, or intentionally obtaining verification codes of other terminals, thereby ensuring communication quality.

图6和图7为本发明垃圾电话防范方法实施例四中的注册流程示意图。在上述实施例的基础上,对主叫终端在垃圾电话防范中心进行注册,获取验证码的操作进一步细化。FIG. 6 and FIG. 7 are schematic diagrams of the registration process in Embodiment 4 of the spam call prevention method of the present invention. On the basis of the above embodiments, the operation of registering the calling terminal with the spam prevention center and obtaining the verification code is further refined.

如图6所示,该操作可以包括:As shown in Figure 6, this operation may include:

步骤601、所述主叫终端向所述垃圾电话防范中心发送注册请求,所述注册请求中携带所述主叫终端名称和所述主叫终端IP地址。Step 601. The calling terminal sends a registration request to the spam prevention center, and the registration request carries the name of the calling terminal and the IP address of the calling terminal.

具体地,主叫终端向垃圾电话防范中心发送注册请求,该注册请求包括主叫终端名称和主叫终端IP地址等信息,其中,主叫终端名称,例如可以为ABCqq.com。Specifically, the calling terminal sends a registration request to the spam prevention center, and the registration request includes information such as the name of the calling terminal and the IP address of the calling terminal, wherein the name of the calling terminal may be, for example, ABCqq.com.

垃圾电话防范中心收到该注册请求后,提取该注册请求中的主叫终端名称和主叫终端IP地址,并随机产生与该主叫终端名称对应的验证码,通过IP通道发送给该主叫终端,并保存该验证码。After receiving the registration request, the spam prevention center extracts the name of the calling terminal and the IP address of the calling terminal in the registration request, and randomly generates a verification code corresponding to the name of the calling terminal, and sends it to the calling terminal through the IP channel. Terminal, and save the verification code.

步骤602、所述主叫终端通过IP通道接收并存储所述垃圾电话防范中心根据所述主叫终端名称生成的验证码。Step 602. The calling terminal receives and stores the verification code generated by the spam prevention center according to the name of the calling terminal through an IP channel.

该步骤直接通过IP通道接收验证码,单一通道传输验证码存在容易被黑客截获的隐患,因此,若考虑到安全通信的需要,采用如图7所示的流程示意图完成主叫终端在垃圾电话防范中心的注册,该注册流程可以包括:This step directly receives the verification code through the IP channel. The verification code transmitted through a single channel may be easily intercepted by hackers. Therefore, if the need for secure communication is considered, use the flow diagram shown in Figure 7 to complete the spam call prevention of the calling terminal. Center registration, the registration process may include:

步骤701、所述主叫终端向所述垃圾电话防范中心发送注册请求,所述注册请求中携带所述主叫终端号码、所述主叫终端名称和所述主叫终端IP地址。Step 701. The calling terminal sends a registration request to the spam prevention center, and the registration request carries the number of the calling terminal, the name of the calling terminal, and the IP address of the calling terminal.

该步骤相对于步骤601,注册请求中携带主叫终端号码。This step is relative to step 601, the calling terminal number is carried in the registration request.

垃圾电话防范中心收到该注册请求后,获取所述注册请求中的主叫终端名称、主叫终端号码和主叫终端IP地址,并根据该主叫终端号码生成并保存第一验证码,通过短信通道发送给该主叫终端;根据该主叫终端名称生成并保存第二验证码,通过IP通道发送给该主叫终端。另外,垃圾电话防范中心根据自身预存的第一预设算法、所述第一验证码和所述第二验证码生成验证码,并保存。After receiving the registration request, the spam prevention center obtains the name of the calling terminal, the number of the calling terminal and the IP address of the calling terminal in the registration request, and generates and saves the first verification code according to the number of the calling terminal. The short message channel is sent to the calling terminal; the second verification code is generated and stored according to the calling terminal name, and sent to the calling terminal through the IP channel. In addition, the spam call prevention center generates a verification code according to its pre-stored first preset algorithm, the first verification code and the second verification code, and saves it.

步骤702、所述主叫终端通过短信通道接收所述垃圾电话防范中心根据所述主叫终端号码生成的第一验证码。Step 702: The calling terminal receives the first verification code generated by the spam prevention center according to the calling terminal number through a short message channel.

步骤703、所述主叫终端通过IP通道接收所述垃圾电话防范中心根据所述主叫终端名称生成的第二验证码。Step 703, the calling terminal receives the second verification code generated by the spam prevention center according to the name of the calling terminal through the IP channel.

上述两个步骤中,执行顺序没有时序关系,可以同时执行,也可以先执行其中一个,在执行另一个。主叫终端通过短信通道,即移动交换网,接收第一验证码,通过IP通道接收第二验证码,双通道传输时,黑客截获的隐患大大降低,进一步保证通信安全。In the above two steps, the order of execution has no chronological relationship, and they can be executed at the same time, or one of them can be executed first, and then the other is executed. The calling terminal receives the first verification code through the SMS channel, that is, the mobile switching network, and receives the second verification code through the IP channel. During dual-channel transmission, the hidden danger of hackers is greatly reduced, further ensuring communication security.

步骤704、所述主叫终端采用第一预设算法,对所述第一验证码和第二验证码进行计算得到所述验证码,并保存。Step 704: The calling terminal calculates the first verification code and the second verification code using a first preset algorithm to obtain the verification code, and saves it.

该步骤中,第一预设算法与步骤701中垃圾电话防范中心生成验证码用到的第一预设算法是相同的。In this step, the first preset algorithm is the same as the first preset algorithm used by the spam prevention center to generate the verification code in step 701 .

实施例五Embodiment five

图8为本发明主叫终端实施例一的结构示意图,该主叫终端可以为智能手机等终端设备。如图8所示,本实施例的主叫终端,包括:第一注册模块81、第一发送模块82和第一处理模块83。FIG. 8 is a schematic structural diagram of Embodiment 1 of a calling terminal according to the present invention. The calling terminal may be a terminal device such as a smart phone. As shown in FIG. 8 , the calling terminal in this embodiment includes: a first registration module 81 , a first sending module 82 and a first processing module 83 .

其中,第一注册模块81用于在垃圾电话防范中心进行注册,获取验证码;第一发送模块82用于通过互联网协议IP通道向被叫终端发起通信交互请求,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址;第一处理模块83用于与所述被叫终端交互,以使所述被叫终端根据所述验证码对所述主叫终端是否合法进行判断。Among them, the first registration module 81 is used to register at the spam prevention center and obtain the verification code; the first sending module 82 is used to initiate a communication interaction request to the called terminal through the Internet protocol IP channel, and the communication interaction request carries the The name of the calling terminal and the IP address of the calling terminal; the first processing module 83 is used to interact with the called terminal, so that the called terminal checks whether the calling terminal is legal according to the verification code judge.

本实施例的主叫终端,可以用于执行本发明方法实施例一的技术方案,其实现原理和技术效果类似,此处不再赘述。The calling terminal in this embodiment can be used to implement the technical solution of the first method embodiment of the present invention, and its implementation principle and technical effect are similar, and will not be repeated here.

一种实现方式中,如图9所示,第一注册模块81可以包括:第一发送单元911,用于向所述垃圾电话防范中心发送注册请求,所述注册请求中携带所述主叫终端名称和所述主叫终端IP地址;第一接收单元912,用于通过IP通道接收并存储所述垃圾电话防范中心根据所述主叫终端名称生成的验证码。In one implementation, as shown in FIG. 9 , the first registration module 81 may include: a first sending unit 911, configured to send a registration request to the spam prevention center, the registration request carrying the calling terminal The name and the IP address of the calling terminal; the first receiving unit 912 is configured to receive and store the verification code generated by the spam prevention center according to the name of the calling terminal through an IP channel.

另一种实现方式中,如图10所示,第一注册模块81可以包括:第二发送单元1001,用于向所述垃圾电话防范中心发送注册请求,所述注册请求中携带所述主叫终端号码、所述主叫终端名称和所述主叫终端IP地址;第二接收单元1002,用于通过短信通道接收所述垃圾电话防范中心根据所述主叫终端号码生成的第一验证码;以及,通过IP通道接收所述垃圾电话防范中心根据所述主叫终端名称生成的第二验证码;第一计算单元1003,用于采用第一预设算法,对所述第一验证码和第二验证码进行计算得到所述验证码,并保存。In another implementation, as shown in FIG. 10 , the first registration module 81 may include: a second sending unit 1001, configured to send a registration request to the spam prevention center, the registration request carrying the calling Terminal number, the name of the calling terminal and the IP address of the calling terminal; a second receiving unit 1002, configured to receive the first verification code generated by the spam prevention center according to the calling terminal number through a short message channel; And, receiving the second verification code generated by the spam prevention center according to the name of the calling terminal through the IP channel; the first calculation unit 1003 is configured to use a first preset algorithm to calculate the first verification code and the second verification code. The second verification code is calculated to obtain the verification code and saved.

更进一步地,第一处理模块83可以具体用于:通过IP通道接收所述被叫终端发送的随机数;根据自身预存的第二预设算法和所述验证码,以及所述随机数生成第一运算结果;以及,发送所述第一运算结果给所述被叫终端,以使所述被叫终端根据所述第一运算结果对所述主叫终端是否合法进行判断,若否,则阻断该次通信交互。Furthermore, the first processing module 83 may be specifically configured to: receive the random number sent by the called terminal through the IP channel; generate the first random number according to the second preset algorithm and the verification code prestored in itself, and the random number An operation result; and, sending the first operation result to the called terminal, so that the called terminal can judge whether the calling terminal is legal according to the first operation result, and if not, block Terminate the communication interaction.

本实施例通过第一注册模块完成主叫终端的注册,使得主叫终端和垃圾电话防范中心具有相同的验证码,然后,通过第一发送模块发起通信交互请求,以及第一处理模块与被叫终端交互,并通过被叫终端确定是否接通该主叫终端发起的通信交互,从而防止IP网络垃圾电话的产生,保证通信的可靠性,增强客户体验。In this embodiment, the registration of the calling terminal is completed through the first registration module, so that the calling terminal and the spam prevention center have the same verification code, and then, a communication interaction request is initiated through the first sending module, and the first processing module and the called party Terminal interaction, and through the called terminal to determine whether to connect to the communication interaction initiated by the calling terminal, so as to prevent the generation of IP network spam calls, ensure the reliability of communication, and enhance customer experience.

实施例六Embodiment six

图11为本发明被叫终端实施例一的结构示意图,该被叫终端可以为智能手机等终端设备,与上述实施例中提到的主叫终端进行交互。如图11所示,本实施例的被叫终端包括:第一接收模块111,用于在互联网协议IP通道内接收主叫终端发起的通信交互请求,其中,所述通信交互请求中携带所述主叫终端名称和所述主叫终端IP地址;第二处理模块112,用于与所述主叫终端交互,根据所述主叫终端在垃圾电话防范中心注册获取的验证码对所述主叫终端是否合法进行判断。FIG. 11 is a schematic structural diagram of Embodiment 1 of the called terminal of the present invention. The called terminal may be a terminal device such as a smart phone, and interacts with the calling terminal mentioned in the above embodiment. As shown in FIG. 11 , the called terminal in this embodiment includes: a first receiving module 111, configured to receive a communication interaction request initiated by the calling terminal in an Internet Protocol IP channel, wherein the communication interaction request carries the The name of the calling terminal and the IP address of the calling terminal; the second processing module 112 is configured to interact with the calling terminal, and perform a check on the calling terminal according to the verification code registered and obtained by the calling terminal at the spam prevention center. Whether the terminal is legal or not is judged.

本实施例的被叫终端,可以用于执行本发明方法实施例二的技术方案,其实现原理和技术效果类似,此处不再赘述。The called terminal in this embodiment can be used to implement the technical solution of the second embodiment of the method of the present invention, and its implementation principle and technical effect are similar, and will not be repeated here.

进一步地,第二处理模块112具体用于:Further, the second processing module 112 is specifically used for:

生成随机数;Generate random numbers;

将所述随机数通过IP通道发送给所述主叫终端;sending the random number to the calling terminal through an IP channel;

将所述随机数和所述主叫终端名称发送给所述垃圾电话防范中心;sending the random number and the name of the calling terminal to the spam prevention center;

从所述主叫终端接收第一运算结果,所述第一运算结果为所述主叫终端根据自身预存的第二预设算法和自身的验证码,以及所述随机数生成的;receiving a first calculation result from the calling terminal, where the first calculation result is generated by the calling terminal according to its own pre-stored second preset algorithm, its own verification code, and the random number;

从所述垃圾电话防范中心接收第二运算结果,所述第二运算结果为所述垃圾电话防范中心根据自身预存的第二预设算法,所述主叫终端所对应的验证码,以及所述随机数生成的;Receive a second calculation result from the spam prevention center, the second calculation result is the second preset algorithm pre-stored by the spam prevention center itself, the verification code corresponding to the calling terminal, and the random number generated;

判断所述第一运算结果和第二运算结果是否一致,若一致,则所述主叫终端合法;若否,则所述主叫终端不合法。Judging whether the first calculation result is consistent with the second calculation result, if they are consistent, the calling terminal is legal; if not, the calling terminal is illegal.

实施例七Embodiment seven

图12为本发明服务器实施例一的结构示意图,如图11所示,本实施例的服务器包括:第二注册模块121、第三处理模块122和第二发送模块123。FIG. 12 is a schematic structural diagram of the server embodiment 1 of the present invention. As shown in FIG. 11 , the server of this embodiment includes: a second registration module 121 , a third processing module 122 and a second sending module 123 .

其中,第二注册模块121,用于接收终端发送的注册请求,根据终端发送的所述注册请求生成验证码,并保存,且返回给所述终端;第三处理模块122,用于在被叫终端基于互联网协议IP通道建立与主叫终端的通信前,接收被叫终端发送的所述主叫终端名称和被叫终端产生的随机数,并根据自身预存的第二预设算法以及与所述主叫终端所对应的验证码和随机数,生成第二运算结果;第二发送模块123,用于发送所述第二运算结果给所述被叫终端,以使所述被叫终端根据所述第二运算结果对所述主叫终端是否合法进行判断。Wherein, the second registration module 121 is used to receive the registration request sent by the terminal, generate a verification code according to the registration request sent by the terminal, save it, and return it to the terminal; the third processing module 122 is used to Before the terminal establishes communication with the calling terminal based on the Internet protocol IP channel, it receives the name of the calling terminal sent by the called terminal and the random number generated by the called terminal, and according to its pre-stored second preset algorithm and the The verification code and the random number corresponding to the calling terminal generate a second operation result; the second sending module 123 is configured to send the second operation result to the called terminal, so that the called terminal according to the The second calculation result judges whether the calling terminal is legal.

本实施例的服务器,可以用于执行本发明方法实施例三的技术方案,其实现原理和技术效果类似,此处不再赘述。The server of this embodiment can be used to execute the technical solution of the third embodiment of the method of the present invention, and its implementation principle and technical effect are similar, and will not be repeated here.

进一步地,一种实现方式中,第二注册模块121可以具体用于:Further, in an implementation manner, the second registration module 121 may be specifically used for:

获取所述注册请求中的终端名称和终端IP地址;Obtain the terminal name and terminal IP address in the registration request;

根据所述终端名称生成验证码;generating a verification code according to the terminal name;

保存所述验证码,并通过IP通道发送给所述终端。Save the verification code and send it to the terminal through an IP channel.

进一步地,另一种实现方式中,第二注册模块121可以具体用于:Further, in another implementation manner, the second registration module 121 may be specifically used for:

获取所述注册请求中的终端名称、终端号码和终端IP地址;Obtain the terminal name, terminal number and terminal IP address in the registration request;

根据所述终端号码生成并保存第一验证码,通过短信通道发送给所述终端;Generate and store a first verification code according to the terminal number, and send it to the terminal through a short message channel;

根据所述终端名称生成并保存第二验证码,通过IP通道发送给所述终端;Generate and store a second verification code according to the terminal name, and send it to the terminal through an IP channel;

根据自身预存的第一预设算法、所述第一验证码和所述第二验证码生成所述验证码,并保存。Generate the verification code according to the first preset algorithm, the first verification code and the second verification code stored in itself, and save it.

更近一步地,如图13所示,本发明提供的服务器还可以包括:判断模块131,用于在第二发送模块发送所述第二运算结果给所述被叫终端之前,根据所述被叫终端发送报文的行为判断被叫终端是否合法。Furthermore, as shown in FIG. 13, the server provided by the present invention may further include: a judging module 131, configured to, before the second sending module sends the second calculation result to the called terminal, according to the called terminal Judging whether the called terminal is legitimate or not based on the behavior of the calling terminal sending a message.

在上述基础上,所述判断模块131可以包括:On the basis of the above, the judging module 131 may include:

第一判断单元1311,用于判断所述被叫终端在设定时间内发送的报文数是否达到设定数量;The first judging unit 1311 is configured to judge whether the number of messages sent by the called terminal within a set time reaches a set number;

第二判断单元1312,用于若第一判断单元输出结果为是,则判断各报文的主叫终端是否相同;The second judging unit 1312 is used to judge whether the calling terminal of each message is the same if the output result of the first judging unit is yes;

第三判断单元1313,用于若第二判断单元输出结果为是,向所述主叫终端发送确认请求以验证所述被叫终端发送的报文是否异常;The third judging unit 1313 is configured to send a confirmation request to the calling terminal to verify whether the message sent by the called terminal is abnormal if the output result of the second judging unit is yes;

第四判断单元1314,用于根据所述主叫终端返回的报文是否异常的确认结果,确定所述被叫终端是否合法。The fourth judging unit 1314 is configured to determine whether the called terminal is legitimate according to the confirmation result of whether the message returned by the calling terminal is abnormal.

实施例八Embodiment eight

图14为本发明垃圾电话防范系统实施例一的结构示意图,如图14所示,本实施例的垃圾电话防范系统包括:主叫终端141、被叫终端142和服务器143。其中,主叫终端141可以为如图8-图10中任一所示的主叫终端;被叫终端142可以为如图11所示的被叫终端;服务器143可以为如图12或13所示的服务器。FIG. 14 is a structural diagram of Embodiment 1 of the spam call prevention system of the present invention. As shown in FIG. 14 , the spam call prevention system of this embodiment includes: a calling terminal 141 , a called terminal 142 and a server 143 . Among them, the calling terminal 141 can be the calling terminal as shown in any one of Figures 8-10; the called terminal 142 can be the called terminal as shown in Figure 11; the server 143 can be the displayed server.

本实施例通过主叫终端、被叫终端和服务器的交互,主叫终端在服务器中完成注册,被叫终端对已获取验证码的主叫终端的合法性的验证,确定是否接通该主叫终端发起的通信交互,从而防止IP网络垃圾电话的产生,保证通信的可靠性。In this embodiment, through the interaction between the calling terminal, the called terminal, and the server, the calling terminal completes the registration in the server, and the called terminal verifies the legitimacy of the calling terminal that has obtained the verification code to determine whether to connect the calling terminal. The communication interaction initiated by the terminal prevents the generation of IP network spam calls and ensures the reliability of communication.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various 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, rather than limiting 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: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (19)

CN201310325820.3A2013-07-302013-07-30Junk call preventing method, device and systemActiveCN103428376B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310325820.3ACN103428376B (en)2013-07-302013-07-30Junk call preventing method, device and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310325820.3ACN103428376B (en)2013-07-302013-07-30Junk call preventing method, device and system

Publications (2)

Publication NumberPublication Date
CN103428376A CN103428376A (en)2013-12-04
CN103428376Btrue CN103428376B (en)2015-07-22

Family

ID=49652527

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310325820.3AActiveCN103428376B (en)2013-07-302013-07-30Junk call preventing method, device and system

Country Status (1)

CountryLink
CN (1)CN103428376B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105306409A (en)*2014-05-302016-02-03展讯通信(上海)有限公司Call verification system and method and mobile terminal
CN104469716B (en)*2014-12-012018-04-27中国联合网络通信集团有限公司A kind of hold-up interception method and system of registration class industry junk short message
CN104601783A (en)*2015-01-272015-05-06深圳市中兴移动通信有限公司Communication processing method based on subjective judgment, mobile terminal and system
CN107124519A (en)*2017-04-262017-09-01林海A kind of means of communication based on cell phone address book
CN109639913A (en)*2019-01-032019-04-16中国联合网络通信集团有限公司A kind of automatic speech harassing and wrecking number processing method, apparatus and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101132641A (en)*2006-12-302008-02-27陈鹏Authentication method for telephone subscriber identity
CN101540758A (en)*2008-03-192009-09-23华为技术有限公司Method, device and system for inhibiting waste service
US8548149B2 (en)*2011-06-172013-10-01Asd Inc.System and method employed by answering service to dynamically shield against unwanted telephonic contact attempts

Also Published As

Publication numberPublication date
CN103428376A (en)2013-12-04

Similar Documents

PublicationPublication DateTitle
CN105188055B (en)wireless network access method, wireless access point and server
US9077566B2 (en)Caller ID callback authenticationi for voice over internet protocol (“VoIP”) deployments
US9800589B1 (en)Methods and apparatus for detecting malicious attacks
RU2570838C2 (en)Strong authentication by providing number
US10148636B2 (en)Authentication methods and apparatus
CN103428376B (en)Junk call preventing method, device and system
EP2981022B1 (en)Method and system for transmitting and receiving data, method and device for processing message
CN105578463B (en) Method and device for dual connection secure communication
CN104601541B (en)Method, server and the user equipment of data transmission
CN102802150B (en)phone number verification method, system and terminal
US10893414B1 (en)Selective attestation of wireless communications
CN117240486A (en)Authentication method and communication device
Peeters et al.SMS OTP security (SOS) hardening SMS-based two factor authentication
CN107872588A (en) Call processing method, related device and system
CN102132594A (en) communication authentication
CN102546552B (en)Authentication method, equipment and system
CN113839905B (en) A certificate writing, certificate feedback method, accounting node and identity authentication system
CN106576245B (en)User equipment proximity request authentication
CN101465865B (en)Method and equipment for defending network attack and establishing network connection
EP2418913A1 (en)Method and system for joining group session with pre-defined joining
CN108270747B (en)Authentication method and device
KR20160109582A (en)User authentication system and user authentication method of Cell phone messaging service and CHATCHA bases
CN110830420A (en)Method and system for verifying short message verification code
US10079857B2 (en)Method of slowing down a communication in a network
KR101310043B1 (en)Voice one-time password based user authentication method on smart phone

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp