[go: up one dir, main page]

CN104168289B - A kind of user data query method and device based on IMS network - Google Patents

A kind of user data query method and device based on IMS network Download PDF

Info

Publication number
CN104168289B
CN104168289B CN201410427964.4A CN201410427964A CN104168289B CN 104168289 B CN104168289 B CN 104168289B CN 201410427964 A CN201410427964 A CN 201410427964A CN 104168289 B CN104168289 B CN 104168289B
Authority
CN
China
Prior art keywords
server
user
enum server
query
data area
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.)
Active
Application number
CN201410427964.4A
Other languages
Chinese (zh)
Other versions
CN104168289A (en
Inventor
马泽芳
马瑞涛
符刚
姜先贵
李延斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410427964.4A priority Critical patent/CN104168289B/en
Publication of CN104168289A publication Critical patent/CN104168289A/en
Application granted granted Critical
Publication of CN104168289B publication Critical patent/CN104168289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

本发明实施例提供一种基于IMS网络的用户数据查询方法及装置,涉及通信领域,能够采用“就近出IMS网络,就远入IMS网络”路由方式和“就远出IMS网络,就近入IMS网络”路由方式,最大限度的利用IMS网络,减小PSTN网络的承载压力。该方法包括:服务器接收呼叫处理装置发送的查询请求,查询请求包括被叫用户的号码和标签,标签用于指示服务器查询用户数据的数据区域;根据被叫用户的号码,在标签指示的数据区域中查询被叫用户的用户数据,并获取用户数据的查询结果,查询结果用于表征服务器所属网络采用的路由方式;发送查询结果至呼叫处理装置。

Embodiments of the present invention provide a user data query method and device based on an IMS network, which relate to the field of communication, and can adopt the routing mode of "going out of the IMS network at the nearest and entering the IMS network at a distance" and "exiting the IMS network at a distance and entering the IMS network at the nearest""Routing mode, maximize the use of IMS network, reduce the load pressure of PSTN network. The method includes: the server receives the query request sent by the call processing device, the query request includes the number of the called user and a tag, and the tag is used to instruct the server to query the data area of the user data; according to the number of the called user, in the data area indicated by the tag Query the user data of the called user in the process, and obtain the query result of the user data, the query result is used to represent the routing mode adopted by the network to which the server belongs; and send the query result to the call processing device.

Description

一种基于IMS网络的用户数据查询方法及装置A user data query method and device based on IMS network

技术领域technical field

本发明涉及通信领域,尤其涉及一种基于IMS网络的用户数据查询方法及装置。The invention relates to the communication field, in particular to an IMS network-based user data query method and device.

背景技术Background technique

随着通信技术的不断进步和用户要求的不断提高,能够提供高质量语音和视频等多媒体业务的网络体系结构正在逐步成为通信网络发展的热点。3GPP(Third GenerationPartnership Project,第三代合作伙伴计划)在其R5(Release5)版本中提出了IMS(Internet Protocol Multimedia Subsystem,IP多媒体子系统),以提供更加丰富的多媒体业务。With the continuous progress of communication technology and the continuous improvement of user requirements, the network architecture that can provide high-quality voice and video and other multimedia services is gradually becoming a hot spot in the development of communication networks. 3GPP (Third Generation Partnership Project, Third Generation Partnership Project) proposed IMS (Internet Protocol Multimedia Subsystem, IP Multimedia Subsystem) in its R5 (Release5) version, in order to provide richer multimedia services.

在IMS网络中,ENUM(Telephone Number Mapping,电话号码映射)服务器能够完成IMS用户的E.164电话号码到SIP URI(Session Initiation Protocol Uniform ResourceIdentifier,会话初始化协议通用资源标识)的转换,也就是ENUM服务器可以将IMS用户的电话号码由TEL URI(Telephone Uniform Resource Identifier,电话通用资源标识)转换为SIP URI。目前,中国通信运营商企业标准中将ENUM服务器分为全国一级ENUM服务器和省二级ENUM服务器。其中,全国一级ENUM服务器中存储有电话号码的区号与各省二级ENUM服务器的域名或IP地址之间的对应关系,省二级ENUM服务器中存储有本省的IMS网络用户的电话号码由TEL URI向SIP URI转换的数据。In the IMS network, the ENUM (Telephone Number Mapping, telephone number mapping) server can complete the conversion of the E.164 telephone number of the IMS user to the SIP URI (Session Initiation Protocol Uniform Resource Identifier, the general resource identifier of the session initiation protocol), that is, the ENUM server The telephone number of the IMS user can be converted from a TEL URI (Telephone Uniform Resource Identifier, telephone universal resource identifier) to a SIP URI. At present, ENUM servers are divided into national first-level ENUM servers and provincial second-level ENUM servers in the enterprise standards of Chinese communication operators. Among them, the corresponding relationship between the area code of the telephone number and the domain name or IP address of the second-level ENUM server in each province is stored in the national first-level ENUM server, and the telephone number of the IMS network user in the province is stored in the provincial second-level ENUM server. TEL URI Data converted to SIP URI.

现有技术中,基于上述各级ENUM服务器中用户数据的存储原则,查询ENUM服务器中存储的用户数据的方法为:主叫侧网元设备发送包含有被叫用户的号码的查询请求至主叫侧二级ENUM服务器;主叫侧二级ENUM服务器在确定被叫用户的号码为异地号码时,将查询请求转发至一级ENUM服务器;一级ENUM服务器获取与该被叫用户的号码的区号相对应的被叫侧二级ENUM服务器的IP地址,并根据该IP地址将查询请求转发至被叫侧二级ENUM服务器;被叫侧二级ENUM服务器根据被叫用户的号码查询获取被叫用户的号码的SIP URI,并将被叫用户的号码的SIP URI发送至一级ENUM服务器,若被叫用户不是IMS用户,则发送无此用户至一级ENUM服务器;一级ENUM服务器将查询结果(被叫用户的号码的SIP URI或者无此用户)发送至主叫侧二级ENUM服务器;主叫侧二级ENUM服务器将查询结果发送至主叫侧网元设备。In the prior art, based on the storage principles of user data in the ENUM servers at all levels above, the method of querying the user data stored in the ENUM server is as follows: the network element device on the calling side sends a query request containing the number of the called user to the calling Second-level ENUM server on the calling side; when the second-level ENUM server on the calling side determines that the number of the called user is a remote number, it forwards the query request to the first-level ENUM server; The IP address of the corresponding second-level ENUM server on the called side, and forward the query request to the second-level ENUM server on the called side according to the IP address; number, and send the SIP URI of the called user's number to the first-level ENUM server, if the called user is not an IMS user, then send no such user to the first-level ENUM server; the first-level ENUM server will query the result (called SIP URI of the number of the calling user or no such user) to the secondary ENUM server at the calling side; the secondary ENUM server at the calling side sends the query result to the network element device at the calling side.

采用上述用户数据查询方法,在IMS用户拨打异地非IMS用户时,主叫侧网元设备只能得到无此用户的查询结果,从而将其长途话务经由PSTN长途网承载,即只能采用“就近出IMS网络”的路由方式。在非IMS用户拨打异地IMS用户时,其长途话务也由PSTN长途网承载,只有将话务路由至被叫侧网元设备后,才能经由IMS网络承载,即只能采用“就远入IMS网络”的路由方式。Using the above user data query method, when an IMS user dials a non-IMS user in a different place, the network element device on the calling side can only obtain the query result that there is no such user, so that the long-distance call traffic is carried by the PSTN long-distance network, that is, only " the nearest IMS network" routing method. When a non-IMS user dials a remote IMS user, the long-distance traffic is also carried by the PSTN long-distance network. Network" routing method.

由上可知,采用上述方法进行用户数据查询,在IMS用户与异地非IMS用户语音业务互通时,长途话务经由PSTN长途网承载,即只能采用“就近出IMS网络,就远入IMS网络”的路由方式,限制了对IMS网络的使用,PSTN网络承载压力大,不利于老旧的PSTN长途网络的退网与演进。It can be seen from the above that when the above method is used to query user data, when the IMS user communicates with the remote non-IMS user for voice services, the long-distance traffic is carried by the PSTN long-distance network. The routing mode restricts the use of the IMS network, and the pressure on the PSTN network is heavy, which is not conducive to the withdrawal and evolution of the old PSTN long-distance network.

发明内容Contents of the invention

本发明的实施例提供一种基于IMS网络的用户数据查询方法及装置,解决了利用现有的用户数据查询方法,IMS用户与异地非IMS用户语音业务互通只能采用“就近出IMS网络,就远入IMS网络”路由方式导致的IMS网络的利用低,PSTN网络承载压力大的问题,能够采用“就近出IMS网络,就远入IMS网络”路由方式和“就远出IMS网络,就近入IMS网络”路由方式,最大限度的利用IMS网络,减小PSTN网络的承载压力,从而有利于网络的演进与发展。Embodiments of the present invention provide a user data query method and device based on an IMS network, which solves the problem that using the existing user data query method, the intercommunication of voice services between an IMS user and a non-IMS user in a different place can only be done by "going out of the IMS network at the nearest Far into the IMS network" routing method leads to low utilization of the IMS network and high pressure on the PSTN network. It is possible to adopt the routing method of "going out of the IMS network nearby and entering the IMS network far away" and "going out of the IMS network as far as possible and entering the IMS network nearby". Network" routing method, maximize the use of IMS network, reduce the load pressure of PSTN network, which is conducive to the evolution and development of the network.

为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

第一方面,本发明实施例提供一种基于IMS网络的用户数据查询方法,包括:In a first aspect, an embodiment of the present invention provides a user data query method based on an IMS network, including:

服务器接收呼叫处理装置发送的查询请求,所述查询请求包括被叫用户的号码和标签,所述标签用于指示所述服务器查询用户数据的数据区域;The server receives the query request sent by the call processing device, the query request includes the number of the called user and a tag, and the tag is used to instruct the server to query the data area of the user data;

所述服务器根据所述被叫用户的号码,在所述标签指示的数据区域中查询所述被叫用户的用户数据,并获取所述用户数据的查询结果,所述查询结果用于表征所述服务器所属网络采用的路由方式;The server queries the user data of the called user in the data area indicated by the tag according to the number of the called user, and obtains a query result of the user data, and the query result is used to represent the The routing method adopted by the network to which the server belongs;

发送所述查询结果至所述呼叫处理装置。sending the query result to the call processing device.

第二方面,本发明实施例提供一种服务器,包括:In a second aspect, an embodiment of the present invention provides a server, including:

接收单元,用于接收呼叫处理装置发送的查询请求,所述查询请求包括被叫用户的号码和标签,所述标签用于指示所述服务器查询用户数据的数据区域;A receiving unit, configured to receive a query request sent by the call processing device, the query request includes the number of the called user and a tag, and the tag is used to instruct the server to query the data area of the user data;

处理单元,用于根据所述接收单元接收到的所述被叫用户的号码,在所述标签指示的数据区域中查询所述被叫用户的用户数据,并获取所述用户数据的查询结果,所述查询结果用于表征所述服务器所属网络采用的路由方式;a processing unit, configured to query the user data of the called user in the data area indicated by the tag according to the number of the called user received by the receiving unit, and obtain a query result of the user data, The query result is used to represent the routing mode adopted by the network to which the server belongs;

发送单元,用于发送所述处理单元获取到的所述查询结果至所述呼叫处理装置。A sending unit, configured to send the query result obtained by the processing unit to the call processing device.

本发明的实施例提供一种基于IMS网络的用户数据查询方法及装置,服务器在接收呼叫处理装置发送的包括有被叫用户的号码和标签的查询请求后,根据查询请求中被叫用户的号码,在标签指示的数据区域中查询被叫用户的用户数据,并获取该被叫用户的用户数据的查询结果,其中,该查询结果用于表征服务器所属网络采用的路由方式,然后,该服务器将查询结果发送至呼叫处理装置。The embodiment of the present invention provides a user data query method and device based on IMS network. , query the user data of the called user in the data area indicated by the label, and obtain the query result of the user data of the called user, wherein the query result is used to represent the routing mode adopted by the network to which the server belongs, and then the server will The query result is sent to the call processing device.

该方案通过在IMS网络中的各级ENUM服务器中增加一个与保存有E164号码的数据区域同一级的数据区域,并且在各级ENUM服务器的各个数据区域中存储相应的用户数据,使得在IMS用户与异地非IMS用户语音业务互通时,呼叫处理装置需要在查询请求中指示查询哪个数据区域的用户数据,即查询请求中需要包含有用于指示服务器查询用户数据的数据区域的标签,由于服务器中的各个数据区域存储的用户数据不同,因此,服务器在标签指示的不同的数据区域中能够获取到不同的用户数据查询结果,并将获取到的查询结果发送至呼叫处理装置,以便于呼叫处理装置进行后续路由。因为本方案中的查询结果能够表征服务器所属网络采用的路由方式,所以在IMS用户与异地非IMS用户语音业务互通时,呼叫处理装置可以根据查询结果来选择路由方式。具体的,呼叫处理装置可以根据查询结果选择话务经由IMS网络承载,即采用“就远出IMS网络,就近入IMS网络”路由方式,也可以根据查询结果选择话务经由PSTN网络承载,即采用“就近出IMS网络,就远入IMS网络”路由方式,这样,能够最大限度的利用IMS网络,分流PSTN网的话务,减小PSTN网络的承载压力,从而有利于网络的演进与发展。In this solution, a data area at the same level as the data area storing the E164 number is added to the ENUM servers at all levels in the IMS network, and corresponding user data is stored in each data area of the ENUM servers at all levels, so that the IMS user When intercommunicating with non-IMS user voice services in different places, the call processing device needs to indicate in the query request which data area of user data to query, that is, the query request needs to include a tag for instructing the server to query the data area of the user data. The user data stored in each data area is different, therefore, the server can obtain different user data query results in different data areas indicated by the label, and send the obtained query results to the call processing device, so that the call processing device can perform Subsequent routing. Because the query result in this solution can represent the routing mode adopted by the network to which the server belongs, the call processing device can select the routing mode according to the query result when the IMS user communicates with the voice service of a non-IMS user in a different place. Specifically, the call processing device may select the traffic to be borne by the IMS network according to the query result, that is, adopt the routing method of "going out of the IMS network as far as possible, and enter the IMS network nearby", or may select the traffic to be borne by the PSTN network according to the query result, that is, adopt The routing method of "going out of the IMS network nearby and entering the IMS network far away" can maximize the use of the IMS network, divert the traffic of the PSTN network, and reduce the load pressure of the PSTN network, thereby facilitating the evolution and development of the network.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings that are required in the description of the embodiments or the prior art.

图1为查询ENUM服务器的方法流程示意图;Fig. 1 is a schematic flow chart of a method for querying an ENUM server;

图2为现有ENUM服务器的内部架构示意图;Figure 2 is a schematic diagram of the internal architecture of the existing ENUM server;

图3为现有技术中ENUM服务器递归查询方法流程示意图;Fig. 3 is a schematic flow chart of the ENUM server recursive query method in the prior art;

图4为本发明实施例的网络系统结构示意图;FIG. 4 is a schematic structural diagram of a network system according to an embodiment of the present invention;

图5为本发明实施例的用户数据查询方法流程示意图一;FIG. 5 is a first schematic flow diagram of a user data query method according to an embodiment of the present invention;

图6为本发明实施例中ENUM服务器的内部架构示意图;6 is a schematic diagram of the internal architecture of the ENUM server in the embodiment of the present invention;

图7为本发明实施例的用户数据查询方法流程示意图二;FIG. 7 is a second schematic flow diagram of a user data query method according to an embodiment of the present invention;

图8为本发明实施例的用户数据查询方法流程示意图三;FIG. 8 is a third schematic flow diagram of a user data query method according to an embodiment of the present invention;

图9为本发明实施例的用户数据查询方法流程示意图四;FIG. 9 is a fourth schematic flow diagram of a user data query method according to an embodiment of the present invention;

图10为本发明实施例的服务器的结构示意图一;FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention;

图11为本发明实施例的服务器的结构示意图二;FIG. 11 is a second structural diagram of a server according to an embodiment of the present invention;

图12为本发明实施例的服务器的结构示意图三。FIG. 12 is a third schematic structural diagram of a server according to an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention.

IMS是IP多媒体子系统,是一种全新的多媒体业务形式,它能够满足现在的终端更新颖、更多样化多媒体业务的需求。IMS符合将呼叫控制和传输分离的要求,符合网络向“多种终端—多种接入—统一控制核心网—多种应用的网络体系结构”演变的发展方向,使得多种业务能同时进行交互,以形成一个更加灵活的通信平台。IMS将最终融合固定网、移动网、企业网、无线网等各种网络,简化网络结构,支持更丰富的定制化业务。它不仅可以实现用户到内容的多媒体通信,还能实现用户到用户的多媒体通信。IMS is an IP multimedia subsystem, a brand-new multimedia service form, which can meet the needs of more novel and more diversified multimedia services in current terminals. IMS meets the requirements of separating call control and transmission, and conforms to the development direction of the network to "multiple terminals-multiple accesses-unified control core network-multiple application network architecture", enabling multiple services to interact at the same time , to form a more flexible communication platform. IMS will eventually integrate various networks such as fixed network, mobile network, enterprise network, and wireless network, simplify the network structure, and support richer customized services. It can realize not only user-to-content multimedia communication, but also user-to-user multimedia communication.

IMS的体系结构分为业务层、控制层和链接层。业务层由应用服务器组成,负责为用户提供增值服务。控制层由网络控制服务器组成,负责管理呼叫的设定、修改和释放。控制层中最重要的是CSCF(Call Session Control Function,呼叫会话控制功能)的SIP。链接层由用于骨干网和接入网的路由器及交换机组成。The architecture of IMS is divided into business layer, control layer and link layer. The business layer consists of application servers and is responsible for providing value-added services to users. The control layer consists of network control servers, responsible for managing call setup, modification and release. The most important thing in the control layer is the SIP of CSCF (Call Session Control Function, call session control function). The link layer consists of routers and switches for the backbone and access networks.

CSCF是IMS内部的功能实体,是整个IMS网络的核心,主要负责处理多媒体呼叫会话过程中的信令控制。它管理IMS网络的用户鉴权、IMS承载面QoS(Quality of Service,服务质量)、与其它网络实体配合进行SIP会话,以及业务协商和资源分配等。The CSCF is a functional entity within the IMS and the core of the entire IMS network, and is mainly responsible for handling signaling control during a multimedia call session. It manages user authentication of the IMS network, IMS bearer plane QoS (Quality of Service, quality of service), cooperating with other network entities to conduct SIP sessions, service negotiation and resource allocation, etc.

ENUM定义了将E.164电话号码转换为域名形式放在服务器的数据库中的方法,每个由E.164电话号码转化而成的域名可以对应一系列的SIP URI,从而使国际统一的E.164电话号码成为可以在互联网中使用的网络地址资源。在IMS网络中,网元设备通过查询ENUM服务器,将TEL URI转换为SIP URI后才能进行后续路由。ENUM defines the method of converting E.164 phone numbers into domain names and storing them in the database of the server. Each domain name converted from E.164 phone numbers can correspond to a series of SIP URIs, so that the internationally unified E. The 164 phone number becomes a network address resource that can be used on the Internet. In the IMS network, the network element device can perform subsequent routing after converting the TEL URI into a SIP URI by querying the ENUM server.

E.164是国际电信联盟定义的在PSTN(Public Switched Telephone Network,公共电话交换网)和一些数据网使用的国际公共电话码号方案,同时定义了具体的码号的格式。E.164 is an international public telephone number scheme used in PSTN (Public Switched Telephone Network, Public Switched Telephone Network) and some data networks defined by the International Telecommunication Union, and defines the specific format of the code number.

具体的,一个E.164电话号码由以下几个部分组成,不同部分之间可以用“-”、“.”或空格等连接:+国家码(1-3位数字)-地区码(n位数字)-电话号码(15-n位数字)。Specifically, an E.164 phone number consists of the following parts, and different parts can be connected with "-", "." or spaces: + country code (1-3 digits) - area code (n digits digits) - phone number (15-n digits).

SIP URI如同电子邮件地址一样,其格式为:sip:x@y:Port,其中,x为用户名,y为服务主机的域名或者IP地址。The SIP URI is the same as an email address, and its format is: sip:x@y:Port, where x is the user name, and y is the domain name or IP address of the service host.

如图1所示,IMS网络中通过CSCF查询ENUM服务器,把广东的一个电话号码由TELURI“+867551234567”转换为SIP URI“sip:867551234567@guangdong.ims.cn”。As shown in Figure 1, the ENUM server is queried by the CSCF in the IMS network, and a telephone number in Guangdong is converted from TELURI "+867551234567" to a SIP URI "sip:867551234567@guangdong.ims.cn".

ENUM的内部架构为一个树形结构,如图2所示,其中,e164.arpa一般作为电话号码的存储区域,用于E.164电话号码的存储,为便于分布操作,该数据区域被进一步分为多个子数据区域,一个E.164电话号码包括国家码和区号,因而可以通过电话号码的国家码进行子数据区域划分,例如中国大陆的国家码为86,则.6.8.e164.arpa子数据区域分配给中国大陆,在.6.8.e164.arpa下面可以根据区号进一步细分省级子数据区域。例如:北京的子数据区域为:0.1.6.8.e164.arpa;上海的子数据区域为:1.2.6.8.e164.arpa。The internal structure of ENUM is a tree structure, as shown in Figure 2, where e164.arpa is generally used as a storage area for telephone numbers and is used for storing E.164 telephone numbers. For the convenience of distributed operations, this data area is further divided into For multiple sub-data areas, an E.164 telephone number includes a country code and an area code, so sub-data areas can be divided by the country code of the phone number. For example, the country code of mainland China is 86, and the .6.8.e164.arpa sub-data The region is allocated to mainland China, and under .6.8.e164.arpa, the provincial sub-data region can be further subdivided according to the area code. For example: the sub-data area of Beijing is: 0.1.6.8.e164.arpa; the sub-data area of Shanghai is: 1.2.6.8.e164.arpa.

目前,中国通信运营商企业标准中将ENUM服务器分为全国一级ENUM服务器和省二级ENUM服务器。省二级ENUM服务器管理本省的IMS网络用户的电话号码由TEL URI向SIPURI转换的数据,例如:北京的ENUM服务器管理0.1.6.8.e164.arpa子数据区域的数据,当北京的一个IMS用户A呼叫另外一个北京的IMS用户B时,北京的IMS网络查询北京的二级ENUM服务器,把E.164电话号码B转换成其对应的SIP URI。全国一级ENUM服务器管理.6.8.e164.arpa子数据区域的数据,它存储区号到各省二级ENUM服务器的域名或IP地址的对应关系,用于根据被叫用户的号码的区号转发对不同省二级ENUM服务器之间的查询请求。At present, ENUM servers are divided into national first-level ENUM servers and provincial second-level ENUM servers in the enterprise standards of Chinese communication operators. The second-level provincial ENUM server manages the data converted from TEL URI to SIPURI for the phone numbers of IMS network users in the province. For example, the ENUM server in Beijing manages the data in the 0.1.6.8.e164.arpa sub-data area. When an IMS user A in Beijing When calling another IMS user B in Beijing, the IMS network in Beijing queries the secondary ENUM server in Beijing, and converts the E.164 phone number B into its corresponding SIP URI. The first-level national ENUM server manages the data in the 6.8.e164.arpa sub-data area, which stores the corresponding relationship between the area code and the domain name or IP address of the second-level ENUM server in each province, and is used to forward calls to different provinces according to the area code of the called user's number Query requests between secondary ENUM servers.

其中,省二级ENUM服务器之间的用户数据查询,需要经过全国一级ENUM服务器转发查询请求,即省二级ENUM服务器发起递归查询。示例性的,如图3所示,当北京的一个IMS用户A呼叫一个上海的用户B时,ENUM服务器查询用户数据的流程为:Among them, the user data query between the provincial second-level ENUM servers needs to forward the query request through the national first-level ENUM server, that is, the provincial second-level ENUM server initiates a recursive query. Exemplarily, as shown in FIG. 3, when an IMS user A in Beijing calls a user B in Shanghai, the procedure for the ENUM server to query user data is as follows:

(1)主叫侧北京的CSCF将被叫用户的号码转化成E.164电话号码,向本省的ENUM服务器发起递归查询,以期获取被叫用户的号码的SIP URI。(1) On the calling side, the CSCF in Beijing converts the called user's number into an E.164 phone number, and initiates a recursive query to the ENUM server in the province in order to obtain the SIP URI of the called user's number.

(2)北京ENUM服务器接受查询,先查询本服务器,查询不到,则将查询请求转发给一级ENUM服务器。(2) When the Beijing ENUM server accepts the query, it first queries its own server, and if the query fails, the query request is forwarded to the first-level ENUM server.

(3)一级ENUM服务器根据配置的区号与二级ENUM服务器地址的对应记录,获取查询目的在上海的ENUM服务器的IP地址,并将查询请求转发到上海ENUM服务器。(3) The first-level ENUM server obtains the IP address of the ENUM server whose query destination is in Shanghai according to the corresponding record of the configured area code and the second-level ENUM server address, and forwards the query request to the Shanghai ENUM server.

(4)上海ENUM服务器根据E.164电话号码,获取被叫用户的号码的SIP URI,并将查询结果返回给一级ENUM服务器;如果被叫号码不是IMS用户,则上海ENUM服务器返回“无此用户”并将该查询结果通过一级ENUM服务器转发给北京ENUM服务器。(4) The Shanghai ENUM server obtains the SIP URI of the called user's number according to the E.164 telephone number, and returns the query result to the first-level ENUM server; if the called number is not an IMS user, the Shanghai ENUM server returns "No such user" and forward the query result to the Beijing ENUM server through the first-level ENUM server.

(5)一级ENUM服务器将查询结果返回给北京ENUM服务器。(5) The primary ENUM server returns the query result to the Beijing ENUM server.

(6)北京ENUM将查询结果返回给北京的CSCF。(6) Beijing ENUM returns the query result to CSCF in Beijing.

目前,原有的传统CS(Circuit-switched,电路交换)网,如PSTN(Public SwitchedTelephone Network,公共电话交换网)和PLMN(Public Land Mobile Network,公共陆地移动网络)的发展潜力还很大,还有很多用户可以挖掘,因此通信运营商会尽力保护和发展现有的电话网资源。这就要求IMS必须实现与CS/PSTN的互通。At present, the original traditional CS (Circuit-switched, circuit-switched) network, such as PSTN (Public Switched Telephone Network, public switched telephone network) and PLMN (Public Land Mobile Network, public land mobile network) still have great potential for development. There are many users that can be tapped, so communication operators will try their best to protect and develop the existing telephone network resources. This requires that IMS must realize intercommunication with CS/PSTN.

根据现有的各级ENUM服务器存储用户数据的原则,在IMS用户与异地非IMS用户语音业务互通时,采用现有的用户数据查询方法使得话务主要由PSTN网承载,即目前在IMS用户与异地非IMS用户语音业务互通时,只能采用“就近出IMS网络、就远入IMS网络”的路由方式,使得PSTN网络承载压力大,还限制了对IMS网络的使用。According to the principle of existing ENUM servers at all levels to store user data, when an IMS user communicates with non-IMS user voice services in different places, the existing user data query method is used to make the traffic mainly be carried by the PSTN network, that is, currently between the IMS user and the non-IMS user When intercommunicating the voice services of non-IMS users in different places, only the routing method of "going out of the IMS network nearby and entering the IMS network far away" can only be used, which puts a lot of pressure on the PSTN network and limits the use of the IMS network.

实施例一Embodiment one

图4是本发明实施例提供的网络系统的结构示意图。参见图4,该网络系统包括一级ENUM服务器101、一个或多个与一级ENUM服务器101相连接的二级ENUM服务器102以及一个或多个与二级ENUM服务器102相连接的网元设备103。一级ENUM服务器101、二级ENUM服务器102与网元设备103之间分别通过网络连接。Fig. 4 is a schematic structural diagram of a network system provided by an embodiment of the present invention. Referring to FIG. 4, the network system includes a primary ENUM server 101, one or more secondary ENUM servers 102 connected to the primary ENUM server 101, and one or more network element devices 103 connected to the secondary ENUM server 102 . The first-level ENUM server 101, the second-level ENUM server 102, and the network element device 103 are respectively connected through a network.

为了解决采用现有的用户数据查询方法,使得目前在IMS用户与异地非IMS用户语音业务互通时,只能采用“就近出IMS网络、就远入IMS网络”的路由方式,导致PSTN网络承载压力大,对IMS网络利用低的问题,本发明实施例通过在各级ENUM服务器中添加一个数据区域,并将各个ENUM服务器中的各个数据区域中存储相应的用户数据,在查询各个ENUM服务器中的用户数据时,通过查询不同的数据区域,得到不同的查询结果,进而根据查询结果选择路由方式进行后续路由,这样,可以实现IMS用户与异地非IMS用户语音业务互通时,话务经由IMS网络承载,即采用“就远出IMS网络,就近入IMS网络”的路由方式。In order to solve the problem of adopting the existing user data query method, when IMS users communicate with remote non-IMS users for voice services, they can only use the routing method of "going out of the IMS network at the nearest location and entering the IMS network at the far end", resulting in pressure on the PSTN network. large, low utilization of the IMS network, the embodiment of the present invention adds a data area in ENUM servers at all levels, stores corresponding user data in each data area in each ENUM server, and queries the data in each ENUM server For user data, different query results are obtained by querying different data areas, and then the routing method is selected for subsequent routing according to the query results. In this way, when the voice services of IMS users and non-IMS users in different places are intercommunicated, the traffic is carried by the IMS network , that is, adopt the routing method of "going out of the IMS network as far as possible and entering the IMS network as close as possible".

图5是本发明实施例提供的基于IMS网络的用户数据查询方法的流程示意图。参见图5,该方法包括:Fig. 5 is a schematic flowchart of an IMS network-based user data query method provided by an embodiment of the present invention. Referring to Figure 5, the method includes:

S101、服务器接收呼叫处理装置发送的查询请求,该查询请求包括被叫用户的号码和标签。S101. The server receives the query request sent by the call processing device, where the query request includes the number and tag of the called user.

S102、服务器根据被叫用户的号码,在标签指示的数据区域中查询被叫用户的用户数据,并获取用户数据的查询结果。S102. The server queries the user data of the called user in the data area indicated by the tag according to the number of the called user, and obtains a query result of the user data.

S103、服务器发送查询结果至呼叫处理装置。S103. The server sends the query result to the call processing device.

本发明实施例提供的基于IMS网络的用户数据查询方法应用于如图4所示的网络系统,该网络系统中包含有至少一个一级ENUM服务器与至少两个二级ENUM服务器,其中,至少一个一级ENUM服务器与至少两个二级ENUM服务器之间进行通信。该网络系统中的各个ENUM服务器中至少包含第一数据区域和第二数据区域,其中,第一数据区域和第二数据区域分别用于存储相应的用户数据,第一数据区域和第二数据区域为同一级数据区域。The IMS network-based user data query method provided by the embodiment of the present invention is applied to the network system shown in Figure 4, which includes at least one primary ENUM server and at least two secondary ENUM servers, wherein at least one The primary ENUM server communicates with at least two secondary ENUM servers. Each ENUM server in the network system includes at least a first data area and a second data area, wherein the first data area and the second data area are respectively used to store corresponding user data, and the first data area and the second data area It is the data area of the same level.

具体的,各个ENUM服务器的第一数据区域中存储的用户数据至少包含第一手机号码的HLR(Home Location Register,归属位置寄存器)识别码、第一手机号码的归属地区号与第一手机号码的归属网络域名的对应关系,和第一固定电话号码的区号与第一固定电话号码的归属网络域名的对应关系;或者,至少包含第一手机号码与第一手机号码的SIP URI的对应关系,其中,第一手机号码的归属地的服务器和第一固定电话号码的归属地的服务器为该ENUM服务器,即第一手机号码为该ENUM服务器管理的手机号码,第一固定电话号码为该ENUM服务器管理的固定电话号码。Specifically, the user data stored in the first data area of each ENUM server at least includes the HLR (Home Location Register) identification code of the first mobile phone number, the home area code of the first mobile phone number, and the first mobile phone number. The corresponding relationship between the home network domain name and the corresponding relationship between the area code of the first fixed phone number and the home network domain name of the first fixed phone number; or at least including the corresponding relationship between the first mobile phone number and the SIP URI of the first mobile phone number, wherein , the server at the location of the first mobile phone number and the server at the location of the first fixed phone number are the ENUM server, that is, the first mobile phone number is the mobile phone number managed by the ENUM server, and the first fixed phone number is managed by the ENUM server fixed telephone number.

其中,HLR识别码简称为H码,归属位置寄存器负责通信用户管理的数据库,存储所管辖用户的签约数据及通信用户的位置信息,手机号码的H码一般用于标明手机号码的归属地。Among them, the HLR identification code is referred to as H code for short, and the home location register is responsible for the database of communication user management, storing the subscription data of the users under its jurisdiction and the location information of communication users, and the H code of the mobile phone number is generally used to indicate the attribution of the mobile phone number.

各个ENUM服务器的第二数据区域中存储的用户数据至少包含第一固定电话号码的区号与第一固定电话号码的归属地的二级ENUM服务器的网络之间互联的协议IP地址的对应关系;或者,至少包含携带有归属地区号的第一手机号码的SIP URI和第一固定电话号码的SIP URI。The user data stored in the second data area of each ENUM server at least includes the correspondence between the area code of the first fixed telephone number and the IP address of the protocol interconnected between the network of the second-level ENUM server at the place where the first fixed telephone number belongs; or , including at least the SIP URI of the first mobile phone number and the SIP URI of the first fixed phone number carrying the home area code.

由于网络系统中包含有至少一个一级ENUM服务器与至少两个二级ENUM服务器,而且一级ENUM服务器和二级ENUM服务器的管理区域不同,因此,一级ENUM服务器和二级ENUM服务器中存储的用户数据也不同。其中,若用户数据为公共数据,该数据不会被频繁修改,则优先存储于一级ENUM服务器中。Since the network system contains at least one first-level ENUM server and at least two second-level ENUM servers, and the management areas of the first-level ENUM server and the second-level ENUM server are different, the information stored in the first-level ENUM server and the second-level ENUM server User data is also different. Among them, if the user data is public data and the data will not be frequently modified, it will be preferentially stored in the first-level ENUM server.

具体的,一级ENUM服务器的第一数据区域中存储的用户数据至少包含第一手机号码的H码、第一手机号码的归属地区号与第一手机号码的归属网络域名的对应关系,和第一固定电话号码的区号与第一固定电话号码的归属网络域名的对应关系,其中,第一手机号码为一级ENUM服务器管理的手机号码,第一固定电话号码为一级ENUM服务器管理的固定电话号码;一级ENUM服务器的第二数据区域中存储的用户数据至少包含第一固定电话号码的区号与第一固定电话号码的归属地的二级ENUM服务器的IP地址的对应关系。Specifically, the user data stored in the first data area of the primary ENUM server includes at least the H code of the first mobile phone number, the corresponding relationship between the home area code of the first mobile phone number and the home network domain name of the first mobile phone number, and the first Correspondence between the area code of a fixed telephone number and the home network domain name of the first fixed telephone number, wherein the first mobile phone number is a mobile phone number managed by a first-level ENUM server, and the first fixed telephone number is a fixed telephone number managed by a first-level ENUM server Number: The user data stored in the second data area of the primary ENUM server at least includes the correspondence between the area code of the first fixed telephone number and the IP address of the secondary ENUM server where the first fixed telephone number belongs.

二级ENUM服务器的第一数据区域中存储的用户数据至少包含第二手机号码与第二手机号码的SIP URI的对应关系,其中,第二手机号码为二级ENUM服务器管理的IMS用户的手机号码;二级ENUM服务器的第二数据区域中存储的用户数据至少包含携带有归属地区号的第二手机号码的SIP URI和第二固定电话号码的SIP URI,其中,第二固定电话号码为二级ENUM服务器管理的IMS用户的固定电话号码。The user data stored in the first data area of the secondary ENUM server includes at least the correspondence between the second mobile phone number and the SIP URI of the second mobile phone number, wherein the second mobile phone number is the mobile phone number of the IMS user managed by the secondary ENUM server ; The user data stored in the second data area of the secondary ENUM server at least includes the SIP URI of the second mobile phone number and the SIP URI of the second fixed phone number that carry the home area code, wherein the second fixed phone number is the second level Fixed phone number of an IMS user managed by the ENUM server.

由上可知,本发明实施例中的ENUM服务器的内部架构与现有技术中ENUM服务器的内部架构不同。示例性的,如图6所示,本发明实施例中ENUM服务器在两个数据区域(np.arpa与e164.arpa)中存储用户数据,且np.arpa与e164.arpa这两个数据区域中存储的用户数据不同。基于这种内部架构和用户数据的存储原则,完成本发明实施例提供的用户数据查询方法。It can be known from the above that the internal architecture of the ENUM server in the embodiment of the present invention is different from that of the ENUM server in the prior art. Exemplarily, as shown in Figure 6, the ENUM server stores user data in two data areas (np.arpa and e164.arpa) in the embodiment of the present invention, and the two data areas of np.arpa and e164.arpa The stored user data is different. Based on this internal architecture and the storage principle of user data, the user data query method provided by the embodiment of the present invention is completed.

优选的,本发明实施例中第二数据区域为e164.arpa,第一数据区域为ENUM服务器中与e164.arpa同一级的数据区域。示例性的,如图6所示,第一数据区域为np.arpa,第二数据区域为e164.arpa,np.arpa与e164.arpa为同一级数据区域。Preferably, in the embodiment of the present invention, the second data area is e164.arpa, and the first data area is a data area at the same level as e164.arpa in the ENUM server. Exemplarily, as shown in FIG. 6 , the first data area is np.arpa, the second data area is e164.arpa, and np.arpa and e164.arpa are data areas at the same level.

网络系统中的任一服务器首先接收呼叫处理装置发送的包含有被叫用户的号码和标签的查询请求。Any server in the network system first receives the query request sent by the call processing device and includes the number and label of the called user.

其中,查询请求中的标签用于指示服务器查询用户数据查询的数据区域。Wherein, the label in the query request is used to instruct the server to query the data area of the user data query.

需要说明的是,本发明实施例中网络系统中的一级ENUM服务器和至少两个二级ENUM服务器分别可以完成其用户数据查询,即一级ENUM服务器和至少两个二级ENUM服务器分别接收呼叫处理装置发送的查询请求。It should be noted that the first-level ENUM server and at least two second-level ENUM servers in the network system in the embodiment of the present invention can respectively complete their user data query, that is, the first-level ENUM server and at least two second-level ENUM servers respectively receive calls Process the query request sent by the device.

具体的,本发明实施例中的服务器和呼叫处理装置的组合有如下几种:Specifically, the combinations of the server and the call processing device in the embodiment of the present invention are as follows:

(1)若服务器为一级ENUM服务器,则呼叫处理装置为源二级ENUM服务器,即呼叫处理装置为主叫侧二级ENUM服务器。(1) If the server is a first-level ENUM server, the call processing device is a source second-level ENUM server, that is, the call processing device is a second-level ENUM server at the calling side.

(2)若服务器为源二级ENUM服务器,则呼叫处理装置为主叫侧网元设备。(2) If the server is the source secondary ENUM server, the call processing device is the calling side network element device.

(3)若服务器为目的二级ENUM服务器,即服务器为被叫侧二级ENUM服务器,则呼叫处理装置为一级ENUM服务器或者被叫侧网元设备。(3) If the server is the target secondary ENUM server, that is, the server is the called side secondary ENUM server, then the call processing device is the primary ENUM server or the called side network element device.

可选的,本发明实施例中主叫侧网元设备可以为主叫侧CSCF,也可以为主叫侧MGCF(Media Gateway Control Function,媒体网关控制功能),还可以为主叫侧IBCF(Interconnection Border Control Function,互联网边界控制功能)。Optionally, the calling side network element device in the embodiment of the present invention may be the calling side CSCF, may also be the calling side MGCF (Media Gateway Control Function, media gateway control function), may also be the calling side IBCF (Interconnection Border Control Function, Internet border control function).

同理,可选的,本发明实施例中被叫侧网元设备可以为被叫侧CSCF,也可以为被叫侧MGCF,还可以为被叫侧IBCF。Similarly, optionally, the network element device at the called side in this embodiment of the present invention may be the CSCF at the called side, or the MGCF at the called side, or the IBCF at the called side.

其中,本发明实施例查询请求中的标签为网元设备根据预先配置的查询规则确定的。Wherein, the label in the query request in the embodiment of the present invention is determined by the network element device according to a pre-configured query rule.

具体的,网元设备(主叫侧网元设备和/或被叫侧网元设备)分析被叫号码,根据预先配置的查询规则,确定查询请求中的标签,具体的查询规则如下所示:Specifically, the network element device (the calling side network element device and/or the called side network element device) analyzes the called number, and determines the label in the query request according to the pre-configured query rules. The specific query rules are as follows:

第1条规则:若被叫用户的号码是手机号码,则网元设备在查询请求中用标签指明查询服务器的第一数据区域。The first rule: if the number of the called user is a mobile phone number, the network element device uses a tag to indicate the first data area of the query server in the query request.

第2条规则:若被叫用户的号码是固定号码,且该被叫用户的号码为与该网元设备相对应的服务器所管理的号码,则网元设备在查询请求中用标签指明查询服务器的第二数据区域。Rule 2: If the number of the called user is a fixed number, and the number of the called user is managed by the server corresponding to the network element device, then the network element device uses a tag to indicate the query server in the query request the second data area of .

第3条规则:若被叫用户的号码是固定号码,且该被叫用户的号码不是与该网元设备相对应的服务器所管理的号码,且被叫用户的号码的区号的归属地配置IMS网络并支持“就远出IMS网络,就近入IMS网络”的路由方式,则网元设备在查询请求中用标签指明查询服务器的第一数据区域。Rule 3: If the called user's number is a fixed number, and the called user's number is not managed by the server corresponding to the network element device, and the area code of the called user's number is configured with IMS The network also supports the routing mode of "going out of the IMS network as far as possible and entering the IMS network as close as possible", so the network element device uses a label in the query request to indicate the first data area of the query server.

第4条规则:若被叫用户的号码是固定号码,且该被叫用户的号码不是与该网元设备相对应的服务器所管理的号码,且被叫用户的号码的区号的归属地配置IMS网络但不支持“就远出IMS网络,就近入IMS网络”的路由方式或者被叫用户的号码的区号的归属地没有配置IMS网络,则网元设备在查询请求中用标签指明查询服务器的第二数据区域。Rule 4: If the called user's number is a fixed number, and the called user's number is not managed by the server corresponding to the network element device, and the area code of the called user's number is configured with IMS network but does not support the routing method of "leave the IMS network far away and enter the IMS network nearby", or the area code of the called user's number does not have an IMS network configured, then the network element device uses a label in the query request to indicate the number of the query server. Two data areas.

第5条规则:若被叫用户的号码为与该网元设备相对应的服务器所管理的号码,且被叫用户的号码均携带有归属地区号,则网元设备在查询请求中用标签指明查询服务器的第二数据区域。Rule 5: If the number of the called user is the number managed by the server corresponding to the network element device, and the numbers of the called user all carry the home area code, then the network element device will use a label to indicate in the query request Query the server's second data area.

具体的,本发明实施例中接收查询请求的服务器为源二级ENUM服务器时,源二级ENUM服务器接收主叫侧网元设备发送的查询请求,该查询请求中的标签为主叫侧网元设备在分析被叫用户的号码后根据预先设置的查询规则确定的。Specifically, in the embodiment of the present invention, when the server receiving the query request is the source secondary ENUM server, the source secondary ENUM server receives the query request sent by the calling side network element device, and the label in the query request is the calling side network element After the device analyzes the number of the called user, it is determined according to the preset query rules.

进一步地,主叫侧网元设备根据预先配置的查询规则获知主叫侧IMS网络是否支持“就近入IMS网络,就远出IMS网络”的路由方式。具体的,如果主叫侧网元设备中配置有上述查询规则,则确定主叫侧IMS网络支持“就近入IMS网络,就远出IMS网络”的路由方式,这样,主叫侧网元设备根据上述查询规则确定查询请求中的标签;如果主叫侧网元设备中没有配置有上述查询规则,则主叫侧IMS网络不支持“就近入IMS网络,就远出IMS网络”的路由方式,这样,源二级ENUM服务器中只存在第二数据区域,源二级ENUM服务器只能在其第二数据区域中进行用户数据查询。Further, the network element device at the calling side learns whether the IMS network at the calling side supports the routing mode of "entering the IMS network nearby and leaving the IMS network far away" according to the pre-configured query rules. Specifically, if the above-mentioned query rules are configured in the calling-side network element device, it is determined that the calling-side IMS network supports the routing mode of "entering the IMS network nearby and leaving the IMS network far away". In this way, the calling-side network element device according to The above query rules determine the label in the query request; if the above query rules are not configured in the network element equipment on the calling side, the IMS network on the calling side does not support the routing method of "entering the IMS network at the nearest place and leaving the IMS network far away". , only the second data area exists in the source secondary ENUM server, and the source secondary ENUM server can only query user data in its second data area.

具体的,在主叫侧网元设备根据IMS网络的预先配置规则获知主叫侧IMS网络支持“就近入IMS网络,就远出IMS网络”的路由方式的场景中,主叫侧网元设备通过分析被叫用户的号码,确定查询请求中的标签的方法为:Specifically, in the scenario where the calling-side network element device learns that the calling-side IMS network supports the routing method of "entering the IMS network nearby and leaving the IMS network far away" according to the pre-configured rules of the IMS network, the calling-side network element device passes The method to analyze the number of the called user and determine the label in the query request is:

(1)主叫侧网元设备分析被叫用户的号码,判断被叫用户的号码为手机号码还是固定电话号码。(1) The network element device at the calling side analyzes the number of the called user, and determines whether the number of the called user is a mobile phone number or a landline phone number.

其中,主叫侧网元设备可以根据被叫用户的号码的前三位数字可以获知该号码是固定电话号码还是手机号码。因为,手机号码的前三位数字为网络识别号,固定电话号码的前三位或者前四位为区号。Wherein, the network element device at the calling side can know whether the number of the called user is a landline phone number or a mobile phone number according to the first three digits of the number of the called user. Because the first three digits of the mobile phone number are the network identification number, and the first three or four digits of the landline phone number are the area code.

(2)若被叫用户的号码为手机号码,则查询请求中的标签指示在第一数据区域中进行用户数据查询。(2) If the number of the called user is a mobile phone number, the label in the query request indicates that user data query is performed in the first data area.

(3)若被叫用户的号码为固定电话号码,则主叫侧网元设备分析该固定电话号码的区号,进而判断该固定电话号码是否属于源二级ENUM服务器所管理的号码,即判断该固定电话号码的归属地是否为其他省。具体的,若该固定电话号码为源二级ENUM服务器所管理的号码,则查询请求中的标签指示在第二数据区域中进行用户数据查询;若该固定电话号码不属于源二级ENUM服务器所管理的号码,主叫侧网元设备则获取该区号的归属地是否配置IMS网络。若该被叫用户的号码的区号的归属地配置有IMS网络且支持“就近入IMS网络,就远出IMS网络”的路由方式,则查询请求中的标签指示在第一数据区域中进行用户数据查询;若该区号的归属地配置有IMS网络但不支持“就近入IMS网络,就远出IMS网络”的路由方式或者该区号所属地没有配置IMS网络,则查询请求中的标签指示在第二数据区域中进行用户数据查询。(3) If the number of the called user is a fixed telephone number, the network element device at the calling side analyzes the area code of the fixed telephone number, and then judges whether the fixed telephone number belongs to the number managed by the source secondary ENUM server, that is, judges the Whether the attribution of the fixed-line phone number is another province. Specifically, if the fixed telephone number is a number managed by the source secondary ENUM server, the label in the query request indicates that user data query is performed in the second data area; if the fixed telephone number does not belong to the source secondary ENUM server managed number, the network element device on the calling side obtains whether an IMS network is configured in the area code's attribution. If the area code of the called user's number is configured with an IMS network and supports the routing method of "entering the IMS network nearby and leaving the IMS network far away", the label in the query request indicates that the user data is stored in the first data area. Query; if the area code is configured with an IMS network but does not support the routing method of "entering the IMS network nearby and leaving the IMS network far away" or the area code does not have an IMS network configured, the label in the query request indicates that the second Perform user data query in the data area.

示例性的,若被叫用户的号码为手机号码136H0H1H2H3abcd,主叫侧CSCF通过分析该被叫用户的号码的前三位数字确定该被叫用户的号码为手机号码,则主叫侧CSCF将包含有136H0H1H2H3abcd和指示查询第一数据区域的标签发送至源二级ENUM服务器。Exemplarily, if the called user's number is a mobile phone number 136H0H1H2H3abcd, and the CSCF at the calling side determines that the called user's number is a mobile phone number by analyzing the first three digits of the called user's number, the calling side CSCF will include Send to the source secondary ENUM server with 136H0H1H2H3abcd and a label indicating to query the first data area.

具体的,本发明实施例中接收查询请求的服务器为一级ENUM服务器时,一级ENUM服务器接收源二级ENUM服务器转发的查询请求,该查询请求为主叫侧网元设备发送至源二级ENUM服务器的,因此,一级ENUM服务器接收到的查询请求中的标签也是主叫侧网元设备分析被叫用户的号码,根据预先配置的查询规则确定的。Specifically, in the embodiment of the present invention, when the server receiving the query request is a primary ENUM server, the primary ENUM server receives the query request forwarded by the source secondary ENUM server, and the query request is sent to the source secondary ENUM server by the calling side network element device. Therefore, the tag in the query request received by the first-level ENUM server is also determined by the network element device on the calling side after analyzing the number of the called user and according to the pre-configured query rules.

具体的,本发明实施例中接收查询请求的服务器为目的二级ENUM服务器时,目的二级ENUM服务器可以接收一级ENUM服务器转发的查询请求,该查询请求是源二级ENUM服务器转发至一级ENUM服务器,并由一级ENUM服务器转发至目的二级ENUM服务器的,此时,目的二级ENUM服务器接收到的查询请求中的标签也是主叫侧网元设备分析被叫用户的号码,根据预先配置的查询规则确定的。Specifically, when the server receiving the query request in the embodiment of the present invention is the target secondary ENUM server, the target secondary ENUM server can receive the query request forwarded by the primary ENUM server, and the query request is forwarded by the source secondary ENUM server to the primary ENUM server. ENUM server, and forwarded by the primary ENUM server to the target secondary ENUM server. At this time, the tag in the query request received by the target secondary ENUM server is also the number of the called user analyzed by the network element device on the calling side. Determined by the configured query rules.

此外,目的二级ENUM服务器还可以接收被叫侧网元设备发送的查询请求,该查询请求为被叫侧网元设备根据主叫侧网元设备发送的呼叫请求后发送的,此时,该查询请求中的标签为被叫侧网元设备分析被叫用户的号码,根据预先配置的查询规则后确定的。In addition, the destination secondary ENUM server can also receive the query request sent by the called side network element device. The query request is sent by the called side network element device according to the call request sent by the calling side network element device. At this time, the The tag in the query request is determined by the called side network element device after analyzing the called user's number according to the pre-configured query rules.

具体的,主叫侧网元设备发送的呼叫请求中包含有被叫用户的号码,且该呼叫请求为主叫侧网元设备根据被叫用户的号码获取到被叫侧网元设备的IP地址后向被叫侧网元设备发送的,因此,被叫侧网元设备接收到的呼叫请求中的被叫用户的号码为目的二级ENUM服务器管理的号码。这样,若被叫用户的号码为固定电话号码,则发送至目的二级ENUM服务器的查询请求中的标签指示在第二数据区域中进行用户数据查询;若被叫用户的号码为手机号码,且该手机号码携带有区号,则被叫侧网元设备视该手机号码为固定电话,发送至目的二级ENUM服务器的查询请求中的标签指示在第二数据区域中进行用户数据查询;若被叫用户的号码为不携带区号的手机号码,则发送至目的二级ENUM服务器的查询请求中的标签指示在第一数据区域中进行用户数据查询。Specifically, the call request sent by the network element device on the calling side includes the number of the called user, and the call request is that the network element device on the calling side obtains the IP address of the network element device on the called side according to the number of the called user It is sent to the network element device on the called side later. Therefore, the number of the called user in the call request received by the network element device on the called side is the number managed by the destination secondary ENUM server. Like this, if the number of the called user is a fixed telephone number, then the tag instruction in the query request sent to the target secondary ENUM server is to perform user data query in the second data area; if the number of the called user is a mobile phone number, and If the mobile phone number carries an area code, the network element device on the called side regards the mobile phone number as a fixed phone, and the label in the query request sent to the target secondary ENUM server indicates that the user data query is performed in the second data area; if the called If the user's number is a mobile phone number without an area code, the tag in the query request sent to the target secondary ENUM server indicates that user data query should be performed in the first data area.

在服务器接收到查询请求后,服务器根据被叫用户的号码,在标签指示的数据区域中查询被叫用户的号码的用户数据,并获取用户数据的查询结果。After the server receives the query request, the server queries the user data of the number of the called user in the data area indicated by the tag according to the number of the called user, and obtains the query result of the user data.

服务器中的第一数据区域和第二数据区域中存储有各自的用户数据,因此服务器在接收到查询请求后,根据该查询请求在第一数据区域或者第二数据区域中查找用户数据并获取用户数据的查询结果。由于一级ENUM服务器的各个数据区域和二级ENUM服务器的各个数据区域中存储的用户数据不相同,因此,一级ENUM服务器和二级ENUM服务器获取到的查询结果有可能也不相同。There are respective user data stored in the first data area and the second data area in the server, so after the server receives the query request, it searches the user data in the first data area or the second data area according to the query request and obtains the user data. Data query results. Since the user data stored in each data area of the first-level ENUM server is different from that of the second-level ENUM server, the query results obtained by the first-level ENUM server and the second-level ENUM server may be different.

具体的,本发明实施例中接收查询请求的服务器为源二级ENUM服务器时,源二级ENUM服务器在标签指示的数据区域中查找是否存在被叫用户的用户数据。若被叫用户的号码的归属地的服务器不是源二级ENUM服务器,则源二级ENUM服务器查找不到与被叫用户的号码相对应的用户数据,此时,它将该查询请求转发至一级ENUM服务器,以使得一级ENUM服务器根据该查询请求进行用户数据查询,一级ENUM服务器在获得查询结果后将该查询结果转发至源二级ENUM服务器;若被叫用户的号码属于源二级ENUM服务器管理,则源二级ENUM服务器在标签指示的数据区域中查找是否存在被叫用户的号码的SIP URI,若存在,则获取该被叫用户的号码的SIP URI,其中,被叫用户的号码的SIP URI为源二级ENUM服务器中存储的被叫用户的用户数据中的一部分。Specifically, in the embodiment of the present invention, when the server receiving the query request is the source secondary ENUM server, the source secondary ENUM server searches whether there is user data of the called user in the data area indicated by the label. If the server at the place of origin of the number of the called user is not the source secondary ENUM server, then the source secondary ENUM server cannot find the user data corresponding to the number of the called user. At this time, it forwards the query request to a Level-1 ENUM server, so that the level-1 ENUM server performs user data query according to the query request, and the level-1 ENUM server forwards the query result to the source level-2 ENUM server after obtaining the query result; if the number of the called user belongs to the source level-2 ENUM server ENUM server management, the source secondary ENUM server searches for the SIP URI of the called user’s number in the data area indicated by the label, and if it exists, obtains the SIP URI of the called user’s number, wherein the called user’s The SIP URI of the number is part of the user data of the called user stored in the source secondary ENUM server.

示例性的,对于归属地为上海的被叫固定电话号码B(02112345678)而言,存在以下几种情况:Exemplarily, for the called fixed phone number B (02112345678) whose attribution is in Shanghai, there are several situations as follows:

(1)在上海的用户呼叫号码B的场景中,上海ENUM服务器接收到的查询请求中包含有号码B和指示在第二数据区域中进行用户数据查询的标签,上海ENUM服务器根据号码B,在上海ENUM服务器的第二数据区域中查询是否存在号码B的相对应的用户数据,当B号码为IMS用户时,上海ENUM服务器获得的查询结果为号码B的SIP URI(例如,SIP:862112345678@shanghai.ims.cn);当B号码为非IMS用户时,上海ENUM服务器获得的查询结果为“无此用户”。(1) In the scenario where a user in Shanghai calls number B, the query request received by the Shanghai ENUM server includes number B and a tag indicating user data query in the second data area. According to the number B, the Shanghai ENUM server In the second data area of the Shanghai ENUM server, query whether there is corresponding user data of the number B. When the number B is an IMS user, the query result obtained by the Shanghai ENUM server is the SIP URI of the number B (for example, SIP:862112345678@shanghai .ims.cn); when number B is not an IMS user, the query result obtained by the Shanghai ENUM server is "No such user".

(2)在北京的用户呼叫号码B的场景中,北京ENUM服务器查询不到号码B的相对应数据,且号码B不属于北京ENUM服务器管理的号码,北京ENUM服务器将查询请求转发至一级ENUM服务器,以使得一级ENUM服务器根据该查询请求获取查询结果。(2) In the scenario where a user in Beijing calls number B, the Beijing ENUM server cannot query the corresponding data of number B, and number B does not belong to the number managed by the Beijing ENUM server, and the Beijing ENUM server forwards the query request to the first-level ENUM server, so that the primary ENUM server obtains the query result according to the query request.

进一步地,本发明实施例中接收查询请求的服务器为一级ENUM服务器时,一级ENUM服务器在标签指示的数据区域中查找是否存在被叫用户的用户数据。Further, in the embodiment of the present invention, when the server receiving the query request is a first-level ENUM server, the first-level ENUM server searches whether there is user data of the called user in the data area indicated by the label.

具体的,若一级ENUM服务器接收到的查询请求中标签指示在第一数据区域中进行数据查询,则一级ENUM服务器在其第一数据区域中获取被叫用户的号码的扩展SIP URI(被叫用户的号码的扩展SIP URI包括被叫用户的号码的SIP URI和用户标识,该用户标识用于表明未确定该用户是否为IMS用户,因为一级ENUM服务器中存储的用户数据为被叫用户的号码与网络域名的对应关系或者被叫用户的号码的区号与归属地服务器的IP地址,可选的,用户标识可以为user=phone)。Specifically, if the label in the query request received by the primary ENUM server indicates that data query is performed in the first data area, the primary ENUM server obtains the extended SIP URI of the number of the called user in its first data area (by The extended SIP URI of the calling user's number includes the SIP URI of the called user's number and the user ID, which is used to indicate whether the user is an IMS user or not, because the user data stored in the primary ENUM server is the called user The corresponding relationship between the number and the network domain name or the area code of the called user's number and the IP address of the home server, optionally, the user identifier can be user=phone).

其中,当被叫用户的号码为手机号码时,一级ENUM服务器在其第一数据区域中根据H码、归属地区号与归属网络域名的对应关系获取到手机号码的扩展SIP URI;当被叫用户的号码为固定电话号码时,一级ENUM服务器在其第一数据区域中根据区号与归属网络域名的对应关系获取到固定电话号码的扩展SIP URI。Wherein, when the number of the called user is a mobile phone number, the primary ENUM server obtains the extended SIP URI of the mobile phone number in its first data area according to the corresponding relationship between the H code, the home area code and the home network domain name; When the user's number is a fixed phone number, the primary ENUM server obtains the extended SIP URI of the fixed phone number in its first data area according to the correspondence between the area code and the home network domain name.

若一级ENUM服务器接收到的查询请求中标签指示在第二数据区域中进行数据查询,则一级ENUM服务器在其第二数据区域中根据区号与归属地的二级ENUM服务器的IP地址的对应关系获取目的二级ENUM服务器的IP地址,并将查询请求转发至目的二级ENUM服务器,以获得查询结果。If the tag in the query request received by the first-level ENUM server indicates that data query is to be performed in the second data area, the first-level ENUM server will use the correspondence between the area code and the IP address of the second-level ENUM server at its home location in its second data area. The relationship obtains the IP address of the target secondary ENUM server, and forwards the query request to the target secondary ENUM server to obtain the query result.

示例性的,若被叫用户的号码为上海的手机号码133H0H1H2H3ABCD,一级ENUM服务器接收到的查询请求中包含手机号码133H0H1H2H3ABCD和指示在第一数据区域中进行用户数据查询的标签,则一级ENUM服务器根据该查询请求在其第一数据区域中根据手机H码、归属地区号与归属网络域名的对应关系获得扩展SIP URI:sip:86133H0H1H2H3ABCD@shanghai.ims.cn,user=phone。Exemplarily, if the called user's number is Shanghai's mobile phone number 133H0H1H2H3ABCD, and the query request received by the first-level ENUM server includes the mobile phone number 133H0H1H2H3ABCD and a tag indicating user data query in the first data area, then the first-level ENUM According to the query request, the server obtains the extended SIP URI in its first data area according to the corresponding relationship between the H code of the mobile phone, the home area code and the home network domain name: sip:86133H0H1H2H3ABCD@shanghai.ims.cn, user=phone.

进一步地,本发明实施例中接收查询请求的服务器为目的二级ENUM服务器时,目的二级ENUM服务器在标签指示的数据区域中查找是否存在被叫用户的用户数据。若被叫用户为IMS用户,则目的二级ENUM服务器获得被叫用户的号码的SIP URI。Further, in the embodiment of the present invention, when the server receiving the query request is the target secondary ENUM server, the target secondary ENUM server searches whether there is user data of the called user in the data area indicated by the label. If the called user is an IMS user, the destination secondary ENUM server obtains the SIP URI of the number of the called user.

服务器在获取到查询结果后,将该查询结果发送至呼叫处理装置。After obtaining the query result, the server sends the query result to the call processing device.

服务器在获取到查询结果后将该查询结果发送至相应的呼叫处理装置,以便进行后续路由。其中,查询结果用于表征服务器所属网路采用的路由方式,呼叫处理装置在获取到服务器发送的查询结果后,根据该查询结果选取对应的路由方式进行后续路由。这样,IMS用户与异地非IMS用户语音业务互通时,不再仅仅采用一种路由方式。After obtaining the query result, the server sends the query result to the corresponding call processing device for subsequent routing. Wherein, the query result is used to represent the routing mode adopted by the network to which the server belongs. After obtaining the query result sent by the server, the call processing device selects the corresponding routing mode according to the query result for subsequent routing. In this way, when an IMS user intercommunicates voice services with a non-IMS user in a different place, no longer only one routing method is used.

示例性的,若上海的IMS用户呼叫北京非IMS用户,且上海CSCF获取到的查询结果为“无此用户”时,上海CSCF根据“无此用户”这一查询结果将呼叫路由至PSTN网络,并通过PSTN网将呼叫路由至北京的PSTN网络,该路由方式为“就近出IMS网络”;若上海的IMS用户呼叫北京非IMS用户,且上海CSCF获取到的查询结果包含有北京的网络域名时,上海CSCF根据北京的网络域名将呼叫通过IMS网将呼叫路由至北京的IMS网络,然后通过北京的IMS网络将呼叫路由至被叫用户,该路由方式为“就远出IMS网络”。Exemplarily, if an IMS user in Shanghai calls a non-IMS user in Beijing, and the query result obtained by Shanghai CSCF is "no such user", Shanghai CSCF will route the call to the PSTN network according to the query result of "no such user", And route the call to the PSTN network in Beijing through the PSTN network, the routing method is "the nearest IMS network"; if the IMS user in Shanghai calls the non-IMS user in Beijing, and the query result obtained by Shanghai CSCF contains the network domain name of Beijing , Shanghai CSCF routes the call to the Beijing IMS network through the IMS network according to the Beijing network domain name, and then routes the call to the called user through the Beijing IMS network.

具体的,源二级ENUM服务器获取到查询结果后,将该查询结果发送至主叫侧网元设备,以便主叫侧网元设备根据查询结果进行后续路由;一级ENUM服务器获取到查询结果后,将该查询结果发送至源二级ENUM服务器,以便源二级ENUM服务器将查询结果转发至主叫侧网元设备;目的二级ENUM服务器获取到查询结果后,将该查询结果发送至被叫侧网元设备,以便被叫侧网元设备根据查询结果进行后续路由,或者,目的二级ENUM服务器获取到查询结果后,将该查询结果发送至一级ENUM服务器,以便于一级ENUM服务器将该查询结果转发至源二级ENUM服务器,进而最终发送至主叫侧网元设备。Specifically, after the source secondary ENUM server obtains the query result, it sends the query result to the calling side network element device, so that the calling side network element device performs subsequent routing according to the query result; after the primary ENUM server obtains the query result , send the query result to the source secondary ENUM server, so that the source secondary ENUM server forwards the query result to the calling side network element device; after the destination secondary ENUM server obtains the query result, it sends the query result to the called side network element device, so that the called side network element device performs subsequent routing according to the query result, or, after the destination secondary ENUM server obtains the query result, it sends the query result to the primary ENUM server, so that the primary ENUM server will The query result is forwarded to the source secondary ENUM server, and finally sent to the calling side network element device.

进一步地,为了能够详细说明对网络系统中的各个ENUM服务器中的用户数据的查询,现将对源二级ENUM服务器、一级ENUM服务器和目的二级ENUM服务器中用户数据的查询进行举例说明。Further, in order to be able to detail the query of user data in each ENUM server in the network system, the query of user data in the source secondary ENUM server, the primary ENUM server and the target secondary ENUM server will now be illustrated.

其中,以天津和上海两地均配置IMS网络,且均支持“就远出IMS网络、就近入IMS网络”的路由方式,天津IMS网络和上海的IMS网络互通,主叫侧天津的CSCF配置对上海的区号查询新增的np.arpa子区域,被叫侧上海的CSCF配置对本地区号依然查询传统的e164.arpa子区域为例对本发明实施例提供的用户数据查询方法进行详细说明。如图7所示,当被叫用户的号码为上海的一个固定号码(例如02112345678)时,查询方法的流程为:Among them, Tianjin and Shanghai are both equipped with IMS networks, and both support the routing method of "going out of the IMS network at the far end and entering the IMS network at the nearest place". The IMS network in Tianjin and the IMS network in Shanghai are interoperable. The area code of Shanghai queries the newly added np.arpa sub-area, and the CSCF configuration of the called side Shanghai still queries the traditional e164.arpa sub-area for the local area code as an example to describe the user data query method provided by the embodiment of the present invention in detail. As shown in Figure 7, when the number of the called user is a fixed number (such as 02112345678) in Shanghai, the flow process of the query method is:

(1)天津的CSCF将被叫用户的号码转化成E.164电话号码,向天津ENUM服务器发送对np.arpa数据区域的查询请求,以期获取被叫归属地的归属网络域名。(1) The CSCF in Tianjin converts the called user's number into an E.164 telephone number, and sends a query request for the np.arpa data area to the ENUM server in Tianjin, in order to obtain the home network domain name of the called place.

(2)天津ENUM服务器接受查询,先查询本服务器的np.arpa数据区域,查询不到,则将查询请求转发给一级ENUM服务器。(2) Tianjin ENUM server accepts the query, first queries the np.arpa data area of the server, if the query cannot be found, the query request is forwarded to the first-level ENUM server.

(3)一级ENUM服务器接收查询请求后,根据查询请求查询其np.arpa数据区域,根据该数据区域中存储的区号与被叫归属网络域名的对应记录,获取查询结果(例如sip:862112345678@shanghai.ims.cn,user=phone),然后,一级ENUM服务器将该查询结果返回给天津ENUM服务器。(3) After receiving the query request, the first-level ENUM server queries its np.arpa data area according to the query request, and obtains the query result (for example, sip:862112345678@ shanghai.ims.cn, user=phone), and then, the primary ENUM server returns the query result to the Tianjin ENUM server.

(4)天津ENUM服务器将接收到的查询结果返回给天津CSCF,天津CSCF根据查询结果中的网络域名将呼叫请求发送至上海CSCF。(4) Tianjin ENUM server returns the received query result to Tianjin CSCF, and Tianjin CSCF sends the call request to Shanghai CSCF according to the network domain name in the query result.

(5)由于上海CSCF配置对本地区号查询e164.arpa数据区域,因此,上海CSCF向上海ENUM服务器发送对e164.arpa子区域的查询请求,以期获取被叫用户的号码的SIP URI。(5) Since the Shanghai CSCF is configured to query the e164.arpa data area for the local area code, the Shanghai CSCF sends a query request for the e164.arpa sub-area to the Shanghai ENUM server in order to obtain the SIP URI of the called user's number.

(6)上海ENUM服务器在其e164.arpa数据区域中进行用户数据查询,查询该e164.arpa数据区域中是否存储有被叫用户的号码的用户数据。若被叫用户不是IMS用户,则上海ENUM服务器在其e164.arpa数据区域中查找不到该用户的用户数据,那么上海ENUM服务器返回“无此用户”并将该结果返回给上海CSCF,上海CSCF根据“无此用户”这一查询结果将呼叫通过上海的MGCF路由至上海的PSTN汇接局,以使得上海的PSTN汇接局对该呼叫进行路由;若被叫用户是IMS用户,则上海ENUM服务器在其e164.arpa数据区域中能够查找到该用户的SIP URI(例如:sip:862112345678@shanghai.ims.cn),上海ENUM服务器将该结果返回给上海CSCF,上海CSCF根据该查询结果对HSS(Home Subscription Server,归属用户服务器)进行查询,以获得与被叫用户号码对应的SBC(Session Border Controller,会话边缘控制器),以便SBC将呼叫路由至被叫用户。(6) The Shanghai ENUM server performs user data query in its e164.arpa data area, and inquires whether the user data of the number of the called user is stored in the e164.arpa data area. If the called user is not an IMS user, the Shanghai ENUM server cannot find the user data of the user in its e164.arpa data area, then the Shanghai ENUM server returns "No such user" and returns the result to Shanghai CSCF, Shanghai CSCF According to the query result of "no such user", the call is routed to the PSTN tandem office in Shanghai through the MGCF in Shanghai, so that the PSTN tandem office in Shanghai can route the call; if the called user is an IMS user, the Shanghai ENUM The server can find the user's SIP URI (for example: sip:862112345678@shanghai.ims.cn) in its e164.arpa data area. The Shanghai ENUM server returns the result to the Shanghai CSCF. (Home Subscription Server, Home Subscriber Server) inquires to obtain the SBC (Session Border Controller, Session Border Controller) corresponding to the number of the called user, so that the SBC routes the call to the called user.

由上可知,在该示例中,即使被叫用户为非IMS用户,主叫侧CSCF根据查询结果也是选择话务经由IMS网络承载。It can be known from the above that in this example, even if the called user is a non-IMS user, the CSCF at the calling side selects traffic to be borne by the IMS network according to the query result.

另外,再以天津IMS用户呼叫一个上海的手机号码,主叫侧天津CSCF配置所有的移动号码查询新增子区域的np.arpa数据区域,被叫侧上海CSCF配置对所有的移动号码查询np.arpa数据区域,即由被叫归属地上海CSCF判断该手机号码是否IMS用户(包括是否驻留在IMS网络中)为例对本发明实施例提供的查询方法进行详细说明。如图8所示,当被叫号码为上海的一个移动号码186H0H1H2H31234时,查询方法的流程为:In addition, if a Tianjin IMS user calls a mobile phone number in Shanghai, the Tianjin CSCF on the calling side configures all mobile numbers to query the np.arpa data area of the newly added sub-area, and the Shanghai CSCF on the called side configures all mobile numbers to query np. The arpa data area, that is, the Shanghai CSCF of the called home determines whether the mobile phone number is an IMS user (including whether it resides in the IMS network) as an example to describe the query method provided by the embodiment of the present invention in detail. As shown in Figure 8, when the called number is a Shanghai mobile number 186H0H1H2H31234, the process of the query method is as follows:

(1)天津CSCF将被叫用户的号码转化成E.164电话号码,向本省的ENUM服务器发送对np.arpa数据区域的查询请求,以期获取被叫归属地的归属网络域名。(1) Tianjin CSCF converts the number of the called user into an E.164 phone number, and sends a query request for the np.arpa data area to the ENUM server in the province, in order to obtain the home network domain name of the called place.

(2)天津ENUM服务器接受查询,先查询本服务器的np.arpa数据区域,若查询不到,则将查询请求转发给一级ENUM服务器。(2) Tianjin ENUM server accepts the query, and first queries the np.arpa data area of the server, and if the query cannot be found, forwards the query request to the first-level ENUM server.

(3)一级ENUM服务器接收查询请求后,根据查询请求查询其np.arpa数据区域,根据该数据区域中存储的H码与被叫归属网络域名的对应记录,获取查询查询结果(例如sip:86186H0H1H2H31234@shanghai.ims.cn,user=phone),一级ENUM服务器将该查询结果返回给天津ENUM服务器。(3) After the first-level ENUM server receives the query request, it queries its np.arpa data area according to the query request, and obtains the query result (such as sip: 86186H0H1H2H31234@shanghai.ims.cn, user=phone), the primary ENUM server returns the query result to the Tianjin ENUM server.

(4)天津ENUM服务器将接收到的查询结果返回给天津CSCF,天津CSCF根据查询结果中的网络域名将呼叫请求转发至上海CSCF。(4) Tianjin ENUM server returns the received query result to Tianjin CSCF, and Tianjin CSCF forwards the call request to Shanghai CSCF according to the network domain name in the query result.

(5)由于上海CSCF配置对所有移动号码查询np.arpa数据区域,因此,上号CSCF向上海ENUM服务器发送对np.arpa数据区域的查询请求,以期获取被叫用户的号码的SIPURI。(5) Since the CSCF in Shanghai is configured to query the np.arpa data area for all mobile numbers, the upper CSCF sends a query request for the np.arpa data area to the Shanghai ENUM server in order to obtain the SIPURI of the called user's number.

(6)上海ENUM服务器在其np.arpa数据区域中进行用户数据查询,查询该np.arpa数据区域中是否存储有被叫用户的号码的用户数据。若被叫用户不是IMS用户,则上海ENUM服务器在其np.arpa数据区域中查找不到该用户的用户数据,那么上海ENUM服务器返回“无此用户”并将该查询结果返回给上海CSCF;若被叫用户是IMS用户,则上海ENUM服务器在其np.arpa数据区域中可以查找到该用户的SIP URI(例如sip:86186H0H1H2H31234@shanghai.ims.cn),上海ENUM服务器将该查询结果返回给上海CSCF。(6) The Shanghai ENUM server performs user data query in its np.arpa data area, and inquires whether the user data of the number of the called user is stored in the np.arpa data area. If the called user is not an IMS user, the Shanghai ENUM server cannot find the user data of the user in its np.arpa data area, then the Shanghai ENUM server returns "No such user" and returns the query result to the Shanghai CSCF; if If the called user is an IMS user, the Shanghai ENUM server can find the user's SIP URI (for example, sip:86186H0H1H2H31234@shanghai.ims.cn) in its np.arpa data area, and the Shanghai ENUM server returns the query result to Shanghai CSCF.

(7)上海CSCF根据查询结果对呼叫进行后续路由,如果返回结果为“无此用户”则路由至上海的关口局;如果返回结果为SIP URI,则上海CSCF根据SIP URI对HSS进行查询,以获得与被叫用户号码对应的SBC,以便SBC将呼叫路由至被叫用户。(7) Shanghai CSCF performs follow-up routing on the call according to the query result. If the returned result is "no such user", it will be routed to the gateway office in Shanghai; if the returned result is SIP URI, Shanghai CSCF will query the HSS according to the SIP URI to Obtain the SBC corresponding to the number of the called user, so that the SBC can route the call to the called user.

进一步地,如图9所示,在被叫用户的号码为手机号码,且被叫手机号码的归属省划分有多个市区域,每个市区域有唯一的区号(即一个省包含有多个市,属于该省的区号有多个)的应用场景中采用本发明实施例中提供的查询方法,被叫用户的号码的归属地的CSCF根据查询结果和区号分析将呼叫做后续路由,如果返回的查询结果为“无此用户”,则被叫侧CSCF路由至被叫用户的号码的区号所在地的关口局,即被叫侧CSCF根据被叫用户的号码的区号选择关口局;如果返回的查询结果为SIP URI,则被叫侧CSCF通过查询HSS将呼叫路由至SBC。其他ENUM服务器进行的查询步骤和原理与图8所示示例相同,在此不再赘述。Further, as shown in Figure 9, the number of the called user is a mobile phone number, and the province to which the called mobile phone number belongs is divided into multiple city areas, and each city area has a unique area code (that is, a province contains multiple City, there are multiple area codes belonging to the province) in the application scenario where the query method provided in the embodiment of the present invention is adopted, the CSCF of the place where the number of the called user belongs will perform follow-up routing on the call according to the query result and the area code analysis, if it returns If the query result is "No such user", the CSCF at the called side routes to the gateway office where the area code of the called user's number is located, that is, the called side CSCF selects the gateway office according to the area code of the called user's number; if the returned query The result is a SIP URI, and the CSCF at the called side queries the HSS to route the call to the SBC. The query steps and principles performed by other ENUM servers are the same as the example shown in FIG. 8 , and will not be repeated here.

本发明的实施例提供一种基于IMS网络的用户数据查询方法,服务器在接收呼叫处理装置发送的包括有被叫用户的号码和标签的查询请求后,根据查询请求中被叫用户的号码,在标签指示的数据区域中查询被叫用户的用户数据,并获取该被叫用户的用户数据的查询结果,其中,该查询结果用于表征服务器所属网络采用的路由方式,然后,该服务器将查询结果发送至呼叫处理装置。Embodiments of the present invention provide a user data query method based on an IMS network. After the server receives a query request including the number and label of the called user sent by the call processing device, according to the number of the called user in the query request, the Query the user data of the called user in the data area indicated by the label, and obtain the query result of the user data of the called user, wherein the query result is used to represent the routing mode adopted by the network to which the server belongs, and then the server will query the result sent to the call processing unit.

该方案通过在IMS网络中的各级ENUM服务器中增加一个与保存有E164号码的数据区域同一级的数据区域,并且在各级ENUM服务器的各个数据区域中存储相应的用户数据,使得IMS用户与异地非IMS用户语音业务互通时,呼叫处理装置需要在查询请求中指示查询哪个数据区域的用户数据,即查询请求中需要包含有用于指示服务器查询用户数据的数据区域的标签,由于服务器中的各个数据区域存储的用户数据不同,因此,服务器在标签指示的不同的数据区域中能够获取到不同的用户数据查询结果,并将获取到的查询结果发送至呼叫处理装置,以便于呼叫处理装置进行后续路由。因为本方案中的查询结果能够表征服务器所属网络采用的路由方式,所以IMS用户与异地非IMS用户语音业务互通时,呼叫处理装置可以根据查询结果来选择路由方式。具体的,呼叫处理装置可以根据查询结果选择长途话务经由IMS网络承载,即采用“就远出IMS网络,就近入IMS网络”路由方式,也可以根据查询结果选择长途话务经由PSTN长途网络承载,即采用“就近出IMS网络,就远入IMS网络”路由方式,这样,能够最大限度的利用IMS网络,分流PSTN长途网的话务,减小PSTN网络的承载压力,从而有利于网络的演进与发展。In this solution, a data area at the same level as the data area storing the E164 number is added to the ENUM servers at all levels in the IMS network, and corresponding user data is stored in each data area of the ENUM servers at all levels, so that IMS users can communicate with each other. When voice services of non-IMS users in different places are interoperable, the call processing device needs to indicate in the query request which data area the user data is to be queried, that is, the query request needs to include a tag for instructing the server to query the data area of the user data. The user data stored in the data area is different, therefore, the server can obtain different user data query results in different data areas indicated by the label, and send the obtained query results to the call processing device, so that the call processing device can carry out subsequent operations. routing. Because the query result in this solution can represent the routing mode adopted by the network to which the server belongs, the call processing device can select the routing mode according to the query result when the IMS user communicates with a non-IMS user in a different place for voice services. Specifically, the call processing device may select the toll traffic to be borne by the IMS network according to the query result, that is, adopt the routing method of "leaving the IMS network as far as possible and entering the IMS network nearby", or may select the toll traffic to be borne by the PSTN toll network according to the query result , that is, adopt the routing method of "going out of the IMS network nearby, and entering the IMS network far away", so that the IMS network can be used to the maximum extent, the traffic of the PSTN long-distance network can be diverted, and the load pressure of the PSTN network can be reduced, which is conducive to the evolution of the network and development.

实施例二Embodiment two

本发明实施例提供一种服务器1,如图10所示,包括:An embodiment of the present invention provides a server 1, as shown in FIG. 10 , including:

接收单元10,用于接收呼叫处理装置发送的查询请求,所述查询请求包括被叫用户的号码和标签,所述标签用于指示所述服务器查询用户数据的数据区域。The receiving unit 10 is configured to receive the query request sent by the call processing device, the query request includes the number of the called user and a tag, and the tag is used to instruct the server to query the data area of the user data.

处理单元11,用于根据所述接收单元10接收到的所述被叫用户的号码,在所述标签指示的数据区域中查询所述被叫用户的用户数据,并获取所述用户数据的查询结果,所述查询结果用于表征所述服务器所属网络采用的路由方式。The processing unit 11 is configured to query the user data of the called user in the data area indicated by the label according to the number of the called user received by the receiving unit 10, and obtain the query of the user data As a result, the query result is used to characterize the routing mode adopted by the network to which the server belongs.

发送单元12,用于发送所述处理单元11获取到的所述查询结果至所述呼叫处理装置。The sending unit 12 is configured to send the query result acquired by the processing unit 11 to the call processing apparatus.

进一步地,如图11所示,所述服务器1还包括存储单元13,Further, as shown in FIG. 11 , the server 1 further includes a storage unit 13,

所述存储单元13,用于存储第一数据区域的用户数据和第二数据区域的用户数据,所述第一数据区域和所述第二数据区域为所述服务器中的同一级数据区域;所述第一数据区域中存储的用户数据至少包含第一手机号码的归属位置寄存器HLR识别码、所述第一手机号码的归属地区号与所述第一手机号码的归属网络域名的对应关系,和第一固定电话号码的区号与所述第一固定电话号码的归属网络域名的对应关系;或者,至少包含所述第一手机号码与所述第一手机号码的会话初始化协议通用资源标识SIP URI的对应关系;所述第一手机号码的归属地的服务器和所述第一固定电话号码的归属地的服务器为所述服务器;所述第二数据区域中存储的用户数据至少包含所述第一固定电话号码的区号与所述第一固定电话号码的归属地的二级电话号码映射ENUM服务器的网络之间互联的协议IP地址的对应关系;或者,至少包含携带有归属地区号的第一手机号码的SIP URI和所述第一固定电话号码的SIP URI。The storage unit 13 is configured to store user data in a first data area and user data in a second data area, the first data area and the second data area are data areas at the same level in the server; The user data stored in the first data area at least includes the HLR identification code of the first mobile phone number, the corresponding relationship between the home area code of the first mobile phone number and the home network domain name of the first mobile phone number, and The corresponding relationship between the area code of the first fixed phone number and the domain name of the home network of the first fixed phone number; or, at least including the first mobile phone number and the session initiation protocol universal resource identifier SIP URI of the first mobile phone number Correspondence; the server at the location of the first mobile phone number and the server at the location of the first fixed phone number are the servers; the user data stored in the second data area includes at least the first fixed phone number The corresponding relationship between the area code of the telephone number and the secondary telephone number mapping ENUM server network of the attribution of the first fixed telephone number; or at least include the first mobile phone number carrying the attribution area code SIP URI and the SIP URI of the first landline number.

可选的,所述服务器可以为一级ENUM服务器,也可以为二级ENUM服务器。Optionally, the server may be a primary ENUM server or a secondary ENUM server.

进一步地,所述被叫用户的号码为所述第一手机号码或所述第一固定电话号码中的其中一个号码。Further, the number of the called user is one of the first mobile phone number or the first fixed phone number.

进一步地,所述处理单元11,具体用于在所述源二级ENUM服务器的所述标签指示的数据区域中查询是否存在所述被叫用户的号码的SIP URI,以及具体用于若存在所述被叫用户的号码的SIP URI,则获取所述被叫用户的号码的SIP URI,以及具体用于若不存在所述被叫用户的号码的SIP URI,且所述被叫用户的号码的归属地的服务器是所述源二级ENUM服务器,则获取用户属性标识,所述用户属性标识用于标明所述被叫用户为非IP多媒体子系统IMS用户。Further, the processing unit 11 is specifically configured to query whether there is a SIP URI of the number of the called user in the data area indicated by the tag of the source secondary ENUM server, and specifically configured to query if there is the SIP URI of the number of the called user. If the SIP URI of the number of the called user is obtained, the SIP URI of the number of the called user is obtained, and if there is no SIP URI of the number of the called user, and the SIP URI of the number of the called user If the server at the home location is the source secondary ENUM server, the user attribute identifier is obtained, and the user attribute identifier is used to indicate that the called user is a non-IP multimedia subsystem IMS user.

进一步地,所述发送单元12,具体用于若所述处理单元11确定不存在所述被叫用户的号码的SIP URI,且所述被叫用户的号码的归属地的服务器不是所述源二级ENUM服务器,则发送所述查询请求至一级ENUM服务器。Further, the sending unit 12 is specifically configured to: if the processing unit 11 determines that the SIP URI of the number of the called user does not exist, and the server of the home of the number of the called user is not the source two If the first-level ENUM server is used, the query request is sent to the first-level ENUM server.

进一步地,所述接收单元10,具体用于接收所述一级ENUM服务器发送的所述查询结果。Further, the receiving unit 10 is specifically configured to receive the query result sent by the primary ENUM server.

进一步地,所述处理单元11,还用于在所述一级ENUM服务器的第一数据区域中查询所述被叫用户的号码的归属网络域名,并获取所述被叫用户的号码的归属网络域名;或者,还用于在所述一级ENUM服务器的第二数据区域中获取目的二级ENUM服务器的IP地址,所述目的二级ENUM服务器为所述被叫用户的归属地的服务器。Further, the processing unit 11 is further configured to query the home network domain name of the number of the called user in the first data area of the primary ENUM server, and obtain the home network domain name of the number of the called user. domain name; or, it is also used to obtain the IP address of the target secondary ENUM server in the second data area of the primary ENUM server, and the target secondary ENUM server is the server at the home of the called user.

进一步地,所述发送单元12,具体用于发送所述查询请求至所述目的二级ENUM服务器。Further, the sending unit 12 is specifically configured to send the query request to the target secondary ENUM server.

进一步地,所述接收单元10,具体用于接收所述目的二级ENUM服务器发送的查询结果。Further, the receiving unit 10 is specifically configured to receive the query result sent by the target secondary ENUM server.

进一步地,所述处理单元11,具体用于在所述目的二级ENUM服务器的所述标签指示的数据区域中查询是否存在所述被叫用户的号码的SIP URI,以及具体用于若存在所述被叫用户的号码的SIP URI,则获取所述被叫用户的号码的SIP URI,以及具体用于若不存在所述被叫用户的号码的SIP URI,则获取所述用户属性标识。Further, the processing unit 11 is specifically configured to query whether there is a SIP URI of the number of the called user in the data area indicated by the label of the target secondary ENUM server, and specifically configured to query if there is the SIP URI of the number of the called user. If the SIP URI of the number of the called user is obtained, the SIP URI of the number of the called user is obtained, and specifically used to obtain the user attribute identifier if there is no SIP URI of the number of the called user.

本发明的实施例提供一种服务器,主要包括接收单元、处理单元和发送单元。服务器在接收呼叫处理装置发送的包括有被叫用户的号码和标签的查询请求后,根据查询请求中被叫用户的号码,在标签指示的数据区域中查询被叫用户的用户数据,并获取该被叫用户的用户数据的查询结果,其中,该查询结果用于表征服务器所属网络采用的路由方式,然后,该服务器将查询结果发送至呼叫处理装置。An embodiment of the present invention provides a server, which mainly includes a receiving unit, a processing unit, and a sending unit. After receiving the query request including the number of the called user and the tag sent by the call processing device, the server queries the user data of the called user in the data area indicated by the tag according to the number of the called user in the query request, and obtains the The query result of the user data of the called user, wherein the query result is used to characterize the routing mode adopted by the network to which the server belongs, and then the server sends the query result to the call processing device.

该方案通过在IMS网络中的各级ENUM服务器中增加一个与保存有E164号码的数据区域同一级的数据区域,并且在各级ENUM服务器的各个数据区域中存储相应的用户数据,使得IMS用户与异地非IMS用户语音业务互通时,呼叫处理装置需要在查询请求中指示查询哪个数据区域的用户数据,即查询请求中需要包含有用于指示服务器查询用户数据的数据区域的标签,由于服务器中的各个数据区域存储的用户数据不同,因此,服务器在标签指示的不同的数据区域中能够获取到不同的用户数据查询结果,并将获取到的查询结果发送至呼叫处理装置,以便于呼叫处理装置进行后续路由。因为本方案中的查询结果能够表征服务器所属网络采用的路由方式,所以IMS用户与异地非IMS用户语音业务互通时,呼叫处理装置可以根据查询结果来选择路由方式。具体的,呼叫处理装置可以根据查询结果选择长途话务经由IMS网络承载,即采用“就远出IMS网络,就近入IMS网络”路由方式,也可以根据查询结果选择长途话务经由PSTN长途网络承载,即采用“就近出IMS网络,就远入IMS网络”路由方式,这样,能够最大限度的利用IMS网络,分流PSTN网的话务,减小PSTN网络的承载压力,从而有利于网络的演进与发展。In this solution, a data area at the same level as the data area storing the E164 number is added to the ENUM servers at all levels in the IMS network, and corresponding user data is stored in each data area of the ENUM servers at all levels, so that IMS users can communicate with each other. When voice services of non-IMS users in different places are interoperable, the call processing device needs to indicate in the query request which data area the user data is to be queried, that is, the query request needs to include a tag for instructing the server to query the data area of the user data. The user data stored in the data area is different, therefore, the server can obtain different user data query results in different data areas indicated by the label, and send the obtained query results to the call processing device, so that the call processing device can carry out subsequent operations. routing. Because the query result in this solution can represent the routing mode adopted by the network to which the server belongs, the call processing device can select the routing mode according to the query result when the IMS user communicates with a non-IMS user in a different place for voice services. Specifically, the call processing device may select the toll traffic to be borne by the IMS network according to the query result, that is, adopt the routing method of "leaving the IMS network as far as possible and entering the IMS network nearby", or may select the toll traffic to be borne by the PSTN toll network according to the query result In this way, the IMS network can be used to the maximum extent, the traffic of the PSTN network can be diverted, and the load pressure of the PSTN network can be reduced, which is beneficial to the evolution and development of the network. develop.

实施例三Embodiment three

本发明实施例提供一种服务器,如图12所示,该服务器可以包括通信接口20、处理器21、存储器22和系统总线23,其中,An embodiment of the present invention provides a server. As shown in FIG. 12 , the server may include a communication interface 20, a processor 21, a memory 22, and a system bus 23, wherein,

通信接口20、处理器21和存储器22之间通过系统总线23连接并完成相互间的通信。The communication interface 20 , the processor 21 and the memory 22 are connected through the system bus 23 and complete mutual communication.

处理器21可能为单核或多核中央处理器,或者为特定集成电路,或者为被配置成实施本发明实施例的一个或多个集成电路。The processor 21 may be a single-core or multi-core central processing unit, or a specific integrated circuit, or one or more integrated circuits configured to implement the embodiments of the present invention.

存储器22可以为高速RAM(Random Access Memory,随机存储器)存储器,也可以为非易失性存储器(non-volatile memory),例如,至少一个磁盘存储器。The memory 22 may be a high-speed RAM (Random Access Memory, Random Access Memory) memory, or a non-volatile memory (non-volatile memory), for example, at least one disk memory.

可选的,本发明实施例提供的服务器可以为一级ENUM服务器,也可以为二级ENUM服务器,本发明实施例不做限定。Optionally, the server provided in this embodiment of the present invention may be a first-level ENUM server or a second-level ENUM server, which is not limited in this embodiment of the present invention.

具体的,通信接口20,用于接收呼叫处理装置发送的查询请求,所述查询请求包括被叫用户的号码和标签,所述标签用于指示所述服务器查询用户数据的数据区域。Specifically, the communication interface 20 is configured to receive a query request sent by the call processing device, the query request includes the number of the called user and a tag, and the tag is used to instruct the server to query the data area of the user data.

具体的,处理器21,用于根据所述通信接口20接收到的所述被叫用户的号码,在所述标签指示的数据区域中查询所述被叫用户的用户数据,并获取所述用户数据的查询结果,所述查询结果用于表征所述服务器所属网络采用的路由方式。Specifically, the processor 21 is configured to query the user data of the called user in the data area indicated by the label according to the number of the called user received by the communication interface 20, and obtain the user data of the called user A query result of the data, the query result is used to characterize the routing mode adopted by the network to which the server belongs.

具体的,通信接口20,用于发送所述处理器21获取到的所述查询结果至所述呼叫处理装置。Specifically, the communication interface 20 is configured to send the query result acquired by the processor 21 to the call processing apparatus.

具体的,所述存储器22,用于存储第一数据区域的用户数据和第二数据区域的用户数据,所述第一数据区域和所述第二数据区域为所述服务器中的同一级数据区域。Specifically, the memory 22 is used to store user data in the first data area and user data in the second data area, the first data area and the second data area are data areas at the same level in the server .

所述第一数据区域中存储的用户数据至少包含第一手机号码的归属位置寄存器HLR识别码、所述第一手机号码的归属地区号与所述第一手机号码的归属网络域名的对应关系和第一固定电话号码的区号与所述第一固定电话号码的归属网络域名的对应关系;或者,至少包含所述第一手机号码与所述第一手机号码的会话初始化协议通用资源标识SIPURI的对应关系;所述第一手机号码的归属地的服务器和所述第一固定电话号码的归属地的服务器为所述服务器。The user data stored in the first data area at least includes the home location register HLR identification code of the first mobile phone number, the corresponding relationship between the home area code of the first mobile phone number and the home network domain name of the first mobile phone number, and The corresponding relationship between the area code of the first fixed telephone number and the domain name of the home network of the first fixed telephone number; or at least including the correspondence between the first mobile phone number and the SIP universal resource identifier SIPURI of the first mobile phone number Relationship; the server at the home of the first mobile phone number and the server at the home of the first fixed phone number are the servers.

所述第二数据区域中存储的用户数据至少包含所述第一固定电话号码的区号与所述第一固定电话号码的归属地的二级ENUM服务器的网络之间互联的协议IP地址的对应关系;或者,至少包含携带有归属地区号的第一手机号码的SIP URI和所述第一固定电话号码的SIP URI。The user data stored in the second data area at least includes the corresponding relationship between the area code of the first fixed telephone number and the IP address of the interconnection protocol between the network of the secondary ENUM server at the home of the first fixed telephone number ; Or, at least include the SIP URI of the first mobile phone number carrying the home area code and the SIP URI of the first fixed phone number.

进一步地,所述被叫用户的号码为所述第一手机号码或所述第一固定电话号码中的其中一个号码。Further, the number of the called user is one of the first mobile phone number or the first fixed phone number.

进一步地,所述处理器21,具体用于在所述源二级ENUM服务器的所述标签指示的数据区域中查询是否存在所述被叫用户的号码的SIP URI,以及具体用于若存在所述被叫用户的号码的SIP URI,则获取所述被叫用户的号码的SIP URI,以及具体用于若不存在所述被叫用户的号码的SIP URI,且所述被叫用户的号码的归属地的服务器是所述源二级ENUM服务器,则获取用户属性标识,所述用户属性标识用于标明所述被叫用户为非IP多媒体子系统IMS用户。Further, the processor 21 is specifically configured to inquire whether there is a SIP URI of the number of the called user in the data area indicated by the label of the source secondary ENUM server, and specifically to query if there is the SIP URI of the number of the called user. If the SIP URI of the number of the called user is obtained, the SIP URI of the number of the called user is obtained, and if there is no SIP URI of the number of the called user, and the SIP URI of the number of the called user If the server at the home location is the source secondary ENUM server, the user attribute identifier is obtained, and the user attribute identifier is used to indicate that the called user is a non-IP multimedia subsystem IMS user.

进一步地,所述通信接口20,具体用于若所述处理器21确定不存在所述被叫用户的号码的SIP URI,且所述被叫用户的号码的归属地的服务器不是所述源二级ENUM服务器,则发送所述查询请求至一级ENUM服务器。Further, the communication interface 20 is specifically configured to: if the processor 21 determines that there is no SIP URI of the number of the called user, and the server of the home of the number of the called user is not the source 2 If the first-level ENUM server is used, the query request is sent to the first-level ENUM server.

进一步地,所述通信接口20,具体用于接收所述一级ENUM服务器发送的所述查询结果。Further, the communication interface 20 is specifically configured to receive the query result sent by the primary ENUM server.

进一步地,所述处理器21,还用于在所述一级ENUM服务器的第一数据区域中查询所述被叫用户的号码的归属网络域名,并获取所述被叫用户的号码的归属网络域名;或者,还用于在所述一级ENUM服务器的第二数据区域中获取目的二级ENUM服务器的IP地址,所述目的二级ENUM服务器为所述被叫用户的归属地的服务器。Further, the processor 21 is further configured to query the home network domain name of the number of the called user in the first data area of the primary ENUM server, and obtain the home network domain name of the number of the called user. domain name; or, it is also used to obtain the IP address of the target secondary ENUM server in the second data area of the primary ENUM server, and the target secondary ENUM server is the server at the home of the called user.

进一步地,所述通信接口20,具体用于发送所述查询请求至所述目的二级ENUM服务器。Further, the communication interface 20 is specifically configured to send the query request to the target secondary ENUM server.

进一步地,所述通信接口20,具体用于接收所述目的二级ENUM服务器发送的查询结果。Further, the communication interface 20 is specifically configured to receive the query result sent by the target secondary ENUM server.

进一步地,所述处理器21,具体用于在所述目的二级ENUM服务器的所述标签指示的数据区域中查询是否存在所述被叫用户的号码的SIP URI,以及具体用于若存在所述被叫用户的号码的SIP URI,则获取所述被叫用户的号码的SIP URI,以及具体用于若不存在所述被叫用户的号码的SIP URI,则获取所述用户属性标识。Further, the processor 21 is specifically configured to inquire whether there is a SIP URI of the number of the called user in the data area indicated by the label of the target secondary ENUM server, and specifically to query if there is the SIP URI of the number of the called user. If the SIP URI of the number of the called user is obtained, the SIP URI of the number of the called user is obtained, and specifically used to obtain the user attribute identifier if there is no SIP URI of the number of the called user.

本发明的实施例提供一种服务器,主要包括通信接口、处理器和存储器。服务器在接收呼叫处理装置发送的包括有被叫用户的号码和标签的查询请求后,根据查询请求中被叫用户的号码,在标签指示的数据区域中查询被叫用户的用户数据,并获取该被叫用户的用户数据的查询结果,其中,该查询结果用于表征服务器所属网络采用的路由方式,然后,该服务器将查询结果发送至呼叫处理装置。An embodiment of the present invention provides a server, which mainly includes a communication interface, a processor, and a memory. After receiving the query request including the number of the called user and the tag sent by the call processing device, the server queries the user data of the called user in the data area indicated by the tag according to the number of the called user in the query request, and obtains the The query result of the user data of the called user, wherein the query result is used to characterize the routing mode adopted by the network to which the server belongs, and then the server sends the query result to the call processing device.

该方案通过在IMS网络中的各级ENUM服务器中增加一个与保存有E164号码的数据区域同一级的数据区域,并且在各级ENUM服务器的各个数据区域中存储相应的用户数据,使得IMS用户与异地非IMS用户语音业务互通时,呼叫处理装置需要在查询请求中指示查询哪个数据区域的用户数据,即查询请求中需要包含有用于指示服务器查询用户数据的数据区域的标签,由于服务器中的各个数据区域存储的用户数据不同,因此,服务器在标签指示的不同的数据区域中能够获取到不同的用户数据查询结果,并将获取到的查询结果发送至呼叫处理装置,以便于呼叫处理装置进行后续路由。因为本方案中的查询结果能够表征服务器所属网络采用的路由方式,所以IMS用户与异地非IMS用户语音业务互通时,呼叫处理装置可以根据查询结果来选择路由方式。具体的,呼叫处理装置可以根据查询结果选择长途话务经由IMS网络承载,即采用“就远出IMS网络,就近入IMS网络”路由方式,也可以根据查询结果选择长途话务经由PSTN长途网络承载,即采用“就近出IMS网络,就远入IMS网络”路由方式,这样,能够最大限度的利用IMS网络,分流PSTN长途网的话务,减小PSTN网络的承载压力,从而有利于网络的演进与发展。In this solution, a data area at the same level as the data area storing the E164 number is added to the ENUM servers at all levels in the IMS network, and corresponding user data is stored in each data area of the ENUM servers at all levels, so that IMS users can communicate with each other. When voice services of non-IMS users in different places are interoperable, the call processing device needs to indicate in the query request which data area the user data is to be queried, that is, the query request needs to include a tag for instructing the server to query the data area of the user data. The user data stored in the data area is different, therefore, the server can obtain different user data query results in different data areas indicated by the label, and send the obtained query results to the call processing device, so that the call processing device can carry out subsequent operations. routing. Because the query result in this solution can represent the routing mode adopted by the network to which the server belongs, the call processing device can select the routing mode according to the query result when the IMS user communicates with a non-IMS user in a different place for voice services. Specifically, the call processing device may select the toll traffic to be borne by the IMS network according to the query result, that is, adopt the routing method of "leaving the IMS network as far as possible and entering the IMS network nearby", or may select the toll traffic to be borne by the PSTN toll network according to the query result , that is, adopt the routing method of "going out of the IMS network nearby, and entering the IMS network far away", so that the IMS network can be used to the maximum extent, the traffic of the PSTN long-distance network can be diverted, and the load pressure of the PSTN network can be reduced, which is conducive to the evolution of the network and development.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (10)

1. A method for querying user data based on an IMS network is characterized by comprising the following steps:
the server receives an inquiry request sent by a call processing device, wherein the inquiry request comprises the number of a called user and a label, and the label is used for indicating the server to inquire a data area of user data;
the server inquires the user data of the called user in the data area indicated by the label according to the number of the called user, and acquires the inquiry result of the user data, wherein the inquiry result is used for representing the routing mode adopted by the network to which the server belongs, and the routing mode is a routing mode of entering the IMS network when the server is far away from the IMS network or a routing mode of entering the IMS network when the server is near to the IMS network;
and sending the query result to the call processing device.
2. The user data query method of claim 1,
the server at least comprises a first data area and a second data area, wherein the first data area and the second data area are the same level data area;
the user data stored in the first data area at least comprises a Home Location Register (HLR) identification code of a first mobile phone number, a corresponding relation between a home area code of the first mobile phone number and a home network domain name of the first mobile phone number, and a corresponding relation between an area code of a first fixed phone number and a home network domain name of the first fixed phone number; or at least comprising the corresponding relation between the first mobile phone number and the Session Initiation Protocol (SIP) Universal Resource Identifier (URI) of the first mobile phone number; the server of the attribution of the first mobile phone number and the server of the attribution of the first fixed phone number are the servers;
the user data stored in the second data area at least comprises the corresponding relation between the area code of the first fixed telephone number and the interconnected protocol IP address between the secondary telephone number mapping ENUM server and the network of the home location of the first fixed telephone number; or at least comprises an SIP URI of a first mobile phone number carrying a home area number and an SIP URI of the first fixed phone number;
the server is a primary ENUM server or a secondary ENUM server.
3. The method according to claim 2, wherein the number of the called subscriber is one of the first mobile phone number or one of the first fixed phone number; the server is a source secondary ENUM server, and the source secondary ENUM server is a server of a home of a calling subscriber;
the server, according to the number of the called user, querying the user data of the called user in the data area indicated by the label, and obtaining a query result of the data of the called user, includes:
the source secondary ENUM server inquires whether the SIP URI of the number of the called user exists in a data area indicated by the label of the source secondary ENUM server;
if the SIP URI of the number of the called user exists, the source secondary ENUM server acquires the SIP URI of the number of the called user; or,
if the SIP URI of the number of the called user does not exist and the server of the home location of the number of the called user is the source secondary ENUM server, the source secondary ENUM server acquires a user attribute identifier, and the user attribute identifier is used for marking the called user as a non-IP Multimedia Subsystem (IMS) user; or,
if the SIP URI of the number of the called user does not exist and the server of the home location of the number of the called user is not the source second-level ENUM server, the source second-level ENUM server sends the query request to a first-level ENUM server; and receiving the query result sent by the primary ENUM server.
4. The method as claimed in claim 3, wherein the server is the primary ENUM server, and wherein the server queries the subscriber data of the called subscriber in the data area indicated by the tag according to the number of the called subscriber, and obtains the query result of the data of the called subscriber, the method includes:
the primary ENUM server inquires the home network domain name of the number of the called user in a first data area of the primary ENUM server and acquires the home network domain name of the number of the called user; or,
the primary ENUM server acquires an IP address of a target secondary ENUM server in a second data area of the primary ENUM server, wherein the target secondary ENUM server is a server of a home location of the called user; sending the query request to the destination secondary ENUM server; and receiving the query result sent by the target secondary ENUM server.
5. The method as claimed in claim 4, wherein the server is the destination secondary ENUM server, and wherein the server queries the subscriber data of the called subscriber in the data area indicated by the tag according to the number of the called subscriber and obtains the query result of the data of the called subscriber, the method comprising:
the destination secondary ENUM server inquires whether the SIP URI of the number of the called user exists in a data area indicated by the label of the destination secondary ENUM server;
if the SIP URI of the number of the called user exists, the SIP URI of the number of the called user is obtained; or,
and if the SIP URI of the number of the called user does not exist, acquiring the user attribute identification.
6. A server, comprising:
a receiving unit, configured to receive an inquiry request sent by a call processing device, where the inquiry request includes a number of a called subscriber and a tag, and the tag is used to instruct the server to inquire a data area of subscriber data;
a processing unit, configured to query, according to the number of the called user received by the receiving unit, user data of the called user in a data area indicated by the tag, and obtain a query result of the user data, where the query result is used to characterize a routing manner adopted by a network to which the server belongs, and the routing manner is a routing manner that the called user is far away from an IMS network and enters the IMS network nearby, or a routing manner that the called user is far away from the IMS network nearby;
and the sending unit is used for sending the query result acquired by the processing unit to the call processing device.
7. The server according to claim 6, wherein the server further comprises a storage unit,
the storage unit is used for storing data of a first data area and data of a second data area, and the first data area and the second data area are the same level data area;
the user data stored in the first data area at least comprises a Home Location Register (HLR) identification code of a first mobile phone number, a corresponding relation between a home area code of the first mobile phone number and a home network domain name of the first mobile phone number, and a corresponding relation between an area code of a first fixed phone number and a home network domain name of the first fixed phone number; or at least comprising the corresponding relation between the first mobile phone number and the session initiation protocol universal resource identifier (SIP URI) of the first mobile phone number; the server of the attribution of the first mobile phone number and the server of the attribution of the first fixed phone number are the servers;
the user data stored in the second data area at least comprises the corresponding relation between the area code of the first fixed telephone number and the interconnected protocol IP address between the secondary telephone number mapping ENUM server and the network of the home location of the first fixed telephone number; or at least comprises an SIP URI of a first mobile phone number carrying a home area number and an SIP URI of the first fixed phone number;
the server is a primary ENUM server or a secondary ENUM server.
8. The server according to claim 7,
the number of the called user is one of the first mobile phone number or the first fixed phone number;
the processing unit is specifically configured to query whether an SIP URI of the number of the called user exists in a data area indicated by the tag of the source secondary ENUM server, and specifically configured to acquire the SIP URI of the number of the called user if the SIP URI of the number of the called user exists, and specifically configured to acquire a user attribute identifier if the SIP URI of the number of the called user does not exist and a server to which the number of the called user belongs is the source secondary ENUM server, where the user attribute identifier is used to indicate that the called user is a non-IP multimedia subsystem IMS user;
the sending unit is specifically configured to send the query request to a primary ENUM server if the processing unit determines that the SIP URI of the number of the called subscriber does not exist and the server of the home location of the number of the called subscriber is not the source secondary ENUM server;
the receiving unit is specifically configured to receive the query result sent by the primary ENUM server.
9. The server according to claim 8,
the processing unit is further configured to query a home network domain name of the number of the called subscriber in a first data area of the primary ENUM server, and acquire the home network domain name of the number of the called subscriber; or, the second data area is further used for acquiring an IP address of a destination secondary ENUM server in the second data area of the primary ENUM server, where the destination secondary ENUM server is a server of a home location of the called subscriber;
the sending unit is specifically configured to send the query request to the destination secondary ENUM server;
the receiving unit is specifically configured to receive the query result sent by the destination secondary ENUM server.
10. The server according to claim 9,
the processing unit is specifically configured to query whether an SIP URI of the number of the called user exists in a data area indicated by the tag of the destination secondary ENUM server, and specifically configured to acquire the SIP URI of the number of the called user if the SIP URI of the number of the called user exists, and specifically configured to acquire the user attribute identifier if the SIP URI of the number of the called user does not exist.
CN201410427964.4A 2014-08-27 2014-08-27 A kind of user data query method and device based on IMS network Active CN104168289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410427964.4A CN104168289B (en) 2014-08-27 2014-08-27 A kind of user data query method and device based on IMS network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410427964.4A CN104168289B (en) 2014-08-27 2014-08-27 A kind of user data query method and device based on IMS network

Publications (2)

Publication Number Publication Date
CN104168289A CN104168289A (en) 2014-11-26
CN104168289B true CN104168289B (en) 2017-06-06

Family

ID=51911913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410427964.4A Active CN104168289B (en) 2014-08-27 2014-08-27 A kind of user data query method and device based on IMS network

Country Status (1)

Country Link
CN (1) CN104168289B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603881A (en) * 2015-10-20 2017-04-26 中国电信股份有限公司 Method, device, and system of realizing call routing in IMS network
CN107645568B (en) * 2016-07-22 2021-06-22 中国电信股份有限公司 Method, device and system for realizing remote network access of IMS (IP multimedia subsystem) network
CN106789966B (en) * 2016-12-05 2020-08-14 广州海格通信集团股份有限公司 Call service routing processing method and system
US10863025B2 (en) * 2017-05-25 2020-12-08 T-Mobile Usa, Inc. Efficient robocall/scam identification with verification function
CN115766668B (en) * 2021-09-03 2024-11-08 中国移动通信集团山东有限公司 Automatic disaster recovery method, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442434A (en) * 2008-12-24 2009-05-27 华为技术有限公司 Method, system and apparatus for providing distinction service
CN101517999A (en) * 2006-07-20 2009-08-26 泰克莱克公司 Methods, systems, and computer program products for specifying a particular enum service type in a communications network that utilizes a plurality of different enum service types
CN101699813A (en) * 2009-11-16 2010-04-28 中兴通讯股份有限公司 Domain name processing method and domain name server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8270590B2 (en) * 2006-06-15 2012-09-18 Alcatel Lucent User message delivery to calling party device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101517999A (en) * 2006-07-20 2009-08-26 泰克莱克公司 Methods, systems, and computer program products for specifying a particular enum service type in a communications network that utilizes a plurality of different enum service types
CN101442434A (en) * 2008-12-24 2009-05-27 华为技术有限公司 Method, system and apparatus for providing distinction service
CN101699813A (en) * 2009-11-16 2010-04-28 中兴通讯股份有限公司 Domain name processing method and domain name server

Also Published As

Publication number Publication date
CN104168289A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
US8861508B2 (en) Routing a call setup request to a destination serving node in an IMS network
CN102348200B (en) Call routing method and system of number portability businesses as well as network element equipment
US9596640B2 (en) Method of routing a session from a calling party in a serving communication network of the calling party to a called party
CN103369159B (en) A kind of call processing method and equipment
CN106453345A (en) Call set-up method and system
CN104202786B (en) A kind of method and device for calling routing
CN104168289B (en) A kind of user data query method and device based on IMS network
CN103118347B (en) Method, system and query facility that a kind of terminal room short codes is called out
CN100571454C (en) A system and method for realizing number portability service
US8467795B2 (en) Location-based routing of IMS calls through femtocells
CN113329517B (en) Communication method and device
CN107135132A (en) A network interworking method, network entity, and control entity
CN109769242A (en) Communication means, system, MMTel and computer readable storage medium
CN110035040B (en) Method and device for signaling addressing
CN104168190B (en) A kind of method and device for calling routing
RU2454031C2 (en) Method, system and device for establishing association-control relations
CN103414700B (en) Method and device for calling routing
CN113286346B (en) Communication method, device, storage medium and system
CN103457938B (en) Route calling method, device and system
CN1941739B (en) Method and system for allocating and using user mark
CN104301450B (en) The method and device of addressing
CN112752260B (en) Equipment and method for number-carrying network-transfer transmitting end inquiry
US20110211684A1 (en) Method, device and system for judging call type
CN101951588B (en) Method and system for accessing server during roaming process of software phone or IP phone user
CN109661011B (en) An IMS call routing method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant