Method, apparatus and system for updating location information of an IP address
First Claim
1. A method for updating location information of an IP address, comprising:
- receiving an incoming call from a user;
searching a pre-stored location database for a location corresponding to the incoming call according to a telephone number corresponding to the incoming call of the user, wherein the location database includes the telephone number of the user, a user identifier and the location corresponding to the telephone number;
searching a pre-stored log database for an IP address corresponding to the incoming call according to the user identifier, wherein the log database includes the user identifier, the IP address of the user, a logon spot, and logon time; and
updating location information of the IP address stored in an IP database according to the location corresponding to the incoming call;
further comprisingupdating the logon spot of the IP address recorded in the log database according to the location corresponding to the incoming call;
within a pre-defined period, collecting statistics to update times of the logon spot of the IP address in the log database to obtain a collected result; and
if the collected result reaches a pre-defined threshold, updating the location information of the IP address in the IP database according to the location corresponding to the incoming call.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, apparatus and system for updating location information of an IP address are disclosed. The method includes: receiving an incoming call; searching a pre-stored location database for a location corresponding to the incoming call; searching a pre-stored log database for an IP address corresponding to the incoming call; and updating location information of the IP address stored in an IP database by the location searched out. The present disclosure may be applied when a service provider updates the location information of the IP address in the IP database. Thus, the problem that the location information in the IP database cannot be updated accurately in the prior art is solved.
10 Citations
5 Claims
-
1. A method for updating location information of an IP address, comprising:
-
receiving an incoming call from a user; searching a pre-stored location database for a location corresponding to the incoming call according to a telephone number corresponding to the incoming call of the user, wherein the location database includes the telephone number of the user, a user identifier and the location corresponding to the telephone number; searching a pre-stored log database for an IP address corresponding to the incoming call according to the user identifier, wherein the log database includes the user identifier, the IP address of the user, a logon spot, and logon time; and updating location information of the IP address stored in an IP database according to the location corresponding to the incoming call;
further comprisingupdating the logon spot of the IP address recorded in the log database according to the location corresponding to the incoming call; within a pre-defined period, collecting statistics to update times of the logon spot of the IP address in the log database to obtain a collected result; and if the collected result reaches a pre-defined threshold, updating the location information of the IP address in the IP database according to the location corresponding to the incoming call. - View Dependent Claims (2)
-
-
3. An apparatus for updating location information of an IP address, comprising:
-
one or more processors; a memory; and wherein one or more program modules are stored in the memory and to be executed by the one or more processors, the one or more program modules comprise; a receiving module, to receive an incoming call from a user; a first searching module, to search a pre-stored location database for a location corresponding to the incoming call received by the receiving module according to a telephone number corresponding to the incoming call of the user, wherein the location database comprises the telephone number of the user, a user identifier and the location corresponding to the telephone number; a second searching module, to search a pre-stored log database for an IP address corresponding to the incoming call received by the receiving module according to the user identifier, wherein the log database comprises the user identifier, the IP address of the user, a logon spot, and logon time; and an updating module, to update location information of the IP address searched out by the second searching module stored in an IP database according to the location corresponding to the incoming call by the first searching module; wherein the updating module comprises; a first updating unit, to update the logon spot of the IP address searched out by the second searching module recorded in the log database according to the location corresponding to the incoming call by the first searching module; a statistic collecting module, to collect statistics, within a pre-configured period, to updates of the logon spot of the IP address searched out by the second searching module in the log database performed by the first updating unit and obtain a collected result; and a second updating unit, to update, if the collected result reaches a pre-defined threshold, location information of the IP address searched out by the second searching module in the IP database according to the location corresponding to the incoming call by the first searching module. - View Dependent Claims (4)
-
-
5. A non-transitory machine readable storage medium, comprising a set of instructions for implementing updating location information of an IP address, the set of instructions to direct at least one processor to perform acts of:
-
receiving an incoming call from a user; searching a pre-stored location database for a location corresponding to the incoming call according to a telephone number corresponding to the incoming call of the user, wherein the location database comprises the telephone number of the user, a user identifier and the location corresponding to the telephone number; searching a pre-stored log database for an IP address corresponding to the incoming call according to the user identifier, wherein the log database comprises the user identifier, the IP address of the user, a logon spot, and logon time; and updating location information of the IP address stored in an IP database according to the location corresponding to the incoming call; wherein the updating the location information of the IP address stored in the IP database according to the location corresponding to the incoming call comprises; updating the logon spot of the IP address recorded in the log database according to the location corresponding to the incoming call; within a pre-defined period, collecting statistics to update times of the logon spot of the IP address in the log database to obtain a collected result; and if the collected result reaches a pre-defined threshold, updating the location information of the IP address in the IP database according to the location corresponding to the incoming call.
-
Specification