Embodiment
Below in conjunction with the accompanying drawings, further detailed is made to the terminal device in the present invention and network protocol voice communication method
Description.
Fig. 1 is procotol voice system configuration diagram in an embodiment of the present invention.In the present embodiment, network
Protocol voice system 100 includes dynamic domain name server(DynamicDomain Name Service Server,DDNS
Server)10, multiple terminal devices 20 and integrated access equipment 30.In the present embodiment, with 20 points of multiple terminal devices
It Wei not illustrated exemplified by 20a, 20b, 20c.The integrated access equipment 30 be used for by the plurality of terminal device 20a, 20b, 20c with
The dynamic domain name server 10 is connected.In the present embodiment, the plurality of terminal device 20a, 20b, 20c can be network electricity
Words, notebook computer or desktop computer etc..Wherein, terminal device 20a, 20b, 20c should via the integrated access equipment 130 access
The mode of dynamic domain name server 10 with it is existing identical.It should be noted that being connect when terminal device 20a, 20b, 20c itself have
, also can be not via the integrated access equipment 130 when entering the function of network, and voluntarily access the dynamic domain name server 10.
The dynamic domain name server 10 include the table of comparisons 11 and processing unit 12, when terminal device 20a, 20b, 20c to
When the dynamic domain name server 10 is registered, the processing unit 12 is by the terminal device 20a, 20b, 20c domain name and network
Agreement (Internet Protocol, IP) address is stored in the table of comparisons 11.The table of comparisons 11 is with including domain name field and IP
Location field, is respectively used to storage terminal device 20a, 20b, 20c domain name and IP address.Wherein, each storage terminal device
20a, 20b, 20c IP address are that the terminal device is uniquely corresponding and set when terminal device dispatches from the factory.For example the terminal is set
The corresponding IP address of standby 20a is 60.199.244.6, and the corresponding IP address of terminal device 20b is 210.59.230.60, and terminal is set
The corresponding IP address of standby 20c is 119.160.246.23.
Also referring to Fig. 2 and Fig. 3, each terminal device 20 is with including Registering modules 21, input receiving module 22, IP
Location enquiry module 23, group set up and Registering modules 24, signaling Switching Module 25 and memory module 26.In present embodiment
In, Registering modules 21a is included with terminal device 20a correspondences, receiving module 22a, IP address enquiry module 23a, group is inputted and builds
Vertical and Registering modules 24a, signaling Switching Module 25a and memory module 26a are illustrated, and terminal device 20b accordingly includes
Registering modules 21b, input receiving module 22b etc., terminal device 20c accordingly include Registering modules 21c, input receiving module 22c
Deng.
The Registering modules 21 of each terminal device 20 are used to produce respective telephone number according to a preset algorithm, and in production
Produce the corresponding domain name of respective telephone number according to preset rules after raw respective telephone number, then by respective domain name with
Respective IP address is registered to the dynamic domain name server 10.Wherein, the telephone number is the networking telephone number of terminal device 20
Code.In the present embodiment, each terminal device 20a, 20b, 20c telephone number are to be based on respective MAC(Media
Access Control)Address utilizes Hash(HASH)Algorithm is produced, and the hash algorithm is the MAC for taking each terminal device
Latter six of address, the preset rules are that telephone number is combined into a default word string(Such as:“.myvoip.net”)To constitute domain
Name.For example, setting terminal device 20a MAC Address as 11:12:31:23, then terminal device 20a telephone number is 123123,
The complete telephone number for generating terminal device 20a in conjunction with area code 0944 is 0944123123.Accordingly, terminal device 20a
Domain name combine the default word string .myvoip.net for telephone number 0944123123, be:
0944123123.myvoip.net.Similarly, if terminal device 20b MAC Address is 11:45:64:56, then terminal device 20b
Telephone number be 0944456456, corresponding domain name be 0944456456.myvoip.net.If terminal device 20c MAC
Location is 11:78:97:89, then terminal device 20c telephone number can be 0944789789, and corresponding domain name is
0944789799.myvoip.net。
After the completion of terminal device 20a, 20b, 20c are registered to dynamic domain name server 10, a first terminal equipment 20a may be used also
With with a second terminal equipment 20b constitute a group, a third terminal equipment 20c call service groups into group terminal device
During one in 20a or 20b, user can select any one and terminal in the terminal device 20a and 20b of the composition group
Equipment 20c sets up call.
Specifically, wherein any one terminal device 20 group set up and Registering modules 24 can in response to user operation and
A group is set up, such as terminal device 20a group sets up and Registering modules 24a is used as creator in response to the operation of user
Set up a group.When the terminal device 20b input receiving module 22b inputs for receiving user are to add terminal device 20a
Group when, terminal device 20b by input receiving module 22b obtain need add group the corresponding phone number of creator
Code, the i.e. corresponding telephone numbers of terminal device 20a, such as terminal device 20b input receiving module 22b can receive user and lead to
Crossing the input of the input blocks such as numeric keypad needs to add the terminal device 20a of group telephone number 0944123123.The terminal
The telephone number got is generated correspondence by the IP address enquiry module 23b in equipment 20b by foregoing preset rules
Domain name:0944123123.myvoip.net.Then IP address enquiry module 23b generations one include the domain name of the generation
0944123123.myvoip.net inquiry request, and the inquiry request is sent to the dynamic domain name server 10, for
The dynamic domain name server 10 inquires about the corresponding IP address of domain name 0944123123.myvoip.net of the generation, i.e. request is looked into
Ask the terminal device 20a of group to be added IP address.
The processing unit 12 of the dynamic state server 10 is received after the inquiry request of terminal device 20b transmissions, in control
Inquire about the corresponding IP address of domain name of the generation in the domain name and IP address of the terminal device stored in table 11, and will inquire
IP address is back to the terminal device 20b for sending the request, for example, the dynamic domain name server 10 inquires the domain name of the generation
The corresponding IP address of 0944123123.myvoip.net be 60.199.244.6 after, by IP address 60.199.244.6 send
To terminal device 20b.
The institute of dynamic domain name server 10 that terminal device 20b group is set up and Registering modules 24b is received according to this
The terminal device 20a of transmission IP address generation one adds group appeal, and the addition group appeal is sent to this inquired
The corresponding terminal device 20a of IP address, wherein in the addition group appeal comprising send the request terminal device 20b domain
Name and IP address.
Group in terminal device 20a sets up and Registering modules 24a receives the addition group that terminal device 20b is sent
After request, the addition group appeal is analyzed, such as analysis sends domain name, the IP address of the terminal device of the addition group appeal,
And whether the addition group appeal is agreed to according to the input validation of the input receiving module 22a users received.If disagreeing this to add
Enter group appeal, for example, input receiving module 22a receives the refusal order that user's operation is produced, then in terminal device 20a
Group registration module 24a refuses information to the terminal device 20b passbacks one for sending the addition group appeal, refuses the terminal device
20b adds the group.If agreeing to the addition group appeal, terminal device 20a group registration module 24a is to sending the addition
The terminal device 20b passbacks one of group appeal confirm response(Such as 200ok), and terminal device 20b is added into group, the group
Group's foundation and Registering modules 24a into the terminal device 20a of group will also add the terminal device 20b of group domain name and IP
During address is stored in its memory module 26a, likewise, the terminal device 20b of addition group group sets up and registration mould
The terminal device 20a domain name and IP address are also stored in its memory module 26b by block 24b.In the present embodiment, each
Terminal device 20 also includes a display module 27, after the group relation between terminal device is set up, constitutes the terminal of group
All telephone numbers in the group are shown to the terminal device 20 in any group by equipment 20a and 20b display module
User.
Referring to Fig. 4, terminal device 20b is added after terminal device 20a group, when terminal device 20c input is received
Module 22c receives the input of user to need during a terminal device 20a in call group, and terminal device 20c leads to first
The telephone number that input receiving module 22c obtains the terminal called equipment 20a of user's input is crossed, for example, receives user and passes through numeral
IP address enquiry module 23c in the telephone number of the input equipments such as keyboard input, terminal device 20c is called by what is got
Terminal device 20a telephone number generates corresponding domain name according to foregoing pre-defined rule, for example, generate called terminal
The corresponding domain name 0944123123.myvoip.net of equipment 20a, and include the generation to the dynamic domain name server 10 transmission one
Domain name inquiry request, for asking the called corresponding IP address of telephone number of the dynamic domain name server 10 inquiry.
Processing unit 12 in the dynamic domain name server 10 is received after the inquiry request of terminal device 20c transmissions,
The corresponding IP address of terminal called equipment 20a is inquired about in the table of comparisons 11 and the IP address is returned to and sends the inquiry request
Terminal device 20c.
Signaling Switching Module 25c in terminal device 20c receives the input of user to need in input receiving module 22c
During a terminal device 20a in call group, set according to the terminal called that the dynamic domain name server 10 received is sent
Standby IP address generates a message request(invite), and the message request is sent to the corresponding quilt of IP address received to this
Terminal device 20a is, is conversed to ask to set up.Calling terminal equipment 20c identification information is wherein included in the message request.
Signaling Switching Module 25a in terminal called equipment 20a is received after the message request, jingle bell and to the caller
Terminal device 20c sends ring response, while the signaling Switching Module 25a is always according to the group stored in its memory module 26a
Terminal device 20b of the interior terminal device 20b domain name and IP address into the group initiates message request, for notifying group
Interior other-end equipment has terminal device 20c requests to set up call, wherein, the invitation letter that terminal called equipment 20a is initiated
Calling terminal equipment 20c identification information is included in breath.
Signaling Switching Module 25b in terminal device 20b in group receives the invitation letter of terminal device 20a initiations
After breath jingle bell and to terminal called equipment 20a send a ring response(180ringing).The terminal called equipment 20a and its group
Terminal device 20b in group produces call reminding information, such as playing incoming ring tone or carry out flickering display prompting.
If the signaling that calling terminal equipment 20c cancels in calling, calling terminal equipment 20c in calling procedure is handed over
Change the mold block 25c and send a hook information to terminal called equipment 20a, terminal called equipment 20a signaling Switching Module 25a is received
To after the hook information, the cancellation information is sent into the terminal device 20b in group, whole calling procedure terminates.
If as shown in figure 5, user answers call by terminal called equipment 20a in calling procedure, this is called eventually
Other-end equipment 20 of the end equipment 20a signaling Switching Module 25a into group, such as terminal device 20b, which sends one, to be cancelled
The signaling Switching Module 25b of terminal device 20b in information, the group is received can not be with calling terminal equipment after the cancellation information
20c sets up call.Terminal called equipment 20a signaling Switching Module 25a is also true to calling terminal equipment 20c transmissions one simultaneously
Recognize response(200ok), wherein, the terminal called equipment 20a for answering call port information, IP are included in confirmation response
The identification informations such as location information.Calling terminal equipment 20c signaling Switching Module 25c receives true according to this after confirmation response
The identification information recognized in response sets up voice call with terminal called equipment 20a, i.e., mutually transmit voice stream.When having conversed
Bi Hou, calling terminal equipment 20c signaling Switching Module 25c send hook information to terminal called equipment 20a(Bye), caller
Terminal device 20c and terminal called equipment 20a terminates signaling connection.Wherein, in the present embodiment, the terminal called equipment
Other-end equipment 20 of the 20a signaling Switching Module 25a into group sends one and cancelled after information, other ends in the group
End equipment 20 stops producing call reminding information.
If as shown in fig. 6, user passes through the terminal device 20b in terminal called equipment 20a groups in calling procedure
Call is answered, then the signaling Switching Module 25b of the terminal device 20b in the group is true to terminal called equipment 20a transmissions one
Recognize response(200ok), the port information and IP address letter for the terminal device 20b for answering call are wherein included in confirmation response
The identification informations such as breath.Terminal called equipment 20a signaling Switching Module 25a sends confirmation response to calling terminal equipment
20c, the calling terminal equipment 20c signaling Switching Module 25c are received after confirmation response, the mark in being responded according to the confirmation
Know information and directly set up voice call with the terminal device 20b in group, i.e., mutually transmit voice stream.
Fig. 7 A-7B are network protocol voice communication method flow chart in an embodiment of the present invention.
Step S701:Terminal device 20a, 20b, 20c Registering modules 21a, 21b, 21c produce the phone number of oneself respectively
Code and the corresponding domain name of telephone number for producing oneself according to preset rules.
Step S702:Terminal device 20a, 20b, 20c Registering modules 21a, 21b, 21c are respectively by the domain name of oneself and oneself
Oneself IP address is registered to dynamic domain name server 10.
Step S703:When the terminal device 20b input receiving module 22b inputs for receiving user are to add terminal device
During the group that 20a is set up, terminal device 20b input receiving module 22b obtains the electricity of the creator for the group for needing to add
Number, the i.e. corresponding telephone numbers of terminal device 20a are talked about, IP address enquiry module 23c passes through the telephone number got such as
Preceding described preset rules generate corresponding domain name, and send looking into for a domain name comprising the generation to the dynamic domain name server
Request is ask, for asking the dynamic domain name server 10 to inquire about the corresponding IP address of domain name of the generation, i.e. requesting query is to be added
The terminal device 20a of the group entered IP address.
Step S704:The inquiry that the processing unit 12 of dynamic domain name server 10 receives terminal device 20b transmissions please
After asking, the corresponding IP address of domain name of the generation is inquired about in the domain name and IP address of the terminal device stored in the table of comparisons 11,
And the IP address inquired is back to the terminal device 20b for sending the request.
Step S705:Terminal device 20b group is set up and Registering modules 24b is received in input receiving module 22b and used
During the group that the input at family is set up for terminal device 20a to be added, according to receiving what the dynamic domain name server 10 was sent
IP address, the corresponding terminal device 20a of IP address inquired to this sends the request for adding group, wherein the addition group
The domain name and IP address for the terminal device 20b for sending the request are included in request.
Step S706:Terminal device 20a group registration module 24a receives the addition group of terminal device 20b transmissions
After the request of group, the addition group appeal is analyzed, if agreeing to the addition group appeal, terminal device 20a group registration mould
Block 24a confirms to respond and terminal device 20b is added into the group to the terminal device 20b passbacks one for sending the request.
Step S707:When terminal device 20c input receiving module 22c receives the input of user in the calling group
During one terminal device 20a, terminal device 20c obtains the terminal called equipment that user inputs by inputting receiving module 22c
20a telephone number, IP address enquiry module 23c is by the terminal called equipment 20a got telephone number according to such as preceding institute
The pre-defined rule stated generates corresponding domain name, and sends to the dynamic domain name server 10 inquiry of a domain name comprising the generation
Request, for asking the called corresponding IP address of telephone number of the dynamic domain name server 10 inquiry.
Step S708:The processing unit 12 of the dynamic domain name server 10 receives the inquiry of terminal device 20c transmissions
After request, the corresponding IP address of terminal called equipment 20a is inquired about in the table of comparisons 11 and the IP address is returned into transmission this is looked into
Ask the terminal device 20c of request.
Step S709:Terminal device 20c input receiving module 22c receives the input of user to call in the group
During one terminal device 20a, signaling Switching Module 25c is receiving the terminal called equipment of the dynamic domain name server 10 transmission
IP address after, to terminal called equipment 20a IP address send message request(invite)Call is set up in request.
Step S710:Terminal called equipment 20a signaling Switching Module 25a is received after the message request, and jingle bell is simultaneously
Ring response is replied to calling terminal equipment 20c, while the terminal in the group being stored in always according to it in memory module 26a is set
Standby 20b domain name and IP address, the terminal device 20b into its group initiates message request, for notifying other in group
Terminal device has terminal device 20c requests to set up call, wherein, included in the message request that terminal called equipment 20a is initiated
Calling terminal equipment 20c identification information.
Step S711:The signaling Switching Module 25b of terminal device 20b in group receives terminal called equipment 20a
After the message request of initiation jingle bell and to terminal called equipment 20a send a ring response(180ringing)The terminal called is set
The standby 20a and terminal device 20b in its group shows incoming ring tone.
Step S712:In the terminal device 20a and 20b of the composition group any one for user answer call so as to
Terminal device 20c sets up call.
If specifically, user answers call by terminal called equipment 20a in calling procedure, the terminal called is set
Terminal device 20bs of the standby 20a signaling Switching Module 25a into group sends the terminal device in a cancellation information, the group
20b signaling Switching Module 25b is received to set up with calling terminal equipment 20c after the cancellation information and conversed.This is called simultaneously
Terminal device 20a signaling Switching Module 25a also sends one to calling terminal equipment 20c and confirms to respond(200ok), wherein, should
Confirm to include in response and answer the identification informations such as terminal called equipment 20a port information, the IP address information of call.The master
Cry terminal device 20c signaling Switching Module 25c receive the confirmation response after according to the confirmation respond in identification information with
Terminal called equipment 20a sets up voice call, i.e., mutually transmit voice stream.After talk-through, calling terminal equipment 20c
Signaling Switching Module 25c to terminal called equipment 20a send hook information(Bye), calling terminal equipment 20c and terminal called
Equipment 20a terminates signaling connection.
If as shown in fig. 6, user passes through the terminal device 20b in terminal called equipment 20a groups in calling procedure
Call is answered, then the signaling Switching Module 25b of the terminal device 20b in the group is true to terminal called equipment 20a transmissions one
Recognize response, wherein include the mark such as the terminal device 20b for answering call port information and IP address information in confirmation response
Know information.Terminal called equipment 20a signaling Switching Module 25a sends confirmation response to calling terminal equipment 20c, should
Calling terminal equipment 20c signaling Switching Module 25c is received after confirmation response, the identification information in being responded according to the confirmation
Voice call directly is set up with the terminal device 20b in group, i.e., mutually transmits voice stream.After talk-through, caller is whole
End equipment 20c signaling Switching Module 25c sends hook information to terminal device 20b(Bye), so that the calling terminal equipment
20c and terminal device 20b terminates signaling connection.
Wherein, the network protocol voice communication method also includes step:The response input receiving module of any terminal equipment 20
A group is set up in 22 operations for receiving user.