[go: up one dir, main page]

CN106454781B - Communication message source identification method and device - Google Patents

Communication message source identification method and device Download PDF

Info

Publication number
CN106454781B
CN106454781B CN201611045167.5A CN201611045167A CN106454781B CN 106454781 B CN106454781 B CN 106454781B CN 201611045167 A CN201611045167 A CN 201611045167A CN 106454781 B CN106454781 B CN 106454781B
Authority
CN
China
Prior art keywords
communication
source
candidate set
message
communication message
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
CN201611045167.5A
Other languages
Chinese (zh)
Other versions
CN106454781A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611045167.5A priority Critical patent/CN106454781B/en
Publication of CN106454781A publication Critical patent/CN106454781A/en
Application granted granted Critical
Publication of CN106454781B publication Critical patent/CN106454781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/275Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips implemented by means of portable electronic directories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a method and a device for identifying a source of a communication message, and belongs to the technical field of communication. The method comprises the following steps: acquiring a communication number of a communication message, acquiring a corresponding source party candidate set according to the communication number, wherein the source party candidate set comprises at least one identifier of a source party sending the communication message through the communication number, matching a specified field in the communication message with the identifier of the at least one source party, and determining the source party corresponding to the identifier matched with the specified field as the source party sending the communication message; the user terminal can determine the source of the communication message received by the user terminal by combining the source candidate set and the appointed field in the communication message; the accuracy of identifying the communication message source party is improved, and the problem of inaccurate identification of the message source caused by the fact that different message source parties share one communication number is solved.

Description

通讯消息来源方识别方法及装置Communication message source identification method and device

技术领域technical field

本公开实施例涉及通讯技术领域,特别涉及一种通讯消息来源方识别方法及装置。Embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a method and apparatus for identifying a source of a communication message.

背景技术Background technique

随着信息社会的发展,手机成为用户收发短信的重要媒介,手机接收的短信存储在手机的信箱中。With the development of the information society, the mobile phone has become an important medium for users to send and receive short messages, and the short messages received by the mobile phone are stored in the mailbox of the mobile phone.

用户为了在阅读短信的完整内容前获知该短信的来源方,通常在手机通讯录中保存大量联系人的标识和联系人的通讯号码。当手机接收到某条短信时,手机将该短信的通讯号码与通讯录中的通讯号码进行匹配,在匹配成功时,将该通讯号码对应的联系人的标识确定为该短信的来源方,并在信箱中显示该短信通讯号码的位置显示该联系人的标识。In order to know the source of the short message before reading the complete content of the short message, the user usually saves the identifiers of a large number of contacts and the communication numbers of the contacts in the mobile phone address book. When the mobile phone receives a certain short message, the mobile phone matches the communication number of the short message with the communication number in the address book, and when the match is successful, the identification of the contact corresponding to the communication number is determined as the source of the short message, and The identification of the contact is displayed at the position where the SMS communication number is displayed in the mailbox.

发明内容SUMMARY OF THE INVENTION

本公开实施例提供了一种通讯消息来源方识别方法及装置,所述技术方案如下:Embodiments of the present disclosure provide a method and device for identifying the source of a communication message, and the technical solutions are as follows:

根据本公开实施例的第一方面,提供了一种通讯消息来源方识别方法,该方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided a method for identifying a source of a communication message, the method comprising:

获取通讯消息的通讯号码;Get the communication number of the communication message;

根据所述通讯号码获取对应的来源方候选集,所述来源方候选集中包含至少一个通过所述通讯号码发送通讯消息的来源方的标识;Obtain a corresponding source party candidate set according to the communication number, where the source party candidate set includes at least an identifier of a source party that sends a communication message through the communication number;

将所述通讯消息中的指定字段与所述至少一个来源方的标识进行匹配;matching a specified field in the communication message with the identity of the at least one source;

将与所述指定字段相匹配的标识对应的来源方确定为发送所述通讯消息的来源方。The source party corresponding to the identifier matching the specified field is determined as the source party sending the communication message.

可选的,所述将所述通讯消息中的指定字段与所述至少一个来源方的标识进行匹配,包括:Optionally, the matching of the specified field in the communication message with the identifier of the at least one source includes:

获取所述至少一个来源方的标识的优先级;obtaining the priority of the identification of the at least one source party;

按照所述至少一个来源方的标识的优先级,将所述至少一个来源方的标识与所述通讯消息中的指定字段进行匹配。The identification of the at least one source is matched with a specified field in the communication message according to the priority of the identification of the at least one source.

可选的,所述根据所述通讯号码获取对应的来源方候选集,包括:Optionally, the obtaining the corresponding source party candidate set according to the communication number includes:

向服务器发送包含所述通讯号码的候选集获取请求,所述候选集获取请求用于获取所述通讯号码对应的所述来源方候选集;sending a candidate set acquisition request including the communication number to the server, where the candidate set acquisition request is used to acquire the source candidate set corresponding to the communication number;

接收所述服务器返回的候选集下发响应,所述候选集下发响应中包含所述通讯号码对应的所述来源方候选集。Receive a candidate set delivery response returned by the server, where the candidate set delivery response includes the source candidate set corresponding to the communication number.

可选的,所述根据所述通讯号码获取对应的来源方候选集,包括:Optionally, the obtaining the corresponding source party candidate set according to the communication number includes:

根据所述通讯号码,从本地存储中查询对应的所述来源方候选集。According to the communication number, the corresponding source candidate set is queried from the local storage.

可选的,所述获取通讯消息的通讯号码,包括:Optionally, the obtaining the communication number of the communication message includes:

当接收到展示包含所述通讯消息的消息列表的指令时,获取所述通讯消息的通讯号码;When receiving an instruction to display a message list including the communication message, acquiring the communication number of the communication message;

或者,or,

当接收到所述通讯消息时,获取所述通讯消息的通讯号码。When the communication message is received, the communication number of the communication message is obtained.

可选的,所述通讯消息中的指定字段包括:Optionally, the specified fields in the communication message include:

处于所述通讯消息的内容中的指定位置的字段;a field at a specified position in the content of the communication message;

和/或,满足预定的字符格式的字段。And/or, a field that satisfies a predetermined character format.

可选的,所述方法还包括:Optionally, the method further includes:

在展示包含所述通讯消息的消息列表时,对应所述通讯消息展示与所述指定字段相匹配的标识。When displaying a message list including the communication message, an identifier matching the specified field is displayed corresponding to the communication message.

根据本公开实施例的第二方面,提供了一种通讯消息来源方识别装置,该装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for identifying a source of a communication message, the apparatus comprising:

号码获取模块,用于获取通讯消息的通讯号码;The number acquisition module is used to acquire the communication number of the communication message;

候选集获取模块,用于根据所述通讯号码获取对应的来源方候选集,所述来源方候选集中包含至少一个通过所述通讯号码发送通讯消息的来源方的标识;a candidate set obtaining module, configured to obtain a corresponding source party candidate set according to the communication number, the source party candidate set including at least one identity of a source party sending a communication message through the communication number;

字段匹配模块,用于将所述通讯消息中的指定字段与所述至少一个来源方的标识进行匹配;a field matching module, configured to match a specified field in the communication message with the identifier of the at least one source;

来源方确定模块,用于将与所述指定字段相匹配的标识对应的来源方确定为发送所述通讯消息的来源方。The source determination module is configured to determine the source corresponding to the identifier matching the specified field as the source for sending the communication message.

可选的,所述字段匹配模块,包括:Optionally, the field matching module includes:

优先级获取子模块,用于获取所述至少一个来源方的标识的优先级;a priority obtaining submodule, configured to obtain the priority of the identifier of the at least one source;

字段匹配子模块,用于按照所述至少一个来源方的标识的优先级,将所述至少一个来源方的标识与所述通讯消息中的指定字段进行匹配。The field matching submodule is configured to match the identification of the at least one source with a specified field in the communication message according to the priority of the identification of the at least one source.

可选的,所述候选集获取模块,包括:Optionally, the candidate set acquisition module includes:

发送子模块,用于向服务器发送包含所述通讯号码的候选集获取请求,所述候选集获取请求用于获取所述通讯号码对应的所述来源方候选集;A sending submodule, configured to send a candidate set acquisition request including the communication number to the server, where the candidate set acquisition request is used to acquire the source candidate set corresponding to the communication number;

接收子模块,用于接收所述服务器返回的候选集下发响应,所述候选集下发响应中包含所述通讯号码对应的所述来源方候选集。The receiving submodule is configured to receive a candidate set delivery response returned by the server, where the candidate set delivery response includes the source candidate set corresponding to the communication number.

可选的,所述候选集获取模块,包括:本地获取子模块,用于根据所述通讯号码,从本地存储中查询对应的所述来源方候选集。Optionally, the candidate set acquisition module includes: a local acquisition sub-module, configured to query the corresponding source candidate set from the local storage according to the communication number.

可选的,所述号码获取模块,还用于当接收到展示包含所述通讯消息的消息列表的指令时,获取所述通讯消息的通讯号码;或者,当接收到所述通讯消息时,获取所述通讯消息的通讯号码。Optionally, the number obtaining module is further configured to obtain the communication number of the communication message when receiving an instruction to display a message list including the communication message; or, when receiving the communication message, obtain The communication number of the communication message.

可选的,所述通讯消息中的指定字段包括:Optionally, the specified fields in the communication message include:

处于所述通讯消息的内容中的指定位置的字段;a field at a specified position in the content of the communication message;

和/或,满足预定的字符格式的字段。And/or, a field that satisfies a predetermined character format.

可选的,所述装置还包括:Optionally, the device further includes:

展示模块,用于在展示包含所述通讯消息的消息列表时,对应所述通讯消息展示与所述指定字段相匹配的标识。The display module is configured to display an identifier matching the specified field corresponding to the communication message when the message list including the communication message is displayed.

根据本公开实施例的第三方面,提供了一种通讯消息来源方识别装置,该装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for identifying a source of a communication message, the apparatus comprising:

处理器;processor;

用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions for the processor;

其中,所述处理器被配置为:wherein the processor is configured to:

获取通讯消息的通讯号码;Get the communication number of the communication message;

根据所述通讯号码获取对应的来源方候选集,所述来源方候选集中包含至少一个通过所述通讯号码发送通讯消息的来源方的标识;Obtain a corresponding source party candidate set according to the communication number, where the source party candidate set includes at least an identifier of a source party that sends a communication message through the communication number;

将所述通讯消息中的指定字段与所述至少一个来源方的标识进行匹配;matching a specified field in the communication message with the identity of the at least one source;

将与所述指定字段相匹配的标识对应的来源方确定为发送所述通讯消息的来源方。The source party corresponding to the identifier matching the specified field is determined as the source party sending the communication message.

本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

用户终端获取通讯消息的通讯号码,根据该通讯号码获取对应的来源方候选集,该来源方候选集中包含至少一个通过通讯号码发送通讯消息的来源方的标识,用户终端将通讯消息中的指定字段与该至少一个来源方的标识进行匹配,将与该指定字段相匹配的标识对应的来源方确定为发送该通讯消息的来源方;使得用户终端能够结合来源方候选集和通讯消息中指定字段,确定用户终端接收的通讯消息的来源方;提高了识别通讯消息来源方的准确率,降低了不同消息来源方共用一个通讯号码造成的消息来源识别不准确的问题。The user terminal obtains the communication number of the communication message, and obtains a corresponding source candidate set according to the communication number. The source candidate set includes at least one identifier of the source that sends the communication message through the communication number, and the user terminal stores the specified field in the communication message. Matching with the identification of the at least one source party, and determining the source party corresponding to the identification matching the specified field as the source party sending the communication message; enabling the user terminal to combine the source party candidate set and the specified field in the communication message, The source of the communication message received by the user terminal is determined; the accuracy of identifying the source of the communication message is improved, and the problem of inaccurate identification of the message source caused by the sharing of a communication number by different message sources is reduced.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据本公开实施例所示出的通讯消息来源方识别方法所涉及的实施环境的示意图;1 is a schematic diagram of an implementation environment involved in a method for identifying a source of a communication message according to an embodiment of the present disclosure;

图2是根据一示例性实施例示出的一种通讯消息来源方识别方法的流程图;FIG. 2 is a flowchart of a method for identifying a source of a communication message according to an exemplary embodiment;

图3是根据一示例性实施例示出的另一种通讯消息来源方识别方法的流程图;FIG. 3 is a flowchart of another method for identifying a source of a communication message according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种通讯消息来源方识别装置的框图;4 is a block diagram of an apparatus for identifying a source of a communication message according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种装置500的框图。FIG. 5 is a block diagram of an apparatus 500 according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的方法和装置的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of methods and apparatus consistent with some aspects of the present disclosure as recited in the appended claims.

图1是根据本公开实施例所示出的通讯消息来源方识别方法所涉及的实施环境的示意图。该实施环境可以包括:用户终端110和服务器120。FIG. 1 is a schematic diagram of an implementation environment involved in a method for identifying a source of a communication message according to an embodiment of the present disclosure. The implementation environment may include: a user terminal 110 and a server 120 .

用户终端110通过运营商网络接收消息。同时该用户终端110通过有线网络或者无线网络与服务器120相连,并与该服务器120进行数据交换。其中,该用户终端可以是手机、平板电脑、个人电脑、膝上型电脑、车载电脑、MP3/MP4、智能手环、智能手表、智能眼镜、运动追踪器、健康监测设备或智能配饰等设备。The user terminal 110 receives the message through the operator network. At the same time, the user terminal 110 is connected to the server 120 through a wired network or a wireless network, and performs data exchange with the server 120 . The user terminal may be a mobile phone, a tablet computer, a personal computer, a laptop computer, a car computer, MP3/MP4, a smart bracelet, a smart watch, a smart glasses, a sports tracker, a health monitoring device, or a smart accessory.

服务器120与用户终端110通过有线网络或者无线网络相连,服务器120可以是一台服务器,也可以是若干台服务器组成的服务器集群,或者,还可以是位于云端的虚拟服务器。其中,服务器120可以根据用户终端110的请求或者在开发维护人员的相关设置下,定期备份运营商网络下发到用户终端110中的通讯消息,将该通讯消息同步到服务器120中。服务器120可以与若干个用户终端110相连。The server 120 is connected to the user terminal 110 through a wired network or a wireless network. The server 120 may be a server, a server cluster composed of several servers, or a virtual server located in the cloud. The server 120 may periodically back up the communication message delivered to the user terminal 110 by the operator network according to the request of the user terminal 110 or under the relevant settings of the developer and maintenance personnel, and synchronize the communication message to the server 120 . The server 120 may be connected to several user terminals 110 .

下面,以图1所示的实施环境为例,对本公开各个实施例提供的技术方案进行介绍和说明。Hereinafter, the technical solutions provided by various embodiments of the present disclosure will be introduced and described by taking the implementation environment shown in FIG. 1 as an example.

图2是根据一示例性实施例示出的一种通讯消息来源方识别方法的流程图,该通讯消息来源方识别方法可以用于如图1所示的用户终端110中,该通讯消息来源方识别方法可以包括如下几个步骤:FIG. 2 is a flowchart illustrating a method for identifying a source of a communication message according to an exemplary embodiment. The method for identifying a source of a communication message may be used in the user terminal 110 shown in FIG. 1 . The source of the communication message identifies The method can include the following steps:

在步骤201中,获取通讯消息的通讯号码。In step 201, the communication number of the communication message is obtained.

在步骤202中,根据该通讯号码获取对应的来源方候选集。In step 202, a corresponding source candidate set is obtained according to the communication number.

其中,在本公开实施例的实现过程中,来源方候选集中包含至少一个通过该通讯号码发送通讯消息的来源方的标识。Wherein, in the implementation process of the embodiment of the present disclosure, the source party candidate set includes at least one identifier of the source party that sends the communication message through the communication number.

在步骤203中,将该通讯消息中的指定字段与至少一个来源方的标识进行匹配。In step 203, the specified field in the communication message is matched with the identifier of at least one source party.

在步骤204中,将与该指定字段相匹配的标识对应的来源方确定为发送该通讯消息的来源方。In step 204, the source party corresponding to the identifier matching the specified field is determined as the source party sending the communication message.

综上所述,本公开实施例提供的一种通讯消息来源方识别方法,通过获取通讯消息的通讯号码,根据该通讯号码获取对应的来源方候选集,将该通讯消息中的指定字段与至少一个来源方的标识进行匹配,将与该指定字段相匹配的标识对应的来源方确定为发送该通讯消息的来源方;使得用户终端能够结合来源方候选集和通讯消息中指定字段,确定用户终端接收的通讯消息的来源方;提高了识别通讯消息来源方的准确率,降低了不同消息来源方共用一个通讯号码造成的消息来源识别不准确的问题。To sum up, a method for identifying the source of a communication message provided by an embodiment of the present disclosure is to obtain a communication number of a communication message, obtain a corresponding source candidate set according to the communication number, and associate a specified field in the communication message with at least one of the source candidates. The identification of a source is matched, and the source corresponding to the identification that matches the specified field is determined as the source that sends the communication message; the user terminal can combine the source candidate set and the specified field in the communication message to determine the user terminal. The source of the received communication message; the accuracy of identifying the source of the communication message is improved, and the problem of inaccurate identification of the message source caused by the sharing of a communication number by different message sources is reduced.

图3是根据一示例性实施例示出的另一种通讯消息来源方识别方法的流程图,该通讯消息来源方识别方法可以应用在如图1所示实施环境中,该通讯消息来源方识别方法可以包括如下几个步骤:FIG. 3 is a flowchart illustrating another method for identifying a source of a communication message according to an exemplary embodiment. The method for identifying a source of a communication message can be applied in the implementation environment shown in FIG. 1 , and the method for identifying a source of a communication message It can include the following steps:

在步骤301中,服务器将通讯号码下发的通讯消息获取为待处理消息。In step 301, the server acquires the communication message issued by the communication number as a message to be processed.

在本公开实施例的一种可能实现的方式中,服务器根据用户对通讯消息的设置请求或者备份请求,备份用户终端从运营商网络中接收到的通讯消息。由于一台服务器能够为数量众多的用户终端提供通讯消息备份服务,所以该服务器能够保存大量的通讯消息备份。为了准确识别用户终端接收的同一个通讯号码发送的通讯消息的发送方,服务器需要获取该通讯号码下发的大量通讯消息。In a possible implementation manner of the embodiment of the present disclosure, the server backs up the communication message received by the user terminal from the operator's network according to the user's request for setting the communication message or the backup request. Since a server can provide a communication message backup service for a large number of user terminals, the server can save a large number of communication message backups. In order to accurately identify the sender of the communication message sent by the same communication number received by the user terminal, the server needs to obtain a large number of communication messages sent by the communication number.

需要说明的是,为了保护用户的隐私,在服务器获取该通讯号码下发的通讯消息之前,服务器可以先将该通讯消息涉及用户隐私的数据进行脱敏处理。经过脱敏处理后,该通讯消息中的接收方的通讯号码、所属的用户账号、用户的姓名等敏感信息均被删除,而该通讯消息的指定字段、下发时间、下发地区以及下发对象类型等内容得以保留。随后,经过脱敏处理的通讯消息进行后续处理。It should be noted that, in order to protect the privacy of the user, before the server obtains the communication message sent by the communication number, the server may first perform desensitization processing on the data related to the user's privacy in the communication message. After desensitization processing, sensitive information such as the recipient's communication number, user account, and user's name in the communication message will be deleted, and the specified fields, delivery time, delivery area, and delivery area of the communication message will be deleted. Object types etc. are preserved. Subsequently, the desensitized communication message undergoes subsequent processing.

在一种可能的待处理消息的获取方式中,服务器可以将通讯号码在指定下发时间区间内下发的通讯消息获取为待处理消息。其中,该指定下发时间区间可以是当前时刻之前的指定时长的时间,当服务器选择当前时刻之前的指定时长的时间获取该通讯号码发送的通讯消息时,服务器可以获取到该通讯号码发送的最新的通讯消息。例如,当前时刻是11月13日10时24分,服务器可以获取该时刻前七日内的一个通讯号码123456下发的所有通讯消息。或者,该指定下发时间区间也可以是指定的某段时间内下发的通讯消息,例如,选择当前时刻之前的七天内每一天中8:00到17:00的时间段内的下发的通讯消息。In a possible way of acquiring the message to be processed, the server may acquire the communication message delivered by the communication number within the specified delivery time interval as the message to be processed. The specified delivery time interval may be a specified time period before the current time. When the server selects a specified time period before the current time to acquire the communication message sent by the communication number, the server can obtain the latest information sent by the communication number. communication message. For example, if the current time is 10:24 on November 13, the server can obtain all communication messages sent by a communication number 123456 within seven days before the time. Alternatively, the specified delivery time interval may also be a communication message delivered within a specified period of time. For example, select a message delivered within the time period from 8:00 to 17:00 every day in the seven days before the current moment. communication message.

在另一种可能的待处理消息的获取方式中,服务器可以将通讯号码下发的指定数量的通讯消息获取为待处理消息。在该获取方式中,服务器可以获取该通讯号码下发的M条通讯消息作为待处理消息,M的数值可以由服务器的开发维护人员设定,也可以由服务器根据当前消息数量自行确定。例如,服务器可以获取当前存储的该通讯号码发送的通讯消息中,指定一定比例数量的通讯消息作为待处理消息,比如服务器中存储的该通讯号码发送的全部通讯消息中,随机40%数量的通讯消息作为待处理消息。In another possible way of obtaining the messages to be processed, the server may obtain a specified number of communication messages issued by the communication number as the messages to be processed. In this acquisition method, the server can acquire M communication messages issued by the communication number as pending messages, and the value of M can be set by the developer and maintainer of the server, or can be determined by the server according to the current number of messages. For example, the server can obtain the currently stored communication messages sent by the communication number and designate a certain proportion of the communication messages as pending messages, for example, among all the communication messages sent by the communication number stored in the server, a random 40% number of communication messages messages as pending messages.

在又一种可能的待处理消息的获取方式中,服务器可以将该通讯号码下发的属于同样的下发地区的通讯消息获取为待处理消息。该下发地区指该通讯消息的接收方的通讯号码的归属地。例如,A快递企业使用通讯号码给用户B发送了通讯消息,用户B的通讯号码的归属地是上海市,则该A快递企业发送的本条通讯消息的下发地区是上海市。In another possible way of obtaining the message to be processed, the server may obtain the communication message issued by the communication number and belonging to the same delivery area as the message to be processed. The delivery area refers to the attribution of the communication number of the recipient of the communication message. For example, if express company A sends a communication message to user B using its communication number, and user B's communication number belongs to Shanghai, the delivery area of this communication message sent by express company A is Shanghai.

在还一种可能的待处理消息的获取方式中,服务器可以将该通讯号码下发的属于同样的下发对象类型的通讯消息获取为待处理消息,该下发对象类型指接收该通讯号码下发的通讯消息的用户的类型,例如是该用户的职业、性别或年龄区间等类型信息。例如,服务器可以选择通讯消息的下发对象是办公室职员,将发送给办公室职员的通讯消息获取为待处理消息。In yet another possible way of obtaining the message to be processed, the server may obtain the communication message that belongs to the same type of delivery object sent by the communication number as the message to be processed, and the type of the delivered object refers to receiving the communication number under the communication number. The type of the user who sent the communication message, for example, type information such as the user's occupation, gender, or age range. For example, the server may select the communication message to be delivered to an office employee, and obtain the communication message sent to the office employee as a pending message.

对于上述各种待处理消息的获取方式,服务器也可以结合其中多个获取方式来获取待处理消息。例如,服务器可以获取一个通讯号码在指定下发时间区间内且属于同样的下发地区发送的通讯消息为待处理消息。本公开实施例并不对实际待处理消息的获取方式进行限制。For the above various ways of obtaining messages to be processed, the server may also obtain the messages to be processed in combination with multiple obtaining ways. For example, the server may obtain a communication message sent by a communication number within a specified delivery time interval and belonging to the same delivery area as a pending message. The embodiment of the present disclosure does not limit the acquisition manner of the actual message to be processed.

在步骤302中,服务器将该待处理消息中的指定字段,确定为来源方候选集的元素。In step 302, the server determines the specified field in the to-be-processed message as an element of the source candidate set.

服务器在获取到待处理消息后,将待处理消息中的每一条通讯消息中的指定字段提取出来,将互不重复的指定字段获取为来源方候选集的元素,互不重复的指定字段组成该来源方候选集。该来源方候选集是一个集合,集合中的元素包含至少一个该消息的来源方的标识,每一个通讯消息的来源方的标识为可以用来表示该通讯消息的来源方的关键字或图案等,该通讯消息的来源方指发送该通讯消息的个人、组织、团体、公司或商家等通讯消息所有者的名称。After obtaining the message to be processed, the server extracts the specified fields in each communication message in the messages to be processed, and obtains the specified fields that are not repeated to each other as elements of the source candidate set, and the specified fields that are not repeated to each other form the The source candidate set. The source candidate set is a set, and the elements in the set include at least one identifier of the source of the message, and the identifier of the source of each communication message is a keyword or pattern that can be used to represent the source of the communication message, etc. , the source of the communication message refers to the name of the owner of the communication message such as the individual, organization, group, company or business that sends the communication message.

可选的,服务器可以根据该来源方候选集中各个元素在上述待处理消息中对应的消息的数目,确定该来源方候选集中各个元素的优先级,每一个元素的优先级即为一个消息的来源方的标识的优先级。例如,待处理消息一共有五万条,其中两万三千条中的指定字段对应的是候选集中的元素“xx快递”,两万五千条中的指定字段对应的是候选集中的元素“xx到家货运”,一千五百条中的指定字段对应的是候选集中的元素“xx精选”,另外五百条是无法识别出指定字段的待处理消息。因此,该来源方候选集中的各个元素的优先级从高到低依次为“xx到家货运”、“xx快递”和“xx精选”。下表一示出了该来源方候选集的三个元素以及相对的优先级高低。Optionally, the server may determine the priority of each element in the source candidate set according to the number of messages corresponding to each element in the source candidate set in the above-mentioned messages to be processed, and the priority of each element is the source of a message. The priority of the party's identity. For example, there are a total of 50,000 messages to be processed, of which the specified fields in the 23,000 messages correspond to the element "xx express" in the candidate set, and the specified fields in the 25,000 messages correspond to the elements in the candidate set " xx home delivery", the specified field in the 1,500 items corresponds to the element "xx selection" in the candidate set, and the other 500 items are pending messages for which the specified field cannot be identified. Therefore, the priority of each element in the source candidate set is "xx home delivery", "xx express" and "xx selection" in order from high to low. Table 1 below shows the three elements of the source candidate set and their relative priorities.

表一Table I

元素名称element name xx精选xx Featured xx到家货运xx home delivery xx快递xx express 关联条数number of associations 15001500 2500025000 2300023000 优先级priority CC AA BB

其中,表一所示的来源方候选集中共含有三个元素,“关联条数”表示在一次统计中某个元素对应的待处理消息的条数,优先级A高于优先级B高于优先级C。Among them, the source candidate set shown in Table 1 contains a total of three elements, and the "number of associations" indicates the number of pending messages corresponding to an element in one statistic. Priority A is higher than priority B and priority is higher than priority B. Grade C.

在步骤303中,用户终端接收运营商网络下发的通讯消息。In step 303, the user terminal receives the communication message delivered by the operator's network.

用户终端在保持待机状态时,或者说保持与运营商网络正常通信的情况下,可以接收到通讯消息来源方通过运营商网络发送的通讯消息。该通讯消息可以是短信或彩信,该通讯消息中包含有文本信息。When the user terminal maintains the standby state, or maintains normal communication with the operator's network, the user terminal can receive the communication message sent by the communication message source through the operator's network. The communication message may be a short message or a multimedia message, and the communication message includes text information.

在步骤304中,用户终端获取通讯消息的通讯号码。In step 304, the user terminal obtains the communication number of the communication message.

用户终端在接收到该通讯消息后,可以从该通讯消息中获取发送该通讯消息的通讯号码。若该通讯消息是被编码后的形式,用户终端可先对该通讯消息进行解码,在解码后获取发送该通讯消息的通讯号码。该通讯号码可以是短信息平台的号码,也可以是终端用户的手机号码,还可以是公共信息平台的信息短号。例如,上述短信息平台的号码可以是一个快递公司的短信息平台号码012345678910,也可以是一个用户的手机号码132xxxx1234,还可以是一个公共信息平台短号12345。After receiving the communication message, the user terminal can obtain the communication number for sending the communication message from the communication message. If the communication message is in an encoded form, the user terminal can decode the communication message first, and obtain the communication number for sending the communication message after decoding. The communication number may be the number of the short message platform, the mobile phone number of the terminal user, or the message short number of the public information platform. For example, the number of the above-mentioned short message platform may be the short message platform number 012345678910 of a courier company, the mobile phone number 132xxxx1234 of a user, or the short number 12345 of a public information platform.

其中,在本公开提供的实施例的一种能够实现的方式中,当用户终端接收到展示包含该通讯消息的消息列表的指令时,该用户终端获取该通讯号码。例如,用户点击作为用户终端的手机中的短信信箱图标时,相当于该用户终端接收到展示包含该通讯消息的消息列表的指令,此时,用户终端获取该通讯号码。Wherein, in an implementable manner of the embodiments provided by the present disclosure, when the user terminal receives an instruction to display a message list including the communication message, the user terminal obtains the communication number. For example, when the user clicks the SMS mailbox icon in the mobile phone as the user terminal, it means that the user terminal receives an instruction to display a message list including the communication message, and at this time, the user terminal obtains the communication number.

在本公开提供的实施例的另一种能够实现的方式中,用户终端在接收到该通讯消息时,获取该通讯消息的通讯号码。在该实现方式中,用户终端接收到一条通讯消息后,即可获取发送该通讯消息的通讯号码。In another implementation manner of the embodiments provided by the present disclosure, when receiving the communication message, the user terminal obtains the communication number of the communication message. In this implementation manner, after receiving a communication message, the user terminal can obtain the communication number for sending the communication message.

可选的,该通讯号码也可以是能够唯一标识消息来源方名称的字符串,比如邮箱地址或即时通讯软件账号。Optionally, the communication number may also be a character string that can uniquely identify the name of the source of the message, such as an email address or an instant messaging software account.

在步骤305中,用户终端根据该通讯号码获取对应的来源方候选集,该来源方候选集中包含至少一个通过该通讯号码发送通讯消息的来源方的标识。In step 305, the user terminal obtains a corresponding source candidate set according to the communication number, and the source candidate set includes at least one identifier of a source that sends a communication message through the communication number.

用户终端在获取到该下发该消息的通讯号码后,需要根据该通讯号码获取对应的来源方候选集。After acquiring the communication number for delivering the message, the user terminal needs to acquire the corresponding source candidate set according to the communication number.

其中,用户终端获取该来源方候选集的途径包括但不限于从本地存储中获取以及从服务器中获取。若用户终端从服务器中获取该通讯号码对应的来源方候选集,则步骤305可以被步骤305a1至步骤305a3替代;若用户终端从本地存储获取该通讯号码对应的来源方候选集,则步骤305可以被步骤305b1和步骤305b2替代。Wherein, the ways for the user terminal to obtain the source candidate set include, but are not limited to, obtaining from local storage and obtaining from a server. If the user terminal obtains the source candidate set corresponding to the communication number from the server, step 305 can be replaced by steps 305a1 to 305a3; if the user terminal obtains the source candidate set corresponding to the communication number from the local storage, step 305 can be Replaced by step 305b1 and step 305b2.

在步骤305a1中,用户终端向服务器发送包含该通讯号码的候选集获取请求,该候选集获取请求用于获取该通讯号码对应的来源方候选集。In step 305a1, the user terminal sends a candidate set acquisition request including the communication number to the server, where the candidate set acquisition request is used to acquire the source candidate set corresponding to the communication number.

用户终端向服务器发送的候选集获取请求,该候选集获取请求中包含该通讯号码,使得服务器能够获取该通讯号码。可选的,候选集获取请求中还可以包括用户终端获取来源方候选集的密码。The candidate set acquisition request sent by the user terminal to the server, the candidate set acquisition request includes the communication number, so that the server can acquire the communication number. Optionally, the candidate set acquisition request may further include a password for the user terminal to acquire the source candidate set.

相应的,服务器接收用户终端发送的候选集获取请求。Correspondingly, the server receives the candidate set acquisition request sent by the user terminal.

在步骤305a2中,服务器根据该候选集获取请求确定该通讯号码对应的来源方候选集。In step 305a2, the server determines the source candidate set corresponding to the communication number according to the candidate set acquisition request.

服务器中存储有各个通讯号码对应的来源方候选集,当服务器获取到该候选集获取请求中后,解析该候选集获取请求获得该通讯号码,以该通讯号码为依据,获取其对应的来源方候选集。可选的,若候选集获取请求中包含用户终端获取来源方候选集的密码,则服务器在该密码和通讯号码的组合通过验证后,再根据该通讯号码获取其对应的来源方候选集。The source party candidate set corresponding to each communication number is stored in the server. After the server obtains the candidate set acquisition request, it parses the candidate set acquisition request to obtain the communication number, and obtains the corresponding source party based on the communication number. candidate set. Optionally, if the request for obtaining the candidate set includes the password for the user terminal to obtain the source candidate set, the server obtains the corresponding source candidate set according to the communication number after the combination of the password and the communication number is verified.

在步骤305a3中,服务器向该用户终端发送候选集下发响应,该候选集下发响应中包含该通讯号码对应的来源方候选集。In step 305a3, the server sends a candidate set delivery response to the user terminal, where the candidate set delivery response includes the source candidate set corresponding to the communication number.

上述候选集下发响应是服务器针对用户终端发送的候选集获取请求的反馈消息,该候选集下发响应中包含有候选集获取请求所请求获取的来源方候选集。可选的,若服务器根据候选集获取请求中的通讯号码没有查找到对应的来源方候选集,则在候选集下发响应中不含有与该通讯号码对应的来源方候选集,而含有一条提示消息,该提示消息用于提示该用户终端在该服务器中不存在与该通讯号码对应的来源方候选集。The above-mentioned candidate set delivery response is a feedback message sent by the server to the candidate set acquisition request sent by the user terminal, and the candidate set delivery response includes the source candidate set requested by the candidate set acquisition request. Optionally, if the server does not find the corresponding source candidate set according to the communication number in the candidate set acquisition request, the candidate set delivery response does not contain the source candidate set corresponding to the communication number, but contains a prompt. message, the prompt message is used to prompt the user terminal that there is no source candidate set corresponding to the communication number in the server.

相应的,用户终端接收服务器发送的候选集下发响应。Correspondingly, the user terminal receives the candidate set delivery response sent by the server.

在步骤305b1中,用户终端根据该通讯号码从本地存储中查询对应的来源方候选集。In step 305b1, the user terminal queries the corresponding source candidate set from the local storage according to the communication number.

其中,本地存储位于用户终端中的存储组件,其用于保存该来源方候选集,该本地存储可以是ROM(Read-Only Memory,只读存储器),也可以是其它具有存储功能的电子元件。Wherein, the local storage is a storage component located in the user terminal, which is used to save the source candidate set, and the local storage may be a ROM (Read-Only Memory, read-only memory) or other electronic components with a storage function.

需要特别说明的是,本地存储的来源方候选集可以由服务器按一定的时间规则下发。比如,服务器周期性更新用户终端中的来源方候选集。或者,服务器在用户终端的操作系统进行升级时更新用户终端中的来源方候选集。或者,服务器在数据库进行升级时更新用户终端中的来源方候选集。It should be noted that the locally stored source candidate set may be delivered by the server according to a certain time rule. For example, the server periodically updates the source candidate set in the user terminal. Or, the server updates the source candidate set in the user terminal when the operating system of the user terminal is upgraded. Alternatively, the server updates the source candidate set in the user terminal when the database is upgraded.

可选的,本地存储的来源方候选集还可以是用户终端在出厂时直接写入或者烧录在存储组件中的数据。Optionally, the locally stored source candidate set may also be data directly written or burned in the storage component by the user terminal when it leaves the factory.

在步骤305b2中,当本地存储中含有与该通讯号码对应的来源方候选集时,用户终端获取该来源方候选集。In step 305b2, when the local storage contains the source candidate set corresponding to the communication number, the user terminal obtains the source candidate set.

可选的,用户终端也可以按照实际工作需求,从本地存储或服务器中获取上述来源方候选集。比如,在本公开实施例的一种可能实现的方式中,用户终端先执行步骤305b1和步骤305b2,当检测到从本地存储中无法获取该来源方候选集时,和服务器配合执行步骤305a1至步骤305a3,以获取来源方候选集。Optionally, the user terminal may also obtain the above-mentioned source candidate set from a local storage or a server according to actual work requirements. For example, in a possible implementation manner of the embodiment of the present disclosure, the user terminal first executes steps 305b1 and 305b2, and when detecting that the source candidate set cannot be obtained from the local storage, cooperates with the server to execute steps 305a1 to 305a1 305a3, to obtain the source candidate set.

或者,在本公开实施例的另一种可能实现的方式中,用户终端先和服务器配合执行步骤305a1至步骤305a3,当检测到与该服务器的通信(有线网络或者无线网络)出现故障时,执行步骤305b1和步骤305b2。Or, in another possible implementation manner of the embodiment of the present disclosure, the user terminal first cooperates with the server to perform steps 305a1 to 305a3, and when it is detected that the communication with the server (wired network or wireless network) fails, execute Step 305b1 and Step 305b2.

由上述内容可知,本公开实施例并不限定用户终端获取通讯号码对应的来源方候选集的方式。It can be seen from the above content that the embodiments of the present disclosure do not limit the manner in which the user terminal obtains the source candidate set corresponding to the communication number.

在步骤306中,用户终端提取通讯号码发送的通讯消息中的指定字段。In step 306, the user terminal extracts the specified field in the communication message sent by the communication number.

在本公开实施例中,用户终端提取的指定字段是处于该通讯消息的内容中的指定位置的字段,或者满足预定的字符格式的字段,或者处于该通讯消息的内容中的指定位置且满足预定的字符格式的字段。In the embodiment of the present disclosure, the specified field extracted by the user terminal is a field located in a specified position in the content of the communication message, or a field that satisfies a predetermined character format, or is located in a specified position in the content of the communication message and satisfies a predetermined position field in character format.

在本公开实施例提供的一种能够实现的方式中,指定字段为该通讯消息的内容中的指定位置的字段。其中,该指定字段可以是该通讯消息中的开头处的指定个数的字符内表示的字段,也可以是该通讯消息中的结尾处的指定个数的字符内表示的字段,还可以是该通讯消息中的指定位置区间内的字符表示的字段,例如一个消息中的第五个字符到第十二个字符的字符串表示的字段。In an implementable manner provided by the embodiment of the present disclosure, the specified field is a field of a specified position in the content of the communication message. Wherein, the specified field may be a field represented by a specified number of characters at the beginning of the communication message, or a field represented by a specified number of characters at the end of the communication message, or the specified number of characters. A field represented by a character within a specified position interval in a communication message, for example, a field represented by a string of characters from the fifth to the twelfth character in a message.

在本公开实施例提供的另一种能够实现的方式中,指定字段也可以是满足预定的字符格式的字段,预定的字符格式的字段可以是一个指定的字符之后的固定长度的字段,或者一个指定的字符之前的固定长度的字段,或者两个预定字符之间的字段等字符格式。其中,两个预定字符之间的字段等字符格式可以是位于字符“【”和字符“】”之间的字段。In another implementation manner provided by the embodiment of the present disclosure, the specified field may also be a field that satisfies a predetermined character format, and the predetermined character format field may be a fixed-length field following a specified character, or a A fixed-length field before the specified character, or a character format such as a field between two predetermined characters. The character format such as a field between two predetermined characters may be a field between the characters "[" and the characters "]".

在本公开实施例提供的又一种能够实现的方式中,指定字段也可以是同时满足预定的字符格式的字段且在两个指定字符之间条件的字段。用户终端在提取该指定字段时,可以从该通讯消息的开头或者结尾处查找满足预定的字符格式的字符,当用户终端查找到满足预定字符格式的字符后,将满足预定字符格式的字符对应的字段获取为指定字段。In another implementation manner provided by the embodiment of the present disclosure, the specified field may also be a field that satisfies a predetermined character format at the same time and a field that has a condition between two specified characters. When extracting the specified field, the user terminal can search for characters that satisfy the predetermined character format from the beginning or the end of the communication message. Field is obtained as the specified field.

在步骤307中,用户终端将该通讯消息中的指定字段与该来源方候选集中的至少一个该通讯消息的来源方的标识进行匹配。In step 307, the user terminal matches the specified field in the communication message with the identifier of the source of at least one source of the communication message in the source candidate set.

该消息中的指定字段与至少一个该消息的来源方的标识匹配成功,则执行步骤308;若该消息中的指定字段与至少一个该消息的来源方的标识匹配失败,则执行步骤309。If the specified field in the message successfully matches the identifier of at least one source of the message, step 308 is performed; if the specified field in the message fails to match with the identifier of at least one source of the message, step 309 is performed.

例如,用户终端获取的一个通讯号码对应的来源方候选集是:{xx快递,xx送货到家,xx取件通知},同时该用户终端中的通讯消息是“尊敬的A先生,您好:您有一个订单号为2468108642的快递已经送达至温馨小区一号储物柜,请凭取件码112233取件【xx取件通知】”。此时,用户终端将该来源方候选集中的三个元素依次和该消息中提取出的指定字段“xx取件通知”进行匹配,结果是匹配成功,该来源方候选集中存在和指定字段“xx取件通知”相同的元素。For example, the source candidate set corresponding to a communication number obtained by the user terminal is: {xx express, xx home delivery, xx pickup notice}, and the communication message in the user terminal is "Dear Mr. A, hello: You have a courier with order number 2468108642 that has been delivered to the No. 1 locker of Wenxin Community, please use the pickup code 112233 to pick up [xx pickup notice]". At this time, the user terminal sequentially matches the three elements in the source candidate set with the specified field "xx pickup notification" extracted from the message. The result is that the matching is successful, and the specified field "xx" exists in the source candidate set. Pickup Notification" same element.

可选的,基于上述通讯号码对应的来源方候选集是:{xx快递,xx送货到家,xx取件通知}的示例,当用户终端收到的消息是“尊敬的A先生,您好:你有一个订单号为2468108642的快递已经送达至温馨小区一号储物柜,请您凭取件码112233取件【xx物流】”。此时,用户终端将该来源方候选集中的三个元素依次和该消息中提取出的指定字段“xx物流”进行匹配,结果是匹配失败,该来源方候选集中不存在和指定字段“xx物流”相同的元素。需要说明的是,上述通讯消息中的订单号和取件码仅为举例说明,并不表示现实世界中实际的数字编码,或与现实世界中实际的数字编码产生关联。Optionally, the source candidate set corresponding to the above communication number is: {xx express, xx home delivery, xx pickup notice}, when the message received by the user terminal is "Dear Mr. A, hello: You have a courier with order number 2468108642 that has been delivered to the No. 1 locker in Wenxin Community, please pick up the item with the pickup code 112233 [xx logistics]". At this time, the user terminal sequentially matches the three elements in the source candidate set with the specified field "xx logistics" extracted from the message. The result is that the matching fails, and the specified field "xx logistics" does not exist in the source candidate set. "The same element. It should be noted that the order number and the pickup code in the above communication message are for illustration only, and do not represent the actual digital code in the real world, or are related to the actual digital code in the real world.

可选的,用户终端还可以先获取该来源方候选集中各个元素的优先级,按照该候选集中的各个元素的优先级从高到低的顺序,与该通讯号码发送的通讯消息中的指定字段进行匹配。例如上述通讯号码对应的来源方候选集是:{xx快递,xx送货到家,xx取件通知}。此时,用户终端会获取该来源方候选集中的来源方的标识的优先级,该优先级的信息可以包含在上述来源方候选集中,也可以存储在其它位置。在本例中,该候选集中的各个元素的优先级高低分别是“xx快递”高于“xx送货到家”高于“xx取件通知”,则用户终端首先将优先级最高的“xx快递”与该消息中的指定字段匹配,如果不匹配,则与其余元素中优先级最高的元素匹配,这里是“xx送货到家”,在本例中该两次匹配都不成功,第三次匹配与“xx取件通知”匹配,此次匹配成功。上述操作实现了用户终端将至少一个来源方的标识与该通讯消息中的指定字段进行匹配的过程。Optionally, the user terminal can also first obtain the priority of each element in the source candidate set, and according to the order of the priority of each element in the candidate set from high to low, communicate with the specified field in the communication message sent by the communication number. to match. For example, the source candidate set corresponding to the above communication number is: {xx express, xx home delivery, xx pickup notice}. At this time, the user terminal will obtain the priority of the source party identifiers in the source party candidate set, and the priority information may be included in the above-mentioned source party candidate set, or may be stored in another location. In this example, the priority level of each element in the candidate set is that "xx express" is higher than "xx home delivery" is higher than "xx pick-up notification", then the user terminal will first place the highest priority "xx express" "matches the specified field in the message, if not, it matches the element with the highest priority among the remaining elements, here is "xx home delivery", in this case the two matches are unsuccessful, the third time The match is matched with "xx pickup notification", and this match is successful. The above operation realizes the process of matching the identifier of at least one source party with the specified field in the communication message by the user terminal.

在步骤308中,用户终端将该通讯消息中的指定字段识别为该通讯消息的来源方的标识。In step 308, the user terminal identifies the specified field in the communication message as an identifier of the source of the communication message.

用户终端将成功识别出的指定字段确定为该消息的来源方的标识,或者,用户终端提取该来源方候选集中与该指定字段匹配成功的元素作为该通讯消息的来源方的标识。上述两种实现途径最终得到的该通讯消息的来源方的标识是相同的,区别在于获取途径不同,本公开实施例中的用户终端可以通过上述任意一种获取途径得到该通讯消息的来源方的标识。The user terminal determines the successfully identified specified field as the identifier of the source of the message, or the user terminal extracts the element in the source candidate set that successfully matches the specified field as the identifier of the source of the communication message. The identification of the source of the communication message finally obtained by the above two implementation methods is the same, and the difference lies in the different acquisition methods. The user terminal in the embodiment of the present disclosure can obtain the source of the communication message through any of the above acquisition methods. logo.

在步骤309中,用户终端确定通讯消息来源方识别失败,结束通讯消息来源方的识别流程。In step 309, the user terminal determines that the identification of the source of the communication message fails, and ends the identification process of the source of the communication message.

用户终端确定在该来源方候选集中的元素与上述通讯号码下发的消息中的指定字段均不匹配时,确定通讯消息来源方识别失败,结束通讯消息来源方的识别流程。When the user terminal determines that the elements in the source candidate set do not match the specified fields in the message issued by the communication number, it determines that the identification of the source of the communication message fails, and ends the identification process of the source of the communication message.

在步骤310中,用户终端在展示包含该通讯消息的消息列表时,对应该通讯消息展示与该指定字段相匹配的标识。In step 310, when displaying the message list including the communication message, the user terminal displays an identifier matching the specified field corresponding to the communication message.

用户终端在展示包含该通讯消息的消息列表时,该通讯消息与该指定字段匹配的标识可以对应显示在该通讯消息的标题栏中。或者,该与该指定字段相匹配的标识还可以展示在该通讯消息出现的提示框、预览框或者通知栏等任意能够展示该通讯消息的控件中。其中,该标识实际展示的位置可以是原先上述控件中显示下发该消息的通讯号码的位置。该标识可以在接收到用户的指定操作后显示,例如,该消息的提示框、预览框、通知栏或者消息列表中,被用户点击或者按压后,显示该消息的来源方的名称。When the user terminal displays a message list including the communication message, the identification of the communication message that matches the specified field may be correspondingly displayed in the title bar of the communication message. Alternatively, the identifier matching the specified field may also be displayed in any control capable of displaying the communication message, such as a prompt box, a preview box, or a notification bar that appears in the communication message. Wherein, the actual position where the logo is displayed may be the position where the communication number for delivering the message is displayed in the above-mentioned control. The identifier can be displayed after receiving a specified operation by the user, for example, in the prompt box, preview box, notification bar or message list of the message, after being clicked or pressed by the user, the name of the source of the message is displayed.

综上所述,本公开实施提供的一种通讯消息来源方识别方法,通过服务器将通讯号码发送的通讯消息获取为待处理消息,将该待处理消息中的指定字段确定为来源方候选集的元素,建立来源方候选集,用户终端获取通讯消息的通讯号码,服务器根据该通讯号码查找到相对应的来源方候选集,并将对应于该通讯号码的来源方候选集发送给用户终端,用户终端将该通讯号码发送的通讯消息中的指定字段和该来源候选集中的各个元素进行匹配,其中,用户终端可以按照标识的优先级顺序与来源方候选集中的元素进行匹配,当其中的元素,即至少一个通讯消息的来源方的标识与该通讯号码发送的消息的指定字段相匹配时,将该通讯消息中的指定字段识别为该通讯消息来源方的标识;使得用户终端能够结合来源方候选集和通讯消息中指定字段,确定用户终端接收的通讯消息的来源方;提高了识别通讯消息来源方的准确率,降低了不同消息来源方共用一个通讯号码造成的消息来源识别不准确的问题。To sum up, the present disclosure provides a method for identifying the source of a communication message. The server obtains a communication message sent by a communication number as a message to be processed, and determines a specified field in the message to be processed as a source candidate set. element, establish a source candidate set, the user terminal obtains the communication number of the communication message, the server finds the corresponding source candidate set according to the communication number, and sends the source candidate set corresponding to the communication number to the user terminal, the user The terminal matches the specified field in the communication message sent by the communication number with each element in the source candidate set, wherein the user terminal can match the elements in the source candidate set according to the priority order of the identification. That is, when the identification of the source of at least one communication message matches the specified field of the message sent by the communication number, the specified field in the communication message is identified as the identification of the source of the communication message; so that the user terminal can combine the source candidate Sets and specified fields in the communication message to determine the source of the communication message received by the user terminal; improves the accuracy of identifying the source of the communication message, and reduces the problem of inaccurate identification of the message source caused by different message sources sharing a communication number.

另外,由于服务器可以通过该通讯号码对应的下发时间、下发地区以及下发对象类型确定待处理消息,进而通过统计该待处理消息中的指定字段生成来源方候选集,使得服务器生成的来源方候选集能够较有针对性满足用户终端的需求。例如,用户终端均是上海地区的用户,则服务器可以将下发地区选择为上海,使得相应生成的消息来源候选集能够与相应的用户终端相关性更高;达到了提高用户终端识别消息来源的准确性的效果。In addition, because the server can determine the message to be processed through the delivery time, delivery area, and delivery object type corresponding to the communication number, and then generates a source candidate set by counting the specified fields in the pending message, so that the source generated by the server The party candidate set can be more targeted to meet the needs of the user terminal. For example, if the user terminals are all users in the Shanghai area, the server can select Shanghai as the delivery area, so that the corresponding generated message source candidate set can be more relevant to the corresponding user terminal; thus improving the ability of the user terminal to identify the source of the message effect of accuracy.

另外,由于服务器可以在确定来源方候选集中的元素后,通过上述元素在候选集中出现的次数的多少确定该元素的优先级,且用户终端将优先级较高的元素先与消息中的指定字段进行匹配,使得用户终端有较高可能性通过较少的匹配次数识别出消息的来源方,加快了用户终端识别消息来源方的速度。In addition, after determining the element in the source candidate set, the server can determine the priority of the element according to the number of times the above-mentioned element appears in the candidate set, and the user terminal associates the element with higher priority with the specified field in the message first. By performing matching, the user terminal has a higher possibility to identify the source of the message through fewer matching times, which speeds up the speed at which the user terminal identifies the source of the message.

图4是根据一示例性实施例示出的一种通讯消息来源方识别装置的框图,该通讯消息来源方识别装置可通过硬件电路或者软硬件相结合的方式组合形成为用户终端110的全部或者部分,该通讯消息来源方识别装置可以包括:号码获取模块401、候选集获取模块402、字段匹配模块403和来源方确定模块404。FIG. 4 is a block diagram of a communication message source identification device according to an exemplary embodiment. The communication message source identification device can be formed as all or part of the user terminal 110 through a combination of hardware circuits or software and hardware. , the communication message source identification device may include: a number acquisition module 401 , a candidate set acquisition module 402 , a field matching module 403 and a source determination module 404 .

号码获取模块401,被配置为获取通讯消息的通讯号码。The number obtaining module 401 is configured to obtain the communication number of the communication message.

候选集获取模块402,被配置为根据该通讯号码获取对应的来源方候选集,该来源方候选集中包含至少一个通过该通讯号码发送通讯消息的来源方的标识。The candidate set obtaining module 402 is configured to obtain a corresponding source candidate set according to the communication number, where the source candidate set includes at least an identifier of a source that sends a communication message through the communication number.

字段匹配模块403,被配置为将该通讯消息中的指定字段与该至少一个来源方的标识进行匹配。The field matching module 403 is configured to match the specified field in the communication message with the identifier of the at least one source party.

来源方确定模块404,被配置为将与该指定字段相匹配的标识对应的来源方确定为发送该通讯消息的来源方。The source determination module 404 is configured to determine the source corresponding to the identifier matching the specified field as the source for sending the communication message.

可选的,在本公开的一种实现方式,该字段匹配模块403,包括:Optionally, in an implementation manner of the present disclosure, the field matching module 403 includes:

优先级获取子模块403a,被配置为获取该至少一个来源方的标识的优先级;a priority obtaining sub-module 403a, configured to obtain the priority of the identifier of the at least one source;

字段匹配子模块403b,被配置为按照该至少一个来源方的标识的优先级,将该至少一个来源方的标识与该通讯消息中的指定字段进行匹配。The field matching sub-module 403b is configured to match the identification of the at least one source with a specified field in the communication message according to the priority of the identification of the at least one source.

可选的,在本公开的另一种实现方式,该候选集获取模块402,包括:Optionally, in another implementation manner of the present disclosure, the candidate set obtaining module 402 includes:

发送子模块402a,被配置为向服务器发送包含该通讯号码的候选集获取请求,该候选集获取请求用于获取该通讯号码对应的该来源方候选集;The sending submodule 402a is configured to send a candidate set acquisition request including the communication number to the server, where the candidate set acquisition request is used to acquire the source candidate set corresponding to the communication number;

接收子模块402b,被配置为接收该服务器返回的候选集下发响应,该候选集下发响应中包含该通讯号码对应的该来源方候选集。The receiving sub-module 402b is configured to receive a candidate set delivery response returned by the server, where the candidate set delivery response includes the source candidate set corresponding to the communication number.

可选的,在本公开的又一种实现方式,该候选集获取模块403,包括:本地获取子模块402c,被配置为根据该通讯号码,从本地存储中查询对应的该来源方候选集。Optionally, in another implementation manner of the present disclosure, the candidate set obtaining module 403 includes: a local obtaining sub-module 402c, which is configured to query the corresponding source candidate set from the local storage according to the communication number.

可选的,在本公开的再一种实现方式,该号码获取模块401,还被配置为当接收到展示包含该通讯消息的消息列表的指令时,获取该通讯消息的通讯号码;或者,当接收到该通讯消息时,获取该通讯消息的通讯号码。Optionally, in yet another implementation manner of the present disclosure, the number obtaining module 401 is further configured to obtain the communication number of the communication message when receiving an instruction to display a message list including the communication message; or, when When the communication message is received, the communication number of the communication message is obtained.

可选的,该通讯消息中的指定字段包括:Optionally, the specified fields in the communication message include:

处于该通讯消息的内容中的指定位置的字段;a field at a specified position in the content of the communication message;

和/或,满足预定的字符格式的字段。And/or, a field that satisfies a predetermined character format.

可选的,在本公开的还一种实现方式,该装置还包括:Optionally, in another implementation manner of the present disclosure, the device further includes:

展示模块405,被配置为在展示包含该通讯消息的消息列表时,对应该通讯消息展示与该指定字段相匹配的标识。The display module 405 is configured to display an identifier matching the specified field corresponding to the communication message when the message list containing the communication message is displayed.

综上所述,本公开实施例提供的一种通讯消息来源方识别装置,通过获取通讯消息的通讯号码,根据该通讯号码获取对应的来源方候选集,该来源方候选集中包含至少一个通过该通讯号码发送通讯消息的来源方的标识,将该消息中的指定字段与该至少一个来源方的标识进行匹配,将与该指定字段相匹配的标识对应的来源方确定为发送该通讯消息的来源方;使得用户终端能够结合来源方候选集和通讯消息中指定字段,确定用户终端接收的通讯消息的来源方;提高了识别通讯消息来源方的准确率,降低了不同消息来源方共用一个通讯号码造成的消息来源识别不准确的问题。To sum up, an apparatus for identifying the source of a communication message provided by an embodiment of the present disclosure obtains a corresponding source candidate set according to the communication number by acquiring the communication number of the communication message, and the source candidate set includes at least one source through the communication number. The identification of the source of the communication message sent by the communication number, the specified field in the message is matched with the identification of the at least one source, and the source corresponding to the identification matching the specified field is determined as the source of the communication message. It enables the user terminal to determine the source of the communication message received by the user terminal in combination with the source candidate set and the specified fields in the communication message; improves the accuracy of identifying the source of the communication message and reduces the sharing of a communication number by different message sources Problems caused by inaccurate identification of sources.

另外,由于用户终端可以向服务器发送候选集获取请求,进而通过服务器返回的候选集下发响应获得来源方候选集,所以使得用户终端可以获取最新的候选集,令用户终端识别通讯消息的来源方更具有时效性。In addition, since the user terminal can send a candidate set acquisition request to the server, and then obtain the source candidate set through the candidate set delivery response returned by the server, the user terminal can obtain the latest candidate set, so that the user terminal can identify the source of the communication message. more timely.

另外,由于用户终端可以从本地获取来源方候选集,所以使得用户在无法与服务器通信的情况下,也能够较为准确地识别出通讯消息的来源方,提高了用户终端识别通讯消息的来源方时的抗干扰能力。In addition, since the user terminal can obtain the source party candidate set locally, the user can more accurately identify the source party of the communication message even if the user cannot communicate with the server, which improves the time when the user terminal identifies the source party of the communication message. anti-interference ability.

本公开一示例性实施例还提供了一种通讯消息来源方识别装置,能够实现本公开提供的通讯消息来源方识别方法。该装置包括:处理器,以及用于存储处理器的可执行指令的存储器。其中,处理器被配置为:An exemplary embodiment of the present disclosure also provides an apparatus for identifying a source of a communication message, which can implement the method for identifying a source of a communication message provided by the present disclosure. The apparatus includes a processor, and a memory for storing executable instructions for the processor. where the processor is configured as:

获取通讯消息的通讯号码;Get the communication number of the communication message;

根据所述通讯号码获取对应的来源方候选集,所述来源方候选集中包含至少一个通过所述通讯号码发送通讯消息的来源方的标识;Obtain a corresponding source party candidate set according to the communication number, where the source party candidate set includes at least an identifier of a source party that sends a communication message through the communication number;

将所述通讯消息中的指定字段与所述至少一个来源方的标识进行匹配;matching a specified field in the communication message with the identity of the at least one source;

将与所述指定字段相匹配的标识对应的来源方确定为发送所述通讯消息的来源方。The source party corresponding to the identifier matching the specified field is determined as the source party sending the communication message.

可选的,所述将所述通讯消息中的指定字段与所述至少一个来源方的标识进行匹配,包括:Optionally, the matching of the specified field in the communication message with the identifier of the at least one source includes:

获取所述至少一个来源方的标识的优先级;obtaining the priority of the identification of the at least one source party;

按照所述至少一个来源方的标识的优先级,将所述至少一个来源方的标识与所述通讯消息中的指定字段进行匹配。The identification of the at least one source is matched with a specified field in the communication message according to the priority of the identification of the at least one source.

可选的,所述根据所述通讯号码获取对应的来源方候选集,包括:Optionally, the obtaining the corresponding source party candidate set according to the communication number includes:

向服务器发送包含所述通讯号码的候选集获取请求,所述候选集获取请求用于获取所述通讯号码对应的所述来源方候选集;sending a candidate set acquisition request including the communication number to the server, where the candidate set acquisition request is used to acquire the source candidate set corresponding to the communication number;

接收所述服务器返回的候选集下发响应,所述候选集下发响应中包含所述通讯号码对应的所述来源方候选集。Receive a candidate set delivery response returned by the server, where the candidate set delivery response includes the source candidate set corresponding to the communication number.

可选的,所述根据所述通讯号码获取对应的来源方候选集,包括:Optionally, the obtaining the corresponding source party candidate set according to the communication number includes:

根据所述通讯号码,从本地存储中查询对应的所述来源方候选集。According to the communication number, the corresponding source candidate set is queried from the local storage.

可选的,所述获取通讯消息的通讯号码,包括:Optionally, the obtaining the communication number of the communication message includes:

当接收到展示包含所述通讯消息的消息列表的指令时,获取所述通讯消息的通讯号码;When receiving an instruction to display a message list including the communication message, acquiring the communication number of the communication message;

或者,or,

当接收到所述通讯消息时,获取所述通讯消息的通讯号码。When the communication message is received, the communication number of the communication message is obtained.

可选的,所述通讯消息中的指定字段包括:Optionally, the specified fields in the communication message include:

处于所述通讯消息的内容中的指定位置的字段;a field at a specified position in the content of the communication message;

和/或,满足预定的字符格式的字段。And/or, a field that satisfies a predetermined character format.

可选的,所述处理器还被配置为:Optionally, the processor is further configured to:

在展示包含所述通讯消息的消息列表时,对应所述通讯消息展示与所述指定字段相匹配的标识。When displaying a message list including the communication message, an identifier matching the specified field is displayed corresponding to the communication message.

需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that, when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图5是根据一示例性实施例示出的一种装置500的框图。例如,装置500可以是智能手机、可穿戴设备、智能电视和车载终端等电子设备。FIG. 5 is a block diagram of an apparatus 500 according to an exemplary embodiment. For example, the apparatus 500 may be an electronic device such as a smart phone, a wearable device, a smart TV, and an in-vehicle terminal.

参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)的接口512,传感器组件514,以及通信组件516。5, the apparatus 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and communication component 516 .

处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器520来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。The processing component 502 generally controls the overall operation of the apparatus 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.

存储器504被配置为存储各种类型的数据以支持在装置500的操作。这些数据的示例包括用于在装置500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 504 is configured to store various types of data to support operations at device 500 . Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and the like. Memory 504 may be implemented by any type of volatile or non-volatile storage device or combination thereof, 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.

电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。Power supply assembly 506 provides power to the various components of device 500 . Power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 500 .

多媒体组件508包括在装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 508 includes screens that provide an output interface between device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. A touch sensor can sense not only the boundaries of a touch or swipe action, but also the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. When the apparatus 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。Audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a microphone (MIC) that is configured to receive external audio signals when device 500 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 504 or transmitted via communication component 516 . In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 512 provides an interface between the processing component 502 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如组件为装置500的显示器和小键盘,传感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of device 500 . For example, the sensor assembly 514 can detect the open/closed state of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect a change in the position of the device 500 or a component of the device 500, the user The presence or absence of contact with the device 500, the orientation or acceleration/deceleration of the device 500 and the temperature change of the device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如WiFi,2G、3G、4G或5G,或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 516 is configured to facilitate wired or wireless communication between apparatus 500 and other devices. The device 500 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G or 5G, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器520执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 504 including instructions, executable by the processor 520 of the apparatus 500 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当存储介质中的指令由装置500的处理器执行时,使得装置500能够执行上述通讯消息来源方识别方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the apparatus 500, the apparatus 500 can execute the above-mentioned method for identifying the source of a communication message.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common general knowledge or techniques in the technical field not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1.一种通讯消息来源方识别方法,其特征在于,应用于用户终端中,所述方法包括:1. A method for identifying a source of a communication message, characterized in that, applied in a user terminal, the method comprising: 获取通讯消息的通讯号码;Get the communication number of the communication message; 根据所述通讯号码获取对应的来源方候选集,所述来源方候选集中包含多个通过所述通讯号码发送通讯消息的来源方的标识,所述来源方候选集由服务器根据通讯号码下发的通讯消息生成,一个来源方候选集对应一个通讯号码,每个通讯号码对应多个来源方;A corresponding source candidate set is obtained according to the communication number, the source candidate set includes the identifiers of multiple sources that send communication messages through the communication number, and the source candidate set is issued by the server according to the communication number. Communication message generation, one source candidate set corresponds to one communication number, and each communication number corresponds to multiple sources; 获取所述多个来源方的标识的优先级;obtaining the priority of the identities of the plurality of origins; 按照所述多个来源方的标识的优先级,将所述多个来源方的标识与所述通讯消息中的指定字段进行匹配;matching the identifiers of the multiple sources with the specified fields in the communication message according to the priorities of the identifiers of the multiple sources; 将与所述指定字段相匹配的标识对应的来源方确定为发送所述通讯消息的来源方。The source party corresponding to the identifier matching the specified field is determined as the source party sending the communication message. 2.根据权利要求1所述的方法,其特征在于,所述根据所述通讯号码获取对应的来源方候选集,包括:2. The method according to claim 1, wherein the obtaining the corresponding source candidate set according to the communication number comprises: 向服务器发送包含所述通讯号码的候选集获取请求,所述候选集获取请求用于获取所述通讯号码对应的所述来源方候选集;sending a candidate set acquisition request including the communication number to the server, where the candidate set acquisition request is used to acquire the source candidate set corresponding to the communication number; 接收所述服务器返回的候选集下发响应,所述候选集下发响应中包含所述通讯号码对应的所述来源方候选集。Receive a candidate set delivery response returned by the server, where the candidate set delivery response includes the source candidate set corresponding to the communication number. 3.根据权利要求1所述的方法,其特征在于,所述根据所述通讯号码获取对应的来源方候选集,包括:3. The method according to claim 1, wherein the obtaining the corresponding source candidate set according to the communication number comprises: 根据所述通讯号码,从本地存储中查询对应的所述来源方候选集。According to the communication number, the corresponding source candidate set is queried from the local storage. 4.根据权利要求1所述的方法,其特征在于,所述获取通讯消息的通讯号码,包括:4. The method according to claim 1, wherein the acquiring the communication number of the communication message comprises: 当接收到展示包含所述通讯消息的消息列表的指令时,获取所述通讯消息的通讯号码;When receiving an instruction to display a message list including the communication message, acquiring the communication number of the communication message; 或者,or, 当接收到所述通讯消息时,获取所述通讯消息的通讯号码。When the communication message is received, the communication number of the communication message is obtained. 5.根据权利要求1所述的方法,其特征在于,所述通讯消息中的指定字段包括:5. The method according to claim 1, wherein the specified field in the communication message comprises: 处于所述通讯消息的内容中的指定位置的字段;a field at a specified position in the content of the communication message; 和/或,满足预定的字符格式的字段。And/or, a field that satisfies a predetermined character format. 6.根据权利要求1或4所述的方法,其特征在于,所述方法还包括:6. The method according to claim 1 or 4, wherein the method further comprises: 在展示包含所述通讯消息的消息列表时,对应所述通讯消息展示与所述指定字段相匹配的标识。When displaying a message list including the communication message, an identifier matching the specified field is displayed corresponding to the communication message. 7.一种通讯消息来源方识别装置,其特征在于,应用于用户终端中,所述装置包括:7. A device for identifying the source of a communication message, characterized in that, when applied to a user terminal, the device comprises: 号码获取模块,用于获取通讯消息的通讯号码;The number acquisition module is used to acquire the communication number of the communication message; 候选集获取模块,用于根据所述通讯号码获取对应的来源方候选集,所述来源方候选集中包含多个通过所述通讯号码发送通讯消息的来源方的标识,所述来源方候选集由服务器根据通讯号码下发的通讯消息生成,一个来源方候选集对应一个通讯号码,每个通讯号码对应多个来源方;The candidate set acquisition module is configured to acquire a corresponding source party candidate set according to the communication number, the source party candidate set includes a plurality of identifiers of the source parties sending communication messages through the communication number, and the source party candidate set consists of The server generates the communication message according to the communication number, one source candidate set corresponds to one communication number, and each communication number corresponds to multiple sources; 优先级获取子模块,用于获取所述多个来源方的标识的优先级;a priority obtaining submodule, used to obtain the priority of the identifiers of the multiple sources; 字段匹配子模块,用于按照所述多个来源方的标识的优先级,将所述多个来源方的标识与所述通讯消息中的指定字段进行匹配;a field matching submodule, configured to match the identifiers of the multiple sources with the specified fields in the communication message according to the priorities of the identifiers of the multiple sources; 来源方确定模块,用于将与所述指定字段相匹配的标识对应的来源方确定为发送所述通讯消息的来源方。The source determination module is configured to determine the source corresponding to the identifier matching the specified field as the source for sending the communication message. 8.根据权利要求7所述的装置,其特征在于,所述候选集获取模块,包括:8. The apparatus according to claim 7, wherein the candidate set acquisition module comprises: 发送子模块,用于向服务器发送包含所述通讯号码的候选集获取请求,所述候选集获取请求用于获取所述通讯号码对应的所述来源方候选集;A sending submodule, configured to send a candidate set acquisition request including the communication number to the server, where the candidate set acquisition request is used to acquire the source candidate set corresponding to the communication number; 接收子模块,用于接收所述服务器返回的候选集下发响应,所述候选集下发响应中包含所述通讯号码对应的所述来源方候选集。The receiving submodule is configured to receive a candidate set delivery response returned by the server, where the candidate set delivery response includes the source candidate set corresponding to the communication number. 9.根据权利要求7所述的装置,其特征在于,所述候选集获取模块,包括:9. The apparatus according to claim 7, wherein the candidate set acquisition module comprises: 本地获取子模块,用于根据所述通讯号码,从本地存储中查询对应的所述来源方候选集。The local acquisition sub-module is configured to query the corresponding source candidate set from the local storage according to the communication number. 10.根据权利要求7所述的装置,其特征在于,所述号码获取模块,还用于当接收到展示包含所述通讯消息的消息列表的指令时,获取所述通讯消息的通讯号码;或者,当接收到所述通讯消息时,获取所述通讯消息的通讯号码。10. The apparatus according to claim 7, wherein the number obtaining module is further configured to obtain the communication number of the communication message when receiving an instruction to display a message list including the communication message; or , when the communication message is received, obtain the communication number of the communication message. 11.根据权利要求7所述的装置,其特征在于,所述通讯消息中的指定字段包括:11. The apparatus according to claim 7, wherein the specified field in the communication message comprises: 处于所述通讯消息的内容中的指定位置的字段;a field at a specified position in the content of the communication message; 和/或,满足预定的字符格式的字段。And/or, a field that satisfies a predetermined character format. 12.根据权利要求7或10所述的装置,其特征在于,所述装置还包括:12. The device according to claim 7 or 10, wherein the device further comprises: 展示模块,用于在展示包含所述通讯消息的消息列表时,对应所述通讯消息展示与所述指定字段相匹配的标识。The display module is configured to display an identifier matching the specified field corresponding to the communication message when the message list including the communication message is displayed. 13.一种通讯消息来源方识别装置,其特征在于,所述装置包括:13. A device for identifying the source of a communication message, wherein the device comprises: 处理器;processor; 用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions for the processor; 其中,所述处理器被配置为:wherein the processor is configured to: 获取通讯消息的通讯号码;Get the communication number of the communication message; 根据所述通讯号码获取对应的来源方候选集,所述来源方候选集中包含多个通过所述通讯号码发送通讯消息的来源方的标识,所述来源方候选集由服务器根据通讯号码下发的通讯消息生成,一个来源方候选集对应一个通讯号码,每个通讯号码对应多个来源方;A corresponding source candidate set is obtained according to the communication number, the source candidate set includes the identifiers of multiple sources that send communication messages through the communication number, and the source candidate set is issued by the server according to the communication number. Communication message generation, one source candidate set corresponds to one communication number, and each communication number corresponds to multiple sources; 获取所述多个来源方的标识的优先级;obtaining the priority of the identities of the plurality of origins; 按照所述多个来源方的标识的优先级,将所述多个来源方的标识与所述通讯消息中的指定字段进行匹配;matching the identifiers of the multiple sources with the specified fields in the communication message according to the priorities of the identifiers of the multiple sources; 将与所述指定字段相匹配的标识对应的来源方确定为发送所述通讯消息的来源方。The source party corresponding to the identifier matching the specified field is determined as the source party sending the communication message. 14.一种非临时性计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有指令,所述指令被处理器执行以完成权利要求1-6任一项所述的通讯消息来源方识别方法。14. A non-transitory computer-readable storage medium, wherein instructions are stored on the computer-readable storage medium, and the instructions are executed by a processor to complete the communication according to any one of claims 1-6 The method of identifying the source of the message.
CN201611045167.5A 2016-11-22 2016-11-22 Communication message source identification method and device Active CN106454781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611045167.5A CN106454781B (en) 2016-11-22 2016-11-22 Communication message source identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611045167.5A CN106454781B (en) 2016-11-22 2016-11-22 Communication message source identification method and device

Publications (2)

Publication Number Publication Date
CN106454781A CN106454781A (en) 2017-02-22
CN106454781B true CN106454781B (en) 2020-02-28

Family

ID=58218118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611045167.5A Active CN106454781B (en) 2016-11-22 2016-11-22 Communication message source identification method and device

Country Status (1)

Country Link
CN (1) CN106454781B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294788B (en) * 2018-12-10 2023-04-07 中国移动通信集团有限公司 Message processing method, device, gateway and computer storage medium
CN111314319B (en) * 2020-01-20 2022-06-10 维沃移动通信有限公司 Data processing method, electronic equipment and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101389074A (en) * 2008-10-17 2009-03-18 浙江大学 Short message monitoring method ensuring identity of sender based social network mechanism
CN102129339A (en) * 2010-01-12 2011-07-20 中国移动通信集团公司 Option predication method and terminal
CN102663106A (en) * 2012-04-13 2012-09-12 北京搜狗科技发展有限公司 Method and system for creating number information database
CN104301532A (en) * 2014-09-30 2015-01-21 小米科技有限责任公司 Communication message identification method and device
CN105518658A (en) * 2013-03-15 2016-04-20 美国结构数据有限公司 Apparatus, system and method for grouping data records

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101389074A (en) * 2008-10-17 2009-03-18 浙江大学 Short message monitoring method ensuring identity of sender based social network mechanism
CN102129339A (en) * 2010-01-12 2011-07-20 中国移动通信集团公司 Option predication method and terminal
CN102663106A (en) * 2012-04-13 2012-09-12 北京搜狗科技发展有限公司 Method and system for creating number information database
CN105518658A (en) * 2013-03-15 2016-04-20 美国结构数据有限公司 Apparatus, system and method for grouping data records
CN104301532A (en) * 2014-09-30 2015-01-21 小米科技有限责任公司 Communication message identification method and device

Also Published As

Publication number Publication date
CN106454781A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
US11157864B2 (en) Method and device for displaying logistics information and computer readable storage medium
CN105843615B (en) Notification message processing method and device
CN110460578B (en) Method and device for establishing association relationship and computer readable storage medium
CN105068976B (en) Ticket information display method and device
CN106599070B (en) Method and device for acquiring information in first application program and terminal equipment
CN107784045B (en) Quick reply method and device for quick reply
CN104951470B (en) Electronic ticket content displaying method and device
US8705707B1 (en) Labeling communcation device call logs
US10324910B2 (en) Contact record processing method and apparatus
CN113254784A (en) Information display method and device, electronic equipment and storage medium
CN106060257A (en) Method and device for viewing relevant information of contact
CN107402767B (en) Method and apparatus for displaying push messages
CN106897897A (en) Content item method for pushing and device
CN111325567A (en) User rights information display method and device and electronic equipment
CN106453528A (en) Method and device for pushing message
CN105511739A (en) Message prompting method and device
CN113259226B (en) Information synchronization method and device, electronic equipment and storage medium
CN103391346A (en) Terminal and communication message processing method
KR102066843B1 (en) Method and apparatus for grouping using communication log
CN111049732B (en) Push message display method and device, electronic equipment and medium
CN106454781B (en) Communication message source identification method and device
CN109639561B (en) Sharing method and device based on information feedback, electronic equipment and storage medium
CN104219360B (en) Information processing method and device
US10244367B2 (en) Short message identification method and device, and storage medium
CN106921958A (en) The method and apparatus for quitting the subscription of business

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant