中国电信在线计费系统OCP接口规范
第6章 接口定义
6.1 消息定义
在以下的表述中,“<>”符号表示必选而且位置必须是在消息的开头,“{}”符号表示必选,“[]”符号表示可选,“*[]”符号表示可重复的可选项。
M 必选 C 条件可选
OM 运行商定义的必选项 OC 运营商定义的条件可选项
6.1.1 Credit-Control-Request (CCR)
信用控制请求Credit-Control-Request (CCR),用命令码设置为272,消息标志‘R’设置来表示。该命令用于信用控制的请求。
消息格式如下:
{Origin-Host} {Origin-Realm}
{Destination-Realm} {Auth-Application-Id} {Service-Context-Id} {CC-Request-Type} {CC-Request-Number} [Destination-Host] [User-Name] [Origin-State-Id] [Event-Timestamp] *[Subscription-Id] [Termination-Cause] *[Route-Record] [Service-Identifier] [Requested-Action]
[Requested-Service-Unit] *[Used-Service-Unit]
[Multiple-Services-Indicator]
26
中国电信在线计费系统OCP接口规范
*[Multiple-Services-Credit-Control] [CC-Correlation-Id] [User-Equipment-Info] *[Proxy-Info]
[Service-Information] [AoC-Information]
Credit-Control-Request AVP如表2所示:
表 2:Credit-Control-Request AVP表
AVP名称
中国电信在线计费系统OCP接口规范
AVP名称 [CC-Total-Octets] [CC-Input-Octets] [CC-Output-Octets] [CC-Service-Specific-Units] *[Used-Service-Unit] [ Reporting-Reason ] [Tariff-Change-Usage] [CC-Time] [CC-Money] {Unit-Value} {Value-Digits} [Exponent] [Currency-Code] [CC-Total-Octets] [CC-Input-Octets] [CC-Output-Octets] [CC-Service-Specific-Units] [Rating-Group] [CC-Correlation-Id] [User-Equipment-Info] {User-Equipment-Info-Type} {User-Equipment-Info-Value} *[Proxy-Info] {Proxy-Host} {Proxy-State} {Service-Information} [PS-Information] [IN-Information] [P2PSMS-Information] [ISMP-Information] [DSL-Information] [PSTN-Event-Information] [Recharge-information] [QueryBalance-Information] [POC-Information] [IM-Information] [AoC-Information] [AoC-Confirmation] AVP代码 421 412 414 417 446 872 452 420 413 445 447 429 425 421 412 414 417 432 411 458 459 460 284 280 33 873 874 20300 20400 20500 20600 20700 20800 20900 879 22200 20329 20340 VendorID -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 10415 10415 81000 81000 81000 81000 81000 81000 81000 10415 81000 81000 81000 数据类型 Unsigned64 Unsigned64 Unsigned64 Unsigned64 Grouped Enumerated Enumerated Unsigned32 Grouped Grouped Integer64 Integer32 Unsigned32 Unsigned64 Unsigned64 Unsigned64 Unsigned64 Unsigned32 OctetString Grouped Enumerated OctetString Grouped DiameterIdentity OctetString Grouped Grouped Grouped Grouped Grouped Grouped Grouped Grouped Grouped Grouped Grouped Grouped Enumerated 选项 OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OM OM OC OM OM OM OC OC OC OC OC OC OC OC OC OC OC OC PS-Information AVP如表3所示:
表3:PS-Information AVP表
AVP名称 [3GPP-Charging-Id] [3GPP-PDP-Type] [PDP-Address] [3GPP-GPRS-Negotiated-QoS-Profile] [SGSN-Address] [GGSN-Address] [CG-Address] [3GPP-IMSI-MCC-MNC] [3GPP-GGSN- MCC-MNC] [3GPP-NSAPI] [Called-Station-Id] [3GPP-Session-Stop-Indicator] [3GPP-Selection-Mode] [3GPP-Charging-Characteristics] [3GPP-SGSN-MCC-MNC] [3GPP-MS-TimeZone] [3GPP-CAMEL-Charging-Info] [Charging-Rule-Based-Name] [3GPP-User-Location-Info] [3GPP-RAT-Type] [CDMA-Charging-Id] [CDMA-IP-Technology] AVP代码 2 3 1227 5 1228 847 846 8 9 10 30 11 12 13 18 23 24 1004 22 21 21201 21202 VendorID 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 10415 数据类型 UTF8String Enumerated Address UTF8String Address Address Address UTF8String UTF8String UTF8String UTF8String Unsigned32 UTF8String Unsigned32 UTF8String UTF8String UTF8String UTF8String UTF8String UTF8String UTF8String Enumerated 选项 OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC 28
中国电信在线计费系统OCP接口规范
[CDMA-MS-IP-Address] [CDMA-Qos-Profile-ID] [PDSN-Address] [HA-Address] [AAA-Address] [CDMA-Charging-Type] [CDMA-Calling-Station-Id] 21203 21204 21205 21206 21207 21208 21209 10415 10415 10415 10415 10415 10415 10415 Address UTF8String Address Address Address Unsigned32 UTF8String OC OC OC OC OC OC OC IN-Information AVP如表4所示:
表 4:IN-Information AVP表
AVP名称 [Calling-Party-Number] [Called-Party-Number] [Service-Key] [Calling-Partys-Category] [Calling-Vlr-Number] [Calling-CellID-Or-SAI] [Calling-LAI] [Called-Vlr-Number] [Called-CellID-Or-SAI] [Called-LAI] [Called-IMEI] [Calling-IMEI] [Oiginal-Called-Party-Id] [High-Layer-Compatibility] [Additional-Calling-Party-Number] [Bearer-Capability] [Bearer-Capability2] [EventType-BCSM] [Redirecting-Party-Id] [Redirection-Information] [IMSI] [Tele-Service-Code] [Bearer-Service-Code] [Call-Reference-Number] [MSC-Address] [GMSC-Address] [Time-Zone] [IN-Service-Indicator] [Ms-Classmark2] [Tele-Service-Code2] [Bearer-Service-Code2] [Called-Short-Number] [Group-Number] [VPN-Call-Type] AVP代码 20336 20337 20338 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20201 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20381 20382 20383 VendorID 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 数据类型 UTF8String UTF8String Unsigned32 Unsigned32 UTF8String UTF8String UTF8String UTF8String UTF8String UTF8String UTF8String UTF8String UTF8String UTF8String UTF8String OctetString OctetString Unsigned32 UTF8String OctetString UTF8String OctetString OctetString OctetString UTF8String UTF8String Unsigned32 Unsigned32 OctectString OctectString OctectString UTF8String UTF8String Unsigned32 选项 OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC P2PSMS-Information AVP如表5所示:
表 5:P2PSMS-Information AVP表
AVP名称 {OA-Subscription-Id} {Subscription-Id-Type} {Subscription-Id-Data} {DA-Subscription-Id} {Subscription-Id-Type} {Subscription-Id-Data} {SMSC-Address} {SM-Id} [SM-Length] AVP代码 20511 450 444 20512 450 444 20401 20402 20403 VendorID 81000 -- -- 81000 -- -- 81000 81000 81000 数据类型 Grouped Enumerated UTF8String Grouped Enumerated UTF8String UTF8String UTF8String Unsigned32 选项 OM OM OM OM OM OM OM OC OC 29
中国电信在线计费系统OCP接口规范
ISMP-Information AVP如表6所示:
表 6:ISMP-Information AVP表
AVP名称 [Message-Id] [Charge-Party-Type] [OA-Subscription-Id] {Subscription-Id-Type} {Subscription-Id-Data} [DA-Subscription-Id] {Subscription-Id-Type} {Subscription-Id-Data} [Third-Party-Subscription-Id] {Subscription-Id-Type} {Subscription-Id-Data} [SP-Id] [Sevice-Enabler-Type] [ChargingType] [Product-Id] [Product-Offer-ID] [Service-Type] [Content-Id] [Media-Type] [Client-IP] AVP代码 20501 20502 20511 450 444 20512 450 444 20503 450 444 20504 20505 20515 20506 20513 20507 20508 20509 20510 VendorID 81000 81000 81000 -- -- 81000 -- -- 81000 -- -- 81000 81000 81000 81000 81000 81000 81000 81000 81000 数据类型 OctectString Enumerated Grouped Enumerated UTF8String Grouped Enumerated UTF8String Grouped Enumerated UTF8String OctectString Enumerated Unsigned32 OctectString OctectString Enumerated OctectString OctectString IPAddress 选项 OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC OC
表 7:DSL -Information AVP表
AVP名称 [Calling-Party-Number] [Called-Party-Number] [ProductSpecID] [NasIP] [FRAMED_IP] [Use_Node_ID] AVP代码 20336 20337 30301 30302 30306 30313 VendorID 81000 81000 81000 81000 81000 81000 数据类型 UTF8String UTF8String OctetString OctetString OctetString OctetString 选项 OC OC OC OC OC OC 表8:PSTN-Event-Information AVP表
AVP名称 [Charge-Method ] AVP代码 20701 VendorID 81000 数据类型 Enumerated 选项 OC 表9:Recharge-information AVP表
AVP名称 [Card-Number] [Card-Batch] [Card-Type] [Card-Money] [Recharge-Method] [Charge-Money] [Money-Type] [Money-Value] [Active-Day] [ChargeConfirmFlag] AVP代码 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 VendorID 81000 81000 81000 81000 81000 81000 81000 81000 81000 81000 数据类型 OctetString OctetString Unsigned32 Unsigned32 Enumerated Grouped Unsigned32 Integer32 Unsigned32 Enumerated 选项 OC OC OC OC OC OC OC OC OC OC 表10:QueryBalance-Information AVP表
AVP名称 AVP代码 VendorID 数据类型 选项 30