A kind of method of in conversation initiating protocol network, calling out routeTechnical field
The present invention relates in network, call out the method for route, be specifically related to a kind of method of in the Session Initiation Protocol network, calling out route.
Technical background
By RFC2543 as can be known: in the SIP (abbreviation of Session Initiation Protocol, the finger Session initiation Protocol) in the network, network element commonly used has SIP UA (SIP User Agent:SIP user agent), Proxy Server (acting server), Register Server (registration server) and Redirect Server (Redirect Server).In addition, Location Server (location server) plays important effect as the public network resource in the SIP network.At present, Chang Yong networking mode such as accompanying drawing 1.
In addition, in Session Initiation Protocol, the form of SIP UA user account number is the domain name in territory, Yong Huming @RegisterServer place.On this basis, when terminal use A calling terminal user B, method for routing commonly used is as follows:
1, user A is sent to its affiliated ProxyServer with INVITE request message (being used for initiation session), this Proxy Server removes to inquire about corresponding Location Server according to the account number direct (or by Redirect Server) of user B, and obtain the address of the Proxy Server under the user B, then the INVITE request message is sent to this address.But,, so, in above-mentioned query script, can't check in the relevant information of user B, thereby the route of this calling can't be carried out if user A and user B do not belong to the administration territory of same Location Server.
2, user A is sent to its affiliated ProxyServer with INVITE request message (being used for initiation session), the dns query message DNS (name server) that comprises in the account number of this Proxy Server according to user B, and obtain the address of all Proxy Server under this territory.If under this territory a plurality of ProxyServer are arranged, so, owing to can't determine the Proxy Server that user B is affiliated, the route of this calling can't be carried out.
Summary of the invention
The technical problem to be solved in the present invention is, a kind of method of calling out route in the SIP network is provided, adopt this method, no matter whether calling party and called party belong to the administration territory of same location server, or in the administration territory of registration server, whether be provided with a plurality of acting servers, can both call out route.
The present invention adopts following technical scheme to realize: be provided with following network element in the SIP network: user agent, acting server, registration server, Redirect Server, gateway proxy server and location server, adopt following steps to realize calling out route when user A calling party B:
1) user A is sent to acting server under it with the request message of initiation session, the domain-name information that comprises in the account number of this acting server according to user B is at first differentiated the user in the administration territory whether user B is local registration server, if local user, then inquire about corresponding location server, if check in user B and user A belongs to same acting server, then location server returns the current contact address of user B, after acting server obtains this address, the request message of initiation session is sent to this address, if check in user B and user A does not belong to same acting server, then enter next step;
2) location server returns the address of the affiliated acting server of user B, the request message of initiation session will be sent to this address, this acting server is after receiving request message, inquire about the location server under it and obtain the current contact address of user B, then request message is sent to this address;
It is characterized in that, in the administration territory of described registration server, also be provided with the gateway proxy server,, when user A calling party B, adopt following steps to realize routing call if user B is not the local user:
3) described gateway proxy server is inquired about location server under it according to user account number, thereby obtains the address of the acting server under this user, and request message is sent to this address.That is: the dns query message name server that comprises in will account number of the acting server under the user A according to user B, and obtain the address of gateway acting server under this territory, then request message is sent to this address, this gateway proxy server is inquired about the location server under it after receiving request message, thereby obtain the proxy server address under the user B, then request message is sent to this address, after this acting server is received request message, inquire about the location server under it and obtain the current contact address of user B, then request message is sent to this address.
Implement call route method provided by the invention, by in the administration territory of registration server, setting up the gateway proxy server, compare with existing method, has following advantage: when the callee does not belong to the administration territory of local registration server, the dns query message DNS that comprises in the account number according to the callee and find corresponding gateway proxy server at first, then, the gateway proxy server is inquired about location server under it according to callee's account number, thereby obtains the address of the acting server under this user.Therefore, no matter whether calling party and called party belong to the administration territory of same location server, or whether are provided with a plurality of acting servers in the administration territory of registration server, can both call out route; This method is simple, is easy to realize.
Description of drawings
Fig. 1 is existing SIP networking schematic diagram;
Fig. 2 is the terminal use A calling terminal user B in the SIP network that adopts the inventive method
Concrete route flow chart.
Embodiment
As shown in Figure 2, according to method of the present invention, terminal use A concrete routing procedure of calling terminal user B in the SIP network is as follows:
1. user A is sent to Proxy Server under it with the INVITE request message, and the domain-name information that comprises in the account number of this ProxyServer according to user B is differentiated the user's (frame 201) in the administration territory whether user B is local Register Server.
2. if user B is the local user, then will inquire about corresponding Location Server according to the account number of user B by the Proxy Server under the user A at frame 202.Otherwise change step 6 (frame 206) over to.
3. if check in user B and user A belongs to same Proxy Server, then Location Server returns the current contact address of user B, after Proxy Server obtains this address, the INVITE request message is sent to this address, thereby has finished the route (frame 203) of this calling.Otherwise change next step (frame 204) over to.
4. in frame 204, Location Server returns the address of the Proxy Server under the user B, and then, the INVITE request message will be sent to this address.
5. the Proxy Server under the user B is after receiving the INVITE request message, inquire about the Location Server under it and obtain the current contact address of user B according to the account number of user B, then the INVITE request message is sent to this address, thereby has finished the route (frame 205) of this calling.
6. the dns query message DNS that comprises in will account number of the Proxy Server under the user A according to user B, and obtain the address of Gateway Proxy Server under this territory, then the INVITE request message is sent to this address (frame 206).
7.Gateway Proxy Server is after receiving the INVITE request message, inquire about Location Server under it according to the account number of user B, thereby obtain the address of the ProxyServer under the user B, then the INVITE request message is sent to this address (frame 207).
8. after the Proxy Server under the user B receives the INVITE request message, inquire about the Location Server under it and obtain the current contact address of user B according to the account number of user B, then the INVITE request message is sent to this address, thereby finishes the route (frame 208) of this calling.