Embodiment
Below in conjunction with accompanying drawing, the terminal equipment in the present invention and network protocol voice communication method are described in further detail.
Fig. 1 is procotol voice system configuration diagram in an embodiment of the present invention.In the present embodiment, procotol voice system 100 comprises DDNS server (DynamicDomain Name Service Server, DDNS Server) 10, multiple terminal equipments 20 and integrated access equipment 30.In the present embodiment, being respectively 20a, 20b, 20c taking multiple terminal equipments 20 describes as example.This integrated access equipment 30 is for being connected the plurality of terminal equipment 20a, 20b, 20c with this DDNS server 10.In the present embodiment, the plurality of terminal equipment 20a, 20b, 20c can be the networking telephone, notebook computer or desktop computer etc.Wherein, the mode that terminal equipment 20a, 20b, 20c access these DDNS servers 10 via this integrated access equipment 130 is with existing identical.It should be noted in the discussion above that in the time that terminal equipment 20a, 20b, 20c self have the function of access network, also can be not via this integrated access equipment 130, and access voluntarily this DDNS server 10.
This DDNS server 10 comprises the table of comparisons 11 and processing unit 12, in the time that this terminal equipment 20a, 20b, 20c register to this DDNS server 10, this processing unit 12 is stored in the domain name of this terminal equipment 20a, 20b, 20c and procotol (Internet Protocol, IP) address in the table of comparisons 11.The described table of comparisons 11 comprises domain name field and IP address field, is respectively used to domain name and the IP address of storage terminal equipment 20a, 20b, 20c.Wherein, the IP address of each storage terminal equipment 20a, 20b, 20c is the unique correspondence of this terminal equipment and set in the time that terminal equipment dispatches from the factory.The IP address that for example this terminal equipment 20a is corresponding is 60.199.244.6, and the IP address that terminal equipment 20b is corresponding is 210.59.230.60, and the IP address that terminal equipment 20c is corresponding is 119.160.246.23.
See also Fig. 2 and Fig. 3, each terminal equipment 20 includes Registering modules 21, input receiver module 22, IP address lookup module 23, group's foundation and Registering modules 24, signaling Switching Module 25 and memory module 26.In the present embodiment, comprise that with terminal equipment 20a correspondence Registering modules 21a, input receiver module 22a, IP address lookup module 23a, group's foundation and Registering modules 24a, signaling Switching Module 25a and memory module 26a describe, corresponding Registering modules 21b, the input receiver module 22b etc. of comprising of terminal equipment 20b, corresponding Registering modules 21c, the input receiver module 22c etc. of comprising of terminal equipment 20c.
The Registering modules 21 of each terminal equipment 20 is for producing telephone number separately according to a preset algorithm, and produce domain name corresponding to telephone number separately according to preset rules after the telephone number producing separately, then domain name separately and IP address are separately registered to this DDNS server 10.Wherein, this telephone number is the IP telephone numbers of terminal equipment 20.In the present embodiment, the telephone number of each terminal equipment 20a, 20b, 20c is the MAC(Media Access Control based on separately) address utilizes Hash (HASH) algorithm to produce, described hash algorithm is latter six of MAC Address that get each terminal equipment, and described preset rules is that telephone number is formed to domain name in conjunction with a default word string (as: " .myvoip.net ").For example, the MAC Address of establishing terminal equipment 20a is 11:12:31:23, and the telephone number of terminal equipment 20a is 123123, and the recombination region number 0944 complete telephone call number that generates this terminal equipment 20a is 0944123123.Accordingly, the domain name of terminal equipment 20a be telephone number 0944123123 in conjunction with this default word string .myvoip.net, be: 0944123123.myvoip.net.In like manner, if the MAC Address of terminal equipment 20b is 11:45:64:56, the telephone number of terminal equipment 20b is 0944456456, and corresponding domain name is 0944456456.myvoip.net.If the MAC Address of terminal equipment 20c is 11:78:97:89, the telephone number of terminal equipment 20c can be 0944789789, and corresponding domain name is 0944789799.myvoip.net.
After terminal equipment 20a, 20b, 20c have registered to DDNS server 10, one first terminal equipment 20a can also form a group with one second terminal equipment 20b, in the time that a third terminal equipment 20c call service group becomes in the terminal equipment 20a of group or 20b, user can select any one in terminal equipment 20a and the 20b of this composition group to set up and converse with terminal equipment 20c.
Concrete, wherein the foundation of the group of any one terminal equipment 20 and Registering modules 24 can respond user's operation and set up a group, and for example group of terminal equipment 20a sets up and Registering modules 24a responds user's operation and sets up a group as creator.When the input receiver module 22b of terminal equipment 20b receive user be input as the group that will add terminal equipment 20a time, terminal equipment 20b obtains the telephone number corresponding to creator of the group that need to add by input receiver module 22b, be the telephone number that terminal equipment 20a is corresponding, the input receiver module 22b of such as terminal equipment 20b can receive user need to add the terminal equipment 20a of group telephone number 0944123123 by input unit inputs such as numeric keypads.IP address lookup module 23b in this terminal equipment 20b generates corresponding domain name: 0944123123.myvoip.net by the telephone number getting by foregoing preset rules.Then this IP address lookup module 23b generates the inquiry request of a domain name 0944123123.myvoip.net who comprises this generation, and this inquiry request is sent to this DDNS server 10, for IP address corresponding to domain name 0944123123.myvoip.net to 10 these generations of inquiry of this DDNS server, i.e. the IP address of the terminal equipment 20a of requesting query group to be added.
The processing unit 12 of this dynamic state server 10 receives after the inquiry request of this terminal equipment 20b transmission, in the table of comparisons 11, in the domain name of the terminal equipment of storage and IP address, inquire about the IP address corresponding to domain name of this generation, and the IP address inquiring is back to and sends the terminal equipment 20b of this request, for example, after IP address corresponding to domain name 0944123123.myvoip.net that this DDNS server 10 inquires this generation is 60.199.244.6, this IP address 60.199.244.6 is sent to terminal equipment 20b.
The group of this terminal equipment 20b sets up and the IP address of the terminal equipment 20a that Registering modules 24b sends according to this DDNS server 10 receiving generation one adds group's request, and add group's request to be sent to terminal equipment 20a corresponding to this IP address inquiring this, wherein this adds the domain name and the IP address that in group's request, comprise the terminal equipment 20b that sends this request.
Group in terminal equipment 20a sets up and Registering modules 24a receives adding after group's request of this terminal equipment 20b transmission, analyze this and add group's request, send domain name, IP address etc. that this adds the terminal equipment of group's request as analyzed, and whether the user's who receives according to input receiver module 22a input validation agrees to that this adds group's request.If disagree with, this adds group's request, for example, input receiver module 22a reception user operates the refusal order of generation, the group registration module 24a in this terminal equipment 20a adds the terminal equipment 20b of group's request to return an exclude information to sending this, refuses this terminal equipment 20b and adds this group.If agree to, this adds group's request, the group registration module 24a of this terminal equipment 20a adds the terminal equipment 20b passback one of group's request to confirm response (for example 200ok) to sending this, and this terminal equipment 20b is added to group, the group of the terminal equipment 20a of this composition group sets up and Registering modules 24a also will add during the domain name of terminal equipment 20b of group and IP address be stored in its memory module 26a, same, this adds the group of the terminal equipment 20b of group to set up and Registering modules 24b is also stored in the domain name of this terminal equipment 20a and IP address in its memory module 26b.In the present embodiment, each terminal equipment 20 also includes a display module 27, after the group's relation between terminal equipment is set up, the composition terminal equipment 20a of group and the display module of 20b are shown to all telephone numbers in this group the user of the terminal equipment 20 in arbitrary group.
Refer to Fig. 4, terminal equipment 20b adds after the group of terminal equipment 20a, when the input receiver module 22c of terminal equipment 20c receive user be input as a terminal equipment 20a who needs in call group time, first this terminal equipment 20c obtains the telephone number of the terminal called equipment 20a of user's input by input receiver module 22c, for example receive user by the telephone number of the input equipment inputs such as numeric keypad, IP address lookup module 23c in this terminal equipment 20c generates corresponding domain name by the telephone number of the terminal called equipment 20a getting according to foregoing pre-defined rule, for example generate called domain name 0944123123.myvoip.net corresponding to terminal equipment 20a, and send the inquiry request of a domain name that comprises this generation to this DDNS server 10, for asking this DDNS server 10 to inquire about the IP address that called telephone number is corresponding.
Processing unit 12 in this DDNS server 10 receives after the inquiry request of this terminal equipment 20c transmission, inquires about the IP address that terminal called equipment 20a is corresponding and this IP address is returned to the terminal equipment 20c that sends this inquiry request in the table of comparisons 11.
Signaling Switching Module 25c in this terminal equipment 20c input receiver module 22c receive user be input as a terminal equipment 20a who needs in call group time, the IP address of the terminal called equipment sending according to this DDNS server 10 receiving generates a message request (invite), and this message request is sent to terminal called equipment 20a corresponding to this IP address receiving, set up call in order to request.The identification information that wherein comprises calling terminal equipment 20c in this message request.
Signaling Switching Module 25a in this terminal called equipment 20a receives after this message request, jingle bell also sends ring response to this calling terminal equipment 20c, this signaling Switching Module 25a also initiates message request according to the terminal equipment 20b in the domain name of the terminal equipment 20b in the group storing in its memory module 26a and IP address Xiang Gai group simultaneously, for notifying the other-end equipment in group to have terminal equipment 20c request to set up call, wherein, the identification information that comprises calling terminal equipment 20c in the message request that this terminal called equipment 20a initiates.
Signaling Switching Module 25b in terminal equipment 20b in group receives after the message request that this terminal equipment 20a initiates jingle bell and sends a ring response (180ringing) to terminal called equipment 20a.Terminal equipment 20b in this terminal called equipment 20a and its group all produces call reminding information, for example, play incoming ring tone or carry out flickering display prompting etc.
If this calling terminal equipment 20c cancels calling in calling procedure, the signaling Switching Module 25c in this calling terminal equipment 20c sends one to terminal called equipment 20a and hangs up information, the signaling Switching Module 25a of terminal called equipment 20a receives this and hangs up after information, this cancellation information is sent to the terminal equipment 20b in group, and whole calling procedure finishes.
As shown in Figure 5, if user answers call by this terminal called equipment 20a in calling procedure, the signaling Switching Module 25a of this terminal called equipment 20a is to the other-end equipment 20 in group, for example terminal equipment 20b sends a cancellation information, and the signaling Switching Module 25b of the terminal equipment 20b in this group can not set up call with calling terminal equipment 20c after receiving this cancellation information.The signaling Switching Module 25a of this terminal called equipment 20a also sends a confirmation response (200ok) to calling terminal equipment 20c simultaneously, wherein, in this confirmation response, include the identification information such as port information, IP address information of the terminal called equipment 20a that answers call.The signaling Switching Module 25c of this calling terminal equipment 20c sets up voice call according to identification information and this terminal called equipment 20a in this confirmation response after receiving this confirmation response, mutually transmits voice stream.When after talk-through, the signaling Switching Module 25c of calling terminal equipment 20c sends and hangs up information (Bye) to terminal called equipment 20a, and calling terminal equipment 20c finishes signaling with terminal called equipment 20a and is connected.Wherein, in the present embodiment, the signaling Switching Module 25a of this terminal called equipment 20a sends after a cancellation information to the other-end equipment 20 in group, and the other-end equipment 20 in this group stops producing call reminding information.
As shown in Figure 6, if user answers call by the terminal equipment 20b in this terminal called equipment 20a group in calling procedure, the signaling Switching Module 25b of terminal equipment 20b in Ze Gai group sends one to this terminal called equipment 20a and confirms response (200ok), wherein in this confirmation response, includes the identification information such as port information and IP address information of the terminal equipment 20b that answers call.This confirmation response is sent to calling terminal equipment 20c by the signaling Switching Module 25a of this terminal called equipment 20a, the signaling Switching Module 25c of this calling terminal equipment 20c receives after this confirmation response, terminal equipment 20b according to the identification information in this confirmation response directly and in group sets up voice call, mutually transmits voice stream.
Fig. 7 A-7B is network protocol voice communication method flow chart in an embodiment of the present invention.
Step S701: Registering modules 21a, the 21b of terminal equipment 20a, 20b, 20c, 21c produce respectively the telephone number of oneself and produce domain name corresponding to telephone number of oneself according to preset rules.
Step S702: Registering modules 21a, 21b, the 21c of terminal equipment 20a, 20b, 20c register the domain name of oneself and the IP address of oneself respectively to DDNS server 10.
Step S703: in the time that the input receiver module 22b of terminal equipment 20b receives being input as of user and will add the group that terminal equipment 20a sets up, the input receiver module 22b of terminal equipment 20b obtains the creator's of the group that need to add telephone number, it is the telephone number that terminal equipment 20a is corresponding, IP address lookup module 23c generates corresponding domain name by the telephone number getting by foregoing preset rules, and send the inquiry request of a domain name that comprises this generation to this DDNS server, for asking the IP address corresponding to domain name of these DDNS server 10 these generations of inquiry, it is the IP address of the terminal equipment 20a of requesting query group to be added.
Step S704: the processing unit 12 of DDNS server 10 receives after the inquiry request of this terminal equipment 20b transmission, in the table of comparisons 11, in the domain name of the terminal equipment of storage and IP address, inquire about the IP address corresponding to domain name of this generation, and the IP address inquiring is back to the terminal equipment 20b that sends this request.
Step S705: the group of this terminal equipment 20b set up and Registering modules 24b in the time that input receiver module 22b receives being input as of user and will add the group that terminal equipment 20a sets up, according to the IP address that receives this DDNS server 10 and send, the terminal equipment 20a corresponding to this IP address inquiring sends the request that adds group, and wherein this adds the domain name and the IP address that in the request of group, comprise the terminal equipment 20b that sends this request.
Step S706: the group registration module 24a of terminal equipment 20a receives after the request that adds group of this terminal equipment 20b transmission, analyze this and add group's request, if agree to, this adds group's request, and the group registration module 24a of this terminal equipment 20a confirms response and this terminal equipment 20b is added to this group to the terminal equipment 20b passback one that sends this request.
Step S707: when the input receiver module 22c of terminal equipment 20c receive user be input as a terminal equipment 20a who calls out in this group time, this terminal equipment 20c obtains the telephone number of the terminal called equipment 20a of user's input by input receiver module 22c, IP address lookup module 23c generates corresponding domain name by the telephone number of the terminal called equipment 20a getting according to foregoing pre-defined rule, and send the inquiry request of a domain name that comprises this generation to this DDNS server 10, for asking this DDNS server 10 to inquire about the IP address that called telephone number is corresponding.
Step S708: the processing unit 12 of this DDNS server 10 receives after the inquiry request of this terminal equipment 20c transmission inquires about the IP address that terminal called equipment 20a is corresponding and this IP address is returned to the terminal equipment 20c that sends this inquiry request in the table of comparisons 11.
Step S709: the input receiver module 22c of this terminal equipment 20c receive user be input as a terminal equipment 20a who calls out in this group time, signaling Switching Module 25c is receiving behind the IP address of the terminal called equipment that this DDNS server 10 sends, and sends message request (invite) request set up call to the IP address of this terminal called equipment 20a.
Step S710: the signaling Switching Module 25a of this terminal called equipment 20a receives after this message request, jingle bell is also replied ring response to calling terminal equipment 20c, also be stored in domain name and the IP address of the terminal equipment 20b in the group in memory module 26a according to it simultaneously, terminal equipment 20b in its group initiates message request, for notifying the other-end equipment in group to have terminal equipment 20c request to set up call, wherein, the identification information that comprises calling terminal equipment 20c in the message request that this terminal called equipment 20a initiates.
Step S711: the signaling Switching Module 25b of the terminal equipment 20b in group receives jingle bell after the message request that this terminal called equipment 20a initiates and terminal equipment 20b from its group to terminal called equipment 20a that send in ring response (180ringing) this terminal called equipment 20a and all shows incoming ring tone.
Step S712: thus any one the confession user in the terminal equipment 20a of this composition group and 20b answers call and terminal equipment 20c sets up call.
Concrete, if user answers call by this terminal called equipment 20a in calling procedure, the signaling Switching Module 25a of this terminal called equipment 20a sends a cancellation information to the terminal equipment 20b in group, and the signaling Switching Module 25b of the terminal equipment 20b in this group can not set up call with calling terminal equipment 20c after receiving this cancellation information.The signaling Switching Module 25a of this terminal called equipment 20a also sends a confirmation response (200ok) to calling terminal equipment 20c simultaneously, wherein, in this confirmation response, include the identification information such as port information, IP address information of the terminal called equipment 20a that answers call.The signaling Switching Module 25c of this calling terminal equipment 20c sets up voice call according to identification information and this terminal called equipment 20a in this confirmation response after receiving this confirmation response, mutually transmits voice stream.When after talk-through, the signaling Switching Module 25c of calling terminal equipment 20c sends and hangs up information (Bye) to terminal called equipment 20a, and calling terminal equipment 20c finishes signaling with terminal called equipment 20a and is connected.
As shown in Figure 6, if user answers call by the terminal equipment 20b in this terminal called equipment 20a group in calling procedure, the signaling Switching Module 25b of terminal equipment 20b in Ze Gai group sends one to this terminal called equipment 20a and confirms response, wherein in this confirmation response, includes the identification information such as port information and IP address information of the terminal equipment 20b that answers call.This confirmation response is sent to calling terminal equipment 20c by the signaling Switching Module 25a of this terminal called equipment 20a, the signaling Switching Module 25c of this calling terminal equipment 20c receives after this confirmation response, terminal equipment 20b according to the identification information in this confirmation response directly and in group sets up voice call, mutually transmits voice stream.When after talk-through, the signaling Switching Module 25c of calling terminal equipment 20c sends and hangs up information (Bye) to this terminal equipment 20b, is connected thereby this calling terminal equipment 20c finishes signaling with terminal equipment 20b.
Wherein, this network protocol voice communication method also comprises step: a group is set up in arbitrary terminal equipment 20 response input receiver module 22 users' that receive operation.