Summary of the invention
Main purpose of the present invention is to provide a kind of procotol voice system and Internet phone-calling method, it is by under being arranged on same group by multiple terminal equipment, make other users under same group can answer the incoming call of other-end equipment on the position of oneself, solve the above problems with this.
The present invention is used for providing a kind of procotol voice system, described system is applied to first terminal equipment, between at least one second terminal equipment and dynamic domain name server, described system includes the first Registering modules and the second Registering modules, described first Registering modules is for generation of the telephone number of described first terminal equipment, domain name corresponding to the telephone number of described first terminal equipment is produced according to preset rules, and the domain name of described first terminal equipment and the internet protocol address of first terminal equipment are registered to described dynamic domain name server, described second Registering modules is for generation of the telephone number of at least one second terminal equipment, the domain name corresponding according to the telephone number of described at least one second terminal equipment of preset rules generation, and the internet protocol address of the domain name of described at least one second terminal equipment and described at least one second terminal equipment is registered to described dynamic domain name server, described first Registering modules, also for generation of the group name that described first terminal equipment is corresponding, group's domain name corresponding to described group name is produced according to preset rules, and the internet protocol address of described first terminal equipment and described group domain name are registered to described dynamic domain name server, and described second Registering modules, also for obtaining group's domain name of described first terminal equipment, and the internet protocol address of described group domain name and described at least one second terminal equipment is registered to described dynamic domain name server, make described at least one second terminal equipment and described first terminal equipment be arranged in same group.
The present invention is also for providing a kind of call method of procotol voice system, described system is applied between first terminal equipment, at least one second terminal equipment and dynamic domain name server, said method comprising the steps of: the telephone number producing described first terminal equipment, produce domain name corresponding to the telephone number of described first terminal equipment according to preset rules, and the domain name of described first terminal equipment and the internet protocol address of first terminal equipment are registered to described dynamic domain name server; Produce the telephone number of at least one second terminal equipment, the domain name corresponding according to the telephone number of described at least one second terminal equipment of preset rules generation, and the internet protocol address of the domain name of described at least one second terminal equipment and described at least one second terminal equipment is registered to described dynamic domain name server; Produce the group name that described first terminal equipment is corresponding, produce group's domain name corresponding to described group name according to preset rules, and the internet protocol address of described first terminal equipment and described group domain name are registered to described dynamic domain name server; And obtain group's domain name described in first terminal equipment, and the internet protocol address of described group domain name and described at least one second terminal equipment is registered to described dynamic domain name server, make described at least one second terminal equipment and described first terminal equipment be arranged in same group.
Procotol voice system of the present invention and method, it is by under being added to set by a first terminal equipment by multiple second terminal equipment group, thus when first terminal equipment has incoming call, other-end equipment also can receive the notice of incoming call, be convenient to the incoming call that first terminal equipment answered by the second terminal equipment, the incoming call on first terminal equipment is got on to answer in the position avoiding the user of the second terminal equipment to go to first terminal equipment, saves user time.
Embodiment
Fig. 1 is a kind of procotol voice (VoiceoverInternetProtocol, VoIP) system 100, described system 100 is applied between first terminal equipment 101, at least one second terminal equipment 102 and dynamic domain name server (DynamicDomainNameServiceServer, DDNSServer) 103.In the present embodiment, first terminal equipment 101, at least one second terminal equipment 102 can be the networking telephone, notebook computer or desktop computer etc.In present embodiment, described first terminal equipment 101 and the second terminal equipment 102 self have the function of access network.In other execution modes, when described first terminal equipment 101 and the second terminal equipment 102 self do not have the function of access network, by integrated access equipment (IntegratedAccessDevice, an IAD) access network yet.
As shown in Figure 2, described system 100 includes the first Registering modules 11 and the second Registering modules 12.Described first Registering modules 11 is for generation of the telephone number of described first terminal equipment 101, produce domain name corresponding to the telephone number of described first terminal equipment 101 according to preset rules, and the domain name of described first terminal equipment 101 and the internet protocol address of first terminal equipment 101 are registered to described dynamic domain name server 103.Described first Registering modules 11 is also for generation of a group name of described first terminal equipment 101 correspondence, produce group's domain name corresponding to described group name according to preset rules, and group's domain name of the internet protocol address of described first terminal equipment 101 and described first terminal equipment 101 is registered to described dynamic domain name server 103.
Described second Registering modules 12 is for generation of the telephone number of at least one second terminal equipment 102, the domain name corresponding according to the telephone number of described at least one second terminal equipment 102 of preset rules generation, and the internet protocol address of the domain name of described at least one second terminal equipment 102 and described at least one second terminal equipment 102 is registered to described dynamic domain name server 103.The internet protocol address of described group domain name and described at least one second terminal equipment 102 also for obtaining group's domain name of described first terminal equipment 101, and is registered to described dynamic domain name server by described second Registering modules 12.In present embodiment, the table of comparisons is included in this dynamic domain name server 103, described first Registering modules 11 is for the internet protocol address of the domain name of first terminal equipment 101 and first terminal equipment 101 being stored in the table of comparisons, and group's domain name of the internet protocol address of described first terminal equipment 101 and described first terminal equipment 101 is stored in the table of comparisons.Described second Registering modules 12 is for the internet protocol address of the domain name of at least one second terminal equipment 102 and described at least one second terminal equipment 102 being stored in the table of comparisons, and the internet protocol address of group's domain name of first terminal equipment and described at least one second terminal equipment 102 is stored in the table of comparisons.In the present embodiment, described first Registering modules 11 runs in first terminal equipment 101, described second Registering modules 12 runs in the second terminal equipment 102, in other execution modes, described first Registering modules 11 and described second Registering modules 12 can run in corresponding terminal equipment according to the needs of user.
Further, this system 100 also includes the first control module 14 and the second control module 15.Described first control module 14 sends group join request to first terminal equipment 101 for controlling the second terminal equipment 102.Described second control module 15 receives the group that the second terminal equipment 102 sends join request for controlling first terminal equipment 101, and joins request based on this group and control first terminal equipment 101 and send group's domain name to the second Registering modules 12.
In present embodiment, described second control module 15 also produces a group name of described first terminal equipment 101 correspondence for control first Registering modules 11 that joins request based on this group, group's domain name corresponding to described group name is produced according to preset rules, and group's domain name of the internet protocol address of described first terminal equipment 101 and described first terminal equipment 101 registered to described dynamic domain name server 103, and control first terminal equipment 101 sends group's domain name to the second Registering modules 12.In another embodiment, described second control module 15 also detects first terminal equipment 101 for joining request based on this group and whether adds a group, when first terminal equipment 101 does not add a group, control the group name that the first Registering modules 11 produces described first terminal equipment 101 correspondence, group's domain name corresponding to described group name is produced according to preset rules, and group's domain name of the internet protocol address of described first terminal equipment 101 and described first terminal equipment 101 is registered to described dynamic domain name server 103, and control first terminal equipment 101 sends group's domain name to the second Registering modules 12.
Further, described system 100 is also applied at least one third terminal equipment 104.Described system also comprises the 3rd Registering modules 13 and the 3rd control module 17.Described 3rd Registering modules 13 is for generation of the telephone number of at least one third terminal equipment 104, the domain name corresponding according to the telephone number of the described at least one third terminal equipment 104 of preset rules generation, and the internet protocol address of the domain name of described at least one third terminal equipment 104 and described at least one third terminal equipment 104 is registered to described dynamic domain name server 103.Described 3rd control module 17 is for controlling the telephone number that third terminal equipment 104 obtains first terminal equipment 101 when third terminal equipment 104 calls out first terminal equipment 101, and produce domain name corresponding to the telephone number of described first terminal equipment 101 according to preset rules, in dynamic domain name server 103, inquire about the internet protocol address of first terminal equipment 101 corresponding to the domain name of first terminal equipment 101, and control third terminal equipment 104 and send the internet protocol address of a call request to the first terminal equipment 101 inquired.Described second control module 15 receives for controlling first terminal equipment 101 call request that third terminal equipment 104 sends, according to the group that this call request inquiry first terminal equipment 101 self adds, control first terminal equipment 101 obtains the internet protocol address of all second terminal equipments 102 under this group from dynamic domain name server 103, and the call request received is sent to the second terminal equipment 102 internet protocol address got.Described first control module 14 sends to answer for the second terminal equipment 102 controlling when wherein this call request answered by one second terminal equipment 102 to answer and notifies in other the second terminal equipments 102, and the relevent information of described second terminal equipment 102 is sent to first terminal equipment 101.Described second control module 15 controls the relevent information that first terminal equipment 101 receives described second terminal equipment 102 sent, and the relevent information of described second terminal equipment 102 is sent to third terminal equipment 104.Described 3rd control module 17 also receives the relevent information of the second terminal equipment 102 sent for controlling third terminal equipment 104, and sends call request in the second terminal equipment 102 according to this relevent information control third terminal equipment 104.Described first control module 14 also receives for controlling the second terminal equipment 102 call request that third terminal equipment 104 sends, and transmits and agree to that call request instruction is in third terminal equipment 104.Described 3rd control module 17 also for after receive agreement call request instruction that the second terminal equipment 102 sends when described third terminal equipment 104, controls to carry out data stream transmitting between third terminal equipment 104 and the second terminal equipment 102.In present embodiment, described first control module 14 runs in the second terminal equipment 102, described second control module 15 runs in first terminal equipment 101, described 3rd control module 17 runs in third terminal equipment 104, in other execution modes, described first control module 14, described second control module 15 and described second control module 17 can run in corresponding terminal equipment according to the demand of user.
Such as, multiple terminal equipment B1, B2 and B3 is had in the group at present terminal device A place.When terminal equipment C dials terminal equipment A, the call request of terminal equipment C can be notified all terminal equipment B1 in this group by terminal equipment A, B2 and B3, now, terminal equipment A and all terminal equipment B1, any one in B2 and B3 can be selected to answer the incoming call from terminal equipment C, as terminal equipment B1, one in B2 and B3 when answering this incoming call, the terminal equipment of answering this incoming call transmission one notice is informed other terminal equipment its answered this incoming call, now, other terminal equipment cannot answer this incoming call.
In the present embodiment, the telephone number of each terminal equipment utilizes hash algorithm to produce based on respective MAC Address, described hash algorithm is latter six of the MAC Address of getting each terminal equipment, and described preset rules is that combining forms domain name by telephone number and default word string (as: " .myvoip.net ").For example, assuming that the MAC Address of terminal equipment is respectively 11:12:31:23 and 11:45:64:56, then the telephone number of terminal equipment 100a, 100b is respectively 123123,456456, recombination region number (as 0944), then the telephone number that terminal equipment is final is respectively 0944123123,0944456456.Accordingly, the domain name of terminal equipment is respectively " 0944123123.myvoip.net " and " 0944456456.myvoip.net ".
Fig. 3 is a kind of call method flow chart of procotol voice system.
Step S601, this first Registering modules 11 produces the telephone number of described first terminal equipment 101, produce domain name corresponding to the telephone number of described first terminal equipment 101 according to preset rules, and the domain name of described first terminal equipment 101 and the internet protocol address of first terminal equipment 101 are registered to described dynamic domain name server 103.
Step S602, this second Registering modules 12 produces the telephone number of at least one second terminal equipment 102, the domain name corresponding according to the telephone number of described at least one second terminal equipment 102 of preset rules generation, and the internet protocol address of the domain name of described at least one second terminal equipment 102 and described at least one second terminal equipment 102 is registered to described dynamic domain name server 103.
Step S603, this first Registering modules 11 produces a group name of described first terminal equipment 101 correspondence, produce group's domain name corresponding to described group name according to preset rules, and group's domain name of the internet protocol address of described first terminal equipment 101 and described first terminal equipment 101 is registered to described dynamic domain name server 103.
Step S604, this second Registering modules 12 obtains group's domain name of described first terminal equipment 101, and the internet protocol address of described group domain name and described at least one second terminal equipment 102 is registered to described dynamic domain name server 103.
Further, the method is further comprising the steps of: described first control module 14 controls the second terminal equipment 102 and sends group and join request to first terminal equipment 101.Described second control module 15 controls first terminal equipment 101 and receives the group that the second terminal equipment 102 sends and join request, and joins request based on this group and control first terminal equipment 101 and send group's domain name to the second terminal equipment 102.
In present embodiment, described second control module 15 also produces a group name of described first terminal equipment 101 correspondence for control first Registering modules 11 that joins request based on this group, group's domain name corresponding to described group name is produced according to preset rules, and group's domain name of the internet protocol address of described first terminal equipment 101 and described first terminal equipment 101 registered to described dynamic domain name server 103, and control first terminal equipment 101 sends group's domain name to the second Registering modules 12.In another execution mode, described second control module 15 also detects first terminal equipment 101 for joining request based on this group and whether adds a group, when first terminal equipment 101 does not add a group, control the group name that the first Registering modules 11 produces described first terminal equipment 101 correspondence, group's domain name corresponding to described group name is produced according to preset rules, and group's domain name of the internet protocol address of described first terminal equipment 101 and described first terminal equipment 101 is registered to described dynamic domain name server 103, and control first terminal equipment 101 sends group's domain name to the second Registering modules 12.
Further, the method is further comprising the steps of: described 3rd Registering modules 13 produces the telephone number of at least one third terminal equipment 104, the domain name corresponding according to the telephone number of the described at least one third terminal equipment 104 of preset rules generation, and the internet protocol address of the domain name of described at least one third terminal equipment 104 and described at least one third terminal equipment 104 is registered to described dynamic domain name server 103.When third terminal equipment 104 calls out first terminal equipment 101, described 3rd control module 17 controls the telephone number that third terminal equipment 104 obtains first terminal equipment 101, and produce domain name corresponding to the telephone number of described first terminal equipment 101 according to preset rules, in dynamic domain name server 103, inquire about the internet protocol address of first terminal equipment 101 corresponding to the domain name of first terminal equipment 101, and control third terminal equipment 104 and send the internet protocol address of a call request to the first terminal equipment 101 inquired.Described second control module 15 controls first terminal equipment 101 and receives the call request that third terminal equipment 104 sends, according to the group that this call request inquiry first terminal equipment 101 self adds, control first terminal equipment 101 obtains the internet protocol address of all second terminal equipments 102 under this group from dynamic domain name server 103, and the call request received is sent to the second terminal equipment 102 internet protocol address got.When wherein this call request answered by one second terminal equipment 102, the second terminal equipment 102 that described first control module 14 controls to answer sends to answer and notifies in other the second terminal equipments 102, and the relevent information of described second terminal equipment 102 is sent to first terminal equipment 101.Described second control module 15 controls the relevent information that first terminal equipment 101 receives described second terminal equipment 102 sent, and the relevent information of described second terminal equipment 102 is sent to third terminal equipment 104.Described 3rd control module 17 controls the relevent information that third terminal equipment 104 receives the second terminal equipment 102 sent, and sends call request in the second terminal equipment 102 according to this relevent information control third terminal equipment 104.Described first control module 14 controls the second terminal equipment 102 and receives the call request that third terminal equipment 104 sends, and transmits and agree to that call request instruction is in third terminal equipment 104.Described 3rd control module 17, after described third terminal equipment 104 receives the agreement call request instruction that the second terminal equipment 102 sends, controls to carry out data stream transmitting between third terminal equipment 104 and the second terminal equipment 102.