CN108712516A - Obtain method, apparatus, equipment and the storage medium of sip server address - Google Patents
Obtain method, apparatus, equipment and the storage medium of sip server address Download PDFInfo
- Publication number
- CN108712516A CN108712516A CN201810485588.2A CN201810485588A CN108712516A CN 108712516 A CN108712516 A CN 108712516A CN 201810485588 A CN201810485588 A CN 201810485588A CN 108712516 A CN108712516 A CN 108712516A
- Authority
- CN
- China
- Prior art keywords
- sip
- sip server
- server
- domain name
- message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
- H04L65/1104—Session initiation protocol [SIP]
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 invention relates to a kind of method, apparatus, equipment and the storage medium of acquisition sip server address, the method includes:Receive the sip message of session setup;The sip server of distribution user associated with the sip message;According to the sip server, the domain-name information of sip server address is obtained according to the sip server, dynamic host allocation protocol DHCP message is obtained, carries out binary string processing, to obtain the domain name needed, the domain-name information for obtaining sip server address is obtained;Domain name system dns resolution request is initiated according to domain name information, obtains the address of sip server.The above method and device can improve the reliability of calling service, reduce cost of access, reduce the access of cross operator, improve efficiency of service.
Description
Technical field
The present invention relates to the communication technologys, more particularly to obtain the method, apparatus, equipment and storage Jie of sip server address
Matter.
Background technology
With the development of network and mechanics of communication, the fixed-line telephone or mobile phone of other side are directly dialed by internet
The networking telephone (also known as VOIP phones), with the speech quality of its stabilization and cheap rate, more and more by people institute
Using.Existing call center needs the public network service of access carrier when providing voice speech channel service on public network, main at present
Using BGP (borde gateway association) access way, BGP is operate in a kind of Routing Protocol of autonomous system on TCP.BGP is one
A agreement for being used for handling the network as internet size, can handle the agreement of the multi-wad join between uncorrelated routed domain.BGP
For exchanging routing iinformation between different autonomous systems (AS).When two AS need to exchange routing iinformation, each AS
The node that an operation BGP must be specified, routing iinformation is exchanged to represent AS with others AS.This node can be a master
Machine.But typically router executes BGP.The router for exchanging information in two AS using BGP is also referred to as borde gateway
(Border Gateway) or border router (Border Router).Also it or uses telecommunications, unicom, move single network
Access way, operator can distribute to the IP address of call center one, call center by the domain name mapping applied before with arriving IP
In location, use is dialed for user.
Therefore, prior art defect of generally existing in calling has:Carrier network is abnormal, then service stopping, reliably
Property is poor;Time-consuming for cross operator access, and efficiency is low;BGP access ways are of high cost.
Invention content
In view of this, it is necessary in view of the deficiencies of the prior art, provide a kind of acquisition SIP (Session initiation Protocol) server
Method, apparatus, equipment and the storage medium of address.
A method of sip server address being obtained, the method for obtaining sip server address includes the following steps:
Session Initiation Protocol for sending and receiving sip message and being parsed and encapsulated to sip message is set on sip server in advance
Stack, the Session Initiation Protocol stack receive the sip message of session setup, the session is internet electricity for sending and receiving sip message
Signaling is talked about, Session initiation Protocol is abided by;The sip server of distribution user associated with the sip message;According to the SIP
Server obtains dynamic host allocation protocol DHCP message, carries out binary string processing, to obtain the domain name needed, is used
In the domain-name information for obtaining sip server address;Domain name system dns resolution request is initiated according to domain name information, calls net
The inquiry of the domain name interface that the DNS modules of pass equipment are provided sends the inquiry report recorded for service position SRV to dns server
Text, and the response message that dns server is returned according to the query message is handled, therefrom obtain required sip server
IP address.
The sip server of the distribution user associated with the sip message further includes in one of the embodiments,
Following steps:
The first identifier symbol of the sip server is stored in home subscriber server;
The second identifier symbol of the sip server is inserted into the message header of the sip message.
Sip server includes service call conversation control function node in one of the embodiments,.
Further include in one of the embodiments,:
Receive one or more sip messages;
Retrieve first fully qualified domain name from home subscriber server, the fully qualified domain name simultaneously comprising host name and
Domain name where host can accurately represent host somewhere, and dispatch domain name according to preset scheduling strategy
Into in distributed task scheduling queue, the scheduling of priority can be carried out to domain name, the scheduling strategy is each domain name team
The weight of row distribution CPU time quota, thread choose the nslookup in corresponding domain name queue according to the weight;
Use first fully qualified domain name dns server;
The null response from the dns server is received, the null response shows the failure of the sip server, lays equal stress on
New registration user is to distribute new sip server.
Further comprise in one of the embodiments, before storage first identifier symbol:It is connect in intermediary network device
Receive the second identifier symbol of sip server;And in intermediary network device, the second identifier symbol of sip server is converted into SIP
The first identifier of server accords with, wherein the first identifier symbol of sip server is stored in home subscriber server, including will
The first identifier of sip server accords with from intermediary network device and uploads to home subscriber server.
A kind of device obtaining sip server address, described device include:Receiving unit, in advance in sip server
The upper Session Initiation Protocol stack being arranged for sending and receiving sip message and being parsed and encapsulated to sip message, the Session Initiation Protocol stack
For sending and receiving sip message, the sip message of session setup is received, the session is internet telephone signaling, abides by session and sends out
Play agreement;Determination unit, the sip server for distributing user associated with the sip message;Acquiring unit is used for root
According to the sip server, dynamic host allocation protocol DHCP message is obtained, carries out binary string processing, to obtain the domain needed
Name, obtains the domain-name information for obtaining sip server address;Resolution unit, for initiating domain name according to domain name information
System dns resolution is asked, and the inquiry of the domain name interface that the DNS modules of gateway device are provided is called to be directed to dns server transmission
The query message of service position SRV records, and the response message that dns server is returned according to the query message is handled, from
The IP address of sip server needed for middle acquisition.
The determination unit further includes in one of the embodiments,:Memory module is used for the sip server
First identifier symbol is stored in home subscriber server;It is inserted into module, is inserted into for according with the second identifier of the sip server
In the message header of the sip message.
The receiving unit is additionally operable to receive one or more sip messages in one of the embodiments,;From home subscriber
First fully qualified domain name is retrieved in server, the fully qualified domain name, can simultaneously comprising the domain name where host name and host
Accurately to represent host somewhere, and domain name scheduling is entered into distributed task scheduling queue according to preset scheduling strategy
In, the scheduling of priority can be carried out to domain name, the scheduling strategy is each domain name queue assignment CPU time quota
Weight, thread choose the nslookup in corresponding domain name queue according to the weight;Use first full defined domain
Name dns server;The null response from the dns server is received, the null response shows the failure of the sip server,
And user is re-registered to distribute new sip server.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute
When stating computer-readable instruction and being executed by the processor so that the processor executes the step of above method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more
When device executes so that one or more processors execute the step of above method.
Method, apparatus, equipment and the storage medium of above-mentioned acquisition sip server address, by advance on sip server
Session Initiation Protocol stack for sending and receiving sip message and being parsed and encapsulated to sip message is set, and the Session Initiation Protocol stack is used
In sending and receiving sip message, the sip message of session setup is received, the session is internet telephone signaling, abides by session setup
Agreement distributes the sip server of user associated with the sip message, and the first identifier of the sip server is accorded with storage
In home subscriber server, the second identifier symbol of the sip server is inserted into the message header of the sip message, is being deposited
Before storing up first identifier symbol, the second identifier symbol of sip server is received in intermediary network device;And in intermediary network device
In, the first identifier that the second identifier symbol of sip server is converted to sip server accords with, wherein by the first of sip server
Identifier is stored in home subscriber server, includes according with the first identifier of sip server from intermediary network device to upload to
Home subscriber server.According to the sip server, dynamic host allocation protocol DHCP message is obtained, is carried out at binary string
Reason obtains the domain-name information for obtaining sip server address to obtain the domain name needed, is initiated according to domain name information
Domain name system DNS analysis request calls the inquiry of the domain name interface that the DNS modules of gateway device are provided to be sent to dns server
For the query message of service position SRV records, and handle the response report that dns server is returned according to the query message
Text therefrom obtains the IP address of required sip server, improves the reliability of calling service, reduces cost of access, reduces across fortune
The access of quotient is sought, efficiency of service is improved.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field
Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention
Limitation.
Fig. 1 is the method flow diagram of the acquisition sip server address provided in one embodiment;
Fig. 2 is the first identifier symbol storage provided in one embodiment and the method flow diagram that second identifier symbol is inserted into;
Fig. 3 is the method flow diagram of the one or more sip messages of reception provided in one embodiment;
Fig. 4 is the apparatus structure block diagram of the acquisition sip server address provided in one embodiment;
Fig. 5 is the structure diagram of the determination unit provided in one embodiment.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges
It refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition to take leave " comprising "
Other one or more features, integer, step, operation, element, component and/or their group.
As a preferable embodiment, as shown in Figure 1, a kind of method obtaining sip server address, including following step
Suddenly:
Step S101 is arranged on sip server for sending and receiving sip message and being solved to sip message in advance
The Session Initiation Protocol stack of analysis and encapsulation, the Session Initiation Protocol stack are used to send and receive sip message, receive the sip message of session setup,
The session is internet telephone signaling, abides by Session initiation Protocol;
The purpose of exploitation of SIP (Session Initiation Protocol, session initiation protocol) is for helping to provide
Across the advanced phone services of internet.IP (IP phone) to a kind of formal business telephone schema evolution,
SIP is exactly for ensuring a member important in this evolution is realized and is needed NGN (next generation network) serial protocols.Session is sent out
It plays agreement (SIP) to can be used for establishing, changes and terminate the Multimedia session (for example, Multimedia telephony call) on packet network
Signaling transfer protocol, and the access of the service based on IMS is authenticated.IMS core network may include being configured as profit
The various nodes of the Multimedia session of IMS core network are controlled and managed with SIP signalings.Such node is referred to herein as
" sip server ".
Step S102 distributes the sip server of user associated with sip message;
Sip message is associated with call session, and the Incoming sip message from origination node is received by sip server, by
Sip server determines routing key based at least one of Incoming sip message header fields, by sip server profit
The user agent for being responsible for call session is identified with routing key;Incoming sip message is sent to the user agent of identification;
Outgoing SIP messages are created by user agent, header fields are generated in outgoing SIP messages using routing key, and
Outgoing SIP messages are sent to terminating node from sip server.After sip server receives the sip message, judge that SIP disappears
Correlating sessions mark whether is carried in breath, if do not carried, sip message is handled according to new session mode, if carried, basis
The correlating sessions identifier lookup is to associated sip message.Session identification, which is that note is time-consuming, to be used for identifying each dial-in customer's meeting
One character string of words, user dial in the network equipment (such as access server), the network equipment as radius client,
The secondary session that a character string carrys out the unique mark dial-in customer can be generated, remembers time-consuming use for server end.
Step S103 obtains dynamic host allocation protocol DHCP message according to sip server, carries out binary string processing,
To obtain the domain name needed, the domain-name information for obtaining sip server address is obtained;
According to sip server, dynamic host allocation protocol DHCP message is obtained, carries out binary string processing, is needed with obtaining
The domain name wanted obtains the domain-name information for obtaining sip server address.Sip server is supported to carry out domain to name server
Name query function, can quickly return to domain name inquiry response, when handling domain name information, for being carried out according to format
Binary string processing, to obtain the domain name needed, the DNS modules are initiating DNS request and are obtaining the address of sip server
When, for calling the inquiry of the domain name interface that the DNS modules are provided to send the inquiry report recorded for SRV to dns server
Text, and the response message that dns server is returned according to the query message is handled, therefrom obtain required sip server
IP address.
Step S104 initiates domain name system dns resolution request according to domain-name information, calls the DNS modules institute of gateway device
The inquiry of the domain name interface of offer sends the query message recorded for service position SRV to dns server, and handles DNS service
The response message that device is returned according to the query message therefrom obtains the IP address of required sip server.
Dns server is set as receiving the domain name mapping request message of gateway forwards, be disappeared according to domain name analysis request
Cease the response message returned, wherein address information of the DNS distribution for accessing network is carried in the response message.
As shown in Fig. 2, in one embodiment, the sip server that distributes user associated with sip message further include with
Lower step:
The first identifier symbol of sip server is stored in home subscriber server by step S201;
The second identifier symbol of sip server is inserted into the message header of sip message by step S202.
The first identifier symbol of sip server can be transmitted by Diameter interfaces.For example, during IMS registration,
The first identifier symbol of sip server can upload to home subscriber server (Home Subscriber by Diameter interfaces
Server) so that the first identifier of sip server can be accorded with and be stored as the one of IMS registration program in association with user by HSS
Part.The second identifier symbol of sip server can be transmitted by SIP (ISC) interface.For example, in the wireless communication sessions of user
The second identifier symbol of period, sip server can be inserted in the message header of the SIP request received at sip server
To generate modified SIP request, and modified SIP request can be used as the parts of wireless communication sessions and be forwarded to down
One node.
In one embodiment, sip server includes service call conversation control function node.
SIP is in server (CSCF) node of the form of call session control function, an including inquiry CSCF (I-
CSCF) node and multiple serving CSCFs (S-CSCF) node.IMS (IP Multimedia Subsystem) is IP multimedia
System is a kind of completely new multimedia service form, it disclosure satisfy that, and present terminal client is more novel, more diverse multimedia
The demand of business.Call session control function CSCF (Call Session Control Function) is the core of IMS
Point, it is mainly used for the SIP session control based on packet switch.In ims, CSCF is responsible for customer multi-media session
Reason, the sip server being considered as in IETF frameworks.It is divided into agent call session control work(according to respectively different major functions
It can P.CSCF (Proxy CSCF), Interrogating Call conversation control function I-CSCF (Interrogation CSCF) and service call
Conversation control function S.CSCF (Serving CSCF), three functions can physically separate, can also be independent.
As shown in figure 3, in one embodiment, further including:
Step S301 receives one or more sip messages;
Receive one or more sip message, wherein the instruction message in sip message or mark carrying business setting
Information, and business setting information carries correlation rule.
Step S302 retrieves first fully qualified domain name from home subscriber server, and fully qualified domain name is simultaneously comprising master
Domain name where machine name and host can accurately represent host somewhere, and according to preset scheduling strategy by domain
Name scheduling enters in distributed task scheduling queue, and the scheduling of priority can be carried out to domain name, and scheduling strategy is each domain name queue
The weight of CPU time quota is distributed, thread chooses the nslookup in corresponding domain name queue according to the weight;
Fully qualified domain name (Fully Qualified Domain Name) is simultaneous with the title of host name and domain name.Example
Such as:Host name is bigserver, and domain name is mycompany.com, then FQDN is exactly bigserver.mycompany.com.
Fully qualified domain name logically can accurately represent host somewhere, it may also be said to which universe name is one kind of host name
Perfect representation form.Position of the host in tree of domain names is can be seen that from the information for including in fully qualified domain name.Dns resolution flow
First look for the machine HOSTS tables, some directly uses defined in table, the dns server being arranged in being connected without Network Search by
He parses.First fully qualified domain name is retrieved from home subscriber server, fully qualified domain name includes host name and master simultaneously
Domain name where machine, can accurately represent host somewhere, and according to preset scheduling strategy by domain name dispatch into
Enter in distributed task scheduling queue, the scheduling of priority can be carried out to domain name, when scheduling strategy is each domain name queue assignment CPU
Between quota weight, thread chooses the nslookup in corresponding domain name queue according to the weight.
Step S303 uses first fully qualified domain name dns server;
Use the first fully qualified domain name dns server retrieved by the strategy such as CPU time quota.Universe name is in reality
It is highly useful in business, Email just uses universe name as the e-mail address of receiver, such as
Janicejones acmecompany.com, wherein the artificial janicejones that collects mail, it is symbol behind the name to follow in receiver
Number@,@are followed by the universe name of mail server, or perhaps the domain name of enterprise where mail server, are finally top level domains
Name .com..com mean that acmecompany is a commercial undertaking.
Step S304 receives the null response from dns server, and null response shows the failure of sip server, and notes again
Volume user is to distribute new sip server.
If local number portability local policy is QoR patterns, call release, and to the service network belonging to calling terminal
Network indicates that user has moved out in the failure response of the S-CSCF returns of Calling Side by specific failure cause code;Calling Side
After S-CSCF receives failure response, NPDB is accessed by DNS ENUM interfaces, to obtain the NP data of the called terminal, so
Calling is re-routed to the new service network of called user terminal, i.e. second service net using obtained NP data afterwards.If
Local number portability local policy is Call Dropback patterns, then the I-CSCF of first service network passes through DNS ENUM interfaces
Access NPDB, to obtain the NP data of the called user terminal, then call release, and returned to the S-CSCF of Calling Side
It is carried in failure response and gets NP data, after Calling Side S-CSCF receives failure response, utilize NP data therein again road
By calling to the new service network of called subscriber.
For example, user Xiao Zhang is registered and is assigned with S-CSCF nodes, received in I-CSCF nodes any new
SIP business (for example, SIP request) so that I-CSCF querying nodes be used for distribute to user Xiao Zhang S-CSCF nodes mark
The HSS of symbol returns to the first identifier symbol retrieved from primary database.I-CSCF nodes can be accorded with using first identifier come along
Signaling paths inquiry dns server is used to accord with the IP address of corresponding S-CSCF nodes with first identifier.When receiving DNS query
When, dns server can with access service Distributor with determine corresponding with first identifier symbol S-CSCF nodes by
Distribution of services server eliminates rotation, this causes dns server to return to " NULL " response along signaling paths, this shows S-
CSCF node has been cancelled, that is, is had failed.DNS query and NULL responses need several milliseconds and could complete.It is saved in I-CSCF
To the reception of NULL responses so that ability of the I-CSCF nodes by initiation for initial S-CSCF nodes assigning process is sent out at point
Now re-register user Xiao Zhang.With this mode, different available S-CSCF nodes (such as S-CSCF nodes) can be distributed to
User Xiao Zhang is to restore the session of user Xiao Zhang.In this example, node failure is found by DNS query, user Xiao Zhang's
Session can restore in several milliseconds.In further embodiments, re-register can be related to include unique CALL-ID SIP
Dialogue.
In one embodiment, further comprise before storage first identifier symbol:SIP is received in intermediary network device
The second identifier of server accords with;And in intermediary network device, the second identifier symbol of sip server is converted into SIP service
The first identifier of device accords with, wherein the first identifier symbol of sip server is stored in home subscriber server, including SIP is taken
The first identifier of business device, which is accorded with from intermediary network device, uploads to home subscriber server.
The SIP service (for example, node in S-CSCF) of first identifier symbol mark can be uploaded to attribution server
(HSS).In attribution server for storing associated user (for example, user Xiao Zhang).It, which is uploaded, to be held by sip server
Row, or received after different identifier from sip server by intermediary network device (for example, an agent node) and by its turn
It is changed to first identifier symbol and uploads to HSS.In some embodiments, the part as IMS registration process, such as works as user experience
When registering service (for example, telephone service) based on IMS to IMS network, execution is uploaded.For example, can be in response to message
Receive sip message (for example, such as SIP REGISTER methods, SIP INVITE, SIP SUBSCRIBE methods or it is any its
His SIP method, any kind of SIP request) CSCF node, determine sip server (for example, S-CSCF nodes) and user's (example
Such as, user Xiao Zhang) it is associated, and select sip server come for user service by I-CSCF nodes, the technical program allow by
Some advantages of layered structure are merged into the structure as described above including first identifier symbol and second identifier symbol server, and gram
The shortcomings that taking its inherent delay, and make it possible to accord with any one in server by available second identifier to participate in
Storage request.
As shown in figure 4, in one embodiment it is proposed that a kind of device obtaining sip server address, the device packet
It includes:
Receiving unit, in advance on sip server setting for send and receive sip message and to sip message into
The Session Initiation Protocol stack of row parsing and encapsulation, the Session Initiation Protocol stack receive the SIP of session setup for sending and receiving sip message
Message, the session are internet telephone signaling, abide by Session initiation Protocol;
Determination unit, the sip server for distributing user associated with the sip message;
Acquiring unit, for according to the sip server, obtaining dynamic host allocation protocol DHCP message, carry out two into
String manipulation processed obtains the domain-name information for obtaining sip server address to obtain the domain name needed;
Resolution unit calls gateway device for initiating domain name system dns resolution request according to domain name information
The inquiry of the domain name interface that DNS modules are provided sends the query message recorded for service position SRV to dns server, and locates
The response message that reason dns server is returned according to the query message, therefrom obtains the IP address of required sip server.
As shown in figure 5, in one embodiment, the determination unit further includes:
Memory module, for the first identifier symbol of the sip server to be stored in home subscriber server;
It is inserted into module, for the second identifier symbol of the sip server to be inserted into the message header of the sip message.
In one embodiment, the receiving unit is additionally operable to receive one or more sip messages;From home subscriber service
First fully qualified domain name is retrieved in device, the fully qualified domain name is simultaneously comprising the domain name where host name and host, Ke Yizhun
It really represents host somewhere, and enters domain name scheduling in distributed task scheduling queue according to preset scheduling strategy,
The scheduling of priority can be carried out to domain name, the scheduling strategy is the power of each domain name queue assignment CPU time quota
Weight, thread choose the nslookup in corresponding domain name queue according to the weight;Use first fully qualified domain name
Dns server;The null response from the dns server is received, the null response shows the failure of the sip server, and
User is re-registered to distribute new sip server.
In one embodiment it is proposed that a kind of computer equipment, the computer equipment includes memory and processor,
Computer-readable instruction is stored in memory, when computer-readable instruction is executed by processor so that described in processor executes
Following steps are realized when computer program:It is arranged in advance for sending and receiving sip message and disappearing to SIP on sip server
The Session Initiation Protocol stack for being parsed and being encapsulated is ceased, the Session Initiation Protocol stack receives session setup for sending and receiving sip message
Sip message, the session are internet telephone signaling, abide by Session initiation Protocol;Distribution user associated with the sip message
Sip server;According to the sip server, dynamic host allocation protocol DHCP message is obtained, carries out binary string processing,
To obtain the domain name needed, the domain-name information for obtaining sip server address is obtained;Domain name is initiated according to domain name information
System dns resolution is asked, and the inquiry of the domain name interface that the DNS modules of gateway device are provided is called to be directed to dns server transmission
The query message of service position SRV records, and the response message that dns server is returned according to the query message is handled, from
The IP address of sip server needed for middle acquisition.
In one embodiment, the sip server of the distribution user associated with the sip message further includes following
Step:
The first identifier symbol of the sip server is stored in home subscriber server;
The second identifier symbol of the sip server is inserted into the message header of the sip message.
In one embodiment, sip server includes service call conversation control function node.
In one embodiment, further include:
Receive one or more sip messages;
Retrieve first fully qualified domain name from home subscriber server, the fully qualified domain name simultaneously comprising host name and
Domain name where host can accurately represent host somewhere, and dispatch domain name according to preset scheduling strategy
Into in distributed task scheduling queue, the scheduling of priority can be carried out to domain name, the scheduling strategy is each domain name team
The weight of row distribution CPU time quota, thread choose the nslookup in corresponding domain name queue according to the weight;
Use first fully qualified domain name dns server;
The null response from the dns server is received, the null response shows the failure of the sip server, lays equal stress on
New registration user is to distribute new sip server.
In one embodiment, further comprise before storage first identifier symbol:SIP is received in intermediary network device
The second identifier of server accords with;And in intermediary network device, the second identifier symbol of sip server is converted into SIP service
The first identifier of device accords with, wherein the first identifier symbol of sip server is stored in home subscriber server, including SIP is taken
The first identifier of business device, which is accorded with from intermediary network device, uploads to home subscriber server.
In one embodiment it is proposed that a kind of storage medium being stored with computer-readable instruction, which is characterized in that meter
When calculation machine readable instruction is executed by one or more processors so that one or more processors execute following steps:Exist in advance
Session Initiation Protocol stack for sending and receiving sip message and being parsed and encapsulated to sip message is set on sip server, it is described
Session Initiation Protocol stack is used to send and receive sip message, receives the sip message of session setup, and the session is internet telephone signaling,
In accordance with Session initiation Protocol;The sip server of distribution user associated with the sip message;According to the sip server,
Dynamic host allocation protocol DHCP message is obtained, binary string processing is carried out, to obtain the domain name needed, is obtained for obtaining
The domain-name information of sip server address;Domain name system dns resolution request is initiated according to domain name information, calls gateway device
The inquiry of the domain name interface that is provided of DNS modules the query message recorded for service position SRV is sent to dns server, and
The response message that processing dns server is returned according to the query message, with therefrom obtaining the IP of required sip server
Location.
In one embodiment, the sip server of the distribution user associated with the sip message further includes following
Step:
The first identifier symbol of the sip server is stored in home subscriber server;
The second identifier symbol of the sip server is inserted into the message header of the sip message.
In one embodiment, sip server includes service call conversation control function node.
In one embodiment, further include:
Receive one or more sip messages;
Retrieve first fully qualified domain name from home subscriber server, the fully qualified domain name simultaneously comprising host name and
Domain name where host can accurately represent host somewhere, and dispatch domain name according to preset scheduling strategy
Into in distributed task scheduling queue, the scheduling of priority can be carried out to domain name, the scheduling strategy is each domain name team
The weight of row distribution CPU time quota, thread choose the nslookup in corresponding domain name queue according to the weight;
Use first fully qualified domain name dns server;
The null response from the dns server is received, the null response shows the failure of the sip server, lays equal stress on
New registration user is to distribute new sip server.
In one embodiment, further comprise before storage first identifier symbol:SIP is received in intermediary network device
The second identifier of server accords with;And in intermediary network device, the second identifier symbol of sip server is converted into SIP service
The first identifier of device accords with, wherein the first identifier symbol of sip server is stored in home subscriber server, including SIP is taken
The first identifier of business device, which is accorded with from intermediary network device, uploads to home subscriber server.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, it is all considered to be the range of this specification record.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but
It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field
For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the present invention's
Protection domain.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of method obtaining sip server address, which is characterized in that include the following steps:
SIP for sending and receiving sip message and being parsed and encapsulated to sip message is set on sip server in advance
Protocol stack, the Session Initiation Protocol stack receive the sip message of session setup, the session is net for sending and receiving sip message
Session initiation Protocol is abided by border telephone signaling;
The sip server of distribution user associated with the sip message;
According to the sip server, dynamic host allocation protocol DHCP message is obtained, carries out binary string processing, is needed with obtaining
The domain name wanted obtains the domain-name information for obtaining sip server address;
Domain name system dns resolution request, the domain name for calling the DNS modules of gateway device to be provided are initiated according to domain name information
Query interface sends the query message recorded for service position SRV to dns server, and handles dns server according to
The response message that query message is returned therefrom obtains the IP address of required sip server.
2. the method according to claim 1 for obtaining sip server address, which is characterized in that the distribution and the SIP
The sip server of the associated user of message is further comprising the steps of:
The first identifier symbol of the sip server is stored in home subscriber server;
The second identifier symbol of the sip server is inserted into the message header of the sip message.
3. the method according to claim 1 for obtaining sip server address, which is characterized in that sip server includes service
Call session control function node.
4. the method according to claim 1 for obtaining sip server address, which is characterized in that further include:
Receive one or more sip messages;
First fully qualified domain name is retrieved from home subscriber server, the fully qualified domain name includes host name and host simultaneously
The domain name at place can accurately represent host somewhere, and dispatch domain name according to preset scheduling strategy and enter
In distributed task scheduling queue, the scheduling of priority can be carried out to domain name, the scheduling strategy is each domain name queue point
Weight with CPU time quota, thread choose the nslookup in corresponding domain name queue according to the weight;
Use first fully qualified domain name dns server;
The null response from the dns server is received, the null response shows the failure of the sip server, and notes again
Volume user is to distribute new sip server.
5. the method according to claim 2 for obtaining sip server address, which is characterized in that further comprise storing
Before first identifier symbol:The second identifier symbol of sip server is received in intermediary network device;And in intermediary network device
In, the first identifier that the second identifier symbol of sip server is converted to sip server accords with, wherein by the first of sip server
Identifier is stored in home subscriber server, includes according with the first identifier of sip server from intermediary network device to upload to
Home subscriber server.
6. a kind of device obtaining sip server address, which is characterized in that described device includes:
Receiving unit, for being arranged in advance for sending and receiving sip message and being solved to sip message on sip server
The Session Initiation Protocol stack of analysis and encapsulation, the Session Initiation Protocol stack are used to send and receive sip message, receive the sip message of session setup,
The session is internet telephone signaling, abides by Session initiation Protocol;
Determination unit, the sip server for distributing user associated with the sip message;
Acquiring unit carries out binary string for according to the sip server, obtaining dynamic host allocation protocol DHCP message
Processing obtains the domain-name information for obtaining sip server address to obtain the domain name needed;
Resolution unit calls the DNS moulds of gateway device for initiating domain name system dns resolution request according to domain name information
The inquiry of the domain name interface that block is provided sends the query message recorded for service position SRV to dns server, and handles DNS
The response message that server is returned according to the query message therefrom obtains the IP address of required sip server.
7. the device according to claim 6 for obtaining sip server address, which is characterized in that the determination unit is also wrapped
It includes:
Memory module, for the first identifier symbol of the sip server to be stored in home subscriber server;
It is inserted into module, for the second identifier symbol of the sip server to be inserted into the message header of the sip message.
8. the device according to claim 6 for obtaining sip server address, which is characterized in that the receiving unit is also used
In the one or more sip messages of reception;First fully qualified domain name, the fully qualified domain name are retrieved from home subscriber server
Simultaneously comprising the domain name where host name and host, host can be accurately represented somewhere, and according to preset tune
Degree strategy enters domain name scheduling in distributed task scheduling queue, and the scheduling of priority, the scheduling strategy can be carried out to domain name
For the weight of each domain name queue assignment CPU time quota, thread chooses corresponding domain name queue according to the weight
In nslookup;Use first fully qualified domain name dns server;The null response from the dns server is received,
The null response shows the failure of the sip server, and re-registers user to distribute new sip server.
9. a kind of computer equipment, which is characterized in that including memory and processor, being stored with computer in the memory can
Reading instruction, when the computer-readable instruction is executed by the processor so that the processor executes such as claim 1 to 5
Any one of the method the step of.
10. a kind of storage medium being stored with computer-readable instruction, which is characterized in that the computer-readable instruction is by one
Or multiple processors are when executing so that one or more processors execute the step such as any one of claim 1 to 5 the method
Suddenly.
Priority Applications (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 |
PCT/CN2018/104134 WO2019223167A1 (en) | 2018-05-21 | 2018-09-05 | Method, apparatus and device for obtaining sip server address and storage medium |
Applications Claiming Priority (1)
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 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108712516A true CN108712516A (en) | 2018-10-26 |
CN108712516B CN108712516B (en) | 2021-04-02 |
Family
ID=63869152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810485588.2A Active CN108712516B (en) | 2018-05-21 | 2018-05-21 | Method, device, equipment and storage medium for acquiring SIP server address |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108712516B (en) |
WO (1) | WO2019223167A1 (en) |
Cited By (3)
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 |
CN114866596A (en) * | 2022-05-25 | 2022-08-05 | 上海浦东发展银行股份有限公司 | Session processing method, device, server and storage medium |
CN115190105A (en) * | 2021-04-06 | 2022-10-14 | 维沃移动通信有限公司 | Information processing method and device and communication equipment |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352748B (en) * | 2020-02-26 | 2023-12-05 | 北京思特奇信息技术股份有限公司 | Interface calling method and device, electronic 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 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102205A (en) * | 2006-11-08 | 2008-01-09 | 中兴通讯股份有限公司 | Network architecture for carrying number based on distributed DNS system in IMS network and its method |
CN101374118A (en) * | 2007-08-23 | 2009-02-25 | 华为技术有限公司 | Information interconnect method, system and apparatus |
CN101631142A (en) * | 2008-07-16 | 2010-01-20 | 株式会社日立制作所 | Sip server and communication system |
CN101931934A (en) * | 2009-06-26 | 2010-12-29 | 中兴通讯股份有限公司 | User registration method of IP multimedia subsystem (IMS) network and business realizing system |
CN102821172A (en) * | 2012-09-10 | 2012-12-12 | 华为技术有限公司 | Method, equipment and system for obtaining address of SIP (session initiation protocol) register server |
CN103227842A (en) * | 2012-01-31 | 2013-07-31 | 中兴通讯股份有限公司 | Method and device for acquiring SIP (session initiation protocol) server address |
US9445354B2 (en) * | 2013-02-05 | 2016-09-13 | Mediatek Inc. | Apparatus and method for acquiring IPv6 domain name system server and SIP server address |
CN107257331A (en) * | 2012-04-20 | 2017-10-17 | 瑞典爱立信有限公司 | For providing method, equipment, network entity and computer program product that IP is served by |
Family Cites Families (2)
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 |
CN106534140A (en) * | 2016-11-25 | 2017-03-22 | 西安烽火电子科技有限责任公司 | Transmission system and method of SIP message |
-
2018
- 2018-05-21 CN CN201810485588.2A patent/CN108712516B/en active Active
- 2018-09-05 WO PCT/CN2018/104134 patent/WO2019223167A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102205A (en) * | 2006-11-08 | 2008-01-09 | 中兴通讯股份有限公司 | Network architecture for carrying number based on distributed DNS system in IMS network and its method |
CN101374118A (en) * | 2007-08-23 | 2009-02-25 | 华为技术有限公司 | Information interconnect method, system and apparatus |
CN101631142A (en) * | 2008-07-16 | 2010-01-20 | 株式会社日立制作所 | Sip server and communication system |
CN101931934A (en) * | 2009-06-26 | 2010-12-29 | 中兴通讯股份有限公司 | User registration method of IP multimedia subsystem (IMS) network and business realizing system |
CN103227842A (en) * | 2012-01-31 | 2013-07-31 | 中兴通讯股份有限公司 | Method and device for acquiring SIP (session initiation protocol) server address |
CN107257331A (en) * | 2012-04-20 | 2017-10-17 | 瑞典爱立信有限公司 | For providing method, equipment, network entity and computer program product that IP is served by |
CN102821172A (en) * | 2012-09-10 | 2012-12-12 | 华为技术有限公司 | Method, equipment and system for obtaining address of SIP (session initiation protocol) register server |
US9445354B2 (en) * | 2013-02-05 | 2016-09-13 | Mediatek Inc. | Apparatus and method for acquiring IPv6 domain name system server and SIP server address |
Cited By (4)
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 |
CN115190105A (en) * | 2021-04-06 | 2022-10-14 | 维沃移动通信有限公司 | Information processing method and device and communication equipment |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN108712516B (en) | 2021-04-02 |
WO2019223167A1 (en) | 2019-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9854005B2 (en) | Methods and apparatus for providing network based services to non-registering endpoints | |
CN108712516A (en) | Obtain method, apparatus, equipment and the storage medium of sip server address | |
US8325905B2 (en) | Routing calls in a network | |
US7974295B2 (en) | Optimized routing between communication networks | |
JP4856241B2 (en) | Number portability for IMS networks | |
JP5175938B2 (en) | Shared DNS domain processing method | |
EP1461965B1 (en) | Communication node architecture | |
CN102025723B (en) | Providing enterprise services in a service provisioning network | |
US8867547B2 (en) | Method and apparatus for processing a call to an aggregate endpoint device | |
WO2009006073A2 (en) | Reverse enum based routing for communication networks | |
US8009585B2 (en) | Method and system for topology discovery in an SIP network | |
CN109995721A (en) | Service request processing method, device and communication system | |
US9628938B2 (en) | Determination of IMS application server instance based on network information | |
CN105245493A (en) | Capability query handling in communication network | |
US9509730B2 (en) | Method and apparatus for identifying a subscriber home domain in a communication network | |
JP2010517453A (en) | IMS architecture using distributed hashing table | |
CN105959274B (en) | Communication method and network element used in communication method | |
AU2021395654B2 (en) | Device, method, program, and information provision system for telephone number research | |
JP2023540063A (en) | Methods, systems and computer-readable media for routing packets for lawful interception | |
WO2010045882A1 (en) | A method, device and system for deciding call type | |
CN103828320A (en) | Suppressing camel service invocation for diverting users |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |