类别 结果码 描述
Success 0 Success 成功
Protocol error协议相关错误 General error通用错误 1 Length of PDU is invalid(greater than 30K or less than zero)消息长度非法
2 Failed to decode the PDU(lack of fields or field type invalid)消息解码错误
6 Service enabler has not binded yet业务系统链接未建立
7 Timeout while waiting for the response message等待应答超时
8 Timeout while waiting for the confirmation message等待确认消息超时
Field error or others字段及其他相关错误 100 Field value is invalid(not expected or error)字段值无效
101 Source device type is out of range源设备类型无效
102 Source device id is incorrect源设备编号错误
103 Destination device type is out of range目的设备类型无效
104 Destination device id is incorrect目的设备编号错误
105 Timestamp field is in a bad format时间戳字段格式错误
106 Subscriber's ID is invalid用户ID非法
107 MSISDN is invalid手机号码非法
108 SP identifier is invalidSP ID非法
109 Service identifier is invalid业务ID非法
110 Service code(Access NO) is invalid.接入号非法
System error系统类错误 System error系统类错误 500 Disk read-write error磁盘读写错误
501 Network connection is abnormal网络链接异常
502 Network error网络故障
503 LICENSE file is illegalLICENSE不合法
504 Number of registered user is beyond the limitation of the LICENSE已超过LICENSE限定数量
505 System internal error 系统内部错误
Subscriber related error用户相关错误 Subscriber related error用户相关错误 1001 The subscriber does not exist用户不存在
1002 The subscriber's status is stopped用户状态为停机状态
1003 The subscriber owes payment用户欠费
1004 The subscriber is in blacklist用户已被列入黑名单
1005 用户不属于本平台
1100 The specified service is not open to the subscriber业务对此用户不开放
1103 The subscriber has already registered用户已注册
1104 The subscriber has not registered yet用户未注册
1105 Status of the subscriber is abnormal(not normal)用户状态异常
1106 Failed to authenticate the subscriber by password用户密码认证失败
1107 Failed to generate a pseudo code伪码生成失败
1200 The subscription already exists定购关系已存在
1201 The subscription does not exist定购关系不存在
1202 Status of the subscription is abnormal定购关系状态异常
1203 定购关系通知sp失败
SP and service related errorSP和业务相关错误 SP related errorSP相关错误 2000 The SP does not existSP不存在
2001 Status of the SP is abnormalSP状态异常
Service related error业务相关错误 2100 The service does not exist业务不存在
2101 The service is not open(Its status is abnormal)业务状态异常
2200 The is no such type of service(SMS, MMS, etc.)业务类型不存在
2201 The service cannot be subscribed业务不能定购
2202 剩余使用量不足
Charging error计费相关错误 Charging error计费相关错误 3000 CDR format is wron***R格式错误
3001 The price is negative价格为负数
3002 The price format is wrong价格格式错误
3003 The price is out of range价格超界
3100 The subscribe is not a prepaid user用户不是预付费用户
3101 Balance of the subscribe is not enough用户余额不足
3102 Failed to impact balance补款失败
3103 There is no required charging information没有对应的计费信息
3104 Failed to write a CDR写CDR失败
3105 The CDR is duplicatedCDR重复
3106 Failed to insert the CDR to databaseCDR写数据库失败
3107 Price of the CDR is too highCDR中标识的价格太高
3108 Timeout while waiting for the SCP response等待SCP应答超时
3109 Failed to reload the charging matrix into memory计费矩阵更新失败
BOSS Integer errorBOSS接口相关错误 BOSS Inte***ce errorBOSS接口相关错误 4001 There is no subscriber's information in BOSSBOSS中无此用户信息
Default Error 9999 Default Error缺省错误
正向业务测试用全部SQL(For Sql Server)
DROP TRIGGER cmpp_dispatcher
GO
CREATE TRIGGER cmpp_dispatcher
ON cmpp_deliver
FOR INSERT AS
--Only process normal message.
IF (@registered_delivery <> 0) RETURN
--Print message.
PRINT '接收来自' + @src_terminal_id + '的消息:' + @msg_content
--Check message content.
IF @msg_content = 'db' OR @msg_content = 'DB'
BEGIN
--Reply automatically.
INSERT INTO CMPP_SUBMIT
(service_id,fee_type,fee_code,registered_delivery,dest_terminal_id,fee_terminal_type,fee_terminal_id,msg_content,link_id)
VALUES
('1009','00','000000',0x01,@src_terminal_id,3,@src_terminal_id,convert(varbinary(255),'点播' + @src_terminal_id),@link_id);
RETURN
END
IF RIGHT(@msg_content,2) = 'DZ'
BEGIN
--Reply automatically.
INSERT INTO CMPP_SUBMIT
(service_id,fee_type,fee_code,registered_delivery,dest_terminal_id,fee_terminal_type,fee_terminal_id,msg_content,link_id)
VALUES
('SPT100009','03','000100',0xf0,@src_terminal_id,3,@src_terminal_id,convert(varbinary(255),'DG SPT100009 ' + @src_terminal_id),@link_id);
INSERT INTO CMPP_SUBMIT
(service_id,fee_type,fee_code,registered_delivery,dest_terminal_id,fee_terminal_type,fee_terminal_id,msg_content,link_id)
VALUES
('SPT100009','03','000100',0x01,@src_terminal_id,3,@src_terminal_id,convert(varbinary(255),'普通消息' + @src_terminal_id),@link_id);
RETURN
END
IF @msg_content = '00000'
BEGIN
--Reply automatically.
INSERT INTO CMPP_SUBMIT
(service_id,fee_type,fee_code,registered_delivery,dest_terminal_id,fee_terminal_type,fee_terminal_id,msg_content,link_id)
VALUES
('SPT100009','03','000100',0xf0,@src_terminal_id,3,@src_terminal_id,convert(varbinary(255),'QX SPT100009 ' + @src_terminal_id),@link_id);