CN103701949A - Voice domain name resolving method for home gateway - Google Patents

Voice domain name resolving method for home gateway Download PDF

Info

Publication number
CN103701949A
CN103701949A CN201310729826.7A CN201310729826A CN103701949A CN 103701949 A CN103701949 A CN 103701949A CN 201310729826 A CN201310729826 A CN 201310729826A CN 103701949 A CN103701949 A CN 103701949A
Authority
CN
China
Prior art keywords
domain name
inquiry
address
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.)
Granted
Application number
CN201310729826.7A
Other languages
Chinese (zh)
Other versions
CN103701949B (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 invention discloses a voice domain name resolving method for a home gateway. The method comprises the following steps: initializing an array and setting null; creating a domain name system thread; inquiring a state mechanism, judging the state mechanism inquired by a current domain name system, returning if inquiry is running, loading a domain name to be inquired if inquiry is in a null state, comparing with a domain name in a domain name system, judging whether the loaded domain name exists in the domain name system or not, and giving an inquiry failure result if the loaded domain name does not exist in the domain name system; if loaded domain name exists in the domain name system, performing domain name resolving to obtain a corresponding IP (Internet Protocol) address, loading the domain name and a corresponding IP address thereof into a corresponding array, and changing the state mechanism to inquiry success; adding the successfully-inquired domain name and the corresponding IP address thereof into a database of the domain name system. In the method, domain name addresses are resolved by creating a thread, so that waste of resources is reduced effectively, real addresses needing domain name resolving can be obtained rapidly and kept, and high efficiency, high instantaneity and high accuracy are achieved.

Description

A kind of voice for home gateway carry domain name analytic method
Technical field
The present invention relates to voice and carry domain name mapping technology, be specifically related to a kind of voice for home gateway and carry domain name analytic method.
Background technology
Domain name mapping is that domain name is pointed to web space IP, allows people can have access to easily a kind of service in website by the domain name of registration.Domain name sensing, Servers installed, domain name configuration and oppositely IP registration etc. are also named in domain name mapping.Say to such an extent that simply exactly domain name mapping easy to remember is become to IP, service is completed by dns server, is domain name mapping to IP address, then on the main frame of this IP address, a subdirectory and domain name is bound.
VoIP(Voice over Internet Protocol) be exactly by analog signal (Voice) digitlization in brief, with the form of data packet (Data Packet), in IP network (IP Network), do real-time transmission.The advantage of VoIP maximum is the environment that can adopt widely Internet and global ip interconnection, and, better service more than traditional business is provided.VoIP can be cheap in IP network the business such as transmission voice, fax, video and data, as storage forwarding of unified message business, virtual telephony, virtual speech/fax mailbox, directory enquiry service, Internet call center, Internet call manager, video conference, ecommerce, fax storage forwarding and various information etc.The basic principle of VoIP is: the compression algorithm by voice is compressed processing to encoded speech data, then these speech datas are packed by TCP/IP standard, through IP network, packet is delivered to and received ground, again these VoPs are stringed together, after decompression processing, revert to original voice signal, thereby reach the object that is transmitted voice by the Internet.The core of IP phone and key equipment are IP gateways, and it is mapped as corresponding regional gateway ip address each department area code.These information leave in a database, and the data process software that continues will complete the functions such as call treatment, digital speech packing, routing management.When user dials toll telephone, gateway, according to area code database data, is determined the IP address of respective gateway, and this IP address is added in IP packet, select best route, to reduce propagation delay time, IP packet arrives the gateway of destination through Internet simultaneously.The area that not yet extends to or temporarily do not set up gateway at some Internet, can arrange route, by nearest gateway, by long-distance network, is transferred, and realizes communication service.
And voice registrar, proxy server and out proxy server may be filled in, be domain name, just need to carry out domain name mapping this time.
Existing technical disadvantages is: when registrar, proxy server, out proxy server are domain name, voice process need to be to domain name system (Domain Name System, DNS) process transmission asynchronous message is resolved, after resolving, DNS process sends message again and obtains real ip address to voice process, ductility while causing, under efficiency.
Summary of the invention
The invention provides a kind of voice for home gateway and carry domain name analytic method, under voice process, create thread, by thread, resolve, efficiency is high, real-time, and more accurate.
For achieving the above object, the invention provides a kind of voice for home gateway and carry domain name analytic method, be characterized in, the method includes the steps of:
Under step 1, voice process, create the array for the ip address of storing queries domain name and correspondence, this array initialization is put to sky;
Step 2, voice process creation domain name system thread, for the treatment of the request analysis of domain name system under voice process;
Step 3, query State mechanism, status mechanism comprises: inquiry is idle, in inquiry, successful inquiring and inquiry failure; After initialization, status mechanism is the inquiry free time;
Judge the status mechanism of current domain name system queries, if inquire about the free time, jump to step 4, if return in inquiry;
Step 4, the domain name that will inquire about are imported into, and the domain name in the domain name system of the domain name transmitting and voice process is compared, and judge whether domain name system has this domain name of importing into, if jump to step 5, jump to if not step 6;
Step 5, carry out domain name mapping and obtain corresponding IP address, and array corresponding to this domain name and corresponding IP address thereof import into, change status mechanism into successful inquiring, jump to step 7;
Step 6, status mechanism be for to inquire about unsuccessfully, and jump to step 4 and again inquire about;
Step 7, the database that the domain name of successful inquiring and corresponding IP address thereof are joined to the domain name system of voice process store.
When above-mentioned steps 4 is inquired about, to storing the file of domain name and IP address corresponding relation, lock; And in step 6, complete when inquiry and carry out release.
Compared to the prior art a kind of voice for home gateway of the present invention carry domain name analytic method, its advantage is, the present invention resolves domain name addresses by creating a thread by thread, effectively reduce the waste of resource, and can obtain fast the true address of required domain name mapping, and retain this address, efficiency is high, real-time, accuracy is high.
Accompanying drawing explanation
Fig. 1 is the flow chart that a kind of voice for home gateway of the present invention carry domain name analytic method.
Embodiment
Below in conjunction with accompanying drawing, further illustrate specific embodiments of the invention.
As shown in Figure 1, the present invention discloses a kind of voice for home gateway and carries domain name analytic method, and the method includes the steps of:
Step 1, voice process (voice) be lower creates the array for storing queries domain name and corresponding IP address, this array is carried out to initialization and put sky.
Step 2, voice process creation domain name system thread, for the treatment of the request analysis of domain name system under voice process.
Step 3, query State mechanism, status mechanism comprises: inquiry is idle, in inquiry, successful inquiring and inquiry failure; After initialization, status mechanism should be the inquiry free time.
Judge the status mechanism of current domain name system queries, if the inquiry free time jumps to step 4, if exit nslookup in inquiry, resolve.
Step 4, the domain name that will inquire about are imported into, and the domain name in the domain name system of the domain name transmitting and voice process is compared, and judge whether domain name system has this domain name of importing into, if so, jumps to step 5, if not, jumps to step 6.
Step 5, carry out domain name mapping and obtain corresponding IP address, and array corresponding to this domain name and corresponding IP address thereof import into, change status mechanism into successful inquiring, and jump to step 7.
Step 6, status mechanism be for to inquire about unsuccessfully, and jump to step 4 and again inquire about and domain name mapping.
Step 7, the database that the domain name of successful inquiring and corresponding IP address thereof are joined to the domain name system of voice process store, convenient inquiry next time.
In the present embodiment, preferably, when step 4 is inquired about, can lock to there being the file of domain name and IP address corresponding relation, after making to lock, just only allow this process use this file, other process can not be called, and needs this process to execute or after default execution certain hour, other process just can be called, and after step 6 poll-final, above-mentioned file is carried out to release.
Although content of the present invention has been done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.Those skilled in the art, read after foregoing, for multiple modification of the present invention with to substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (2)

1. the voice for home gateway carry a domain name analytic method, it is characterized in that, the method includes the steps of:
Under step 1, voice process, create the array for the ip address of storing queries domain name and correspondence, this array initialization is put to sky;
Step 2, voice process creation domain name system thread, for the treatment of the request analysis of domain name system under voice process;
Step 3, query State mechanism, status mechanism comprises: inquiry is idle, in inquiry, successful inquiring and inquiry failure; After initialization, status mechanism is the inquiry free time;
Judge the status mechanism of current domain name system queries, if inquire about the free time, jump to step 4, if return in inquiry;
Step 4, the domain name that will inquire about are imported into, and the domain name in the domain name system of the domain name transmitting and voice process is compared, and judge whether domain name system has this domain name of importing into, if jump to step 5, jump to if not step 6;
Step 5, carry out domain name mapping and obtain corresponding IP address, and array corresponding to this domain name and corresponding IP address thereof import into, change status mechanism into successful inquiring, jump to step 7;
Step 6, status mechanism be for to inquire about unsuccessfully, and jump to step 4 and again inquire about;
Step 7, the database that the domain name of successful inquiring and corresponding IP address thereof are joined to the domain name system of voice process store.
2. the voice for home gateway as claimed in claim 1 carry domain name analytic method, it is characterized in that, when described step 4 is inquired about, to storing the file of domain name and IP address corresponding relation, lock; And in step 6, complete when inquiry and carry out release.
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 true CN103701949A (en) 2014-04-02
CN103701949B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810187A (en) * 2018-03-01 2018-11-13 赵建文 A kind of network system for docking voice service by 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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810187A (en) * 2018-03-01 2018-11-13 赵建文 A kind of network system for docking voice service by block chain
CN108810187B (en) * 2018-03-01 2021-05-07 赵建文 Network system for butting voice service through block chain

Also Published As

Publication number Publication date
CN103701949B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
US8503433B2 (en) Routing methods and systems using ENUM servers
CN104125208B (en) Data transmission method and device
US8521851B1 (en) DNS query processing using resource identifiers specifying an application broker
US8463877B1 (en) Dynamically translating resource identifiers for request routing using popularitiy information
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
US11153264B2 (en) Methods, apparatuses, and computer programs for data processing, and hierarchical domain name system zone files
US9253142B2 (en) Providing telecommunication services based on an E.164 number mapping (ENUM) request
CN104980482A (en) File transmitting method and device, file receiving method and device
EP3132589A1 (en) Geolocation via internet protocol
JP2011520169A (en) Method and device for accessing a directory
US11303606B1 (en) Hashing name resolution requests according to an identified routing policy
CN110225150A (en) Communication means, system and storage medium between different network protocol
US9876826B2 (en) Methods and target architecture for enabling IP carrier peering
RU2005120234A (en) SYSTEM AND METHOD FOR RESOLUTION OF NAMES
CN103841090A (en) Method, device and system for realizing multi-service-server distribution of session initiation protocol (SIP)
CN103701949A (en) Voice domain name resolving method for home gateway
WO2019163697A1 (en) Enum/dns server, enum/dns system, and control method for enum/dns system
CN113542409B (en) Management system and processing method for instances of RocktMQ message queues
US10277421B2 (en) Route lookup resolution
CN102143207A (en) Content acquisition method and redirecting node
CN102025706B (en) Method and system for registering enterprise VoIP (Voice over Internet Phone) terminal
JP5289345B2 (en) Address translation device, communication system, message communication method, and program
CN107395778B (en) User source tracing method, device and system
US20200186469A1 (en) Data packet routing method and data packet routing device
CN114268605A (en) Intelligent DNS realization method and device and computer storage medium

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

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.

TR01 Transfer of patent right