WO2014177068A1 - 一种与在线计费系统的交互方法、装置及服务器 - Google Patents

一种与在线计费系统的交互方法、装置及服务器 Download PDF

Info

Publication number
WO2014177068A1
WO2014177068A1 PCT/CN2014/076884 CN2014076884W WO2014177068A1 WO 2014177068 A1 WO2014177068 A1 WO 2014177068A1 CN 2014076884 W CN2014076884 W CN 2014076884W WO 2014177068 A1 WO2014177068 A1 WO 2014177068A1
Authority
WO
WIPO (PCT)
Prior art keywords
diameter protocol
format
charging
message
diameter
Prior art date
Application number
PCT/CN2014/076884
Other languages
English (en)
French (fr)
Inventor
杨建军
邵星星
周佳林
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP14791754.6A priority Critical patent/EP3068092A4/en
Publication of WO2014177068A1 publication Critical patent/WO2014177068A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/64On-line charging system [OCS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1425Charging, metering or billing arrangements for data wireline or wireless communications involving dedicated fields in the data packet for billing purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/61Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on the service used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/90Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP using Intelligent Networks [IN] or Advanced Intelligent Networks [AIN]

Definitions

  • the present invention relates to the field of intelligent network communication, and in particular, to a method, device and server for interacting with an online charging system.
  • OCS Online Charging System
  • the charging, according to the Diameter protocol field format, performing Diameter protocol encapsulation on the charging related information of the charging service, and obtaining a Diameter protocol request message includes: according to the Diameter protocol field format, from the charging related The information in the information parses the assignment information corresponding to the field parameter of each field that conforms to the Diameter protocol field format; According to the Diameter protocol field format and the Diameter protocol expression format, all the assignment information is encapsulated by Diameter protocol to obtain the Diameter protocol request message.
  • the Diameter protocol encapsulation is performed on all the assignment information according to the Diameter protocol field format and the Diameter protocol expression format, and the Diameter protocol request message is obtained according to the Diameter protocol field format and a message expression format.
  • the embodiment of the present invention further provides an interaction device with an online charging system, including: a determining module, configured to determine a Diameter protocol field format corresponding to the service type according to a service type of the charging service; And performing the Diameter protocol encapsulation on the charging related information of the charging service according to the Diameter protocol field format, to obtain a Diameter protocol request message; the first interaction module is configured to request a message according to the Diameter protocol, and the online charging system Interacting, requesting the online charging system to perform charging processing on the charging service.
  • the encapsulating module includes: a parsing submodule, configured to parse, according to the Diameter protocol field format, a field parameter corresponding to each field that conforms to the Diameter protocol field format from the charging related information And the encapsulation sub-module is configured to perform Diameter protocol encapsulation on all the assignment information according to the Diameter protocol field format and the Diameter protocol expression format to obtain the Diameter protocol request message.
  • a parsing submodule configured to parse, according to the Diameter protocol field format, a field parameter corresponding to each field that conforms to the Diameter protocol field format from the charging related information
  • the encapsulation sub-module is configured to perform Diameter protocol encapsulation on all the assignment information according to the Diameter protocol field format and the Diameter protocol expression format to obtain the Diameter protocol request message.
  • FIG. 4 is a block diagram of a logic module according to a preferred embodiment of the present invention.
  • the apparatus for flexibly implementing an online charging service includes: a data storage module 202, a configuration management module 201, and a service.
  • the configuration management module 201 provides an externally managed interface through which the operator can visually manage the Diameter parameter and the avp data stored in the data storage module 202. Further, the external interface can be an HTTP web access method or other access. the way.
  • the service group package unpacking module 203 is responsible for extracting the Diameter parameter and the avp parameter to be encoded from the data storage module 202 for logical coding, and sending it to the protocol conversion module 204; accepting the message from the protocol conversion module 204 and performing unpacking, and according to the data
  • the configuration of the storage module 202 is output; the protocol conversion module 204 is responsible for receiving the message from the service group package unpacking module 203 and then encoding it into a standard Diameter protocol packet and transmitting it to the 0CS online charging system; and is also responsible for receiving the standard from the 0CS online charging system.
  • the storage server obtains the user-configured charging parameters and dynamically encodes and decodes the charging Diameter parameters, and sends the code to the protocol conversion interface machine, and the protocol conversion interface machine sends the data to the OCS online charging system server; the OCS online charging system server After receiving the request, the response message is sent through internal processing, and the response message is first sent to the protocol conversion interface machine, and then the protocol conversion interface machine is sent to the charging service, so that the charging service can obtain the desired charging. Response information; and further control of the call.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Meter Arrangements (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供一种与在线计费系统的交互方法、装置及服务器。所述方法包括:根据计费业务的业务类型,确定与所述业务类型对应的Diameter协议字段格式;根据所述Diameter协议字段格式,对所述计费业务的计费相关信息进行Diameter协议封装,得到Diameter协议请求消息;根据所述Diameter协议请求消息,与在线计费系统交互,向在线计费系统请求对所述计费业务进行计费处理。本发明实施例提高了在线计费的效率。

Description

一种与在线计费系统的交互方法、 装置及服务器 技术领域 本发明涉及智能网通讯领域, 尤其涉及一种与在线计费系统的交互方法、 装置及 服务器。 背景技术 随着全业务经营时代的到来, 电信运营商展开了新一轮的市场竞争。 为了适应未 来业务发展的需要, 电信运营商正在不遗余力的提升业务系统的支撑能力。 OCS是电 信运营商提高其支撑能力的必要手段。 在线计费系统 (Online Charging System, 简称 为 OCS), 是 3GPP网络架构中最总要的组成部分之一。 OCS弥补了 BOSS系统的非 实时和 IN系统的不灵活;针对智能网系统对数据业务支持能力不足,能实现多业务的 支持; 整合了智能网平台、 业务管理平台与 BOSS系统数据孤立, 可以提升用户感知 体验, 灵活支持预付费后付费用户捆绑营销, 还可以有效的规避用户的欠费风险。 目前在智能网 (IN) 系统中的计费业务 (预付费或者后付费) 广泛需要和 OCS 系统对接。 一般来说 OCS计费系统对外开放直径 (Diameter) 协议, 即智能网计费业 务需要通过 Diameter协议和 OCS进行交互, 进而完成计费功能。 Diameter协议结构 如图 1所示。
Diameter协议由一个头以及跟随的一个或多个属性值对 (Attribute-Value-Pairs, 简称为 AVP) 组成。 其中 AVP结构如图 2所示。 一个 Diameter协议包中可以包含一个或者多个 AVP字段; AVP之间有层次结构; 每个 AVP字段都表示计费的一个字段, 比如主叫号码、 被叫号码、 业务类型、 开始时 间等。 在此类业务中进行 Diameter协议的编解码是一个非常繁琐的工作, 每次对 计费业务向 0CS发送 Diameter协议请求消息时,都需要业务开发者人工查看计 费业务对应的 Diameter协议字段格式并人工进行 Diameter协议字段格式的配 置, 从而导致在线计费的效率低下。 发明内容 有鉴于此, 本发明实施例的目的是提供一种与在线计费系统的交互方法、 装置及 服务器, 以提高在线计费的效率。 为解决上述技术问题, 本发明实施例提供方案如下: 本发明实施例提供一种与在线计费系统的交互方法, 包括: 根据计费业务的业务类型, 确定与所述业务类型对应的 Diameter协议字段格式; 根据所述 Diameter协议字段格式, 对所述计费业务的计费相关信息进行 Diameter 协议封装, 得到 Diameter协议请求消息; 根据所述 Diameter协议请求消息, 与在线计费系统交互, 向在线计费系统请求对 所述计费业务进行计费处理。 优选地, 所述根据计费业务的业务类型, 确定与所述业务类型对应的 Diameter协 议字段格式包括: 根据所述业务类型, 确定与所述业务类型对应的存储空间; 提取所述存储空间中存储的 Diameter协议字段格式作为所述 Diameter协议字段格 式。 优选地, 所述根据所述业务类型, 确定与所述业务类型对应的存储空间之前, 还 包括: 获取所述业务类型对应的 Diameter协议字段格式更新信息; 根据所述 Diameter协议字段格式更新信息, 对所述存储空间中存储的 Diameter 协议字段格式进行更新。 优选地, 所述根据所述 Diameter协议字段格式, 对所述计费业务的计费相关信息 进行 Diameter协议封装, 得到 Diameter协议请求消息包括: 根据所述 Diameter 协议字段格式, 从所述计费相关信息中解析出与符合所述 Diameter协议字段格式的每个字段的字段参数对应的赋值信息; 根据所述 Diameter协议字段格式和 Diameter协议表达格式,对所有所述赋值信息 进行 Diameter协议封装, 得到所述 Diameter协议请求消息。 优选地, 所述根据所述 Diameter协议字段格式和 Diameter协议表达格式, 对所有 所述赋值信息进行 Diameter协议封装, 得到所述 Diameter协议请求消息包括: 根据所述 Diameter协议字段格式和消息表达格式, 对所有所述赋值信息进行消息 封装, 得到满足所述消息表达格式的消息; 根据所述消息表达格式到所述 Diameter协议表达格式的格式转换方式, 对所述满 足所述消息表达格式的消息进行格式转换, 得到所述 Diameter协议请求消息。 优选地, 还包括: 与在线计费系统交互, 从在线计费系统接收针对所述 Diameter协议请求消息的
Diameter响应消息, 所述 Diameter响应消息中携带有针对所述计费相关信息的计费响 应信息; 根据所述 Diameter协议字段格式, 对所述 Diameter响应消息进行 Diameter协议 解封装, 得到所述计费响应信息。 本发明实施例还提供一种与在线计费系统的交互装置, 包括: 确定模块,设置为根据计费业务的业务类型,确定与所述业务类型对应的 Diameter 协议字段格式; 封装模块, 设置为根据所述 Diameter协议字段格式, 对所述计费业务的计费相关 信息进行 Diameter协议封装, 得到 Diameter协议请求消息; 第一交互模块, 设置为根据所述 Diameter协议请求消息, 与在线计费系统交互, 向在线计费系统请求对所述计费业务进行计费处理。 优选地, 所述确定模块包括: 确定子模块, 设置为根据所述业务类型, 确定与所述业务类型对应的存储空间; 提取子模块, 设置为提取所述存储空间中存储的 Diameter协议字段格式作为所述 Diameter协议字段格式。 优选地, 还包括: 获取模块, 设置为所述确定子模块根据所述业务类型, 确定与所述业务类型对应 的存储空间之前, 获取所述业务类型对应的 Diameter协议字段格式更新信息; 更新模块, 设置为所述确定子模块根据所述业务类型, 确定与所述业务类型对应 的存储空间之前, 根据所述 Diameter协议字段格式更新信息, 对所述存储空间中存储 的 Diameter协议字段格式进行更新。 优选地, 所述封装模块包括: 解析子模块, 设置为根据所述 Diameter协议字段格式, 从所述计费相关信息中解 析出与符合所述 Diameter协议字段格式的每个字段的字段参数对应的赋值信息; 封装子模块, 设置为根据所述 Diameter协议字段格式和 Diameter协议表达格式, 对所有所述赋值信息进行 Diameter协议封装, 得到所述 Diameter协议请求消息。 优选地, 所述封装子模块包括: 封装单元, 设置为根据所述 Diameter协议字段格式和消息表达格式, 对所有所述 赋值信息进行消息封装, 得到满足所述消息表达格式的消息; 转换单元, 设置为根据所述消息表达格式到所述 Diameter协议表达格式的格式转 换方式, 对所述满足所述消息表达格式的消息进行格式转换, 得到所述 Diameter协议 请求消息。 优选地, 还包括: 第二交互模块, 设置为与在线计费系统交互, 从在线计费系统接收针对所述 Diameter协议请求消息的 Diameter响应消息,所述 Diameter响应消息中携带有针对所 述计费相关信息的计费响应信息; 解封装模块, 设置为根据所述 Diameter协议字段格式, 对所述 Diameter响应消息 进行 Diameter协议解封装, 得到所述计费响应信息。 本发明实施例还提供一种包括以上所述的与在线计费系统的交互装置的服务器。 从以上所述可以看出, 本发明实施例至少具有如下有益效果: 根据计费业务的业务类型得到对计费相关信息进行 Diameter协议封装所需的字段 格式, 而不需要人工查看计费业务对应的 Diameter协议字段格式并人工进行 Diameter 协议字段格式的配置, 从而提高了在线计费的效率。 附图说明 图 1表示 Diameter协议结构示意图; 图 2表示 AVP结构示意图; 图 3表示本发明实施例提供的一种与在线计费系统的交互方法的步骤流程图; 图 4表示本发明实施例的较佳实施方式的逻辑模块装置图; 图 5表示本发明实施例的较佳实施方式的流程图 1 ; 图 6表示本发明实施例的较佳实施方式的流程图 2; 图 7表示本发明实施例的较佳实施方式的流程图 3。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合附图及具体实 施例对本发明实施例进行详细描述。 图 3表示本发明实施例提供的一种与在线计费系统的交互方法的步骤流程图, 参 照图 3, 本发明实施例提供一种与在线计费系统的交互方法, 包括如下步骤: 步骤 101, 根据计费业务的业务类型, 确定与该业务类型对应的 Diameter协议字 段格式; 步骤 102, 根据该 Diameter协议字段格式, 对该计费业务的计费相关信息进行 Diameter协议封装, 得到 Diameter协议请求消息; 步骤 103, 根据该 Diameter协议请求消息, 与在线计费系统交互, 向在线计费系 统请求对该计费业务进行计费处理。 可见, 通过上述方式, 可以根据计费业务的业务类型得到对计费相关信息进行 Diameter协议封装所需的字段格式, 而不需要人工查看计费业务对应的 Diameter协议 字段格式并人工进行 Diameter协议字段格式的配置, 从而提高了在线计费的效率。 其中, 该业务类型例如: 预付费业务, 虚拟专用网 (VPN) 业务, 被叫付费业务 坐坐 该 Diameter协议字段格式包括:符合标准 Diameter协议的消息头部字段中包括的 信息字段, AVP字段的数目, AVP字段之间的层次结构信息和每个 AVP字段中包括 的信息字段。 该计费相关信息可以为该计费业务中与该 Diameter协议字段格式中的字段参数有 关的信息。 在本发明实施例中, 该根据计费业务的业务类型, 确定与该业务类型对应的 Diameter协议字段格式可以包括: 根据该业务类型, 确定与该业务类型对应的存储空间; 提取该存储空间中存储的 Diameter协议字段格式作为该 Diameter协议字段格式。 优选地,考虑到业务类型对应的 Diameter协议字段格式可能发生改变,则可以有: 根据该业务类型, 确定与该业务类型对应的存储空间之前, 还包括: 获取该业务类型对应的 Diameter协议字段格式更新信息; 根据该 Diameter协议字段格式更新信息,对该存储空间中存储的 Diameter协议字 段格式进行更新。 在本发明实施例中, 根据该 Diameter协议字段格式, 对该计费业务的计费相关信 息进行 Diameter协议封装, 得到 Diameter协议请求消息可以包括: 根据该 Diameter协议字段格式, 从该计费相关信息中解析出与符合该 Diameter 协议字段格式的每个字段中包括的信息字段对应的赋值信息; 根据该 Diameter协议字段格式和 Diameter协议表达格式,对所有该赋值信息进行 Diameter协议封装, 得到该 Diameter协议请求消息。 优选地, 为了实现上的方便, 可以对 Diameter协议封装过程引入中间消息, 于是 可以有: 根据该 Diameter协议字段格式和 Diameter协议表达格式,对所有该赋值信息进行
Diameter协议封装, 得到该 Diameter协议请求消息包括: 根据该 Diameter协议字段格式和消息表达格式,对所有该赋值信息进行消息封装, 得到满足该消息表达格式的消息; 根据该消息表达格式到该 Diameter协议表达格式的格式转换方式, 对该满足该消 息表达格式的消息进行格式转换, 得到该 Diameter协议请求消息。 其中, 该消息表达格式例如: 一个标准的 C语言数据结构, 此结构中含有计费信 息, 比如计费主叫号码 strChargecaller, 长度 30位; 计费的被叫号码 strChargecalled, 长度 30位; 此 c语言结构中还可以包含子结构。 在本发明实施例中, 还可以包括: 与在线计费系统交互, 从在线计费系统接收针对该 Diameter 协议请求消息的 Diameter响应消息, 该 Diameter响应消息中携带有针对该计费相关信息的计费响应信 息; 根据该 Diameter协议字段格式, 对该 Diameter响应消息进行 Diameter协议解封 装, 得到该计费响应信息。 为将本发明实施例阐述得更加清楚明白,下面提供本发明实施例的较佳实施方式。 本较佳实施方式提供一种灵活实现在线计费业务的方法和装置, 利用在线计费系 统 OCS灵活地实现在线计费业务。 在计费业务中进行 Diameter协议的编解码是一个非常繁琐的工作, 占据了业务开 发者的大部分时间, 如果在修改 Diameter头部字段或者修改某个 AVP的头部信息, 必须要修改代码才能完成, 这个周期无疑是比较长的, 且在版本上线时这样的小修改 是比较频繁的; 同时在一定范围内 (业务支持的 AVP列表内) 增加或删除 AVP也必 须修改代码, 这个周期就更加长了。 同时此部分 Diameter编解码还无法很好的进行跨 业务移植, 也就是如果开发了一个业务的计费功能, 那么下个业务中还要继续重新开 发一遍, 无法快速的提供业务满足电信运营商的要求。 本较佳实施方式专注于解决上述遇到的问题, 开发者能够简单配置调用就可以完 成和 OCS对接的 Diameter协议的编解码, 开发者可以集中精力解决业务流程问题; 同时运维者可以在不修改版本的基础上灵活的配置 Diameter和 AVP的头部信息, 在 业务支持的 AVP范围内增加删除 AVP参数, 以满足现网运行需求。 图 4表示本发明实施例的较佳实施方式的逻辑模块装置图, 参照图 4, 本较佳实 施方式提供的灵活实现在线计费业务的装置包含: 数据存储模块 202、 配置管理模块 201、 业务组包解包模块 203和协议转换模块 204。 其中, 数据存储模块 202存储可灵活配置的 Diameter参数, 包括各类 avp数据; 在配置管理模块 201中至少要包含三张数据表, 其中第一张表存储了 Diameter协议的 消息头信息, 第二张表存储计费需要使用到的所有请求 AVP的信息, 并且 AVP要有 层次结构的信息, 第三张表为计费业务需要解析的响应 AVP的信息。 进一步的, 第一 禾中表可以包含如下信息: version, command flags, command code, application id等参 数, 此几个参数都为标准的 Diameter消息头域的信息; 进一步的, 第二张表中的每个 AVP信息可以包含如下字段:, avp code, avp flags, vendor id, avp level, avp type, avp value type, 其中 avp code, avp flags, verdor id为标准的 avp头部信息, avp code 用于唯一的标识一个 avp; avp flags用于告诉接收者如何处理每个属性; verdor id为制 造商 id, 可选; avp level为 avp的层次表示, 为正整数, 1表示一级 avp, 2表示 2级 avp, 以此类推; avp type为 avp的数据类型, 比如 Grouped, OctetString, Integer32, Integer64, Unsigned32, Unsigned64, Time, UTF8 String, Enumerated等数据类型; avp value type为计费 IN业务中每个 avp的叶子节点 (即 avp type不为 Grouped类型) 的 值做的分类, 比如 0为 Grouped类型, 1为主叫号码, 2为被叫号码等等, 计费业务可 以依照此实际的 avp值分类给每个 avp进行赋值; 如果类型为特殊值 10000, 则表示 未知, 意思是有其他模块给此 avp赋值; 进一步的, 第三张表中, 可以包含如下信息: avp code, avp level, avptype, 用户配置需要从 Diameter响应消息中解码的 avp code, 系统会自动解析出此 avp code的值。 配置管理模块 201提供一个对外管理的接口, 运维者可以通过这个接口可视化地 管理数据存储模块 202中存储的 Diameter参数和 avp数据; 进一步的, 对外接口可以 是 HTTP的 web访问方法或者是其他访问方式。 业务组包解包模块 203负责从数据存储模块 202中提取要编码的 Diameter参数和 avp参数进行逻辑编码, 并发送给协议转换模块 204; 从协议转换模块 204接受消息并 进行解包, 并按照数据存储模块 202的配置进行输出; 协议转换模块 204 负责从业务组包解包模块 203 接收消息然后编码为标准的 Diameter协议包并发送给 0CS在线计费系统; 同时负责从 0CS在线计费系统接收标 准的 Diameter协议包, 并转换为内部消息结构发送给业务组包解包模块 203, 此时业 务组包解包模块 203就可以解出数据存储模块 202配置的要求解出的数据。 下面给出灵活实现在线计费业务的装置的一个实施例: 运维者的管理终端 200, 一般通过 web浏览器进行配置管理, 进行 Diameter协议 参数和 avp的配置; 配置管理模块 201, 一般是一个 web模块, 负责直接接收用户的管理配置请求, 并规整入库保存, 存入数据存储模块 202; 数据存储模块 202, 一般是一个数据库模块, 其上创建有经过设计的用于保存用 户配置管理的数据表结构; 业务组包解包模块 203, 其本身不能单独运行, 一般被智能网业务调用。 其负责 完成依照数据存储模块 202的数据进行动态的编解码, 这通常由业务组包解包模块中 的业务编解码模块完成; 业务组包解包模块 203和协议转换模块 204通讯; 协议转换模块 204,负责内部消息和 Diameter协议之间的转换;其对外直接和 OCS 在线计费系统通讯。
OCS在线计费系统, 是在线计费的核心实体, 对外为标准的 Diameter协议; 可以 完成用户账户的管理, 对计费请求进行授权和确认。 本较佳实施方式提供的灵活实现在线计费的方法如下: 步骤一, 用户通过 bs方式 (web浏览器方式) 或者 cs方式 (客户端方式) 访问 配置管理服务器, 配置管理服务器向数据存储服务器存储数据, 其中数据存储服务器 中可以包含如上三张表的信息; 步骤二, 在智能业务应用服务器 (AS)上运行的计费业务, 从数据存储服务器中 提取步骤一配置的数据, 并做内部编码后发送给协议转换接口机; 步骤三, 协议转换接口机从智能业务应用服务器接收内部消息并转换为标准的 Diameter协议请求消息发送给 OCS在线计费系统服务器; 步骤四, OCS在线计费系统服务器处理请求后, 返回 Diameter协议响应消息给协 议转换接口机, 协议转换接口机转换为内部消息发送给智能业务应用服务器; 计费业 务并依据数据存储服务器存储的用户配置的 avp参数解析输出, 供计费业务逻辑控制 使用。 下面给出灵活实现在线计费业务的方法的一个实施例, 参照图 5~7所示。 图 5提供了本实施例的 Diameter协议字段格式的配置及更新的具体实现方式的例 子: 用户登录 WEB浏览器设置 Diameter协议计费参数, 经过配置管理模块存储到数 据存储模块中。 图 5提供的流程可以完成用户通过 bs方式或者 cs方式配置管理计费 数据到数据存储服务器。 图 6提供了对计费相关信息进行 Diameter协议封装得到 Diameter协议请求消息、 与在线计费系统交互、 解析 Diameter响应消息的具体实现方式的例子: 图 5提供的流 程主要描述计费业务如何从数据存储服务器获得用户配置的计费参数进而动态地进行 计费 Diameter参数的编解码, 编码后发给协议转换接口机, 有协议转换接口机发送给 OCS在线计费系统服务器; OCS在线计费系统服务器接收到请求后, 经过内部的处理 给出响应消息, 响应消息首先发给协议转换接口机, 然后有协议转换接口机在发送给 计费业务, 这样计费业务就可以取到想要的计费响应信息; 进而进一步地对呼叫进行 控制。 图 7提供了根据该 Diameter协议字段格式和消息表达格式, 对所有该赋值信息进 行消息封装, 得到满足该消息表达格式的消息的具体实现方式的例子, 详细说明了计 费业务如何依据从数据存储服务器提取的信息进行 Diameter消息的组包。 具体地, 计 费业务从数据存储服务器一次性提取数据到内存; 然后, 根据提取出的数据, 赋值内 部消息的 Diameter消息头; 然后, 按照与 Diameter协议请求消息中 AVP字段之间的 结构关系对应的次序, 依次顺序提取 AVP参数并构造 AVP, 直到构造完成最后一个 AVP字段, 再按照 Diameter协议请求消息中各字段之间的结构关系进行组装, 得到内 部消息。 本发明实施例还提供一种与在线计费系统的交互装置, 包括: 确定模块, 设置为根据计费业务的业务类型, 确定与该业务类型对应的 Diameter 协议字段格式; 封装模块, 设置为根据该 Diameter协议字段格式, 对该计费业务的计费相关信息 进行 Diameter协议封装, 得到 Diameter协议请求消息; 第一交互模块, 设置为根据该 Diameter协议请求消息, 与在线计费系统交互, 向 在线计费系统请求对该计费业务进行计费处理。 可见, 通过上述方式, 可以根据计费业务的业务类型得到对计费相关信息进行 Diameter协议封装所需的字段格式, 而不需要人工查看计费业务对应的 Diameter协议 字段格式并人工进行 Diameter协议字段格式的配置, 从而提高了在线计费的效率。 在本发明实施例中, 该确定模块可以包括: 确定子模块, 设置为根据该业务类型, 确定与该业务类型对应的存储空间; 提取子模块, 设置为提取该存储空间中存储的 Diameter 协议字段格式作为该 Diameter协议字段格式。 优选地, 还可以包括: 获取模块, 设置为该确定子模块根据该业务类型, 确定与该业务类型对应的存储 空间之前, 获取该业务类型对应的 Diameter协议字段格式更新信息; 更新模块, 设置为该确定子模块根据该业务类型, 确定与该业务类型对应的存储 空间之前, 根据该 Diameter协议字段格式更新信息, 对该存储空间中存储的 Diameter 协议字段格式进行更新。 在本发明实施例中, 该封装模块可以包括: 解析子模块, 设置为根据该 Diameter协议字段格式, 从该计费相关信息中解析出 与符合该 Diameter协议字段格式的每个字段的字段参数对应的赋值信息; 封装子模块, 设置为根据该 Diameter协议字段格式和 Diameter协议表达格式, 对 所有该赋值信息进行 Diameter协议封装, 得到该 Diameter协议请求消息。 其中, 该封装子模块可以包括: 封装单元, 设置为根据该 Diameter协议字段格式和消息表达格式, 对所有该赋值 信息进行消息封装, 得到满足该消息表达格式的消息; 转换单元, 设置为根据该消息表达格式到该 Diameter协议表达格式的格式转换方 式, 对该满足该消息表达格式的消息进行格式转换, 得到该 Diameter协议请求消息。 在本发明实施例中, 还可以包括: 第二交互模块,设置为与在线计费系统交互,从在线计费系统接收针对该 Diameter 协议请求消息的 Diameter响应消息,该 Diameter响应消息中携带有针对该计费相关信 息的计费响应信息; 解封装模块, 设置为根据该 Diameter协议字段格式, 对该 Diameter响应消息进行
Diameter协议解封装, 得到该计费响应信息。 本发明实施例还提供一种服务器, 该服务器包括以上所述的与在线计费系统的交 互装置。 以上所述仅是本发明实施例的实施方式, 应当指出, 对于本技术领域的普通技术 人员来说, 在不脱离本发明实施例原理的前提下, 还可以作出若干改进和润饰, 这些 改进和润饰也应视为本发明实施例的保护范围。 工业实用性 本发明实施例提供的技术方案可以应用于智能网通讯领域, 根据计费业务的业务 类型得到对计费相关信息进行 Diameter协议封装所需的字段格式, 而不需要人工查看 计费业务对应的 Diameter协议字段格式并人工进行 Diameter协议字段格式的配置,从 而提高了在线计费的效率。

Claims

权 利 要 求 书
1. 一种与在线计费系统的交互方法, 包括:
根据计费业务的业务类型,确定与所述业务类型对应的 Diameter协议字段 格式;
根据所述 Diameter协议字段格式, 对所述计费业务的计费相关信息进行 Diameter协议封装, 得到 Diameter协议请求消息;
根据所述 Diameter协议请求消息, 与在线计费系统交互, 向在线计费系统 请求对所述计费业务进行计费处理。
2. 如权利要求 1所述的方法, 其中, 所述根据计费业务的业务类型, 确定与所述 业务类型对应的 Diameter协议字段格式包括:
根据所述业务类型, 确定与所述业务类型对应的存储空间; 提取所述存储空间中存储的 Diameter协议字段格式作为所述 Diameter协议 字段格式。
3. 如权利要求 2所述的方法, 其中, 所述根据所述业务类型, 确定与所述业务类 型对应的存储空间之前, 还包括:
获取所述业务类型对应的 Diameter协议字段格式更新信息; 根据所述 Diameter 协议字段格式更新信息, 对所述存储空间中存储的 Diameter协议字段格式进行更新。
4. 如权利要求 1所述的方法, 其中, 所述根据所述 Diameter协议字段格式, 对所 述计费业务的计费相关信息进行 Diameter协议封装,得到 Diameter协议请求消 息包括:
根据所述 Diameter协议字段格式, 从所述计费相关信息中解析出与符合所 述 Diameter协议字段格式的每个字段的字段参数对应的赋值信息;
根据所述 Diameter协议字段格式和 Diameter协议表达格式,对所有所述赋 值信息进行 Diameter协议封装, 得到所述 Diameter协议请求消息。
5. 如权利要求 4 所述的方法, 其中, 所述根据所述 Diameter 协议字段格式和 Diameter协议表达格式, 对所有所述赋值信息进行 Diameter协议封装, 得到所 述 Diameter协议请求消息包括:
根据所述 Diameter协议字段格式和消息表达格式,对所有所述赋值信息进 行消息封装, 得到满足所述消息表达格式的消息;
根据所述消息表达格式到所述 Diameter协议表达格式的格式转换方式,对 所述满足所述消息表达格式的消息进行格式转换,得到所述 Diameter协议请求 消息。
6. 如权利要求 1所述的方法, 其中, 还包括:
与在线计费系统交互, 从在线计费系统接收针对所述 Diameter协议请求消 息的 Diameter响应消息,所述 Diameter响应消息中携带有针对所述计费相关信 息的计费响应信息;
根据所述 Diameter协议字段格式,对所述 Diameter响应消息进行 Diameter 协议解封装, 得到所述计费响应信息。
7. 一种与在线计费系统的交互装置, 包括:
确定模块, 设置为根据计费业务的业务类型, 确定与所述业务类型对应的 Diameter协议字段格式;
封装模块, 设置为根据所述 Diameter协议字段格式, 对所述计费业务的计 费相关信息进行 Diameter协议封装, 得到 Diameter协议请求消息;
第一交互模块, 设置为根据所述 Diameter协议请求消息, 与在线计费系统 交互, 向在线计费系统请求对所述计费业务进行计费处理。
8. 如权利要求 7所述的装置, 其中, 所述确定模块包括: 确定子模块, 设置为根据所述业务类型, 确定与所述业务类型对应的存储 空间;
提取子模块, 设置为提取所述存储空间中存储的 Diameter协议字段格式作 为所述 Diameter协议字段格式。
9. 如权利要求 8所述的装置, 其中, 还包括: 获取模块, 设置为所述确定子模块根据所述业务类型, 确定与所述业务类 型对应的存储空间之前, 获取所述业务类型对应的 Diameter协议字段格式更新 信息;
更新模块, 设置为所述确定子模块根据所述业务类型, 确定与所述业务类 型对应的存储空间之前, 根据所述 Diameter协议字段格式更新信息, 对所述存 储空间中存储的 Diameter协议字段格式进行更新。
10. 如权利要求 7所述的装置, 其中, 所述封装模块包括:
解析子模块, 设置为根据所述 Diameter协议字段格式, 从所述计费相关信 息中解析出与符合所述 Diameter协议字段格式的每个字段的字段参数对应的赋 值信息;
封装子模块,设置为根据所述 Diameter协议字段格式和 Diameter协议表达 格式,对所有所述赋值信息进行 Diameter协议封装,得到所述 Diameter协议请 求消息。
11. 如权利要求 10所述的装置, 其中, 所述封装子模块包括:
封装单元, 设置为根据所述 Diameter协议字段格式和消息表达格式, 对所 有所述赋值信息进行消息封装, 得到满足所述消息表达格式的消息;
转换单元, 设置为根据所述消息表达格式到所述 Diameter协议表达格式的 格式转换方式, 对所述满足所述消息表达格式的消息进行格式转换, 得到所述 Diameter协议请求消息。
12. 如权利要求 7所述的装置, 其中, 还包括: 第二交互模块, 设置为与在线计费系统交互, 从在线计费系统接收针对所 述 Diameter协议请求消息的 Diameter响应消息, 所述 Diameter响应消息中携 带有针对所述计费相关信息的计费响应信息;
解封装模块, 设置为根据所述 Diameter协议字段格式, 对所述 Diameter 响应消息进行 Diameter协议解封装, 得到所述计费响应信息。
13. 一种服务器,包括如权利要求 7至 12中任一权利要求所述的与在线计费系统的 交互装置。
PCT/CN2014/076884 2013-11-05 2014-05-06 一种与在线计费系统的交互方法、装置及服务器 WO2014177068A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP14791754.6A EP3068092A4 (en) 2013-11-05 2014-05-06 METHOD AND DEVICE FOR INTERACTING WITH ONLINE INVOICING SYSTEM, AND SERVER

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310542459.X 2013-11-05
CN201310542459.XA CN104618125B (zh) 2013-11-05 2013-11-05 一种与在线计费系统的交互方法、装置及服务器

Publications (1)

Publication Number Publication Date
WO2014177068A1 true WO2014177068A1 (zh) 2014-11-06

Family

ID=51843148

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076884 WO2014177068A1 (zh) 2013-11-05 2014-05-06 一种与在线计费系统的交互方法、装置及服务器

Country Status (3)

Country Link
EP (1) EP3068092A4 (zh)
CN (1) CN104618125B (zh)
WO (1) WO2014177068A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204859A (zh) * 2016-03-18 2017-09-26 华为技术有限公司 传输报文的方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686135A (zh) * 2008-09-28 2010-03-31 中兴通讯股份有限公司 一种实现ims多媒体会议业务计费的方法
CN102025699A (zh) * 2009-09-22 2011-04-20 华为技术有限公司 一种Diameter消息的封装、解封装方法和装置
US20120005357A1 (en) * 2009-04-01 2012-01-05 Nokia Siemens Networks Oy Delegate procedure for an authentication, authorization and accounting protocol

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212532B (zh) * 2006-12-30 2010-05-19 中国电信股份有限公司 一种融合的计费系统和方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686135A (zh) * 2008-09-28 2010-03-31 中兴通讯股份有限公司 一种实现ims多媒体会议业务计费的方法
US20120005357A1 (en) * 2009-04-01 2012-01-05 Nokia Siemens Networks Oy Delegate procedure for an authentication, authorization and accounting protocol
CN102025699A (zh) * 2009-09-22 2011-04-20 华为技术有限公司 一种Diameter消息的封装、解封装方法和装置

Also Published As

Publication number Publication date
CN104618125A (zh) 2015-05-13
CN104618125B (zh) 2019-08-23
EP3068092A1 (en) 2016-09-14
EP3068092A4 (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US11627225B2 (en) System and method for programmatic device connectivity
CN106559251A (zh) 一种基于yang模型的编译方法、及对应的接口、组件和系统
US9253218B2 (en) Interface for connecting a network element to a session initiation protocol application server
CN107547213B (zh) 一种业务规则的识别方法及装置
WO2010130165A1 (zh) 一种基于互联网的开放式电信业务生成系统及方法
CN109358880A (zh) 一种通用网关配置方法及装置
CN102244666A (zh) M2m平台处理报文的方法和m2m平台系统
WO2014139270A1 (zh) 智能业务系统的业务实现方法及装置、智能业务系统
CN102711070B (zh) 一种在线计费模拟测试系统和方法
US20170257490A1 (en) Charging control apparatus, method, and system
WO2016011831A1 (zh) 计费方法和设备、接入设备、服务质量控制方法和设备
WO2014177068A1 (zh) 一种与在线计费系统的交互方法、装置及服务器
CN106507382B (zh) 一种Diameter消息路由方法和路由代理节点
CN109891857A (zh) 防止中立主机网络中移动会话标识符的冲突
US9992638B1 (en) System and method of facilitating management of common channel based services
CN102255734A (zh) 内容业务的计费方法、装置以及系统
EP3121998A1 (en) Generic multichannel center for network applications and services
CN107846300B (zh) 一种提供业务接口的方法及装置
WO2011157027A1 (zh) 一种Diameter协议接口装置及其实现方法
US20090041014A1 (en) Obtaining Information From Tunnel Layers Of A Packet At A Midpoint
CN115134097B (zh) 终端设备的核查方法及装置、存储介质、电子设备
CN103631716B (zh) 一种调试命令的转换方法和设备
KR100666711B1 (ko) 개방형 모바일 비즈니스 지원 시스템에서 메시지 전송 후실시간 리포트 제공 장치 및 방법
CN116996842A (zh) 一种计费方法及装置
WO2022214504A1 (en) Method and apparatus for identifier translation

Legal Events

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

Ref document number: 14791754

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014791754

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014791754

Country of ref document: EP