WO2019223167A1 - Method, apparatus and device for obtaining sip server address and storage medium - Google Patents

Method, apparatus and device for obtaining sip server address and storage medium Download PDF

Info

Publication number
WO2019223167A1
WO2019223167A1 PCT/CN2018/104134 CN2018104134W WO2019223167A1 WO 2019223167 A1 WO2019223167 A1 WO 2019223167A1 CN 2018104134 W CN2018104134 W CN 2018104134W WO 2019223167 A1 WO2019223167 A1 WO 2019223167A1
Authority
WO
WIPO (PCT)
Prior art keywords
sip
server
domain name
sip server
identifier
Prior art date
Application number
PCT/CN2018/104134
Other languages
French (fr)
Chinese (zh)
Inventor
刘丹
蒋辉
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019223167A1 publication Critical patent/WO2019223167A1/en

Links

Images

Classifications

    • 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]
    • 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]

Definitions

  • This application relates to communication technology, and in particular, to a method, an apparatus, a device, and a storage medium for obtaining a SIP server address.
  • BGP Border Gateway Gateway
  • BGP is an autonomous system routing running on TCP. protocol.
  • BGP is a protocol used to handle networks like the size of the Internet, capable of handling multiple connections between unrelated routing domains.
  • BGP is used to exchange routing information between different autonomous systems (AS).
  • AS autonomous systems
  • This node can be a host. But usually routers perform BGP.
  • the routers that use BGP to exchange information in the two ASs are also called Border Gateways or Border Routers. Or use telecommunications, China Unicom, mobile single network access methods, the operator will assign an IP address to the call center, the call center resolves the previously applied domain name to the IP address for users to dial in.
  • the common defects in the prior art when calling are: the operator's network is abnormal, the service is stopped, and the reliability is poor; the cross-operator access takes a long time and the efficiency is low; and the BGP access method has a high cost.
  • a method for obtaining a SIP server address includes:
  • a SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set in advance on the SIP server.
  • the SIP protocol stack is used for receiving and sending SIP messages and receiving SIP messages initiated by a session.
  • the session is Internet phone signaling, complying with the session initiation protocol;
  • a device for obtaining a SIP server address includes:
  • the receiving unit is configured to set in advance a SIP protocol stack on the SIP server for receiving and sending SIP messages, and for parsing and encapsulating the SIP messages.
  • the SIP protocol stack is used for receiving and sending SIP messages and receiving session initiated SIP messages.
  • the session is internet phone signaling and complies with the session initiation protocol;
  • a determining unit configured to allocate a SIP server of a user associated with the SIP message
  • the obtaining unit is configured to obtain a dynamic host allocation protocol DHCP message according to the SIP server, and perform binary string processing to obtain a required domain name and obtain domain name information for obtaining a SIP server address;
  • the resolution unit is configured to initiate a DNS resolution request of the domain name system according to the domain name information, invoke a domain name query interface provided by a DNS module of the gateway device, and send a query message for a service location SRV record to the DNS server, and process the DNS server according to the The response message returned by the query message is used to obtain the IP address of the required SIP server.
  • a computer device includes a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor causes the processor to perform the following steps:
  • a SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set in advance on the SIP server.
  • the SIP protocol stack is used for receiving and sending SIP messages and receiving SIP messages initiated by a session.
  • the session is Internet phone signaling, complying with the session initiation protocol;
  • a storage medium storing computer-readable instructions.
  • the one or more processors execute the following steps:
  • a SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set in advance on the SIP server.
  • the SIP protocol stack is used for receiving and sending SIP messages and receiving SIP messages initiated by a session.
  • the session is Internet phone signaling, complying with the session initiation protocol;
  • the foregoing method, device, device, and storage medium for obtaining a SIP server address are provided by a SIP server stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages in advance on the SIP server.
  • the SIP protocol stack is used for receiving And send a SIP message, receive a SIP message initiated by the session, the session is Internet telephone signaling, comply with the session initiation protocol, allocate a SIP server of the user associated with the SIP message, and assign the first identifier of the SIP server Stored in the home user server, inserting the second identifier of the SIP server into the message header of the SIP message, and receiving the second identifier of the SIP server in the intermediate network device before storing the first identifier; and In the intermediate network device, the second identifier of the SIP server is converted into the first identifier of the SIP server, wherein the first identifier of the SIP server is stored in the home user server, including the first identifier of the SIP server Upload from the
  • the SIP server obtain a dynamic host allocation protocol DHCP message, perform binary string processing to obtain a required domain name, obtain domain name information for obtaining a SIP server address, and initiate a domain name system DNS resolution request according to the domain name information, and call
  • the domain name query interface provided by the DNS module of the gateway device sends a query message for the service location SRV record to the DNS server, and processes the response message returned by the DNS server according to the query message to obtain the required SIP server IP addresses improve the reliability of call services, reduce access costs, reduce access across carriers, and improve service efficiency.
  • FIG. 1 is a flowchart of a method for obtaining a SIP server address provided in an embodiment
  • FIG. 2 is a flowchart of a method for storing a first identifier and inserting a second identifier according to an embodiment
  • FIG. 3 is a flowchart of a method for receiving one or more SIP messages according to an embodiment
  • FIG. 4 is a structural block diagram of a device for obtaining a SIP server address provided in an embodiment
  • FIG. 5 is a structural block diagram of a determining unit provided in an embodiment.
  • a method for obtaining a SIP server address includes the following steps:
  • a SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set on the SIP server in advance.
  • the SIP protocol stack is used for receiving and sending SIP messages, and receiving SIP messages initiated by the session. It is said that the session is Internet telephone signaling and complies with the session initiation protocol;
  • SIP Session Initialization Protocol
  • IP telephony Internet telephony
  • NGN Next Generation Network
  • the Session Initiation Protocol can be used to establish, modify, and terminate signaling transfer protocols for multimedia sessions (eg, multimedia phone calls) on a packet network, and to authenticate access to IMS-based services.
  • the IMS core network may include various nodes configured to use SIP signaling to control and manage multimedia sessions of the IMS core network. Such nodes are referred to herein as "SIP servers”.
  • Step S102 Allocate a user's SIP server associated with the SIP message
  • the SIP message is associated with the call session.
  • the SIP server receives the incoming SIP message from the originating node.
  • the SIP server determines the routing key based on at least one header field in the incoming SIP message.
  • the SIP server uses the routing key to identify the responsible key.
  • User agent for the call session sending the incoming SIP message to the identified user agent; creating the outgoing SIP message by the user agent, using the routing keyword to generate a header field in the outgoing SIP message, and sending the outgoing SIP message from the SIP server to the termination node.
  • the SIP server determines whether the SIP message carries an associated session identifier. If not, the SIP message is processed according to the new session mode.
  • the session ID is a string used to identify each dial-in user's session during billing.
  • the user dials in to a network device (such as an access server).
  • the network device acts as a RADIUS client and generates a string to uniquely identify the dial-in user. Enter the user's session for server-side billing.
  • Step S103 Obtain a dynamic host allocation protocol DHCP message according to the SIP server, and perform binary string processing to obtain a required domain name, and obtain domain name information for obtaining a SIP server address;
  • the SIP server obtain a dynamic host allocation protocol DHCP message, and perform binary string processing to obtain the required domain name, and obtain the domain name information used to obtain the SIP server address.
  • the SIP server supports a domain name query function to the domain name server, and can quickly return a domain name query response. When the domain name information is processed, it is used to perform binary string processing according to the format to obtain the required domain name.
  • the DNS module initiates a DNS request And when obtaining the address of the SIP server, it is used to call the domain name query interface provided by the DNS module to send a query message for the SRV record to the DNS server, and process the response message returned by the DNS server according to the query message, Obtain the IP address of the required SIP server from it.
  • Step S104 Initiate a DNS resolution request of the domain name system according to the domain name information, call the domain name query interface provided by the DNS module of the gateway device, and send a query message for the service location SRV record to the DNS server, and process the DNS server according to the query message.
  • the returned response packet is obtained from the IP address of the required SIP server.
  • the DNS server is configured to receive a domain name resolution request message forwarded by the gateway, and a response message returned according to the domain name resolution request message, where the response message carries address information allocated by the DNS for accessing a network.
  • the SIP server that allocates users associated with SIP messages further includes the following steps:
  • Step S201 Store the first identifier of the SIP server in the home user server.
  • Step S202 Insert the second identifier of the SIP server into the message header of the SIP message.
  • the first identifier of the SIP server can be transmitted through the Diameter interface.
  • the first identifier of the SIP server can be uploaded to the Home Subscriber Server through the Diameter interface, so that the HSS can store the first identifier of the SIP server in association with the user as an IMS registration.
  • the second identifier of the SIP server may be transmitted through a SIP (ISC) interface.
  • ISC SIP
  • the second identifier of the SIP server may be inserted into the message header of the SIP request received at the SIP server to generate a modified SIP request, and the modified SIP request may be It is forwarded to the next node as part of the wireless communication session.
  • the SIP server includes a serving call session control function node.
  • SIP server (CSCF) nodes in the form of call session control functions include an interrogating CSCF (I-CSCF) node and multiple serving CSCF (S-CSCF) nodes.
  • IMS IP Multimedia Subsystem
  • S-CSCF multiple serving CSCF
  • IMS IP Multimedia Subsystem
  • CSCF Call Session Control Function
  • IMS is responsible for processing user multimedia sessions and can be regarded as a SIP server in the IETF architecture.
  • proxy call session control function P.CSCF Proxy CSCF
  • inquiry call session control function I-CSCF Interrogation CSCF
  • service call session control function S.CSCF Server CSCF
  • the method further includes:
  • Step S301 receiving one or more SIP messages
  • the first fully qualified domain name is retrieved from the home user server.
  • the fully qualified domain name includes both the host name and the domain name where the host is located, which can accurately indicate where the host is, and dispatch the domain name into the distribution according to a preset scheduling policy.
  • the scheduling strategy assigns the weight of CPU time quota to each domain name queue.
  • the thread selects the query domain name in the corresponding domain name queue according to the weight.
  • a fully qualified domain name (Fully Qualified Domain Name) carries both the host name and the name of the domain name. For example: if the host name is bigserver and the domain name is mycompany.com, then the FQDN is bigserver.mycompany.com.
  • a fully qualified domain name can logically and accurately indicate where the host is. It can also be said that a fully qualified domain name is a complete representation of a host name. From the information contained in the fully qualified domain name, you can see where the host is in the domain name tree. The DNS resolution process first finds the local HOSTS table, and some directly use the definition in the table, but does not look up the DNS server set in the network connection for him to resolve. retrieve the first fully qualified domain name from the home user server.
  • the fully qualified domain name contains both the host name and the domain name where the host is located. It can accurately indicate where the host is, and dispatch the domain name into the distributed task queue according to a preset scheduling policy. In the domain name, priority scheduling can be performed.
  • the scheduling strategy assigns the weight of the CPU time quota to each domain name queue, and the thread selects the query domain name in the corresponding domain name queue according to the weight.
  • Step S303 Use the first fully qualified domain name DNS server
  • the first fully-qualified domain name DNS server retrieved by a policy such as CPU time quota.
  • the full domain name is very useful in actual business.
  • the email uses the full domain name as the recipient's email address, such as janicejones@acmecompany.com, where the recipient is janicejones, followed by the recipient name with the symbols @, @ Is the full domain name of the mail server, or the domain name of the company where the mail server is located, and finally the top-level domain name .com. .com means acmecompany is a business organization.
  • Step S304 Receive an empty response from the DNS server.
  • the empty response indicates the failure of the SIP server, and re-register the user to allocate a new SIP server.
  • the call is released and the user is migrated out through a specific failure reason code in the failure response returned to the serving network to which the calling terminal belongs, that is, the S-CSCF on the calling side; the main After receiving the failure response, the calling S-CSCF accesses the NPDB through the DNS or ENUM interface to obtain the NP data of the called terminal, and then uses the obtained NP data to reroute the call to the new service network of the called user terminal, that is, Second service network.
  • the I-CSCF of the first service network accesses the NPDB through the DNS or ENUM interface to obtain the NP data of the called user terminal, then releases the call, and sends the call to the S on the calling side.
  • the failure response returned by the CSCF carries the acquired NP data.
  • the calling S-CSCF uses the NP data to reroute the call to the new service network of the called user.
  • the user Xiao Zhang is registered and assigned an S-CSCF node.
  • Any new SIP service (for example, a SIP request) received at the I-CSCF node causes the I-CSCF node to query the S for the user Xiao Zhang.
  • -HSS of the identifier of the CSCF node which returns the first identifier retrieved from the master database.
  • the I-CSCF node may use the first identifier to query the IP address of the S-CSCF node corresponding to the first identifier by the DNS server along the signaling path.
  • the DNS server can access the service distribution server to determine that the S-CSCF node corresponding to the first identifier has been cancelled by the service distribution server.
  • the receipt of the NULL response at the I-CSCF node causes the I-CSCF node to re-register the user Xiao Zhang by initiating a capability discovery for the initial S-CSCF node allocation process.
  • different available S-CSCF nodes such as S-CSCF nodes
  • S-CSCF nodes can be assigned to the user Xiao Zhang to restore the user Xiao Zhang's session.
  • a node failure was discovered through a DNS query, and the user's session could be recovered within milliseconds.
  • re-registration may involve a SIP conversation including a unique CALL-ID.
  • storing the first identifier before further storing the first identifier: receiving the second identifier of the SIP server in the intermediate network device; and in the intermediate network device, converting the second identifier of the SIP server into the The first identifier, wherein storing the first identifier of the SIP server in the home user server includes uploading the first identifier of the SIP server from the intermediate network device to the home user server.
  • the SIP service (eg, a node in the S-CSCF) identified by the first identifier may be uploaded to a home server (HSS).
  • the home server is used to store the associated users (eg, user Zhang).
  • the upload may be performed by the SIP server, or may be uploaded by the intermediate network device (for example, a proxy node) from the SIP server and converted to the first identifier to the HSS after receiving a different identifier.
  • the intermediate network device for example, a proxy node
  • an upload is performed as part of the IMS registration process, such as when a user experiences that an IMS-based service (eg, a telephone service) is being registered with the IMS network.
  • a SCF message may be received in response to a message (e.g., such as SIP, REGISTER method, SIP INVITE, SIP, SUBSCRIBE method, or any other SIP method, any type of SIP request) CSCF node, determining a SIP server (e.g., S-CSCF node) Associated with the user (for example, user Xiao Zhang), and the I-CSCF node selects the SIP server to serve the user.
  • a SIP server e.g., S-CSCF node
  • This technical solution allows some of the advantages of the hierarchical structure to be combined to include the first identifier and the second as described above.
  • the structure of the identifier server overcomes the shortcomings of its inherent latency and enables participation in storage requests through any of the available second identifier servers.
  • a device for obtaining a SIP server address is proposed, and the device includes:
  • the receiving unit is configured to set in advance a SIP protocol stack on the SIP server for receiving and sending SIP messages, and for parsing and encapsulating the SIP messages.
  • the SIP protocol stack is used for receiving and sending SIP messages and receiving session initiated SIP messages.
  • the session is internet phone signaling and complies with the session initiation protocol;
  • a determining unit configured to allocate a SIP server of a user associated with the SIP message
  • the obtaining unit is configured to obtain a dynamic host allocation protocol DHCP message according to the SIP server, and perform binary string processing to obtain a required domain name and obtain domain name information for obtaining a SIP server address;
  • the resolution unit is configured to initiate a DNS resolution request of the domain name system according to the domain name information, invoke a domain name query interface provided by a DNS module of the gateway device, and send a query message for a service location SRV record to the DNS server, and process the DNS server according to the The response message returned by the query message is used to obtain the IP address of the required SIP server.
  • the determining unit further includes:
  • a storage module configured to store a first identifier of the SIP server in a home user server
  • the inserting module is configured to insert a second identifier of the SIP server into a message header of the SIP message.
  • the SIP server includes a serving call session control function node.
  • the receiving unit is further configured to receive one or more SIP messages; retrieve the first fully qualified domain name from the home user server, where the fully qualified domain name contains both the host name and the domain name where the host is located, which can be accurate It indicates where the host is, and the domain name is dispatched into the distributed task queue according to a preset scheduling policy.
  • Priority scheduling can be performed on the domain name.
  • the scheduling policy allocates a CPU time quota for each of the domain name queues. Weight, the thread selects the corresponding query domain name in the domain name queue according to the weight; uses the first fully qualified domain name DNS server; receives an empty response from the DNS server, and the empty response indicates the SIP server's Failed, and re-registered the user to assign a new SIP server.
  • the determining unit further includes:
  • a receiving module configured to receive a second identifier of a SIP server in an intermediate network device before storing the first identifier
  • a conversion module configured to convert the second identifier of the SIP server into the first identifier of the SIP server in the intermediate network device, wherein storing the first identifier of the SIP server in the home user server includes including the SIP server The first identifier is uploaded from the intermediate network device to the home user server.
  • a computer device in one embodiment, includes a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor causes the processor to execute the computer program. To implement the steps in the method for obtaining the SIP server address in the above embodiments.
  • a storage medium storing computer-readable instructions.
  • the computer-readable instructions are executed by one or more processors, the one or more processors are executed to obtain the SIP server in the foregoing embodiments. Steps in the method of address.
  • the storage medium may be a non-volatile storage medium.
  • the program may be stored in a computer-readable storage medium.
  • the storage medium may include: Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.

Landscapes

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

Abstract

The present application relates to a method, apparatus and device for obtaining a SIP (Session Initiation Protocol) server address and a storage medium. The method comprises: receiving a SIP message initiated by a session; allocating a SIP server of a user associated with the SIP message; obtaining domain name information of an SIP server address according to the SIP server, obtaining a dynamic host configuration protocol (DHCP) message according to the SIP server, and carrying out binary string processing so as to obtain a needed domain name, and obtaining the domain name information set for obtaining the SIP server address; and initiating a domain name system (DNS) resolution request according to the domain name information to obtain the SIP server address. The described method and device can improve the reliability of a call service, reduce the access cost, decrease the cross-operator access, and improve the service efficiency.

Description

获取SIP服务器地址的方法、装置、设备和存储介质Method, device, equipment and storage medium for obtaining SIP server address
本申请要求于2018年05月21日提交中国专利局、申请号为201810485588.2、发明名称为“获取SIP服务器地址的方法、装置、设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 21, 2018, with application number 201810485588.2. And the invention name is "Method, Device, Equipment, and Storage Medium for Obtaining SIP Server Address". Citations are incorporated in this application.
技术领域Technical field
本申请涉及通信技术,尤其涉及获取SIP服务器地址的方法、装置、设备和存储介质。This application relates to communication technology, and in particular, to a method, an apparatus, a device, and a storage medium for obtaining a SIP server address.
背景技术Background technique
随着网络和通讯技术的发展,通过互联网来直接拨打对方的固定电话或移动电话的网络电话(又称为VOIP电话),以其稳定的通话质量和低廉的资费,越来越多地被人们所应用。现有呼叫中心在公网上提供语音话路服务时,需要接入运营商的公网服务,目前主要采用BGP(边界网关协)接入方式,BGP是运行于TCP上的一种自治系统的路由协议。BGP是一个用来处理像因特网大小的网络的协议,能够处理不相关路由域间的多路连接的协议。BGP用于在不同的自治系统(AS)之间交换路由信息。当两个AS需要交换路由信息时,每个AS都必须指定一个运行BGP的节点,来代表AS与其他的AS交换路由信息。这个节点可以是一个主机。但通常是路由器来执行BGP。两个AS中利用BGP交换信息的路由器也被称为边界网关(Border Gateway)或边界路由器(Border Router)。亦或是采用电信、联通、移动单网络的接入方式,运营商会分配给呼叫中心一个IP地址,呼叫中心将之前申请的域名解析到IP地址中,供用户拨打使用。With the development of network and communication technology, the Internet phone (also known as VOIP phone) that directly dials each other's fixed or mobile phone via the Internet has been increasingly used by people for its stable call quality and low tariffs. Applied. When an existing call center provides voice channel services on the public network, it needs to access the operator's public network services. At present, BGP (Border Gateway Gateway) access is mainly used. BGP is an autonomous system routing running on TCP. protocol. BGP is a protocol used to handle networks like the size of the Internet, capable of handling multiple connections between unrelated routing domains. BGP is used to exchange routing information between different autonomous systems (AS). When two ASs need to exchange routing information, each AS must designate a node running BGP to exchange routing information with other ASs on behalf of the AS. This node can be a host. But usually routers perform BGP. The routers that use BGP to exchange information in the two ASs are also called Border Gateways or Border Routers. Or use telecommunications, China Unicom, mobile single network access methods, the operator will assign an IP address to the call center, the call center resolves the previously applied domain name to the IP address for users to dial in.
因此,现有技术在呼叫时普遍存在的缺陷有:运营商网络异常,则服务停止,可靠性差;跨运营商访问耗时长,效率低;BGP接入方式成本高。Therefore, the common defects in the prior art when calling are: the operator's network is abnormal, the service is stopped, and the reliability is poor; the cross-operator access takes a long time and the efficiency is low; and the BGP access method has a high cost.
发明内容Summary of the Invention
有鉴于此,有必要针对现有技术的不足,提供一种获取SIP(会话发起协议) 服务器地址的方法、装置、设备和存储介质。In view of this, it is necessary to provide a method, an apparatus, a device, and a storage medium for obtaining a SIP (Session Initiation Protocol) server address in view of the shortcomings of the prior art.
一种获取SIP服务器地址的方法,包括:A method for obtaining a SIP server address includes:
预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;A SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set in advance on the SIP server. The SIP protocol stack is used for receiving and sending SIP messages and receiving SIP messages initiated by a session. The session is Internet phone signaling, complying with the session initiation protocol;
分配与所述SIP消息相关联的用户的SIP服务器;Assigning a SIP server of a user associated with the SIP message;
根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息;Obtaining a Dynamic Host Distribution Protocol DHCP message according to the SIP server, and performing binary string processing to obtain a required domain name, and obtaining domain name information for obtaining a SIP server address;
根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。Initiate a DNS resolution request for the domain name system according to the domain name information, call the domain name query interface provided by the DNS module of the gateway device, and send a query message for the service location SRV record to the DNS server, and process the query message The response packet is obtained from the IP address of the required SIP server.
一种获取SIP服务器地址的装置,包括:A device for obtaining a SIP server address includes:
接收单元,设置为预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;The receiving unit is configured to set in advance a SIP protocol stack on the SIP server for receiving and sending SIP messages, and for parsing and encapsulating the SIP messages. The SIP protocol stack is used for receiving and sending SIP messages and receiving session initiated SIP messages. The session is internet phone signaling and complies with the session initiation protocol;
确定单元,设置为分配与所述SIP消息相关联的用户的SIP服务器;A determining unit configured to allocate a SIP server of a user associated with the SIP message;
获取单元,设置为根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息;The obtaining unit is configured to obtain a dynamic host allocation protocol DHCP message according to the SIP server, and perform binary string processing to obtain a required domain name and obtain domain name information for obtaining a SIP server address;
解析单元,设置为根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。The resolution unit is configured to initiate a DNS resolution request of the domain name system according to the domain name information, invoke a domain name query interface provided by a DNS module of the gateway device, and send a query message for a service location SRV record to the DNS server, and process the DNS server according to the The response message returned by the query message is used to obtain the IP address of the required SIP server.
一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:A computer device includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor causes the processor to perform the following steps:
预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析 和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;A SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set in advance on the SIP server. The SIP protocol stack is used for receiving and sending SIP messages and receiving SIP messages initiated by a session. The session is Internet phone signaling, complying with the session initiation protocol;
分配与所述SIP消息相关联的用户的SIP服务器;Assigning a SIP server of a user associated with the SIP message;
根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息;Obtaining a Dynamic Host Distribution Protocol DHCP message according to the SIP server, and performing binary string processing to obtain a required domain name, and obtaining domain name information for obtaining a SIP server address;
根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。Initiate a DNS resolution request for the domain name system according to the domain name information, call the domain name query interface provided by the DNS module of the gateway device, and send a query message for the service location SRV record to the DNS server, and process the query message returned by the DNS server according to the query message The response packet is obtained from the IP address of the required SIP server.
一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:A storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the following steps:
预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;A SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set in advance on the SIP server. The SIP protocol stack is used for receiving and sending SIP messages and receiving SIP messages initiated by a session. The session is Internet phone signaling, complying with the session initiation protocol;
分配与所述SIP消息相关联的用户的SIP服务器;Assigning a SIP server of a user associated with the SIP message;
根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息;Obtaining a Dynamic Host Distribution Protocol DHCP message according to the SIP server, and performing binary string processing to obtain a required domain name, and obtaining domain name information for obtaining a SIP server address;
根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。Initiate a DNS resolution request for the domain name system according to the domain name information, call the domain name query interface provided by the DNS module of the gateway device, and send a query message for the service location SRV record to the DNS server, and process the query message returned by the DNS server according to the query message The response packet is obtained from the IP address of the required SIP server.
上述获取SIP服务器地址的方法、装置、设备和存储介质,通过预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议,分配与所述SIP消息相关联的用户的SIP服务器,将所述SIP服务器的第一标识符存储在归属用户服务器中,将所述SIP服务器的第二标识符插入所述SIP消息的消息头中,在存储第一标识符之前,在中间网络设备中接收SIP服务器的第二标识符;以及在中间网络 设备中,将SIP服务器的第二标识符转换为SIP服务器的第一标识符,其中,将SIP服务器的第一标识符存储在归属用户服务器中,包括将SIP服务器的第一标识符从中间网络设备上载到归属用户服务器。根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息,根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址,提高呼叫服务的可靠性,降低接入成本,减少跨运营商的访问,提高服务效率。The foregoing method, device, device, and storage medium for obtaining a SIP server address are provided by a SIP server stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages in advance on the SIP server. The SIP protocol stack is used for receiving And send a SIP message, receive a SIP message initiated by the session, the session is Internet telephone signaling, comply with the session initiation protocol, allocate a SIP server of the user associated with the SIP message, and assign the first identifier of the SIP server Stored in the home user server, inserting the second identifier of the SIP server into the message header of the SIP message, and receiving the second identifier of the SIP server in the intermediate network device before storing the first identifier; and In the intermediate network device, the second identifier of the SIP server is converted into the first identifier of the SIP server, wherein the first identifier of the SIP server is stored in the home user server, including the first identifier of the SIP server Upload from the intermediate network device to the home user server. According to the SIP server, obtain a dynamic host allocation protocol DHCP message, perform binary string processing to obtain a required domain name, obtain domain name information for obtaining a SIP server address, and initiate a domain name system DNS resolution request according to the domain name information, and call The domain name query interface provided by the DNS module of the gateway device sends a query message for the service location SRV record to the DNS server, and processes the response message returned by the DNS server according to the query message to obtain the required SIP server IP addresses improve the reliability of call services, reduce access costs, reduce access across carriers, and improve service efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本申请的限制。Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the detailed description of the preferred embodiments below. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present application.
图1为一个实施例中提供的获取SIP服务器地址的方法流程图;FIG. 1 is a flowchart of a method for obtaining a SIP server address provided in an embodiment; FIG.
图2为一个实施例中提供的第一标识符存储和第二标识符插入的方法流程图;2 is a flowchart of a method for storing a first identifier and inserting a second identifier according to an embodiment;
图3为一个实施例中提供的接收一个或多个SIP消息的方法流程图;3 is a flowchart of a method for receiving one or more SIP messages according to an embodiment;
图4为一个实施例中提供的获取SIP服务器地址的装置结构框图;4 is a structural block diagram of a device for obtaining a SIP server address provided in an embodiment;
图5为一个实施例中提供的确定单元的结构框图。FIG. 5 is a structural block diagram of a determining unit provided in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件 和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "the" may include plural forms. It should be further understood that the word "comprising" used in the specification of the present application refers to the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and / or groups thereof.
作为一个较好的实施例,如图1所示,一种获取SIP服务器地址的方法,包括以下步骤:As a better embodiment, as shown in FIG. 1, a method for obtaining a SIP server address includes the following steps:
步骤S101,预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;In step S101, a SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set on the SIP server in advance. The SIP protocol stack is used for receiving and sending SIP messages, and receiving SIP messages initiated by the session. It is said that the session is Internet telephone signaling and complies with the session initiation protocol;
SIP(Session Initiation Protocol,会话初始协议)的开发目的是用来帮助提供跨越因特网的高级电话业务。因特网电话(IP电话)正在向一种正式的商业电话模式演进,SIP就是用来确保这种演进实现而需要的NGN(下一代网络)系列协议中重要的一员。会话发起协议(SIP)可用于建立,修改和终止分组网络上的多媒体会话(例如,多媒体电话呼叫)的信令传输协议,并且对基于IMS的服务的接入进行认证。IMS核心网络可以包括被配置为利用SIP信令来控制和管理IMS核心网络的多媒体会话的各种节点。这样的节点在这里被称为“SIP服务器”。SIP (Session Initialization Protocol) was developed to help provide advanced telephone services across the Internet. Internet telephony (IP telephony) is evolving to a formal business telephony model. SIP is an important member of the NGN (Next Generation Network) series of protocols needed to ensure this evolution. The Session Initiation Protocol (SIP) can be used to establish, modify, and terminate signaling transfer protocols for multimedia sessions (eg, multimedia phone calls) on a packet network, and to authenticate access to IMS-based services. The IMS core network may include various nodes configured to use SIP signaling to control and manage multimedia sessions of the IMS core network. Such nodes are referred to herein as "SIP servers".
步骤S102,分配与SIP消息相关联的用户的SIP服务器;Step S102: Allocate a user's SIP server associated with the SIP message;
SIP消息与呼叫会话相关联,由SIP服务器接收来自始发节点的入局SIP消息,由SIP服务器基于入局SIP消息中的至少一个报头字段确定路由选择关键字,由SIP服务器利用路由选择关键字识别负责呼叫会话的用户代理;将入局SIP消息发送到识别的用户代理;由用户代理创建出局SIP消息,利用路由选择关键字在出局SIP消息中生成报头字段,以及将出局SIP消息从SIP服务器发送到终结节点。SIP服务器接收到所述SIP消息后,判断SIP消息中是否携带关联会话标识,如果不携带,按照新会话方式处理SIP消息,如果携带,则根据所述关联会话标识查找到相关联的SIP消息。会话标识是记费时用来标识每个拨入用户会话的一个字符串,用户拨入到网络设备(比如接入服务器),该网络设备作为RADIUS客户端,会生成一个字符串来唯一标识该拨入用户的该次会话,供服务器端记费时使用。The SIP message is associated with the call session. The SIP server receives the incoming SIP message from the originating node. The SIP server determines the routing key based on at least one header field in the incoming SIP message. The SIP server uses the routing key to identify the responsible key. User agent for the call session; sending the incoming SIP message to the identified user agent; creating the outgoing SIP message by the user agent, using the routing keyword to generate a header field in the outgoing SIP message, and sending the outgoing SIP message from the SIP server to the termination node. After receiving the SIP message, the SIP server determines whether the SIP message carries an associated session identifier. If not, the SIP message is processed according to the new session mode. If it is carried, the associated SIP message is found according to the associated session identifier. The session ID is a string used to identify each dial-in user's session during billing. The user dials in to a network device (such as an access server). The network device acts as a RADIUS client and generates a string to uniquely identify the dial-in user. Enter the user's session for server-side billing.
步骤S103,根据SIP服务器,获取动态主机分配协议DHCP报文,进行二进 制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息;Step S103: Obtain a dynamic host allocation protocol DHCP message according to the SIP server, and perform binary string processing to obtain a required domain name, and obtain domain name information for obtaining a SIP server address;
根据SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息。SIP服务器支持向域名服务器进行域名查询功能,可以快速返回域名查询响应,对所述域名信息进行处理时,用于根据格式进行二进制串处理,以获取需要的域名,所述DNS模块在发起DNS请求以及获取SIP服务器的地址时,用于调用所述DNS模块所提供的域名查询接口向DNS服务器发送针对SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。According to the SIP server, obtain a dynamic host allocation protocol DHCP message, and perform binary string processing to obtain the required domain name, and obtain the domain name information used to obtain the SIP server address. The SIP server supports a domain name query function to the domain name server, and can quickly return a domain name query response. When the domain name information is processed, it is used to perform binary string processing according to the format to obtain the required domain name. The DNS module initiates a DNS request And when obtaining the address of the SIP server, it is used to call the domain name query interface provided by the DNS module to send a query message for the SRV record to the DNS server, and process the response message returned by the DNS server according to the query message, Obtain the IP address of the required SIP server from it.
步骤S104,根据域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。Step S104: Initiate a DNS resolution request of the domain name system according to the domain name information, call the domain name query interface provided by the DNS module of the gateway device, and send a query message for the service location SRV record to the DNS server, and process the DNS server according to the query message. The returned response packet is obtained from the IP address of the required SIP server.
DNS服务器,设置为接收网关转发的域名解析请求消息,根据所述域名解析请求消息返回的响应消息,其中,所述响应消息中携带有所述DNS分配用于访问网络的地址信息。The DNS server is configured to receive a domain name resolution request message forwarded by the gateway, and a response message returned according to the domain name resolution request message, where the response message carries address information allocated by the DNS for accessing a network.
如图2所示,在一个实施例中,分配与SIP消息相关联的用户的SIP服务器还包括以下步骤:As shown in FIG. 2, in one embodiment, the SIP server that allocates users associated with SIP messages further includes the following steps:
步骤S201,将SIP服务器的第一标识符存储在归属用户服务器中;Step S201: Store the first identifier of the SIP server in the home user server.
步骤S202,将SIP服务器的第二标识符插入SIP消息的消息头中。Step S202: Insert the second identifier of the SIP server into the message header of the SIP message.
SIP服务器的第一标识符可以通过Diameter接口来传输。例如,在IMS注册过程中,SIP服务器的第一标识符可以通过Diameter接口上载到归属用户服务器(Home Subscriber Server),使得HSS可以将SIP服务器的第一标识符与用户相关联地存储为IMS注册程序的一部分。SIP服务器的第二标识符可以通过SIP(ISC)接口传输。例如,在用户的无线通信会话期间,SIP服务器的第二标识符可被插入到在SIP服务器处接收到的SIP请求的消息头部内以生成经修改的SIP请求,并且经修改的SIP请求可作为无线通信会话的一部分被转发到下一节点。The first identifier of the SIP server can be transmitted through the Diameter interface. For example, during the IMS registration process, the first identifier of the SIP server can be uploaded to the Home Subscriber Server through the Diameter interface, so that the HSS can store the first identifier of the SIP server in association with the user as an IMS registration. Part of the program. The second identifier of the SIP server may be transmitted through a SIP (ISC) interface. For example, during a user's wireless communication session, the second identifier of the SIP server may be inserted into the message header of the SIP request received at the SIP server to generate a modified SIP request, and the modified SIP request may be It is forwarded to the next node as part of the wireless communication session.
在一个实施例中,SIP服务器包括服务呼叫会话控制功能节点。In one embodiment, the SIP server includes a serving call session control function node.
SIP在呼叫会话控制功能的形式的服务器(CSCF)节点,包括一个询问CSCF(I-CSCF)节点和多个服务CSCF(S-CSCF)节点。IMS(IP Multimedia Subsystem)是IP多媒体子系统,是一种全新的多媒体业务形式,它能够满足现在的终端客户更新颖、更多样化多媒体业务的需求。呼叫会话控制功能CSCF(Call Session Control Function)是IMS的核心部分,主要用于基于分组交换的SIP会话控制。在IMS中,CSCF负责对用户多媒体会话进行处理,可以看作IETF架构中的SIP服务器。根据各自不同的主要功能分为代理呼叫会话控制功能P.CSCF(Proxy CSCF)、问询呼叫会话控制功能I-CSCF(Interrogation CSCF)和服务呼叫会话控制功能S.CSCF(Serving CSCF),三个功能在物理上可以分开,也可以独立。SIP server (CSCF) nodes in the form of call session control functions include an interrogating CSCF (I-CSCF) node and multiple serving CSCF (S-CSCF) nodes. IMS (IP Multimedia Subsystem) is an IP multimedia subsystem, which is a new type of multimedia service that can meet the needs of newer and more diversified multimedia services of current end customers. Call Session Control Function (CSCF) is the core part of IMS, which is mainly used for SIP session control based on packet switching. In IMS, CSCF is responsible for processing user multimedia sessions and can be regarded as a SIP server in the IETF architecture. According to their respective main functions, they are divided into proxy call session control function P.CSCF (Proxy CSCF), inquiry call session control function I-CSCF (Interrogation CSCF), and service call session control function S.CSCF (Serving CSCF), three Functions can be physically separate or independent.
如图3所示,在一个实施例中,还包括:As shown in FIG. 3, in one embodiment, the method further includes:
步骤S301,接收一个或多个SIP消息;Step S301, receiving one or more SIP messages;
接收一个或者多个SIP消息,其中,SIP消息中的指示消息或者标识携带业务设置信息,且业务设置信息携带关联规则。Receive one or more SIP messages, where the indication message or identifier in the SIP message carries service setting information, and the service setting information carries association rules.
步骤S302,从归属用户服务器中检索第一个全限定域名,全限定域名同时包含主机名和主机所在的域名,可以准确地表示出主机在什么地方,并按照预设的调度策略将域名调度进入分布式任务队列中,可以对域名进行优先级的调度,调度策略为每个域名队列分配CPU时间配额的权重,线程根据该权重选取对应的域名队列中的查询域名;In step S302, the first fully qualified domain name is retrieved from the home user server. The fully qualified domain name includes both the host name and the domain name where the host is located, which can accurately indicate where the host is, and dispatch the domain name into the distribution according to a preset scheduling policy. In the task queue, you can perform priority scheduling for domain names. The scheduling strategy assigns the weight of CPU time quota to each domain name queue. The thread selects the query domain name in the corresponding domain name queue according to the weight.
全限定域名(Fully Qualified Domain Name)同时带有主机名和域名的名称。例如:主机名是bigserver,域名是mycompany.com,那么FQDN就是bigserver.mycompany.com。全限定域名可以从逻辑上准确地表示出主机在什么地方,也可以说全域名是主机名的一种完全表示形式。从全限定域名中包含的信息可以看出主机在域名树中的位置。DNS解析流程首先查找本机HOSTS表,有的直接使用表中定义,没有查找网络连接中设置的DNS服务器由他来解析。从归属用户服务器中检索第一个全限定域名,全限定域名同时包含主机名和主机所在的域名,可以准确地表示出主机在什么地方,并按照预设的调度策略将域名调度进入分布式任务队列中,可以对域名进行优先级的调度,调度策略为每 个域名队列分配CPU时间配额的权重,线程根据该权重选取对应的域名队列中的查询域名。A fully qualified domain name (Fully Qualified Domain Name) carries both the host name and the name of the domain name. For example: if the host name is bigserver and the domain name is mycompany.com, then the FQDN is bigserver.mycompany.com. A fully qualified domain name can logically and accurately indicate where the host is. It can also be said that a fully qualified domain name is a complete representation of a host name. From the information contained in the fully qualified domain name, you can see where the host is in the domain name tree. The DNS resolution process first finds the local HOSTS table, and some directly use the definition in the table, but does not look up the DNS server set in the network connection for him to resolve. Retrieve the first fully qualified domain name from the home user server. The fully qualified domain name contains both the host name and the domain name where the host is located. It can accurately indicate where the host is, and dispatch the domain name into the distributed task queue according to a preset scheduling policy. In the domain name, priority scheduling can be performed. The scheduling strategy assigns the weight of the CPU time quota to each domain name queue, and the thread selects the query domain name in the corresponding domain name queue according to the weight.
步骤S303,使用第一个全限定域名DNS服务器;Step S303: Use the first fully qualified domain name DNS server;
使用按CPU时间配额等策略检索到的第一个全限定域名DNS服务器。全域名在实际业务中是非常有用的,电子邮件就使用全域名作为收信人的电子邮件地址,如janicejones@acmecompany.com,其中收信人为janicejones,跟在收信人名字后面是符号@,@后面是邮件服务器的全域名,或者说是邮件服务器所在企业的域名,最后是顶层域名.com。.com意味着acmecompany是一个商业机构。The first fully-qualified domain name DNS server retrieved by a policy such as CPU time quota. The full domain name is very useful in actual business. The email uses the full domain name as the recipient's email address, such as janicejones@acmecompany.com, where the recipient is janicejones, followed by the recipient name with the symbols @, @ Is the full domain name of the mail server, or the domain name of the company where the mail server is located, and finally the top-level domain name .com. .com means acmecompany is a business organization.
步骤S304,接收来自DNS服务器的空响应,空响应表明SIP服务器的失败,并重新注册用户以分配新的SIP服务器。Step S304: Receive an empty response from the DNS server. The empty response indicates the failure of the SIP server, and re-register the user to allocate a new SIP server.
如果号码携带本地策略为QoR模式,则释放呼叫,并在向主叫终端所属的服务网络,即主叫侧的S-CSCF返回的失败响应中通过特定的失败原因码指示用户已迁出;主叫侧S-CSCF收到失败响应后,通过DNS或者ENUM接口访问NPDB,以获取该被叫终端的NP数据,然后利用得到的NP数据重新路由呼叫至被叫用户终端的新的服务网络,即第二服务网。如果号码携带本地策略为Call Dropback模式,则第一服务网络的I-CSCF通过DNS或者ENUM接口访问NPDB,以获取该被叫用户终端的NP数据,然后释放呼叫,并在向主叫侧的S-CSCF返回的失败响应中携带获取到NP数据,主叫侧S-CSCF收到失败响应后,利用其中的NP数据重新路由呼叫至被叫用户新的服务网络。If the number carries a local policy in the QoR mode, the call is released and the user is migrated out through a specific failure reason code in the failure response returned to the serving network to which the calling terminal belongs, that is, the S-CSCF on the calling side; the main After receiving the failure response, the calling S-CSCF accesses the NPDB through the DNS or ENUM interface to obtain the NP data of the called terminal, and then uses the obtained NP data to reroute the call to the new service network of the called user terminal, that is, Second service network. If the number carries a local policy in the Call Dropback mode, the I-CSCF of the first service network accesses the NPDB through the DNS or ENUM interface to obtain the NP data of the called user terminal, then releases the call, and sends the call to the S on the calling side. -The failure response returned by the CSCF carries the acquired NP data. After receiving the failure response, the calling S-CSCF uses the NP data to reroute the call to the new service network of the called user.
举例说明,用户小张被注册并分配了S-CSCF节点,在I-CSCF节点接收到的任何新的SIP业务(例如,SIP请求)使得I-CSCF节点查询用于分配给用户小张的S-CSCF节点的标识符的HSS,其返回从主数据库检索到的第一标识符。I-CSCF节点可以使用第一标识符来沿着信令路径查询DNS服务器用于与第一标识符对应的S-CSCF节点的IP地址。当接收到DNS查询时,DNS服务器可以访问业务分发服务器以确定与第一标识符相对应的S-CSCF节点已经被业务分发服务器取消了轮换,这导致DNS服务器沿着信令路径返回“NULL”响应,这表明S-CSCF节点已经被取消了,即失败了。DNS查询和NULL响应需要几毫秒才能完成。在 I-CSCF节点处对NULL响应的接收使得I-CSCF节点通过发起针对初始S-CSCF节点分配过程的能力发现来重新注册用户小张。用此方式,可将不同的可用S-CSCF节点(例如S-CSCF节点)分配给用户小张以恢复用户小张的会话。在这个例子中,通过DNS查询发现节点故障,用户小张的会话可以在几毫秒内恢复。在另一些实施例中,重新注册可以涉及包括唯一CALL-ID的SIP对话。For example, the user Xiao Zhang is registered and assigned an S-CSCF node. Any new SIP service (for example, a SIP request) received at the I-CSCF node causes the I-CSCF node to query the S for the user Xiao Zhang. -HSS of the identifier of the CSCF node, which returns the first identifier retrieved from the master database. The I-CSCF node may use the first identifier to query the IP address of the S-CSCF node corresponding to the first identifier by the DNS server along the signaling path. When a DNS query is received, the DNS server can access the service distribution server to determine that the S-CSCF node corresponding to the first identifier has been cancelled by the service distribution server. This causes the DNS server to return a "NULL" response along the signaling path. This indicates that the S-CSCF node has been cancelled, that is, it has failed. DNS queries and NULL responses take several milliseconds to complete. The receipt of the NULL response at the I-CSCF node causes the I-CSCF node to re-register the user Xiao Zhang by initiating a capability discovery for the initial S-CSCF node allocation process. In this way, different available S-CSCF nodes (such as S-CSCF nodes) can be assigned to the user Xiao Zhang to restore the user Xiao Zhang's session. In this example, a node failure was discovered through a DNS query, and the user's session could be recovered within milliseconds. In other embodiments, re-registration may involve a SIP conversation including a unique CALL-ID.
在一个实施例中,进一步包括在存储第一标识符之前:在中间网络设备中接收SIP服务器的第二标识符;以及在中间网络设备中,将SIP服务器的第二标识符转换为SIP服务器的第一标识符,其中,将SIP服务器的第一标识符存储在归属用户服务器中,包括将SIP服务器的第一标识符从中间网络设备上载到归属用户服务器。In one embodiment, before further storing the first identifier: receiving the second identifier of the SIP server in the intermediate network device; and in the intermediate network device, converting the second identifier of the SIP server into the The first identifier, wherein storing the first identifier of the SIP server in the home user server includes uploading the first identifier of the SIP server from the intermediate network device to the home user server.
第一标识符标识的SIP服务(例如,S-CSCF中的一个节点)可被上传到归属服务器(HSS)。在归属服务器用于存储相关联的用户(例如,用户小张)。其上载可以由SIP服务器执行,或由中间网络设备(例如,一个代理节点)接收不同的标识符之后从SIP服务器并将其转换为第一标识符上传到HSS。在一些实施例中,作为IMS注册过程的一部分,诸如当用户体验正在向IMS网络注册基于IMS的服务(例如,电话服务)时,执行上载。例如,可以响应于消息接收到SIP消息(例如,诸如SIP REGISTER方法,SIP INVITE,SIP SUBSCRIBE方法或任何其他SIP方法,任何类型的SIP请求)CSCF节点,确定SIP服务器(例如,S-CSCF节点)与用户(例如,用户小张)相关联,并且由I-CSCF节点选择SIP服务器来为用户服务,本技术方案允许将分层结构的一些优势合并到如上所述包括第一标识符和第二标识符服务器的结构中,而克服它的固有延时的缺点,并且使得能够通过可用的第二标识符服务器中的任意一个来参与存储请求。The SIP service (eg, a node in the S-CSCF) identified by the first identifier may be uploaded to a home server (HSS). The home server is used to store the associated users (eg, user Zhang). The upload may be performed by the SIP server, or may be uploaded by the intermediate network device (for example, a proxy node) from the SIP server and converted to the first identifier to the HSS after receiving a different identifier. In some embodiments, as part of the IMS registration process, such as when a user experiences that an IMS-based service (eg, a telephone service) is being registered with the IMS network, an upload is performed. For example, a SCF message may be received in response to a message (e.g., such as SIP, REGISTER method, SIP INVITE, SIP, SUBSCRIBE method, or any other SIP method, any type of SIP request) CSCF node, determining a SIP server (e.g., S-CSCF node) Associated with the user (for example, user Xiao Zhang), and the I-CSCF node selects the SIP server to serve the user. This technical solution allows some of the advantages of the hierarchical structure to be combined to include the first identifier and the second as described above. The structure of the identifier server overcomes the shortcomings of its inherent latency and enables participation in storage requests through any of the available second identifier servers.
如图4所示,在一个实施例中,提出了一种获取SIP服务器地址的装置,该装置包括:As shown in FIG. 4, in one embodiment, a device for obtaining a SIP server address is proposed, and the device includes:
接收单元,设置为预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;The receiving unit is configured to set in advance a SIP protocol stack on the SIP server for receiving and sending SIP messages, and for parsing and encapsulating the SIP messages. The SIP protocol stack is used for receiving and sending SIP messages and receiving session initiated SIP messages. The session is internet phone signaling and complies with the session initiation protocol;
确定单元,设置为分配与所述SIP消息相关联的用户的SIP服务器;A determining unit configured to allocate a SIP server of a user associated with the SIP message;
获取单元,设置为根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息;The obtaining unit is configured to obtain a dynamic host allocation protocol DHCP message according to the SIP server, and perform binary string processing to obtain a required domain name and obtain domain name information for obtaining a SIP server address;
解析单元,设置为根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。The resolution unit is configured to initiate a DNS resolution request of the domain name system according to the domain name information, invoke a domain name query interface provided by a DNS module of the gateway device, and send a query message for a service location SRV record to the DNS server, and process the DNS server according to the The response message returned by the query message is used to obtain the IP address of the required SIP server.
如图5所示,在一个实施例中,所述确定单元还包括:As shown in FIG. 5, in an embodiment, the determining unit further includes:
存储模块,设置为将所述SIP服务器的第一标识符存储在归属用户服务器中;A storage module configured to store a first identifier of the SIP server in a home user server;
插入模块,设置为将所述SIP服务器的第二标识符插入所述SIP消息的消息头中。The inserting module is configured to insert a second identifier of the SIP server into a message header of the SIP message.
在一个实施例中,所述SIP服务器包括服务呼叫会话控制功能节点。In one embodiment, the SIP server includes a serving call session control function node.
在一个实施例中,所述接收单元还设置为接收一个或多个SIP消息;从归属用户服务器中检索第一个全限定域名,所述全限定域名同时包含主机名和主机所在的域名,可以准确地表示出主机在什么地方,并按照预设的调度策略将域名调度进入分布式任务队列中,可以对域名进行优先级的调度,所述调度策略为每个所述域名队列分配CPU时间配额的权重,线程根据该权重选取对应的所述域名队列中的查询域名;使用所述第一个全限定域名DNS服务器;接收来自所述DNS服务器的空响应,所述空响应表明所述SIP服务器的失败,并重新注册用户以分配新的SIP服务器。In one embodiment, the receiving unit is further configured to receive one or more SIP messages; retrieve the first fully qualified domain name from the home user server, where the fully qualified domain name contains both the host name and the domain name where the host is located, which can be accurate It indicates where the host is, and the domain name is dispatched into the distributed task queue according to a preset scheduling policy. Priority scheduling can be performed on the domain name. The scheduling policy allocates a CPU time quota for each of the domain name queues. Weight, the thread selects the corresponding query domain name in the domain name queue according to the weight; uses the first fully qualified domain name DNS server; receives an empty response from the DNS server, and the empty response indicates the SIP server's Failed, and re-registered the user to assign a new SIP server.
在一个实施例中,所述确定单元还包括:In one embodiment, the determining unit further includes:
接收模块,设置为在存储第一标识符之前,在中间网络设备中接收SIP服务器的第二标识符;A receiving module configured to receive a second identifier of a SIP server in an intermediate network device before storing the first identifier;
转换模块,设置为在中间网络设备中,将SIP服务器的第二标识符转换为SIP服务器的第一标识符,其中,将SIP服务器的第一标识符存储在归属用户服务器中,包括将SIP服务器的第一标识符从中间网络设备上载到归属用户服务 器。A conversion module configured to convert the second identifier of the SIP server into the first identifier of the SIP server in the intermediate network device, wherein storing the first identifier of the SIP server in the home user server includes including the SIP server The first identifier is uploaded from the intermediate network device to the home user server.
在一个实施例中,提出了一种计算机设备,所述计算机设备包括存储器和处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时,使得处理器执行所述计算机程序时实现上述各实施例里获取SIP服务器地址的方法中的步骤。In one embodiment, a computer device is provided. The computer device includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor causes the processor to execute the computer program. To implement the steps in the method for obtaining the SIP server address in the above embodiments.
在一个实施例中,提出了一种存储有计算机可读指令的存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述各实施例里获取SIP服务器地址的方法中的步骤。其中,存储介质可以为非易失性存储介质。In one embodiment, a storage medium storing computer-readable instructions is provided. When the computer-readable instructions are executed by one or more processors, the one or more processors are executed to obtain the SIP server in the foregoing embodiments. Steps in the method of address. The storage medium may be a non-volatile storage medium.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be implemented by a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may include: Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the embodiments described above can be arbitrarily combined. In order to simplify the description, all possible combinations of the technical features in the above embodiments have not been described. However, as long as there is no contradiction in the combination of these technical features, It should be considered as the scope described in this specification.
以上所述实施例仅表达了本申请一些示例性实施例,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express some exemplary embodiments of the present application, and their descriptions are more specific and detailed, but cannot be understood as a limitation on the scope of the patent of the present application. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of this application patent shall be subject to the appended claims.

Claims (20)

  1. 一种获取SIP服务器地址的方法,包括:A method for obtaining a SIP server address includes:
    预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;A SIP protocol stack for receiving and sending SIP messages and parsing and encapsulating the SIP messages is set in advance on the SIP server. The SIP protocol stack is used for receiving and sending SIP messages and receiving SIP messages initiated by a session. The session is Internet phone signaling, complying with the session initiation protocol;
    分配与所述SIP消息相关联的用户的SIP服务器;Assigning a SIP server of a user associated with the SIP message;
    根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息;Obtaining a Dynamic Host Distribution Protocol DHCP message according to the SIP server, and performing binary string processing to obtain a required domain name, and obtaining domain name information for obtaining a SIP server address;
    根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。Initiate a DNS resolution request for the domain name system according to the domain name information, call the domain name query interface provided by the DNS module of the gateway device, and send a query message for the service location SRV record to the DNS server, and process the query message returned by the DNS server according to the query message The response packet is obtained from the IP address of the required SIP server.
  2. 根据权利要求1所述的获取SIP服务器地址的方法,其中,所述分配与所述SIP消息相关联的用户的SIP服务器还包括以下步骤:The method for obtaining a SIP server address according to claim 1, wherein the assigning a SIP server of a user associated with the SIP message further comprises the following steps:
    将所述SIP服务器的第一标识符存储在归属用户服务器中;Storing the first identifier of the SIP server in a home user server;
    将所述SIP服务器的第二标识符插入所述SIP消息的消息头中。Inserting the second identifier of the SIP server into a message header of the SIP message.
  3. 根据权利要求1所述的获取SIP服务器地址的方法,其中,SIP服务器包括服务呼叫会话控制功能节点。The method for obtaining a SIP server address according to claim 1, wherein the SIP server comprises a service call session control function node.
  4. 根据权利要求1所述的获取SIP服务器地址的方法,其中,还包括:The method for obtaining a SIP server address according to claim 1, further comprising:
    接收一个或多个SIP消息;Receive one or more SIP messages;
    从归属用户服务器中检索第一个全限定域名,所述全限定域名同时包含主机名和主机所在的域名,可以准确地表示出主机在什么地方,并按照预设的调度策略将域名调度进入分布式任务队列中,可以对域名进行优先级的调度,所述调度策略为每个所述域名队列分配CPU时间配额的权重,线程根据该权重选取对应的所述域名队列中的查询域名;Retrieve the first fully qualified domain name from the home user server. The fully qualified domain name contains both the host name and the domain name where the host is located. It can accurately indicate where the host is and dispatch the domain name into the distributed according to a preset scheduling policy. In the task queue, priority scheduling may be performed on domain names. The scheduling strategy assigns a weight of a CPU time quota to each of the domain name queues, and a thread selects a query domain name in the corresponding domain name queue according to the weight;
    使用所述第一个全限定域名DNS服务器;Using the first fully qualified domain name DNS server;
    接收来自所述DNS服务器的空响应,所述空响应表明所述SIP服务器的失败,并重新注册用户以分配新的SIP服务器。Receiving an empty response from the DNS server, the empty response indicating the failure of the SIP server, and re-registering the user to allocate a new SIP server.
  5. 根据权利要求2所述的获取SIP服务器地址的方法,其中,进一步包括 在存储第一标识符之前:在中间网络设备中接收SIP服务器的第二标识符;以及在中间网络设备中,将SIP服务器的第二标识符转换为SIP服务器的第一标识符,其中,将SIP服务器的第一标识符存储在归属用户服务器中,包括将SIP服务器的第一标识符从中间网络设备上载到归属用户服务器。The method for obtaining a SIP server address according to claim 2, further comprising before storing the first identifier: receiving a second identifier of the SIP server in the intermediate network device; and in the intermediate network device, receiving the SIP server Converting the second identifier of the SIP server to the first identifier of the SIP server, wherein storing the first identifier of the SIP server in the home user server includes uploading the first identifier of the SIP server from the intermediate network device to the home user server .
  6. 一种获取SIP服务器地址的装置,包括:A device for obtaining a SIP server address includes:
    接收单元,设置为预先在SIP服务器上设置用于接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈用于接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;The receiving unit is configured to set in advance a SIP protocol stack on the SIP server for receiving and sending SIP messages, and for parsing and encapsulating the SIP messages. The SIP protocol stack is used for receiving and sending SIP messages and receiving session initiated SIP messages. The session is internet phone signaling and complies with the session initiation protocol;
    确定单元,设置为分配与所述SIP消息相关联的用户的SIP服务器;A determining unit configured to allocate a SIP server of a user associated with the SIP message;
    获取单元,设置为根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到用于获取SIP服务器地址的域名信息;The obtaining unit is configured to obtain a dynamic host allocation protocol DHCP message according to the SIP server, and perform binary string processing to obtain a required domain name and obtain domain name information for obtaining a SIP server address;
    解析单元,设置为根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。The resolution unit is configured to initiate a DNS resolution request of the domain name system according to the domain name information, invoke a domain name query interface provided by a DNS module of the gateway device, and send a query message for a service location SRV record to the DNS server, and process the DNS server according to the The response message returned by the query message is used to obtain the IP address of the required SIP server.
  7. 根据权利要求6所述的获取SIP服务器地址的装置,其中,所述确定单元还包括:The apparatus for obtaining a SIP server address according to claim 6, wherein the determining unit further comprises:
    存储模块,设置为将所述SIP服务器的第一标识符存储在归属用户服务器中;A storage module configured to store a first identifier of the SIP server in a home user server;
    插入模块,设置为将所述SIP服务器的第二标识符插入所述SIP消息的消息头中。The inserting module is configured to insert a second identifier of the SIP server into a message header of the SIP message.
  8. 根据权利要求6所述的获取SIP服务器地址的装置,其中,所述SIP服务器包括服务呼叫会话控制功能节点。The apparatus for obtaining a SIP server address according to claim 6, wherein the SIP server comprises a service call session control function node.
  9. 根据权利要求6所述的获取SIP服务器地址的装置,其中,所述接收单元还设置为接收一个或多个SIP消息;从归属用户服务器中检索第一个全限定域名,所述全限定域名同时包含主机名和主机所在的域名,可以准确地表示出主机在什么地方,并按照预设的调度策略将域名调度进入分布式任务队列中,可 以对域名进行优先级的调度,所述调度策略为每个所述域名队列分配CPU时间配额的权重,线程根据该权重选取对应的所述域名队列中的查询域名;使用所述第一个全限定域名DNS服务器;接收来自所述DNS服务器的空响应,所述空响应表明所述SIP服务器的失败,并重新注册用户以分配新的SIP服务器。The device for obtaining a SIP server address according to claim 6, wherein the receiving unit is further configured to receive one or more SIP messages; retrieve a first fully qualified domain name from a home user server, and the fully qualified domain name is simultaneously Contains the host name and the domain name where the host is located. It can accurately indicate where the host is, and dispatch the domain name into the distributed task queue according to a preset scheduling policy. Priority scheduling can be performed on the domain name. The scheduling policy is Each of the domain name queues assigns a CPU time quota weight, and the thread selects a corresponding query domain name in the domain name queue according to the weight; uses the first fully qualified domain name DNS server; receives an empty response from the DNS server, The null response indicates the failure of the SIP server and re-registers the user to allocate a new SIP server.
  10. 根据权利要求7所述的获取SIP服务器地址的装置,其中,所述确定单元还包括:The apparatus for obtaining a SIP server address according to claim 7, wherein the determining unit further comprises:
    接收模块,设置为在存储第一标识符之前,在中间网络设备中接收SIP服务器的第二标识符;A receiving module configured to receive a second identifier of a SIP server in an intermediate network device before storing the first identifier;
    转换模块,设置为在中间网络设备中,将SIP服务器的第二标识符转换为SIP服务器的第一标识符,其中,将SIP服务器的第一标识符存储在归属用户服务器中,包括将SIP服务器的第一标识符从中间网络设备上载到归属用户服务器。A conversion module configured to convert the second identifier of the SIP server into the first identifier of the SIP server in the intermediate network device, wherein storing the first identifier of the SIP server in the home user server includes including the SIP server The first identifier is uploaded from the intermediate network device to the home user server.
  11. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:A computer device includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor causes the processor to perform the following steps:
    预先在SIP服务器上设置设置为接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈设置为接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;A SIP protocol stack configured to receive and send SIP messages and parse and encapsulate the SIP messages is set in advance on the SIP server. The SIP protocol stack is configured to receive and send SIP messages and receive SIP messages initiated by a session. Internet phone signaling, complying with the session initiation protocol;
    分配与所述SIP消息相关联的用户的SIP服务器;Assigning a SIP server of a user associated with the SIP message;
    根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到设置为获取SIP服务器地址的域名信息;Obtaining, according to the SIP server, a dynamic host allocation protocol DHCP message, and performing binary string processing to obtain a required domain name, and obtaining domain name information set to obtain a SIP server address;
    根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。Initiate a DNS resolution request for the domain name system according to the domain name information, call the domain name query interface provided by the DNS module of the gateway device, and send a query message for the service location SRV record to the DNS server, and process the query message returned by the DNS server according to the query message The response packet is obtained from the IP address of the required SIP server.
  12. 根据权利要求11所述的计算机设备,其中,所述分配与所述SIP消息相关联的用户的SIP服务器,还使得所述处理器执行以下步骤:The computer device of claim 11, wherein the assigning a user's SIP server associated with the SIP message further causes the processor to perform the following steps:
    将所述SIP服务器的第一标识符存储在归属用户服务器中;Storing the first identifier of the SIP server in a home user server;
    将所述SIP服务器的第二标识符插入所述SIP消息的消息头中。Inserting the second identifier of the SIP server into a message header of the SIP message.
  13. 根据权利要求11所述的计算机设备,其中,所述SIP服务器包括服务呼叫会话控制功能节点。The computer device of claim 11, wherein the SIP server includes a serving call session control function node.
  14. 根据权利要求11所述的计算机设备,其中,所述计算机可读指令被所述处理器执行时,还使得所述处理器执行以下步骤:The computer device according to claim 11, wherein the computer-readable instructions, when executed by the processor, further cause the processor to perform the following steps:
    接收一个或多个SIP消息;Receive one or more SIP messages;
    从归属用户服务器中检索第一个全限定域名,所述全限定域名同时包含主机名和主机所在的域名,可以准确地表示出主机在什么地方,并按照预设的调度策略将域名调度进入分布式任务队列中,可以对域名进行优先级的调度,所述调度策略为每个所述域名队列分配CPU时间配额的权重,线程根据该权重选取对应的所述域名队列中的查询域名;Retrieve the first fully qualified domain name from the home user server. The fully qualified domain name contains both the host name and the domain name where the host is located. It can accurately indicate where the host is and dispatch the domain name into the distributed according to a preset scheduling policy. In the task queue, priority scheduling may be performed on domain names. The scheduling strategy assigns a weight of a CPU time quota to each of the domain name queues, and a thread selects a query domain name in the corresponding domain name queue according to the weight;
    使用所述第一个全限定域名DNS服务器;Using the first fully qualified domain name DNS server;
    接收来自所述DNS服务器的空响应,所述空响应表明所述SIP服务器的失败,并重新注册用户以分配新的SIP服务器。Receiving an empty response from the DNS server, the empty response indicating the failure of the SIP server, and re-registering the user to allocate a new SIP server.
  15. 根据权利要求11所述的计算机设备,其中,在存储第一标识符之前,还使得所述处理器执行以下步骤:The computer device according to claim 11, wherein before storing the first identifier, the processor is further caused to perform the following steps:
    在中间网络设备中接收SIP服务器的第二标识符;以及在中间网络设备中,将SIP服务器的第二标识符转换为SIP服务器的第一标识符,其中,将SIP服务器的第一标识符存储在归属用户服务器中,包括将SIP服务器的第一标识符从中间网络设备上载到归属用户服务器。Receiving the second identifier of the SIP server in the intermediate network device; and converting the second identifier of the SIP server into the first identifier of the SIP server in the intermediate network device, wherein the first identifier of the SIP server is stored The home user server includes uploading the first identifier of the SIP server from the intermediate network device to the home user server.
  16. 一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:A storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the following steps:
    预先在SIP服务器上设置设置为接收和发送SIP消息并对SIP消息进行解析和封装的SIP协议栈,所述SIP协议栈设置为接收和发送SIP消息,接收会话发起的SIP消息,所述会话是网际电话信令,遵守会话发起协议;A SIP protocol stack configured to receive and send SIP messages and parse and encapsulate the SIP messages is set in advance on the SIP server. The SIP protocol stack is configured to receive and send SIP messages and receive SIP messages initiated by a session. Internet phone signaling, complying with the session initiation protocol;
    分配与所述SIP消息相关联的用户的SIP服务器;Assigning a SIP server of a user associated with the SIP message;
    根据所述SIP服务器,获取动态主机分配协议DHCP报文,进行二进制串处理,以获取需要的域名,得到设置为获取SIP服务器地址的域名信息;Obtaining, according to the SIP server, a dynamic host allocation protocol DHCP message, and performing binary string processing to obtain a required domain name, and obtaining domain name information set to obtain a SIP server address;
    根据所述域名信息发起域名系统DNS解析请求,调用网关设备的DNS模块所提供的域名查询接口向DNS服务器发送针对服务位置SRV记录的查询报文,并处理DNS服务器根据所述查询报文所返回的应答报文,从中获取所需的SIP服务器的IP地址。Initiate a DNS resolution request for the domain name system according to the domain name information, call the domain name query interface provided by the DNS module of the gateway device, and send a query message for the service location SRV record to the DNS server, and process the query message returned by the DNS server according to the query message The response packet is obtained from the IP address of the required SIP server.
  17. 根据权利要求16所述的存储介质,其中,所述分配与所述SIP消息相关联的用户的SIP服务器,还使得一个或多个处理器执行以下步骤:The storage medium of claim 16, wherein the assigning a user's SIP server associated with the SIP message further causes one or more processors to perform the following steps:
    将所述SIP服务器的第一标识符存储在归属用户服务器中;Storing the first identifier of the SIP server in a home user server;
    将所述SIP服务器的第二标识符插入所述SIP消息的消息头中。Inserting the second identifier of the SIP server into a message header of the SIP message.
  18. 根据权利要求16所述的存储介质,其中,所述SIP服务器包括服务呼叫会话控制功能节点。The storage medium of claim 16, wherein the SIP server comprises a serving call session control function node.
  19. 根据权利要求16所述的存储介质,其中,所述计算机可读指令被所述处理器执行时,还使得一个或多个处理器执行以下步骤:The storage medium of claim 16, wherein the computer-readable instructions, when executed by the processor, further cause one or more processors to perform the following steps:
    接收一个或多个SIP消息;Receive one or more SIP messages;
    从归属用户服务器中检索第一个全限定域名,所述全限定域名同时包含主机名和主机所在的域名,可以准确地表示出主机在什么地方,并按照预设的调度策略将域名调度进入分布式任务队列中,可以对域名进行优先级的调度,所述调度策略为每个所述域名队列分配CPU时间配额的权重,线程根据该权重选取对应的所述域名队列中的查询域名;Retrieve the first fully qualified domain name from the home user server. The fully qualified domain name contains both the host name and the domain name where the host is located. It can accurately indicate where the host is and dispatch the domain name into the distributed according to a preset scheduling policy. In the task queue, priority scheduling may be performed on domain names. The scheduling strategy assigns a weight of a CPU time quota to each of the domain name queues, and a thread selects a query domain name in the corresponding domain name queue according to the weight;
    使用所述第一个全限定域名DNS服务器;Using the first fully qualified domain name DNS server;
    接收来自所述DNS服务器的空响应,所述空响应表明所述SIP服务器的失败,并重新注册用户以分配新的SIP服务器。Receiving an empty response from the DNS server, the empty response indicating the failure of the SIP server, and re-registering the user to allocate a new SIP server.
  20. 根据权利要求16所述的存储介质,其中,在存储第一标识符之前,还使得一个或多个处理器执行以下步骤:The storage medium of claim 16, wherein before storing the first identifier, one or more processors are further caused to perform the following steps:
    在中间网络设备中接收SIP服务器的第二标识符;以及在中间网络设备中,将SIP服务器的第二标识符转换为SIP服务器的第一标识符,其中,将SIP服务器的第一标识符存储在归属用户服务器中,包括将SIP服务器的第一标识符从中间网络设备上载到归属用户服务器。Receiving the second identifier of the SIP server in the intermediate network device; and converting the second identifier of the SIP server into the first identifier of the SIP server in the intermediate network device, wherein the first identifier of the SIP server is stored The home user server includes uploading the first identifier of the SIP server from the intermediate network device to the home user server.
PCT/CN2018/104134 2018-05-21 2018-09-05 Method, apparatus and device for obtaining sip server address and storage medium WO2019223167A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810485588.2A CN108712516B (en) 2018-05-21 2018-05-21 Method, device, equipment and storage medium for acquiring SIP server address
CN201810485588.2 2018-05-21

Publications (1)

Publication Number Publication Date
WO2019223167A1 true WO2019223167A1 (en) 2019-11-28

Family

ID=63869152

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104134 WO2019223167A1 (en) 2018-05-21 2018-09-05 Method, apparatus and device for obtaining sip server address and storage medium

Country Status (2)

Country Link
CN (1) CN108712516B (en)
WO (1) WO2019223167A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352748A (en) * 2020-02-26 2020-06-30 北京思特奇信息技术股份有限公司 Interface calling method and device, electronic equipment and storage medium
CN113515392A (en) * 2021-05-17 2021-10-19 腾讯科技(深圳)有限公司 RPC calling method, device, equipment and storage medium
CN114567458A (en) * 2021-12-02 2022-05-31 杭州盈高科技有限公司 System and method for quickly identifying monitoring equipment
CN115349249A (en) * 2020-03-31 2022-11-15 瑞典爱立信有限公司 Cross-mobile network operator server
CN115349249B (en) * 2020-03-31 2024-05-28 瑞典爱立信有限公司 Cross-mobile network operator server

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422964A (en) * 2020-10-28 2022-04-29 中国电信股份有限公司 Method, system, and storage medium for messaging between 5G messaging users/VoLTE users
CN115190105B (en) * 2021-04-06 2024-03-29 维沃移动通信有限公司 Information processing method, device and communication equipment
CN114866596A (en) * 2022-05-25 2022-08-05 上海浦东发展银行股份有限公司 Session processing method, device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047725A (en) * 2006-03-30 2007-10-03 华为技术有限公司 Method and system for acquiring IP address of agent call session control function
EP2146479A1 (en) * 2008-07-16 2010-01-20 Hitachi, Ltd. SIP server and communication system
CN103227842A (en) * 2012-01-31 2013-07-31 中兴通讯股份有限公司 Method and device for acquiring SIP (session initiation protocol) server address
US20140219165A1 (en) * 2013-02-05 2014-08-07 Mediatek Inc. Apparatus and method for acquiring ipv6 domain name system server and sip server address
CN106534140A (en) * 2016-11-25 2017-03-22 西安烽火电子科技有限责任公司 Transmission system and method of SIP message

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100499472C (en) * 2006-11-08 2009-06-10 中兴通讯股份有限公司 Network architecture for carrying number based on distributed DNS system in IMS network and its method
CN101374118B (en) * 2007-08-23 2015-07-29 华为技术有限公司 A kind of method, system and device of information interconnect
CN101931934B (en) * 2009-06-26 2014-06-11 中兴通讯股份有限公司南京分公司 User registration method of IP multimedia subsystem (IMS) network and business realizing system
CN107257331B (en) * 2012-04-20 2021-01-01 瑞典爱立信有限公司 Method, apparatus, and storage medium for providing IP service application
CN104935681B (en) * 2012-09-10 2018-10-09 华为技术有限公司 Preparation method, equipment and the system of SIP registrar server address

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047725A (en) * 2006-03-30 2007-10-03 华为技术有限公司 Method and system for acquiring IP address of agent call session control function
EP2146479A1 (en) * 2008-07-16 2010-01-20 Hitachi, Ltd. SIP server and communication system
CN103227842A (en) * 2012-01-31 2013-07-31 中兴通讯股份有限公司 Method and device for acquiring SIP (session initiation protocol) server address
US20140219165A1 (en) * 2013-02-05 2014-08-07 Mediatek Inc. Apparatus and method for acquiring ipv6 domain name system server and sip server address
CN106534140A (en) * 2016-11-25 2017-03-22 西安烽火电子科技有限责任公司 Transmission system and method of SIP message

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352748A (en) * 2020-02-26 2020-06-30 北京思特奇信息技术股份有限公司 Interface calling method and device, electronic equipment and storage medium
CN111352748B (en) * 2020-02-26 2023-12-05 北京思特奇信息技术股份有限公司 Interface calling method and device, electronic equipment and storage medium
CN115349249A (en) * 2020-03-31 2022-11-15 瑞典爱立信有限公司 Cross-mobile network operator server
CN115349249B (en) * 2020-03-31 2024-05-28 瑞典爱立信有限公司 Cross-mobile network operator server
CN113515392A (en) * 2021-05-17 2021-10-19 腾讯科技(深圳)有限公司 RPC calling method, device, equipment and storage medium
CN113515392B (en) * 2021-05-17 2024-02-09 腾讯科技(深圳)有限公司 RPC calling method, device, equipment and storage medium
CN114567458A (en) * 2021-12-02 2022-05-31 杭州盈高科技有限公司 System and method for quickly identifying monitoring equipment

Also Published As

Publication number Publication date
CN108712516A (en) 2018-10-26
CN108712516B (en) 2021-04-02

Similar Documents

Publication Publication Date Title
WO2019223167A1 (en) Method, apparatus and device for obtaining sip server address and storage medium
US9854005B2 (en) Methods and apparatus for providing network based services to non-registering endpoints
JP5175938B2 (en) Shared DNS domain processing method
US10397406B2 (en) Method and apparatus for processing a call to an aggregate endpoint device
US8194628B2 (en) Methods and apparatus to enable call completion in internet protocol communication networks
US9363319B2 (en) Method and system of transferring a message in a session initiation protocol based communications network
US8867547B2 (en) Method and apparatus for processing a call to an aggregate endpoint device
US11165834B2 (en) Voice service restoration after element failure
WO2006078202A9 (en) A method and apparatus for handling emergency calls
US8537993B2 (en) Telephone number mapping
EP2501097A1 (en) Domain name processing method and domain name server
US8750132B2 (en) Method and apparatus for completing a call in a network with ENUM failure
US10185774B2 (en) Method and system for efficiently locating in a database a user profile in an IMS network
US20110158230A1 (en) Method and apparatus for providing multi-homing to an aggregate endpoint device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18919573

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18919573

Country of ref document: EP

Kind code of ref document: A1