CN103227842A - Method and device for acquiring SIP (session initiation protocol) server address - Google Patents

Method and device for acquiring SIP (session initiation protocol) server address Download PDF

Info

Publication number
CN103227842A
CN103227842A CN2012100218445A CN201210021844A CN103227842A CN 103227842 A CN103227842 A CN 103227842A CN 2012100218445 A CN2012100218445 A CN 2012100218445A CN 201210021844 A CN201210021844 A CN 201210021844A CN 103227842 A CN103227842 A CN 103227842A
Authority
CN
China
Prior art keywords
sip server
address
dns
domain
gateway equipment
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
CN2012100218445A
Other languages
Chinese (zh)
Other versions
CN103227842B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210021844.5A priority Critical patent/CN103227842B/en
Priority to PCT/CN2012/076821 priority patent/WO2013113201A1/en
Publication of CN103227842A publication Critical patent/CN103227842A/en
Application granted granted Critical
Publication of CN103227842B publication Critical patent/CN103227842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and device for acquiring an SIP (session initiation protocol) server address. According to the method and device, the item OPTION 120 in a DHCP (dynamic host configuration protocol) message can be acquired, and domain name information in the item is processed to obtain the domain name information used for acquiring the SIP server address; a DNS (domain name system) request is initiated according to the domain name information used for acquiring the SIP server address; and then the SIP server address is acquired accordingly. The technology for acquiring the SIP server address provided by the invention can acquire and update the SIP server address automatically, and enables household gateway equipment to be switched to the SIP server corresponding to the address automatically, thereby guaranteeing normal operation of a voice module of the household gateway equipment.

Description

A kind of method and apparatus that obtains the sip server address
Technical field
The present invention relates to the communications field, be specifically related to the method and apparatus of a kind of SIP of obtaining (initial session protocol) server address.
Background technology
XPON (EPON) family gateway equipment that is progressively using by being linked to local side apparatus on the optical fiber, provides wideer bandwidth to the user at present, makes the user can enjoy better service.Family gateway equipment can also substitute traditional speech business except directly providing the business of networking, by the function that voice module provided of family gateway equipment, can carry out voice call to realize various speech businesses.Between the sip server of the voice module of family gateway equipment and network deploy, adopt Session Initiation Protocol,, finish voice call function, as shown in Figure 1 to realize each other mutual.
Usually, the used sip server address of the voice module of family gateway equipment is in advance good by manual configuration, and voice module is connected on the fixing sip server that configures.If the address of sip server changes, maybe need to switch to other sip server, then need the sip server address of family gateway equipment is reset.Because family gateway equipment is distributed in different places, it is very inconvenient therefore to reset the sip server address, and this has brought very big trouble just for the use of the phonetic function of family gateway equipment.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and apparatus that obtains the sip server address, to obtain the address of sip server automatically, guarantees the operate as normal of the voice module of family gateway equipment.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method of obtaining the sip server address, this method comprises:
Obtain the OPTION120 item in the DHCP message, domain-name information is wherein handled, obtain being used to obtain the domain-name information of sip server address;
According to the described domain-name information initiation DNS request that is used to obtain the sip server address, the address that obtains sip server in view of the above.
The process that domain name information is handled is:
Form according to the OPTION120 item carries out the binary string processing, to obtain the domain name that needs.
The process of initiating the DNS request and obtaining the address of sip server comprises:
Call inquiry of the domain name interface that the DNS module of family gateway equipment provided and send query message at service position SRV record to dns server, and handle the response message that dns server returns according to described query message, the IP address that therefrom obtains required sip server.
When getting access to the address of described sip server, carry out the initialization of the voice module of family gateway equipment again, and by voice module and the pairing sip server link setup in new sip server address that gets access to.
Establish on the described family gateway equipment and can confirm that the OPTION120 item the ACK message obtains the wide area network WAN connection of the DHCP type of the information that needs from DHCP; This method also comprises:
At the function of obtaining of sip server address, the functional switch of opening or cutting out this function is set.
A kind of device that obtains the sip server address, this device comprise WAN link block, DNS module; Wherein,
Described WAN link block is used for obtaining the OPTION120 item of DHCP message, and domain-name information is wherein handled, and obtains being used to obtain the domain-name information of sip server address;
Described DNS module is used for initiating DNS request, the address that obtains sip server in view of the above according to the resulting domain-name information of described WAN link block.
Described WAN link block is used for when domain name information is handled:
Form according to the OPTION120 item carries out the binary string processing, to obtain the domain name that needs.
Described DNS module is used for when initiating the DNS request and obtaining the address of sip server:
The inquiry of the domain name interface that calling described DNS module is provided sends the query message that writes down at SRV to dns server, and handles the response message that dns server returns according to described query message, the IP address that therefrom obtains required sip server.
This device also comprises voice module, is used for carrying out initialization again when described DNS module gets access to the address of described sip server;
Described voice module also is used for and the pairing sip server link setup in new sip server address that gets access to.
The WAN that establishes the DHCP type that can obtain the information that needs from the OPTION120 item the DHCPACK message on the described family gateway equipment connects; And/or,
At the function of obtaining of sip server address, described family gateway equipment is provided with the functional switch of opening or closing this function.
This device is arranged in the family gateway equipment.
The present invention obtains the technology of sip server address, can obtain and upgrade the address of sip server automatically, family gateway equipment is automatically switched on the pairing sip server in this address, therefore can guarantee the operate as normal of the voice module of family gateway equipment.
Description of drawings
Fig. 1 is the voice module of family gateway equipment and the annexation schematic diagram of sip server;
Fig. 2 carries out the schematic diagram that sip server switches for the voice module of family gateway equipment in the embodiment of the invention;
Fig. 3 is the flow chart that obtains the sip server address automatically of the embodiment of the invention;
Fig. 4 is the general flow chart that obtains the sip server address of the embodiment of the invention.
Embodiment
In actual applications, can handle,, realize the automatic switchover between the sip server in view of the above, as shown in Figure 2 to obtain the address of sip server automatically to 120 information that provided of OPTION (option) in DHCP (dynamic host allocation protocol) message.
Particularly, the OPTION120 item is made up of binary string usually.When using, can carry out binary string according to the form of OPTION120 item and handle, to obtain the domain name that needs.
Can be at the functional switch that obtains the function setting correspondence of above-mentioned sip server address, to open or to close this function as required.
Particularly, the WAN (wide area network) that can set up the DHCP type on family gateway equipment connects, so that the OPTION120 item from DHCP ACK (affirmation) message obtains the information content that needs.
Can resolve the content of OPTION120 item by the WAN link block of family gateway equipment, therefrom obtain domain-name information and send to the voice module of family gateway equipment, after by voice module the domain-name information of receiving being handled, DNS (domain name system) the inquiry of the domain name interface that module provided that calls family gateway equipment sends the query message that writes down at SRV (service position) to dns server, and handle the response message that dns server returns according to described query message, therefrom obtain the IP address of required sip server, use for voice module.
When the voice module by family gateway equipment gets access to the address of new sip server, can carry out the initialization of voice module again, and by voice module and the pairing sip server link setup in new sip server address that gets access to, to guarantee normally carrying out of voice call function.
The present invention is described in further detail below in conjunction with accompanying drawing.
Behind system initialization, family gateway equipment need be done following configuration: open and obtain the function of sip server address automatically.
Referring to Fig. 3, Fig. 3 is the flow chart that obtains the sip server address automatically of the embodiment of the invention, and this flow process may further comprise the steps:
Step 301, the WAN link block of family gateway equipment is initiated the WAN connection request, sends request message to the DHCP of family gateway equipment module.
Step 302, the DHCP module sends discover (discovery) message to Dynamic Host Configuration Protocol server, has wherein increased the OPTION120 solicited message.Described OPTION120 solicited message also can be carried in other the communication information and send to Dynamic Host Configuration Protocol server.
Step 303, the DHCP module that offer (providing) message is given family gateway equipment is provided Dynamic Host Configuration Protocol server.
Step 304, the DHCP module of family gateway equipment sends the DHCP module that request (request) message is given family gateway equipment, has increased described OPTION120 solicited message in the described request message.
Step 305, Dynamic Host Configuration Protocol server send the DHCP module of ack message to family gateway equipment, carry IP address and OPTION120 item in the described ack message;
Step 306, the content that the WAN link block of family gateway equipment is obtained the OPTION120 item from the DHCP module is also resolved, to obtain domain-name information;
Step 307, the WAN link block of family gateway equipment sends to voice module with domain name information;
Step 308, voice module adds " _ sip._udp. " prefix with the domain-name information of receiving, obtains the domain name of sip server, and calls the inquiry of the domain name interface that the DNS module is provided according to this domain name;
Step 309, the DNS module of family gateway equipment is initiated the DNS request according to domain name information, as: make up with the SRV of DNS and write down corresponding query message, and this query message is sent to dns server;
Step 310, dns server sends response message to the DNS of family gateway equipment module, carries the address of the sip server that inquires according to described query message in this message;
Step 311 after the DNS module of family gateway equipment is obtained response message, therefrom parses the IP address of sip server, and this IP address is returned to voice module.
So far, voice module gets access to the address of sip server.If the address of sip server changes, then the initialization voice module carries out link setup by voice module with the address of new sip server.
In conjunction with above description as can be known, the operation thinking that the present invention obtains the sip server address can be represented flow process as shown in Figure 4, and this flow process may further comprise the steps:
Step 410: obtain the OPTION120 item in the DHCP message.
Step 420: the domain-name information in the described OPTION120 item is handled, obtained being used to obtain the domain-name information of sip server address.
Step 430: according to the domain-name information initiation DNS request that is used to obtain the sip server address,
Obtain the address of sip server in view of the above.
In sum as seen, no matter be the method or the devices such as family gateway equipment of this method of support, the present invention obtains the technology of sip server address, can obtain and upgrade the address of sip server automatically, family gateway equipment is automatically switched on the pairing sip server in this address, therefore can guarantee the operate as normal of the voice module of family gateway equipment.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (11)

1. a method of obtaining initial session protocol sip server address is characterized in that, this method comprises:
Obtain the option OPTION120 item in the dynamic host allocation protocol DHCP message, domain-name information is wherein handled, obtain being used to obtain the domain-name information of sip server address;
According to the described domain-name information initiation domain name system DNS request that is used to obtain the sip server address, the address that obtains sip server in view of the above.
2. method according to claim 1 is characterized in that, the process that domain name information is handled is:
Form according to the OPTION120 item carries out the binary string processing, to obtain the domain name that needs.
3. method according to claim 1 is characterized in that, the process of initiating the DNS request and obtaining the address of sip server comprises:
Call inquiry of the domain name interface that the DNS module of family gateway equipment provided and send query message at service position SRV record to dns server, and handle the response message that dns server returns according to described query message, the IP address that therefrom obtains required sip server.
4. according to each described method of claim 1 to 3, it is characterized in that,
When getting access to the address of described sip server, carry out the initialization of the voice module of family gateway equipment again, and by voice module and the pairing sip server link setup in new sip server address that gets access to.
5. according to claim 3 or 4 described methods, it is characterized in that, establish on the described family gateway equipment and can confirm that the OPTION120 item the ACK message obtains the wide area network WAN connection of the DHCP type of the information that needs from DHCP; This method also comprises:
At the function of obtaining of sip server address, the functional switch of opening or cutting out this function is set.
6. a device that obtains the sip server address is characterized in that, this device comprises WAN link block, DNS module; Wherein,
Described WAN link block is used for obtaining the OPTION120 item of DHCP message, and domain-name information is wherein handled, and obtains being used to obtain the domain-name information of sip server address;
Described DNS module is used for initiating DNS request, the address that obtains sip server in view of the above according to the resulting domain-name information of described WAN link block.
7. device according to claim 6 is characterized in that, described WAN link block is used for when domain name information is handled:
Form according to the OPTION120 item carries out the binary string processing, to obtain the domain name that needs.
8. device according to claim 6 is characterized in that, described DNS module is used for when initiating the DNS request and obtaining the address of sip server:
The inquiry of the domain name interface that calling described DNS module is provided sends the query message that writes down at SRV to dns server, and handles the response message that dns server returns according to described query message, the IP address that therefrom obtains required sip server.
9. according to each described device of claim 6 to 8, it is characterized in that this device also comprises voice module, be used for when described DNS module gets access to the address of described sip server, carrying out initialization again;
Described voice module also is used for and the pairing sip server link setup in new sip server address that gets access to.
10. according to Claim 8 or 9 described devices, it is characterized in that,
The WAN that establishes the DHCP type that can obtain the information that needs from the OPTION120 item the DHCPACK message on the described family gateway equipment connects; And/or,
At the function of obtaining of sip server address, described family gateway equipment is provided with the functional switch of opening or closing this function.
11. device according to claim 6 is characterized in that, this device is arranged in the family gateway equipment.
CN201210021844.5A 2012-01-31 2012-01-31 A kind of method and apparatus obtaining sip server address Active CN103227842B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210021844.5A CN103227842B (en) 2012-01-31 2012-01-31 A kind of method and apparatus obtaining sip server address
PCT/CN2012/076821 WO2013113201A1 (en) 2012-01-31 2012-06-13 Sip server address acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210021844.5A CN103227842B (en) 2012-01-31 2012-01-31 A kind of method and apparatus obtaining sip server address

Publications (2)

Publication Number Publication Date
CN103227842A true CN103227842A (en) 2013-07-31
CN103227842B CN103227842B (en) 2016-09-28

Family

ID=48838098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210021844.5A Active CN103227842B (en) 2012-01-31 2012-01-31 A kind of method and apparatus obtaining sip server address

Country Status (2)

Country Link
CN (1) CN103227842B (en)
WO (1) WO2013113201A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878313A (en) * 2017-02-24 2017-06-20 宁波联视网络科技有限公司 Cloud video collaboration signaling prosecutor method
CN108712516A (en) * 2018-05-21 2018-10-26 平安科技(深圳)有限公司 Obtain method, apparatus, equipment and the storage medium of sip server address
TWI664847B (en) * 2017-10-27 2019-07-01 中華電信股份有限公司 Sip gateway, call origination method thereof and call termination method thereof
CN110445641A (en) * 2019-07-11 2019-11-12 烽火通信科技股份有限公司 The main/standby switching method and system of dns-proxy server

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012113413A1 (en) * 2011-02-21 2012-08-30 Curevac Gmbh Vaccine composition comprising complexed immunostimulatory nucleic acids and antigens packaged with disulfide-linked polyethyleneglycol/peptide conjugates
JP7422592B2 (en) * 2020-04-02 2024-01-26 三菱重工業株式会社 Control device, control method and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859437A (en) * 2005-04-30 2006-11-08 华为技术有限公司 Method for obtaining cut-in position information for user terminal and user terminal and relative device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407625C (en) * 2005-04-29 2008-07-30 华为技术有限公司 Method for providing business according to its type
CN100525317C (en) * 2005-10-20 2009-08-05 华为技术有限公司 Method for distributing service based on terminal mark
EP2263360B1 (en) * 2008-02-18 2017-07-26 Telefonaktiebolaget LM Ericsson (publ) Sip server discovery in an interworking wlan/ims system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859437A (en) * 2005-04-30 2006-11-08 华为技术有限公司 Method for obtaining cut-in position information for user terminal and user terminal and relative device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878313A (en) * 2017-02-24 2017-06-20 宁波联视网络科技有限公司 Cloud video collaboration signaling prosecutor method
TWI664847B (en) * 2017-10-27 2019-07-01 中華電信股份有限公司 Sip gateway, call origination method thereof and call termination method thereof
CN108712516A (en) * 2018-05-21 2018-10-26 平安科技(深圳)有限公司 Obtain method, apparatus, equipment and the storage medium of sip server address
WO2019223167A1 (en) * 2018-05-21 2019-11-28 平安科技(深圳)有限公司 Method, apparatus and device for obtaining sip server address and storage medium
CN110445641A (en) * 2019-07-11 2019-11-12 烽火通信科技股份有限公司 The main/standby switching method and system of dns-proxy server

Also Published As

Publication number Publication date
WO2013113201A1 (en) 2013-08-08
CN103227842B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
US8787200B2 (en) Device, system, and method for automatically configuring application terminals in home network
JP5826090B2 (en) Gateway and program
US9060067B2 (en) Method, system and apparatus for providing calling name identification
US7991913B2 (en) Method for domain name configuration in IPv6 access network and the network device hereof
US20070217434A1 (en) Method for configuring remote IP phones
CN103227842A (en) Method and device for acquiring SIP (session initiation protocol) server address
US10257028B2 (en) Configuration services for user terminals
US10404760B2 (en) Providing network connectivity to at least one client device connected to a telecommunications network via an access gateway device and an internet protocol edge function
EP2439903B1 (en) Method for providing information, home gateway and home network system
US10104134B2 (en) Automatic configuration of endpoint communication devices to set up a VOIP network
CN102143509A (en) Method, device and system for managing wireless repeater by using access point (AP)
CN105191254B (en) System and method for enabling multiple equipment to communicate in a network
CN103581350A (en) Method, terminals, equipment and system for publishing Internet services across NAT
US9270710B2 (en) Peer-to-peer, internet protocol telephone system with proxy interface for configuration data
US10531273B2 (en) Handling of IMS services in a roaming scenario of a user equipment
CN101588255B (en) Fusion device management platform, mobile terminal and method for managing same
CN108173693B (en) ONU automatic configuration management method
CN101453396A (en) Method and system for multiple service provider device management
TW508935B (en) Communication system automatically setting up basic data of voice over IP telephone equipment
US20190253463A1 (en) Voip oob services
JP2005167728A (en) Communication system and communication method
Limbu Deploying a simple voice over IP network using a simulation tool
JP2013187646A (en) Communication device, communication system, control method and control program
US20140269490A1 (en) Systems and methods of configuring a terminal adapter for use with an ip telephony system
KR20100067271A (en) Method for managing gateway configuration information and system for the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant