CN103701949B - A kind of included domain name analytic method of the voice for home gateway - Google Patents

A kind of included domain name analytic method of the voice for home gateway Download PDF

Info

Publication number
CN103701949B
CN103701949B CN201310729826.7A CN201310729826A CN103701949B CN 103701949 B CN103701949 B CN 103701949B CN 201310729826 A CN201310729826 A CN 201310729826A CN 103701949 B CN103701949 B CN 103701949B
Authority
CN
China
Prior art keywords
domain name
address
inquiry
voice
name system
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.)
Active
Application number
CN201310729826.7A
Other languages
Chinese (zh)
Other versions
CN103701949A (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.)
Hefei xunyun Network Technology Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology Co 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201310729826.7A priority Critical patent/CN103701949B/en
Publication of CN103701949A publication Critical patent/CN103701949A/en
Application granted granted Critical
Publication of CN103701949B publication Critical patent/CN103701949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a kind of included domain name analytic method of the voice for home gateway, and include: array initialization empties;Create domain name system thread;Inquire status mechanism, judge the status mechanism of current Domain Name System query, if then being returned in inquiry, is then passed to the domain name to be inquired if inquiry is idle and is compared with the domain name in domain name system, the domain name whether domain name system has this incoming is judged, if otherwise inquiry failure;If then carrying out domain name mapping obtains corresponding IP address, and the domain name and its corresponding IP address are passed to corresponding array, status mechanism is changed to successful inquiring;The domain name of successful inquiring and its corresponding IP address are added to the database of domain name system.The present invention carries out parsing domain name addresses by thread by one thread of creation, effectively reduces the waste of resource, and can quickly obtain the true address of required domain name mapping, and retain this address, high-efficient, strong real-time, and accuracy is high.

Description

A kind of included domain name analytic method of the voice for home gateway
Technical field
The present invention relates to voices to carry domain name mapping technology, and in particular to a kind of included domain name of the voice for home gateway Analytic method.
Background technique
Domain name mapping is that domain name is directed toward web space IP, allows people that net is accessed with can be convenient by the domain name registered It stands a kind of service.Domain name mapping also makes domain name be directed toward, server setting, domain name configures and reversely IP registration etc..Say simple Single-point is exactly by domain name mapping easy to remember into IP, and it is domain name mapping to an IP address, so that service is completed by dns server A subdirectory and domain name are bound on the host of this IP address afterwards.
VoIP(Voice over Internet Protocol) it is in brief exactly by analog signal (Voice) number Change, does real-time delivery on IP network (IP Network) in the form of data packet (Data Packet).VoIP is maximum excellent Gesture is the environment that can be widely interconnected using Internet and global ip, provides more than traditional business, better service.VoIP Can business such as cheap transmission voice, fax, video and data on ip networks, as unified messaging service, virtual telephony, Virtual speech/fax mailbox, directory enquiry service, the call center Internet, Internet call manager, video conference, electronics quotient Business, fax storage forwarding and the storage of various information forwarding etc..The basic principle of VoIP is: by the compression algorithm of voice to language Sound data encoding carries out compression processing, then these voice data is packaged by TCP/IP standard, by IP network Data packet is sent to receiving, then these VoPs are stringed together, after decompression processing, reverts to original voice letter Number, to achieve the purpose that by Internet transmission voice.The core and key equipment of IP phone are IP gateways, it is various regions Area's area code is mapped as corresponding regional gateway ip address.These information are stored in a database, at data connecting The functions such as call treatment, digital speech packing, routing management will be completed by managing software.When user dials long-distance call, gateway root According to area code database data, the address IP of respective gateway is determined, and this address IP is added in IP data packet, simultaneously Optimization route is selected, to reduce propagation delay time, the gateway that IP data packet is arrived at the destination through Internet.Some Internet is not yet extended to or is not set up the area of gateway temporarily, and settable routing passes through long-distance call by nearest gateway Net switching, realizes communication service.
And what voice registrar, proxy server and out proxy server may be filled in is domain name, this when Time just needs to carry out domain name mapping.
Existing technical disadvantages are: when registrar, proxy server, out proxy server are domain names, Voice process, which needs to send asynchronous message to domain name system (Domain Name System, DNS) process, to be parsed, and is parsed DNS process retransmits message to voice process to obtain the real address ip afterwards, ductility when causing, under efficiency.
Summary of the invention
The present invention provides a kind of included domain name analytic method of the voice for home gateway, under voice process, creation line Journey is parsed by thread, high-efficient, strong real-time, and relatively more accurate.
To achieve the above object, the present invention provides a kind of included domain name analytic method of the voice for home gateway, special Point is that the method includes the steps of:
The array for storing nslookup and the corresponding address ip is created under step 1, voice process, the array is initial Change empties;
Step 2, voice process creation domain name system thread, for handling the request analysis of domain name system under voice process;
Step 3 inquires status mechanism, and status mechanism includes: inquiring in idle, inquiry, successful inquiring and inquiry fail;Just Status mechanism is that inquiry is idle after beginningization;
The status mechanism of current Domain Name System query is judged, if the inquiry free time then jumps to step 4, if in inquiry then It returns;
Step 4, the domain name that will be inquired are incoming, and the domain name in the domain name system of the domain name transmitted and voice process is carried out Compare, judge the domain name whether domain name system has this incoming, if then jumping to step 5, if otherwise jumping to step 6;
Step 5 carries out the corresponding IP address of domain name mapping acquisition, and the domain name and its corresponding IP address is passed to and corresponded to Array, status mechanism is changed to successful inquiring, jumps to step 7;
Step 6, status mechanism are inquiry failure, and jump to step 4 and inquire again;
Step 7, the domain name of successful inquiring and its corresponding IP address are added to voice process domain name system data Library is stored.
When above-mentioned steps 4 are inquired, to storing domain name and the file of IP address corresponding relationship locks;And in step Rapid 6 complete to be unlocked when inquiry.
Compared to the prior art a kind of voice for home gateway of the present invention carries domain name analytic method, advantage exists In the present invention carries out parsing domain name addresses by thread by one thread of creation, effectively reduces the waste of resource, and can The true address of domain name mapping required for quickly obtaining, and retain this address, high-efficient, strong real-time, accuracy height.
Detailed description of the invention
Fig. 1 is the flow chart that a kind of voice for home gateway of the present invention carries domain name analytic method.
Specific embodiment
Below in conjunction with attached drawing, specific embodiments of the present invention are further illustrated.
As shown in Figure 1, the present invention discloses a kind of included domain name analytic method of the voice for home gateway, this method includes Following steps:
The array for storing nslookup and corresponding IP address is created under step 1, voice process (voice), by this Array carries out initialization and empties.
Step 2, voice process creation domain name system thread, for handling the request analysis of domain name system under voice process.
Step 3 inquires status mechanism, and status mechanism includes: inquiring in idle, inquiry, successful inquiring and inquiry fail;Just It is idle to should be inquiry for status mechanism after beginningization.
The status mechanism of current Domain Name System query is judged, if the inquiry free time then jumps to step 4, if in inquiry then Exit nslookup parsing.
Step 4, the domain name that will be inquired are incoming, and the domain name in the domain name system of the domain name transmitted and voice process is carried out Compare, judge the domain name whether domain name system has this incoming, if so, step 5 is jumped to, if it is not, then jumping to step 6.
Step 5 carries out the corresponding IP address of domain name mapping acquisition, and the domain name and its corresponding IP address is passed to and corresponded to Array, status mechanism is changed to successful inquiring, and jump to step 7.
Step 6, status mechanism are inquiry failure, and jump to step 4 and inquire again and domain name mapping.
Step 7, the domain name of successful inquiring and its corresponding IP address are added to voice process domain name system data Library is stored, and next inquiry is facilitated.
It in the present embodiment, can be to the text for having domain name Yu IP address corresponding relationship preferably, in step 4 inquiry Part is locked, so that just only allowing this process using this file after locking, other processes are not capable of calling, this process is needed to hold It has gone or has been executed after a certain period of time preset, other processes can just be called, and after step 6 poll-final, to above-mentioned text Part is unlocked.
It is discussed in detail although the contents of the present invention have passed through above preferred embodiment, but it should be appreciated that above-mentioned Description is not considered as limitation of the present invention.After those skilled in the art have read above content, for of the invention A variety of modifications and substitutions all will be apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (2)

1. a kind of voice for home gateway carries domain name analytic method, which is characterized in that the method includes the steps of:
The array for storing nslookup and the corresponding address ip is created under step 1, voice process, and array initialization is set It is empty;
Step 2, voice process creation domain name system thread, for handling the request analysis of domain name system under voice process;
Step 3 inquires status mechanism, and status mechanism includes: inquiring in idle, inquiry, successful inquiring and inquiry fail;Initialization Status mechanism is that inquiry is idle afterwards;
The status mechanism of current Domain Name System query is judged, if the inquiry free time then jumps to step 4, if then exiting in inquiry Nslookup parsing;
Step 4, the domain name that will be inquired are incoming, and the domain name transmitted and the domain name in the domain name system of voice process are compared Compared with the domain name whether domain name system has this incoming being judged, if then jumping to step 5, if otherwise jumping to step 6;
Step 5 carries out the corresponding IP address of domain name mapping acquisition, and the domain name and its corresponding IP address is passed to corresponding number Status mechanism is changed to successful inquiring, jumps to step 7 by group;
Step 6, status mechanism are inquiry failure, and jump to step 4 and inquire again;
Step 7, the domain name of successful inquiring and its corresponding IP address are added to the database of the domain name system of voice process into Row storage.
2. carrying domain name analytic method for the voice of home gateway as described in claim 1, which is characterized in that the step 4 when being inquired, and is locked to the database for storing domain name and the domain name system of the voice process of IP address corresponding relationship; And it is unlocked when step 6 is completed and inquired.
CN201310729826.7A 2013-12-26 2013-12-26 A kind of included domain name analytic method of the voice for home gateway Active CN103701949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310729826.7A CN103701949B (en) 2013-12-26 2013-12-26 A kind of included domain name analytic method of the voice for home gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310729826.7A CN103701949B (en) 2013-12-26 2013-12-26 A kind of included domain name analytic method of the voice for home gateway

Publications (2)

Publication Number Publication Date
CN103701949A CN103701949A (en) 2014-04-02
CN103701949B true CN103701949B (en) 2019-09-13

Family

ID=50363341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310729826.7A Active CN103701949B (en) 2013-12-26 2013-12-26 A kind of included domain name analytic method of the voice for home gateway

Country Status (1)

Country Link
CN (1) CN103701949B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881508B (en) * 2018-03-01 2021-05-07 赵建文 Voice Domain Name System (DNS) unit based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087253A (en) * 2007-04-04 2007-12-12 华为技术有限公司 Method, device, domain parsing method and device for saving domain system record
CN101102336A (en) * 2007-06-14 2008-01-09 中兴通讯股份有限公司 A memory processing method and device of telephone number and domain name mapping server
CN102469167A (en) * 2010-11-01 2012-05-23 中国移动通信集团北京有限公司 Method and system for realizing domain name query
CN102546854A (en) * 2012-01-10 2012-07-04 上海西默通信技术有限公司 Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087253A (en) * 2007-04-04 2007-12-12 华为技术有限公司 Method, device, domain parsing method and device for saving domain system record
CN101102336A (en) * 2007-06-14 2008-01-09 中兴通讯股份有限公司 A memory processing method and device of telephone number and domain name mapping server
CN102469167A (en) * 2010-11-01 2012-05-23 中国移动通信集团北京有限公司 Method and system for realizing domain name query
CN102546854A (en) * 2012-01-10 2012-07-04 上海西默通信技术有限公司 Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server

Also Published As

Publication number Publication date
CN103701949A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
US7529231B2 (en) Routing methods and systems using ENUM servers internal and external to a service provider network
US8539097B2 (en) Intelligent message processing
US8725778B2 (en) Methods and apparatus to provision network resource records
CN1798160B (en) Method for deploying, provisioning and storing initial filter criteria
US8917721B2 (en) Methods and apparatus to control a flash crowd event in a voice over internet protocol (VoIP) network
US8879545B2 (en) Methods and apparatus to route a communication session directly to a voicemail mailbox
US9253142B2 (en) Providing telecommunication services based on an E.164 number mapping (ENUM) request
CN110769080B (en) Domain name resolution method, related product and computer readable storage medium
CN103841090A (en) Method, device and system for realizing multi-service-server distribution of session initiation protocol (SIP)
CN101911664A (en) Service control device, service control system, and method
CN102651732B (en) Service trigger method in a kind of IMS network and system
KR20090112677A (en) Ims architecture using a distributed hash table
CN101686247B (en) Method and system of information processing
CN109769242A (en) Communication means, system, MMTel and computer readable storage medium
CN106488055B (en) Calling list rearrangement method, back end equipment and routing node device
CN103701949B (en) A kind of included domain name analytic method of the voice for home gateway
CN100586104C (en) A route-based talk initialization protocol transparent transmission network address conversion method
US8547965B2 (en) Methods, apparatus and articles of manufacture to provide uniform resource identifier portability
EP1520386B1 (en) Coding for data in a data package
US10277421B2 (en) Route lookup resolution
CN101278272B (en) Network routing
KR101074120B1 (en) Internet protocol multimedia subsystem and routing method thereof
US7630319B1 (en) Method and system for decoding tokenized Session Initiated Protocol packets
US8364700B2 (en) Method and apparatus for rapid data access and distribution using structured identifiers
CN102111457A (en) Service provision system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201103

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201620 Shanghai city Songjiang District Guangfulin road 4855 Lane 20, No. 90

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220104

Address after: 230000 room 2104, building a, land Plaza, intersection of Longtu road and Xingguang West Road, Hefei government district, Anhui Province

Patentee after: Hefei xunyun Network Technology Co.,Ltd.

Address before: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.