CN112600749A - Expired call identification method, device, terminal and storage medium - Google Patents

Expired call identification method, device, terminal and storage medium Download PDF

Info

Publication number
CN112600749A
CN112600749A CN202011164010.0A CN202011164010A CN112600749A CN 112600749 A CN112600749 A CN 112600749A CN 202011164010 A CN202011164010 A CN 202011164010A CN 112600749 A CN112600749 A CN 112600749A
Authority
CN
China
Prior art keywords
call
timestamp
current
called party
time
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.)
Granted
Application number
CN202011164010.0A
Other languages
Chinese (zh)
Other versions
CN112600749B (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.)
Bigo Technology Singapore Pte Ltd
Original Assignee
Bigo Technology Singapore Pte 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 Bigo Technology Singapore Pte Ltd filed Critical Bigo Technology Singapore Pte Ltd
Priority to CN202011164010.0A priority Critical patent/CN112600749B/en
Publication of CN112600749A publication Critical patent/CN112600749A/en
Application granted granted Critical
Publication of CN112600749B publication Critical patent/CN112600749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages

Abstract

The embodiment of the invention discloses an expired call identification method, an expired call identification device, a terminal and a storage medium. Wherein, the method comprises the following steps: determining a creation timestamp and an incoming call timestamp of the current call under a preset time reference based on a call initiating message of the current call and a reference time difference of a called party of the call; and judging whether the current call is an overdue call or not according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call. According to the technical scheme provided by the embodiment of the invention, the overdue call can be accurately identified locally at the called party of the call, the query interaction of the current call state with the call server is not needed, the identification delay of the overdue call is avoided, and the timeliness of the overdue call identification is improved; meanwhile, whether each call received by the called party of the call is an overdue call can be judged by adopting the operation, so that the comprehensiveness of overdue call identification is ensured.

Description

Expired call identification method, device, terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of network communication, in particular to an expired call identification method, an expired call identification device, a terminal and a storage medium.
Background
With the popularization of mobile internet, various communication applications developed by adopting Instant Messaging (IM) technology have been widely applied to daily life of people, so as to facilitate the establishment of Instant calls among different users.
Generally, when a calling party initiates a call to a called party, the called party may not receive the call due to reasons such as no network connection or no login of the communication application, and the like, and then the calling party hangs up the call due to reasons such as call timeout or call non-connection, so that the call becomes an overdue call; then, when the called party reconnects the network and logs in the communication application, the server or the communication application manufacturer system sends the initiating message and the hang-up message of the call to the called party in sequence, so that the called party can still receive the incoming call prompt of the overdue call; at this time, the called party can immediately pop up the corresponding call interface when receiving the call initiating message, but the called party can receive the corresponding call hang-up message and close the call interface after not waiting for the processing of the called party, thereby causing certain interference to the called party.
At present, in order to avoid interface pop-up interference of overdue call, a called party in communication application inquires the state of the call to a server every time the called party receives a call initiating message so as to judge whether the call is overdue call, thereby preventing the call interface of the overdue call from being popped up and avoiding the interference of the overdue call on the called party; however, each time the called party receives the call initiation message, the called party triggers a call state query operation to the server, and certain fault tolerance and delay exist, so that the call interface of the normal call cannot be popped up by quickly responding to the call, and the delay of the normal call is caused.
Disclosure of Invention
The embodiment of the invention provides an overdue call identification method, an overdue call identification device, a terminal and a storage medium, and improves timeliness and comprehensiveness of overdue call identification.
In a first aspect, an embodiment of the present invention provides a method for identifying an expired call, where the method includes:
determining a creation timestamp and an incoming call timestamp of the current call under a preset time reference based on a call initiating message of the current call and a reference time difference of a called party of the call;
and judging whether the current call is an overdue call or not according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call.
In a second aspect, an embodiment of the present invention provides an apparatus for identifying an expired call, where the apparatus includes:
the time stamp determining module is used for determining a creation time stamp and an incoming call time stamp of the current call under a preset time reference based on the reference time difference between the call initiating message of the current call and the called party of the call;
and the overdue call identification module is used for judging whether the current call is an overdue call or not according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call.
In a third aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for identifying an expired call according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for identifying an expired call according to any embodiment of the present invention.
The method, the device, the terminal and the storage medium for identifying the overdue call provided by the embodiment of the invention firstly set a uniform preset time reference aiming at the whole call process from the initiation of the current call by a call calling party to the receiving of the incoming call of the current call by a call called party, and set a corresponding reference time difference aiming at the preset time reference on the call called party, at the moment, based on the reference time difference between the call initiation message of the current call and the call called party, the creation timestamp and the incoming call timestamp of the current call under the preset time reference can be determined, the reference consistency of the creation timestamp and the incoming call timestamp can be ensured, and whether the current call is the overdue call can be judged by the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call, so that the accurate identification of the overdue call can be realized locally at the call called party, the query interaction of the current call state is not required to be carried out with the call server, the identification delay of the overdue call is avoided, and the timeliness of the overdue call identification is improved; meanwhile, whether each call received by the called party of the call is an overdue call can be judged by adopting the operation, so that the comprehensiveness of overdue call identification is ensured.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a scene architecture diagram of an application scene to which an expired call identification method according to an embodiment of the present invention is applied;
fig. 2A is a flowchart of an expired call identification method according to an embodiment of the present invention;
fig. 2B is a schematic diagram illustrating an identification process of an expired call according to an embodiment of the present invention;
fig. 3A is a flowchart of an expired call identification method according to a second embodiment of the present invention;
fig. 3B is a schematic diagram illustrating an identification process of an expired call according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an expired call identification apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
The embodiment of the invention mainly aims at the problem that the call interface of the normal call is delayed due to the fact that the call interface of the normal call cannot be rapidly responded to the call because the call of the call called party is required to be inquired from the call server side when the call called party receives the current call each time, a new overdue call identification mechanism is provided by setting a uniform preset time reference and the reference time difference of the call called party under the preset time reference, when the call called party receives the current call, the creation time stamp and the incoming call time stamp of the current call under the preset time reference are determined directly through the call initiating message of the current call and the reference time difference of the call called party, and then whether the current call is overdue call is judged according to the time difference between the incoming call time stamp and the creation time stamp and the call hang-up message of the current call, therefore, accurate identification of each overdue call can be realized locally at a called party of the call, identification delay of the overdue call is avoided, and timeliness and comprehensiveness of overdue call identification are improved.
Fig. 1 is a scene architecture diagram of an application scene to which the method for identifying an expired call according to the embodiment of the present invention is applied. Specifically, referring to fig. 1, the application scenario may include a calling terminal 10, a called terminal 20, and a call server 30.
The calling terminal 10 is a terminal where a calling party is located, the called terminal 20 is a terminal where a called party is located, communication applications for realizing communication between different users are configured on the calling terminal 10 and the called terminal 20, the calling party initiates a communication to the called party through corresponding communication initiation operations executed on the calling terminal 10, at this time, the communication server 30 receives a communication request initiated by the calling party to the called party, however, the called party may not receive the communication due to the fact that the network is not connected or the communication application is not logged in, and the calling party hangs up the communication due to reasons such as calling overtime or non-connection, so that an overdue communication is generated; at this time, the call server 30 forwards the call initiation message of the overdue call to the called party after the network connection of the called party is normal and the communication application is logged on the called terminal 20 for each overdue call initiated to the called party, and forwards the call initiation message of the normal call to the called party for each normal call initiated to the called party; therefore, when receiving the call initiation message of each call, the called terminal 20 first needs to determine whether the current call is an overdue call, and since the overdue call belongs to an invalid call for the called party of the call, the call page display of the overdue call needs to be prohibited on the called terminal 20.
Specifically, the calling terminal 10 generates a corresponding call request according to the call initiation operation of the call calling party, where the call request carries information of the called party of the call, and reports the call request to the call server 30; in order to enable the called terminal 20 to accurately determine whether the received call is an expired call, the call server 30 first creates an attached timestamp attribute for indicating the current call initiation time for the call event indicated by the call request, and then adds the timestamp attribute as the call attribute of the current call to the call initiation message of the current call, so as to forward the call initiation message to the called terminal 20; when the called terminal 20 receives a call initiation message of a call each time, analyzing the initiation time of the current call and the local time of the received current call carried in the call initiation message, then respectively calculating the creation timestamp and the incoming call timestamp of the current call under the preset time reference based on the reference time difference pre-recorded on the called terminal 20, and further judging whether the current call is an overdue call or not according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call, so that the accurate identification of the overdue call can be realized locally on the called terminal 20, the query interaction of the current call state with the call server 30 is not needed, the identification delay of the overdue call is avoided, and the timeliness of the overdue call identification is improved; meanwhile, whether each call received by the called terminal 20 is an overdue call can be judged by adopting the above operation, so that the comprehensiveness of overdue call identification is ensured.
The specific operation of the called terminal 20 to determine whether the current call is an expired call in the present embodiment is explained in detail in the following method for identifying an expired call, and is not specifically described herein.
Example one
Fig. 2A is a flowchart of an expired call identification method according to an embodiment of the present invention, which is applicable to a situation where different users use any communication application to perform a call. The method for identifying the overdue call provided by this embodiment of the present invention may be implemented by the device for identifying the overdue call provided by the embodiment of the present invention, and the device may be implemented in a software and/or hardware manner, and is integrated into a terminal for implementing the method, where the terminal is a terminal where a called party of a call between two parties of the call is located, and a corresponding communication application is configured on the terminal.
Specifically, referring to fig. 2A, the method may include the steps of:
and S110, determining a creation timestamp and an incoming call timestamp of the current call under a preset time reference based on the reference time difference between the call initiating message of the current call and the called party of the call.
In this embodiment, for any call initiated to a called party of the call, the call server creates a corresponding attached timestamp attribute for the call to indicate the initiation time of the call, adds the timestamp attribute as a corresponding call attribute to a call initiation message of the call, and forwards the call initiation message to a called terminal where the called party of the call is located; therefore, when receiving a call initiation message of a call forwarded by the call server, the called terminal determines the initiation time of the current call from the call initiation message, and because the initiation time of the current call carried in the call initiation message is created by the call server through the timestamp attribute, the initiation time of the current call carried in the call initiation message belongs to the server time, and when receiving the call initiation message of the current call forwarded by the call server, the called terminal can indicate that the called terminal receives the incoming call of the current call at the current time, so that the corresponding incoming call time can be recorded by referring to the local running time of the called terminal, and at the moment, the incoming call time belongs to the called terminal time; however, since the originating time and the incoming time of the current call do not belong to the same time reference, if the comparison is directly performed, the identification accuracy of the current call cannot be guaranteed, so that the called party of the call can previously determine the time difference between the time points recorded by the call server and the called terminal at the same time, and the time difference is used as the reference time difference in the embodiment, so as to convert the originating time and the incoming time of the current call to the same time reference for comparison.
It should be noted that, because the reference time difference indicates a time difference between the time of the service end and the time of the called party at the same time, and the reference time difference is used to perform time reference conversion on both the originating time and the incoming time of the current call, the preset time reference in this embodiment may be any one of the time of the service end and the time of the called party.
Specifically, after the called terminal determines the preset time reference which is uniformly set, it may respectively determine whether the originating time and the incoming time of the current call belong to the preset time reference, as shown in fig. 2B, and then adjust the originating time or the incoming time when the current call does not belong to the preset time reference by using the reference time difference which is pre-recorded by the called party of the call, so as to calculate the originating time and the incoming time of the current call under the preset time reference, thereby obtaining the creating timestamp and the incoming timestamp of the current call under the preset time reference, so that the time comparison method under the same time reference is subsequently adopted to determine whether the current call is an expired call, and the accuracy of the expired call identification is ensured.
In addition, in order to achieve the accuracy of the reference time difference of the calling party, in this embodiment, before the called terminal receives the call initiation message of the current call forwarded by the call server, the called terminal calculates the reference time difference of the called party of the call based on the local time points displayed by the call server and the called party of the call at the same time.
Illustratively, when the called terminal needs to calculate the reference time difference of the called party, a timestamp application may be first sent to the call server to indicate that the called terminal needs to obtain the time point currently recorded by the call server, so that the call server issues the current local time point to the called terminal, and meanwhile, the called terminal may correspondingly record the sending time of the timestamp application when the timestamp application is sent towards the call server with reference to the local running time, at this time, the sending time may represent the local time point at which the timestamp application is sent to the call server, so as to obtain two local time points displayed by the call server and the called party at the same time, and then calculate the time difference between the two local time points, that is, the reference time difference of the called party can be called.
For example, when the called terminal is connected to a network and logs in a communication application, a corresponding login instruction may be reported to the call server, and at this time, in order to ensure timeliness and convenience of calculation of the reference time difference of the called party in the call, in this embodiment, the login instruction may be directly applied as a corresponding timestamp at the same time, so as to obtain the server time point of the call server for the current login instruction, and record the called party running time point of the called terminal at the current login, so that the time difference between the server time point and the called party running time point at the same login time is used as the reference time difference of the called party in the call.
And S120, judging whether the current call is an overdue call or not according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call.
Optionally, because the called party of the call cannot receive the current call only when the called party of the call is not connected to the network or does not log in the communication application, and the like, the calling party of the call can generate an overdue call when the calling party of the call hangs up the current call due to reasons such as calling overtime or not connection, and the overdue call can be forwarded to the called party of the call by the communication service terminal after the called party of the call is reconnected to the network and logs in the communication application, so that a certain time interval exists between the initiating time of the calling party of the call and the receiving time of the called party of the call for the overdue call; however, for a normal call (i.e. a call initiated by a call calling party when a call called party is in a state of normally connecting to a network and logging in to a communication application), since a call called party is in a state of normally connecting to a network and logging in to a communication application, when receiving a call request initiated by a call calling party, a call service end directly forwards a call initiation message of a current call to the call called party, that is, the initiation time of the call calling party for the normal call and the receiving time of the call called party for the normal call are very close.
At this time, in consideration of the difference between the overdue call and the normal call described above, in this embodiment, after determining the creation timestamp and the incoming call timestamp of the current call under the preset time reference, the creation timestamp can represent the time that the current call is initiated by the calling party of the call, and the incoming call timestamp can represent the time that the current call is received by the called party of the call, so by calculating the time difference between the incoming call timestamp and the creation timestamp, the time interval between the time that the current call is initiated by the calling party of the call and the time that the called party of the call receives can be obtained, and thus the possibility that the current call is the real overdue call can be preliminarily analyzed according to the time difference between the incoming call timestamp and the creation timestamp; furthermore, after receiving the call origination message of each call, the called party of the call, whether the call is a normal call or an overdue call, will receive the call hangup message of the call after a period of time, only the call hangup message of the overdue call will be received within a period of time extremely short from the call origination message, and the call hangup message of the normal call will be received within a period of time extremely long from the call origination message, so in order to ensure the identification accuracy of the overdue call, this embodiment can determine whether the call hangup message of the current call is received within a short period of time after preliminarily analyzing the possibility that the current call is a real overdue call according to the time difference between the incoming time stamp and the creation time stamp, and then continue to determine whether the current call which is a possible overdue call is a real overdue call according to the receiving time of the call hangup message, therefore, the overdue call can be accurately identified locally at the called party of the call, the query interaction of the current call state with the call server is not needed, the identification delay of the overdue call is avoided, and the timeliness of the overdue call identification is improved.
Further, in order to avoid the interference of the overdue call to the called party of the call, in this embodiment, after the current call is determined to be the overdue call, the call page of the current call is prohibited to be popped locally at the called party of the call, and only the called party of the call needs to be prompted with the corresponding call message, so that the called party of the call can know the overdue call, and the call experience of the called party of the call is ensured.
The technical solution provided by this embodiment, in order to set a uniform preset time reference for the whole call process from the initiation of the current call by the call calling party to the reception of the call of the current call by the call called party, and set a corresponding reference time difference for the preset time reference on the call called party, at this time, based on the call initiation message of the current call and the reference time difference of the call called party, it can determine the creation timestamp and the call timestamp of the current call under the preset time reference, and ensure the reference consistency of the creation timestamp and the call timestamp, and subsequently determine whether the current call is an overdue call by the time difference between the call timestamp and the creation timestamp, and the call hang-up message of the current call, so that the accurate identification of the overdue call can be realized locally at the call called party without the query interaction of the current call state with the call service end, the identification delay of the overdue call is avoided, and the timeliness of the overdue call identification is improved; meanwhile, whether each call received by the called party of the call is an overdue call can be judged by adopting the operation, so that the comprehensiveness of overdue call identification is ensured.
Example two
Fig. 3A is a flowchart of an expired call identification method according to a second embodiment of the present invention, and fig. 3B is a schematic diagram of a principle of an expired call identification process according to the second embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. Specifically, as shown in fig. 3A, the present embodiment mainly explains in detail a specific calculation process of a creation timestamp and an incoming call timestamp of a current call under a preset time reference, and a specific determination process of an expired call.
Optionally, as shown in fig. 3A, the present embodiment may include the following steps:
s210, receiving and analyzing the call initiating message of the current call, obtaining the server time stamp when the current call is created by the call server, and determining the called party running time point when the current call is received by the call called party.
Optionally, the call server forwards a call initiation message of each call to the called party when the called party is in a state of normally connecting to the network and logging in to the communication application, and creates a corresponding attached timestamp attribute for each call to indicate the initiation time of the call, and adds the timestamp attribute as a corresponding call attribute to the call initiation message of the call and forwards the timestamp attribute to the called party. Therefore, in order to accurately identify the overdue call, after receiving the call initiation message of each call, the called terminal where the called party of the call is located first analyzes the timestamp attribute of the call server created for the current call carried in the call initiation message to analyze the initiation time of the current call, and since the initiation time recorded in the timestamp attribute of the current call is recorded by the call server according to the local time of the call server, the initiation time of the current call is the server timestamp of the current call created by the call server, that is, the server timestamp of the current call created by the call server can be obtained by analyzing the timestamp attribute carried in the call initiation message of the current call.
Meanwhile, in order to determine the incoming call time of the called party for the current call, the receiving time of the call initiating message is synchronously recorded when the call initiating message of the current call is received in the embodiment, at this time, the called party running time point of the called terminal when the current call is received can be inquired, the called party running time point is taken as the incoming call time of the current call, at this time, the initiating time of the current call and the incoming call time do not belong to the same time reference, the initiating time is the service terminal timestamp, and the incoming call time is the called party running time point, so that the initiating time and the incoming call time need to be adjusted to the same time reference in the follow-up process, and the time reference consistency of the creating timestamp and the incoming call timestamp.
And S220, calculating a creation timestamp and an incoming call timestamp of the current call under a preset time reference according to the server timestamp, the called party running time point and the reference time difference of the called party of the call.
Optionally, the preset time reference in this embodiment may be any one of the server time and the called party time, after the server timestamp of the current call created by the call server and the called party running time point of the current call received by the call called party are obtained, in order to ensure the consistency of the comparison between the creation timestamp and the incoming timestamp, it is first required to determine which specific preset time reference is selected, as shown in fig. 3B, then, the server time stamp or the called party running time point which does not belong to the preset time reference is correspondingly adjusted to the preset time reference by using the recorded reference time difference between the server time and the called party time at the same time on the called party, therefore, a creating timestamp and an incoming call timestamp of the current call under a preset time reference are obtained, and the comparison consistency between the creating timestamp and the incoming call timestamp is ensured.
For example, if the preset time reference is the service-side time, the called party running time point of the current call needs to be adjusted, at this time, the service-side time stamp can be directly used as the creation time stamp of the current call under the preset time reference, and the called party running time point of the current call when the current call is received by the called party of the call is adjusted by using the reference time difference between the service-side time and the called party time recorded on the called party of the call, so as to obtain the incoming call time stamp of the current call under the preset time reference.
However, if the preset time reference is the called party time, the server timestamp of the current call needs to be adjusted, at this time, the called party running time point can be directly used as the incoming call timestamp of the current call under the preset time reference, and the server timestamp of the current call when being created by the call server is adjusted by using the reference time difference between the server time and the called party time recorded on the called party of the call, so as to obtain the creation timestamp of the current call under the preset time reference.
Taking the example of calculating the reference time difference of the called party according to the server time stamp and the called party running time point recorded when the called terminal where the called party is in the call establishes the login connection with the call server, if the server time stamp when the called terminal where the called party is in the call sends the corresponding login instruction to the call server is initServers, and the called party running time when the called terminal logs in is initElapsedTs, then the reference time difference of the called party in the call is initServers-initElapsedTs, and the server time stamp when the current call is created by the call server is CreateServer Ts, and the called party running time when the current call is received by the called party in the call is nowElapsedTs; if the preset time reference is the server-side time stamp, the creating time stamp of the current call under the preset time reference is callcreatetets ═ createservers ts, and the incoming call time stamp of the current call under the preset time reference is nowcallServerTs ═ nowelapsets + (initservts-initelapsets); however, if the preset time reference is the called party time, the creation timestamp of the current call under the preset time reference is callcreateservers ts- (initServerTs-initElapsedTs), and the incoming timestamp of the current call under the preset time reference is nowcallServerTs.
It should be noted that, because the running time of the called terminal where the called party is located may be adjusted due to different time zones or manual settings, so that the called party time does not depend on the spectrum when being used as the preset time reference, the embodiment usually selects the server time that is uniformly set and does not support random change as the preset time reference, so as to ensure the reliability of the preset time reference.
S230, judging whether the time difference between the incoming call timestamp and the creation timestamp exceeds a preset incoming call duration, if so, executing S240; if not, go to S260.
Optionally, after determining the creation timestamp and the incoming call timestamp of the current call under the preset time reference, first calculating a time difference between the incoming call timestamp and the creation timestamp to determine a time interval between the initiation of the current call and the receipt of the called party, and meanwhile, using the preset incoming call duration to represent a time interval between the initiation of most of normal calls by the calling party and the receipt of the called party, where if the time difference between the incoming call timestamp and the creation timestamp exceeds the preset incoming call duration, it is indicated that the current call is most likely not a normal call, and therefore, it is necessary to further determine whether the current call is a real overdue call according to characteristics of the overdue call. However, if the time difference between the incoming call timestamp and the creation timestamp does not exceed the preset incoming call duration, which indicates that the current call meets the requirement of a normal call, it may be determined that the current call is a normal call.
S240, judging whether a call hangup message of the current call is received within a preset response time, if so, executing S250; if not, go to S260.
Optionally, after the time difference between the incoming call timestamp and the creation timestamp of the current call exceeds the preset incoming call duration, it is necessary to continuously determine whether the current call is an overdue call, and after receiving the call initiation message of each call, no matter whether the call is a normal call or an overdue call, the call hang-up message of the call is correspondingly received after a period of time, only the call hang-up message of the overdue call is received within a time interval very short from the call initiation message, but the call hang-up message of the normal call is received within a time interval very long from the call initiation message, so as to ensure the identification accuracy of the overdue call, a delay determination may be further set for the current call which is determined to be overdue, that is, by determining whether the call hang-up message of the current call is received within the preset response duration, and further analyzing whether the current call is a real overdue call, wherein the preset response time is the interval time between the call initiating message and the call hanging-up message of most real overdue calls, if the call hanging-up message of the current call is received in the preset response time, the current call is the overdue call, and if the call hanging-up message of the current call is not received in the preset response time, the current call is a normal call.
And S250, determining that the current call is an overdue call, and prohibiting a call page of the current call from popping up.
Optionally, when the current call is determined to be an overdue call, in order to avoid interference of the overdue call to a called call party, the call page of the current call is directly prohibited from being popped up.
And S260, determining that the current call is a normal call, and popping up a call page of the current call.
Optionally, when the current call is determined to be a normal call, controlling the call page of the current call to pop up normally, so that a called party of the call can respond to the call in time.
The technical solution provided by this embodiment sets a preset time reference as any one of the service segment time and the called party time, and then calculates a creation timestamp and an incoming call timestamp of the current call under the preset time reference by using a server timestamp when the current call is created by the call server, a called party running time point when the current call is received by the called party and a reference time difference of the called party, so as to ensure reference consistency of the creation timestamp and the incoming call timestamp, and subsequently determines whether the current call is an overdue call by using a call hang-up message of the current call, so as to realize accurate identification of the overdue call locally at the called party of the call, without performing query interaction of the current call state with the call server, and avoiding identification delay of the overdue call, the timeliness of overdue call identification is improved; meanwhile, whether each call received by the called party of the call is an overdue call can be judged by adopting the operation, so that the comprehensiveness of overdue call identification is ensured.
EXAMPLE III
Fig. 4 is a schematic structural diagram of an expired call identification apparatus according to a third embodiment of the present invention, specifically, as shown in fig. 4, the apparatus may include:
a timestamp determining module 310, configured to determine, based on a difference between a call initiation message of a current call and a reference time of a called party of the call, a creation timestamp and an incoming call timestamp of the current call under a preset time reference;
the expired call identification module 320 is configured to determine whether the current call is an expired call according to a time difference between the incoming call timestamp and the creation timestamp and a call hangup message of the current call.
The technical solution provided by this embodiment, in order to set a uniform preset time reference for the whole call process from the initiation of the current call by the call calling party to the reception of the call of the current call by the call called party, and set a corresponding reference time difference for the preset time reference on the call called party, at this time, based on the call initiation message of the current call and the reference time difference of the call called party, it can determine the creation timestamp and the call timestamp of the current call under the preset time reference, and ensure the reference consistency of the creation timestamp and the call timestamp, and subsequently determine whether the current call is an overdue call by the time difference between the call timestamp and the creation timestamp, and the call hang-up message of the current call, so that the accurate identification of the overdue call can be realized locally at the call called party without the query interaction of the current call state with the call service end, the identification delay of the overdue call is avoided, and the timeliness of the overdue call identification is improved; meanwhile, whether each call received by the called party of the call is an overdue call can be judged by adopting the operation, so that the comprehensiveness of overdue call identification is ensured.
The device for identifying the expired call provided by the embodiment can be applied to the method for identifying the expired call provided by any embodiment, and has corresponding functions and beneficial effects.
Example four
Fig. 5 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention, as shown in fig. 5, the terminal includes a processor 40, a storage device 41, and a communication device 42; the number of the processors 40 in the terminal may be one or more, and one processor 40 is taken as an example in fig. 5; the processor 40, the storage means 41 and the communication means 42 in the terminal may be connected by a bus or other means, which is exemplified in fig. 5.
The terminal provided by the embodiment can be used for executing the identification method of the expired call provided by any embodiment, and has corresponding functions and beneficial effects.
EXAMPLE five
Fifth, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the method for identifying an expired call in any of the above embodiments. The method specifically comprises the following steps:
determining a creation timestamp and an incoming call timestamp of the current call under a preset time reference based on a call initiating message of the current call and a reference time difference of a called party of the call;
and judging whether the current call is an overdue call or not according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the method for identifying an expired call provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the device for identifying an expired call, the units and modules included in the device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for identifying expired calls, comprising:
determining a creation timestamp and an incoming call timestamp of the current call under a preset time reference based on a call initiating message of the current call and a reference time difference of a called party of the call;
and judging whether the current call is an overdue call or not according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call.
2. The method of claim 1, wherein the determining whether the current call is an expired call according to the time difference between the incoming call timestamp and the creation timestamp and the call hangup message of the current call comprises:
and if the time difference between the incoming call timestamp and the creation timestamp exceeds the preset incoming call duration and the call hang-up message of the current call is received in the preset response duration, determining that the current call is an overdue call.
3. The method of claim 1, wherein the determining the creation timestamp and the incoming call timestamp of the current call under a preset time reference based on the reference time difference between the call initiation message of the current call and the call called party comprises:
receiving and analyzing a call initiating message of a current call, obtaining a server time stamp when the current call is created by a call server, and determining a called party running time point when the current call is received by a called party of the call;
and calculating a creation timestamp and an incoming call timestamp of the current call under a preset time reference according to the server-side timestamp, the called party running time point and the reference time difference of the called party of the call.
4. The method according to claim 3, wherein if the preset time reference is a server time, the calculating a creation timestamp and an incoming call timestamp of the current call under the preset time reference according to the server timestamp, the called party running time point and the reference time difference of the called party of the call comprises:
taking the server-side timestamp as a creation timestamp of the current call under a preset time reference;
and calculating the incoming call timestamp of the current call under a preset time reference based on the reference time difference between the called party running time point and the called party of the call.
5. The method according to claim 3, wherein if the preset time reference is called party time, the calculating a creation timestamp and an incoming call timestamp of the current call on the preset time reference according to the server timestamp, the called party running time point and the reference time difference of the called party of the call comprises:
calculating a creation timestamp of the current call under a preset time reference based on the server-side timestamp and the reference time difference of the called party of the call;
and taking the running time point of the called party as an incoming call timestamp of the current call under a preset time reference.
6. The method according to any one of claims 1-5, wherein before determining the creation timestamp and incoming call timestamp of the current call at the preset time reference based on the reference time difference between the call initiation message of the current call and the call called party, further comprising:
and calculating the reference time difference of the called party of the call based on the local time points displayed by the call server and the called party of the call at the same moment.
7. The method according to any one of claims 1 to 5, wherein after determining whether the current call is an expired call according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call, the method further comprises:
and if the current call is an overdue call, prohibiting a call page of the current call from popping up.
8. An apparatus for identifying expired calls, comprising:
the time stamp determining module is used for determining a creation time stamp and an incoming call time stamp of the current call under a preset time reference based on the reference time difference between the call initiating message of the current call and the called party of the call;
and the overdue call identification module is used for judging whether the current call is an overdue call or not according to the time difference between the incoming call timestamp and the creation timestamp and the call hang-up message of the current call.
9. A terminal, characterized in that the terminal comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for identifying expired calls as claimed in any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for identifying expired calls as claimed in any one of claims 1 to 7.
CN202011164010.0A 2020-10-27 2020-10-27 Expired call identification method, device, terminal and storage medium Active CN112600749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011164010.0A CN112600749B (en) 2020-10-27 2020-10-27 Expired call identification method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011164010.0A CN112600749B (en) 2020-10-27 2020-10-27 Expired call identification method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112600749A true CN112600749A (en) 2021-04-02
CN112600749B CN112600749B (en) 2023-02-17

Family

ID=75180388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011164010.0A Active CN112600749B (en) 2020-10-27 2020-10-27 Expired call identification method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112600749B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6442265B1 (en) * 1999-05-06 2002-08-27 At&T Corp Method for detecting and reducing fraudulent telephone calls
CN101959154A (en) * 2010-06-09 2011-01-26 宇龙计算机通信科技(深圳)有限公司 Method and system for calibrating time of mobile terminal, and mobile terminal
CN102970449A (en) * 2012-11-05 2013-03-13 深圳市共进电子股份有限公司 Method and device for issuing caller information
US20150063559A1 (en) * 2013-08-27 2015-03-05 James Siminoff System and Method for Controlling Calls for Contact Centers
CN105430161A (en) * 2015-10-29 2016-03-23 小米科技有限责任公司 Message processing method and device
CN106506859A (en) * 2016-12-01 2017-03-15 深圳市万普拉斯科技有限公司 Incoming call time delay based reminding method and device
CN107135298A (en) * 2017-04-14 2017-09-05 努比亚技术有限公司 Call blocking method and apparatus
CN107231499A (en) * 2017-06-30 2017-10-03 珠海市魅族科技有限公司 Call processing method, device, terminal and medium
CN108881774A (en) * 2018-05-08 2018-11-23 北京奇艺世纪科技有限公司 The calling system and method for multi-media network call
CN109327625A (en) * 2018-11-29 2019-02-12 南昌与德软件技术有限公司 A kind of call redialing method, device, storage medium and mobile terminal
US20190174000A1 (en) * 2017-12-06 2019-06-06 Ribbon Communications Operating Company, Inc. Methods and apparatus for detection and mitigation of robocalls

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6442265B1 (en) * 1999-05-06 2002-08-27 At&T Corp Method for detecting and reducing fraudulent telephone calls
CN101959154A (en) * 2010-06-09 2011-01-26 宇龙计算机通信科技(深圳)有限公司 Method and system for calibrating time of mobile terminal, and mobile terminal
CN102970449A (en) * 2012-11-05 2013-03-13 深圳市共进电子股份有限公司 Method and device for issuing caller information
US20150063559A1 (en) * 2013-08-27 2015-03-05 James Siminoff System and Method for Controlling Calls for Contact Centers
CN105430161A (en) * 2015-10-29 2016-03-23 小米科技有限责任公司 Message processing method and device
CN106506859A (en) * 2016-12-01 2017-03-15 深圳市万普拉斯科技有限公司 Incoming call time delay based reminding method and device
CN107135298A (en) * 2017-04-14 2017-09-05 努比亚技术有限公司 Call blocking method and apparatus
CN107231499A (en) * 2017-06-30 2017-10-03 珠海市魅族科技有限公司 Call processing method, device, terminal and medium
US20190174000A1 (en) * 2017-12-06 2019-06-06 Ribbon Communications Operating Company, Inc. Methods and apparatus for detection and mitigation of robocalls
CN108881774A (en) * 2018-05-08 2018-11-23 北京奇艺世纪科技有限公司 The calling system and method for multi-media network call
CN109327625A (en) * 2018-11-29 2019-02-12 南昌与德软件技术有限公司 A kind of call redialing method, device, storage medium and mobile terminal

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
张蕊等: "基于Android平台的防电信诈骗软件的设计", 《现代计算机(专业版)》 *
张蕊等: "基于Android平台的防电信诈骗软件的设计", 《现代计算机(专业版)》, no. 19, 5 July 2018 (2018-07-05) *
胡楠: "VoIP垃圾电话防治关键技术研究", 《CNKI》 *
胡楠: "VoIP垃圾电话防治关键技术研究", 《CNKI》, 5 May 2011 (2011-05-05) *

Also Published As

Publication number Publication date
CN112600749B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
CN108881779B (en) Method, system and server for answering and transferring video calls between intelligent devices
CN110300050B (en) Message pushing method and device, computer equipment and storage medium
EP2888868B1 (en) Calling an unready terminal
CN110633442A (en) Pushing method and device and electronic equipment
US9686506B2 (en) Method, apparatus, system, and storage medium for video call and video call control
US9467404B2 (en) Processing method and processing system for instant messages in network conference
CN106878527B (en) Call control method and device
CN112689202B (en) Live broadcast room message processing method and device, server and storage medium
CN110177368B (en) Call establishment method and system, and video communication server
CN109963353B (en) Call reestablishment method and device for broadband and narrowband fusion system
US10594859B2 (en) Communication method, apparatus, and system
CN111092934A (en) Method for updating client routing and storage medium
US10412778B2 (en) Data transmission method and apparatus for data service
CN109120804B (en) Outbound system based on response information identification
CN112600749B (en) Expired call identification method, device, terminal and storage medium
TWI513236B (en) Method, device and system for conversational notifications in instant messaging application
CN110392444B (en) Call service processing method and terminal
CN112291501A (en) Video conference control method and device
CN112291371B (en) Conference message real-time synchronization method, system, device and storage medium
KR101790896B1 (en) Apparatus for message processing and control method thereof
CN108259433B (en) Call queuing distribution method, system and server
US8588397B2 (en) Communication control system, communication control method, and recording medium including communication control program
CN110324277B (en) Connection method and device for real-time communication, storage medium and electronic device
CN107888482B (en) Instant messaging method and device
CN111641987B (en) Method for processing based on service, terminal equipment, network equipment and computer storage medium

Legal Events

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